Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQApplication.h 00003 ------------------- 00004 begin : 29/03/2011 00005 copyright : (C) 2003-2011 by InfoSiAL S.L. 00006 email : mail@infosial.com 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; version 2 of the License. * 00012 ***************************************************************************/ 00013 /*************************************************************************** 00014 Este programa es software libre. Puede redistribuirlo y/o modificarlo 00015 bajo los términos de la Licencia Pública General de GNU en su 00016 versión 2, publicada por la Free Software Foundation. 00017 ***************************************************************************/ 00018 00019 #ifndef AQAPPLICATION_H_ 00020 #define AQAPPLICATION_H_ 00021 00022 #include "FLApplication_p.h" 00023 00024 class AQApplicationPrivate; 00025 00026 extern FLApplication *aqApp; 00027 00028 class AQApplication : public FLApplication 00029 { 00030 Q_OBJECT 00031 00032 public: 00033 AQApplication(int &argc, char **argv); 00034 virtual ~AQApplication(); 00035 00036 void init(const QString &n = QString::null, 00037 const QString &callFunction = QString::null, 00038 const QString &arguments = QString::null, 00039 bool quitAfterCall = false, bool noMax = false); 00040 00041 void reinit(); 00042 00043 public slots: 00044 void setMainWidget(QWidget *mainWidget); 00045 00046 QSArgument call(const QString &function, 00047 const QString &nameObjectContext) const; 00048 00049 private slots: 00050 void callInitScript(); 00051 void callReinitScript(); 00052 00053 private: 00054 AQApplicationPrivate *d; 00055 }; 00056 00057 #endif /* AQAPPLICATION_H_ */