summaryrefslogtreecommitdiffstats
path: root/lib/kross/main/scriptcontainer.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kross/main/scriptcontainer.h')
-rw-r--r--lib/kross/main/scriptcontainer.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/lib/kross/main/scriptcontainer.h b/lib/kross/main/scriptcontainer.h
index a66293a2..5d2b38d0 100644
--- a/lib/kross/main/scriptcontainer.h
+++ b/lib/kross/main/scriptcontainer.h
@@ -22,9 +22,9 @@
#include "mainmodule.h"
-#include <qstring.h>
-#include <qvariant.h>
-#include <qobject.h>
+#include <tqstring.h>
+#include <tqvariant.h>
+#include <tqobject.h>
#include <ksharedptr.h>
namespace Kross { namespace Api {
@@ -67,7 +67,7 @@ namespace Kross { namespace Api {
* has. It's used e.g. at the \a Manager to
* identify the ScriptContainer.
*/
- explicit ScriptContainer(const QString& name = QString::null);
+ explicit ScriptContainer(const TQString& name = TQString());
public:
@@ -83,56 +83,56 @@ namespace Kross { namespace Api {
* \return the unique name this ScriptContainer is
* reachable as.
*/
- const QString getName() const;
+ const TQString getName() const;
/**
* Set the name this ScriptContainer is reachable as.
*/
- void setName(const QString& name);
+ void setName(const TQString& name);
/**
* Return the scriptcode this ScriptContainer holds.
*/
- QString getCode() const;
+ TQString getCode() const;
/**
* Set the scriptcode this ScriptContainer holds.
*/
- void setCode(const QString& code);
+ void setCode(const TQString& code);
/**
* \return the name of the interpreter used
* on \a execute.
*/
- QString getInterpreterName() const;
+ TQString getInterpreterName() const;
/**
* Set the name of the interpreter used
* on \a execute.
*/
- void setInterpreterName(const QString& interpretername);
+ void setInterpreterName(const TQString& interpretername);
/**
* \return the filename which will be executed
* on \a execute.
*/
- QString getFile() const;
+ TQString getFile() const;
/**
* Set the filename which will be executed
* on \a execute. The \p scriptfile needs to
- * be a valid local file or QString::null if
+ * be a valid local file or TQString() if
* you don't like to use a file rather then
* the with \a setCode() defined scripting code.
*/
- void setFile(const QString& scriptfile);
+ void setFile(const TQString& scriptfile);
/**
* \return a map of options this \a ScriptContainer defines.
* The options are returned call-by-ref, so you are able to
* manipulate them.
*/
- QMap<QString, QVariant>& getOptions();
+ TQMap<TQString, TQVariant>& getOptions();
/**
* \return the value of the option defined with \p name .
@@ -143,12 +143,12 @@ namespace Kross { namespace Api {
* the \a Manager options are seeked for the \p name and
* if not found either the \p defaultvalue is returned.
*/
- QVariant getOption(const QString name, QVariant defaultvalue = QVariant(), bool recursive = false);
+ TQVariant getOption(const TQString name, TQVariant defaultvalue = TQVariant(), bool recursive = false);
/**
* Set the \a Interpreter::Option value.
*/
- bool setOption(const QString name, const QVariant& value);
+ bool setOption(const TQString name, const TQVariant& value);
/**
* Execute the script container.
@@ -159,7 +159,7 @@ namespace Kross { namespace Api {
* Return a list of functionnames the with
* \a setCode defined scriptcode spends.
*/
- const QStringList getFunctionNames();
+ const TQStringList getFunctionNames();
/**
* Call a function in the script container.
@@ -171,17 +171,17 @@ namespace Kross { namespace Api {
* \return \a Object instance representing
* the functioncall returnvalue.
*/
- KSharedPtr<Object> callFunction(const QString& functionname, KSharedPtr<List> arguments = 0);
+ KSharedPtr<Object> callFunction(const TQString& functionname, KSharedPtr<List> arguments = 0);
/**
* Return a list of classes.
*/
- QStringList getClassNames();
+ TQStringList getClassNames();
/**
* Create and return a new class instance.
*/
- KSharedPtr<Object> classInstance(const QString& classname);
+ KSharedPtr<Object> classInstance(const TQString& classname);
/**
* Initialize the \a Script instance.