summaryrefslogtreecommitdiffstats
path: root/interfaces/kscript/sample
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /interfaces/kscript/sample
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'interfaces/kscript/sample')
-rw-r--r--interfaces/kscript/sample/shellscript.cpp16
-rw-r--r--interfaces/kscript/sample/shellscript.h16
2 files changed, 16 insertions, 16 deletions
diff --git a/interfaces/kscript/sample/shellscript.cpp b/interfaces/kscript/sample/shellscript.cpp
index 4e3062eb2..49aee0727 100644
--- a/interfaces/kscript/sample/shellscript.cpp
+++ b/interfaces/kscript/sample/shellscript.cpp
@@ -28,12 +28,12 @@
typedef KGenericFactory<ShellScript, KScriptClientInterface> ShellScriptFactory;
K_EXPORT_COMPONENT_FACTORY( libshellscript, ShellScriptFactory( "ShellScript" ) )
-ShellScript::ShellScript(KScriptClientInterface *parent, const char *, const QStringList & ) : ScriptClientInterface(parent)
+ShellScript::ShellScript(KScriptClientInterface *parent, const char *, const TQStringList & ) : ScriptClientInterface(parent)
{
m_script = new KProcess();
- connect ( m_script, SIGNAL(processExited(KProcess *)), SLOT(Exit(KProcess *)));
- connect ( m_script, SIGNAL(receivedStdout(KProcess *, char *, int)), SLOT(stdOut(KProcess *, char *, int )));
- connect ( m_script, SIGNAL(receivedStderr(KProcess *, char *, int)), SLOT(stdErr(KProcess *, char *, int )));
+ connect ( m_script, TQT_SIGNAL(processExited(KProcess *)), TQT_SLOT(Exit(KProcess *)));
+ connect ( m_script, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), TQT_SLOT(stdOut(KProcess *, char *, int )));
+ connect ( m_script, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), TQT_SLOT(stdErr(KProcess *, char *, int )));
// Connect feedback signals and slots
//kdDebug() << "Building new script engine" << endl;
}
@@ -42,23 +42,23 @@ ShellScript::~ShellScript()
{
}
-QString ShellScript::script() const
+TQString ShellScript::script() const
{
return m_scriptName;
}
-void ShellScript::setScript( const QString &scriptFile )
+void ShellScript::setScript( const TQString &scriptFile )
{
m_scriptName = scriptFile;
*m_script << "sh" << m_scriptName << kapp->dcopClient()->appId();
}
-void ShellScript::setScript( const QString &, const QString & )
+void ShellScript::setScript( const TQString &, const TQString & )
{
// ### what is this?
}
-void ShellScript::run(QObject *, const QVariant &)
+void ShellScript::run(TQObject *, const TQVariant &)
{
m_script->start(KProcess::NotifyOnExit,KProcess::All);
}
diff --git a/interfaces/kscript/sample/shellscript.h b/interfaces/kscript/sample/shellscript.h
index c6bdc3c38..853a7bd12 100644
--- a/interfaces/kscript/sample/shellscript.h
+++ b/interfaces/kscript/sample/shellscript.h
@@ -20,20 +20,20 @@
#define __shellscript_h__
#include <scriptinterface.h>
-#include <qvariant.h>
-#include <qobject.h>
+#include <tqvariant.h>
+#include <tqobject.h>
#include <kprocess.h>
//using namespace KScriptInterface;
class ShellScript : public KScriptInterface
{
Q_OBJECT
public:
- ShellScript(KScriptClientInterface *parent, const char *name, const QStringList &args);
+ ShellScript(KScriptClientInterface *parent, const char *name, const TQStringList &args);
virtual ~ShellScript();
- QString script() const;
- void setScript( const QString &scriptFile );
- void setScript( const QString &scriptLibFile, const QString &method );
- void run(QObject *context = 0, const QVariant &arg = 0);
+ TQString script() const;
+ void setScript( const TQString &scriptFile );
+ void setScript( const TQString &scriptLibFile, const TQString &method );
+ void run(TQObject *context = 0, const TQVariant &arg = 0);
void kill();
private slots:
void Exit(KProcess *proc);
@@ -42,7 +42,7 @@ private slots:
private:
KProcess *m_script;
KScriptClientInterface *ScriptClientInterface;
- QString m_scriptName;
+ TQString m_scriptName;
};
#endif