Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSSInterpreter_p.h 00003 ------------------- 00004 begin : 30/12/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 AQSSINTERPRETER_P_H_ 00020 #define AQSSINTERPRETER_P_H_ 00021 00022 #include "AQSObject_p.h" 00023 #include <qsinterpreter.h> 00024 00025 class AQSSInterpreter : public AQSObject 00026 { 00027 Q_OBJECT 00028 00029 AQ_DECLARE_AQS_OBJECT(SInterpreter, Object); 00030 00031 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00032 public slots: 00033 bool checkSyntax(const QString &); 00034 QStringList functions(uint = QSInterpreter::FunctionNames) const; 00035 QStringList functions(const QString &, uint = QSInterpreter::FunctionNames) const; 00036 QStringList functions(QObject *, uint = QSInterpreter::FunctionNames) const; 00037 QStringList classes(uint = QSInterpreter::AllClasses) const; 00038 QStringList classes(const QString &) const; 00039 QStringList classes(QObject *) const; 00040 QStringList variables(bool = false, bool = false, bool = false) const; 00041 QStringList variables(const QString &, bool = false, bool = false, bool = false) const; 00042 QStringList variables(QObject *, bool = false, bool = false, bool = false) const; 00043 bool hasFunction(const QString &) const; 00044 bool hasClass(const QString &) const; 00045 bool hasVariable(const QString &) const; 00046 QObjectList presentObjects() const; 00047 bool isRunning() const; 00048 bool hadError() const; 00049 00050 protected: 00051 static void *construct(const QSArgumentList &args) { 00052 return 0; 00053 } 00054 //@AQ_END_DEF_PUB_SLOTS@ 00055 }; 00056 00057 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00058 inline bool AQSSInterpreter::checkSyntax(const QString &arg0) 00059 { 00060 AQ_CALL_RET_V(checkSyntax(arg0), bool); 00061 } 00062 inline QStringList AQSSInterpreter::functions(uint arg0) const 00063 { 00064 AQ_CALL_RET_V(functions(static_cast<QSInterpreter::FunctionFlags>(arg0)), QStringList); 00065 } 00066 inline QStringList AQSSInterpreter::functions(const QString &arg0, uint arg1) const 00067 { 00068 AQ_CALL_RET_V(functions(arg0, arg1), QStringList); 00069 } 00070 inline QStringList AQSSInterpreter::functions(QObject *arg0, uint arg1) const 00071 { 00072 AQ_CALL_RET_V(functions(arg0, static_cast<QSInterpreter::FunctionFlags>(arg1)), QStringList); 00073 } 00074 inline QStringList AQSSInterpreter::classes(uint arg0) const 00075 { 00076 AQ_CALL_RET_V(classes(static_cast<QSInterpreter::ClassFlags>(arg0)), QStringList); 00077 } 00078 inline QStringList AQSSInterpreter::classes(const QString &arg0) const 00079 { 00080 AQ_CALL_RET_V(classes(arg0), QStringList); 00081 } 00082 inline QStringList AQSSInterpreter::classes(QObject *arg0) const 00083 { 00084 AQ_CALL_RET_V(classes(arg0), QStringList); 00085 } 00086 inline QStringList AQSSInterpreter::variables(bool arg0, bool arg1, bool arg2) const 00087 { 00088 AQ_CALL_RET_V(variables(arg0, arg1, arg2), QStringList); 00089 } 00090 inline QStringList AQSSInterpreter::variables(const QString &arg0, bool arg1, bool arg2, bool arg3) const 00091 { 00092 AQ_CALL_RET_V(variables(arg0, arg1, arg2, arg3), QStringList); 00093 } 00094 inline QStringList AQSSInterpreter::variables(QObject *arg0, bool arg1, bool arg2, bool arg3) const 00095 { 00096 AQ_CALL_RET_V(variables(arg0, arg1, arg2, arg3), QStringList); 00097 } 00098 inline bool AQSSInterpreter::hasFunction(const QString &arg0) const 00099 { 00100 AQ_CALL_RET_V(hasFunction(arg0), bool); 00101 } 00102 inline bool AQSSInterpreter::hasClass(const QString &arg0) const 00103 { 00104 AQ_CALL_RET_V(hasClass(arg0), bool); 00105 } 00106 inline bool AQSSInterpreter::hasVariable(const QString &arg0) const 00107 { 00108 AQ_CALL_RET_V(hasVariable(arg0), bool); 00109 } 00110 inline QObjectList AQSSInterpreter::presentObjects() const 00111 { 00112 AQ_CALL_RET_V(presentObjects(), QObjectList); 00113 } 00114 inline bool AQSSInterpreter::isRunning() const 00115 { 00116 AQ_CALL_RET_V(isRunning(), bool); 00117 } 00118 inline bool AQSSInterpreter::hadError() const 00119 { 00120 AQ_CALL_RET_V(hadError(), bool); 00121 } 00122 //@AQ_END_IMP_PUB_SLOTS@ 00123 00124 #endif /* AQSSINTERPRETER_P_H_ */ 00125 // @AQSOBJECT@