Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSSScript_p.h 00003 ------------------- 00004 begin : 07/02/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 AQSSSCRIPT_P_H_ 00020 #define AQSSSCRIPT_P_H_ 00021 00022 #include "AQSObject_p.h" 00023 #include <qsscript.h> 00024 00025 class AQSSScript : public AQSObject 00026 { 00027 Q_OBJECT 00028 00029 AQ_DECLARE_AQS_OBJECT(SScript, Object); 00030 00031 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00032 public slots: 00033 QString name() const; 00034 QString code() const; 00035 QObject *context() const; 00036 void setCode(const QString &); 00037 void addCode(const QString &); 00038 bool addFunction(const QString &, const QString& = QString::null); 00039 QString fileName() const; 00040 void setFileName(const QString &); 00041 QString baseFileName() const; 00042 void setBaseFileName(const QString &); 00043 00044 protected: 00045 static void *construct(const QSArgumentList &args) { 00046 return 0; 00047 } 00048 //@AQ_END_DEF_PUB_SLOTS@ 00049 }; 00050 00051 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00052 inline QString AQSSScript::name() const 00053 { 00054 AQ_CALL_RET_V(name(), QString); 00055 } 00056 inline QString AQSSScript::code() const 00057 { 00058 AQ_CALL_RET_V(code(), QString); 00059 } 00060 inline QObject *AQSSScript::context() const 00061 { 00062 AQ_CALL_RET(context()); 00063 } 00064 inline void AQSSScript::setCode(const QString &arg0) 00065 { 00066 AQ_CALL_VOID(setCode(arg0)); 00067 } 00068 inline void AQSSScript::addCode(const QString &arg0) 00069 { 00070 AQ_CALL_VOID(addCode(arg0)); 00071 } 00072 inline bool AQSSScript::addFunction(const QString &arg0, const QString &arg1) 00073 { 00074 AQ_CALL_RET_V(addFunction(arg0, arg1), bool); 00075 } 00076 inline QString AQSSScript::fileName() const 00077 { 00078 AQ_CALL_RET_V(fileName(), QString); 00079 } 00080 inline void AQSSScript::setFileName(const QString &arg0) 00081 { 00082 AQ_CALL_VOID(setFileName(arg0)); 00083 } 00084 inline QString AQSSScript::baseFileName() const 00085 { 00086 AQ_CALL_RET_V(baseFileName(), QString); 00087 } 00088 inline void AQSSScript::setBaseFileName(const QString &arg0) 00089 { 00090 AQ_CALL_VOID(setBaseFileName(arg0)); 00091 } 00092 //@AQ_END_IMP_PUB_SLOTS@ 00093 00094 #endif /* AQSSSCRIPT_P_H_ */ 00095 // @AQSOBJECT@