00001 /**************************************************************************** 00002 ** $Id: aextension.h,v 1.8 2007/09/04 13:30:23 app Exp $ 00003 ** 00004 ** Extension object header file of 00005 ** Ananas application library 00006 ** 00007 ** Created : 20031201 00008 ** 00009 ** Copyright (C) 2003-2004 Leader InfoTech. All rights reserved. 00010 ** Copyright (C) 2003-2005 Grigory Panov, Yoshkar-Ola. 00011 ** 00012 ** This file is part of the Designer application of the Ananas 00013 ** automation accounting system. 00014 ** 00015 ** This file may be distributed and/or modified under the terms of the 00016 ** GNU General Public License version 2 as published by the Free Software 00017 ** Foundation and appearing in the file LICENSE.GPL included in the 00018 ** packaging of this file. 00019 ** 00020 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00021 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00022 ** 00023 ** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru 00024 ** See http://www.leaderit.ru/gpl/ for GPL licensing information. 00025 ** 00026 ** Contact org@leaderit.ru if any conditions of this licensing are 00027 ** not clear to you. 00028 ** 00029 **********************************************************************/ 00030 00031 #ifndef AEXTENSION_H 00032 #define AEXTENSION_H 00033 00034 #include "ananasglobal.h" 00035 #include "adatabase.h" 00036 #include <qobject.h> 00037 00045 class ANANAS_EXPORT AExtension : public QObject 00046 { 00047 Q_OBJECT 00048 00049 public: 00050 aDatabase* db; 00051 00052 AExtension( const char *name = 0 ); 00053 ~AExtension(); 00054 virtual int init(aDatabase* dbo); 00055 00056 signals: 00057 void event( const QString &data ); 00058 00059 }; 00060 00061 #endif //AEXTENSION_H