Ananas Library  0.9.5
aextte.h
1 /****************************************************************************
2 ** $Id: aextte.h,v 1.2 2006/07/12 10:38:05 app Exp $
3 **
4 ** Extension object header file of
5 ** Ananas application library
6 **
7 ** Created : 20031201
8 **
9 ** Copyright (C) 2003-2004 Leader InfoTech. All rights reserved.
10 ** Copyright (C) 2003-2005 Grigory Panov, Yoshkar-Ola.
11 **
12 ** This file is part of the Designer application of the Ananas
13 ** automation accounting system.
14 **
15 ** This file may be distributed and/or modified under the terms of the
16 ** GNU General Public License version 2 as published by the Free Software
17 ** Foundation and appearing in the file LICENSE.GPL included in the
18 ** packaging of this file.
19 **
20 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
21 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22 **
23 ** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru
24 ** See http://www.leaderit.ru/gpl/ for GPL licensing information.
25 **
26 ** Contact org@leaderit.ru if any conditions of this licensing are
27 ** not clear to you.
28 **
29 **********************************************************************/
30 
31 #ifndef AEXTTE_H
32 #define AEXTTE_H
33 
34 #include "aextension.h"
35 class TEBase;
36 class QLibrary;
37 
38 typedef QStringList (*p_te_drivers)( const QString & );
39 typedef bool (*p_te_driverExists)( const QString &, const QString & );
40 typedef TEBase *(*p_te_createDriverObject)( const QString &className );
41 
49 class ANANAS_EXPORT AExtTE : public AExtension
50 {
51  Q_OBJECT
52 
53 public:
54 
55  AExtTE();
56  ~AExtTE();
57 
58 public slots:
59  QStringList drivers( const QString &baseclass );
60  bool driverExists( const QString &name );
61  QObject *newDriver( const QString &name );
62 protected slots:
63  void deviceEvent( int eventCode );
64 private:
65  QLibrary *telib;
66  p_te_drivers te_drivers;
67  p_te_driverExists te_driverExists;
68  p_te_createDriverObject te_createDriverObject;
69 };
70 
71 #endif //AEXTTE_H
Definition: aextte.h:49
Definition: aextension.h:45