00001 /**************************************************************************** 00002 ** $Id: aextexample.h,v 1.1 2006/07/02 12:34:06 leader 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 AEXTEXAMPLE_H 00032 #define AEXTEXAMPLE_H 00033 00034 #include "aextension.h" 00035 00043 class ANANAS_EXPORT AExtExample : public AExtension 00044 { 00045 Q_OBJECT 00046 Q_PROPERTY( QString lastMessage READ getLastMessage WRITE setLastMessage ) 00047 00048 public: 00049 00050 AExtExample(); 00051 ~AExtExample(); 00052 public: 00053 QString getLastMessage() const { return vMessage;}; 00054 void setLastMessage( const QString &v ){ vMessage = v;}; 00055 00056 public slots: 00057 void PrintMessage( const QString &msg ); 00058 protected: 00059 void timerEvent( QTimerEvent * ); 00060 private: 00061 QString vMessage; 00062 }; 00063 00064 #endif //AEXTEXAMPLE_H