Ananas Library  0.9.5
aextexample.h
1 /****************************************************************************
2 ** $Id: aextexample.h,v 1.1 2006/07/02 12:34:06 leader 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 AEXTEXAMPLE_H
32 #define AEXTEXAMPLE_H
33 
34 #include "aextension.h"
35 
43 class ANANAS_EXPORT AExtExample : public AExtension
44 {
45  Q_OBJECT
46  Q_PROPERTY( QString lastMessage READ getLastMessage WRITE setLastMessage )
47 
48 public:
49 
50  AExtExample();
51  ~AExtExample();
52 public:
53  QString getLastMessage() const { return vMessage;};
54  void setLastMessage( const QString &v ){ vMessage = v;};
55 
56 public slots:
57  void PrintMessage( const QString &msg );
58 protected:
59  void timerEvent( QTimerEvent * );
60 private:
61  QString vMessage;
62 };
63 
64 #endif //AEXTEXAMPLE_H
Definition: aextexample.h:43
Definition: aextension.h:45