summaryrefslogtreecommitdiffstats
path: root/konversation/src/scriptlauncher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konversation/src/scriptlauncher.cpp')
-rw-r--r--konversation/src/scriptlauncher.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/konversation/src/scriptlauncher.cpp b/konversation/src/scriptlauncher.cpp
index a81965e..40c2300 100644
--- a/konversation/src/scriptlauncher.cpp
+++ b/konversation/src/scriptlauncher.cpp
@@ -15,9 +15,9 @@
#include "konversationapplication.h"
#include "server.h"
-#include <qstringlist.h>
-#include <qfile.h>
-#include <qfileinfo.h>
+#include <tqstringlist.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
#include <kdebug.h>
#include <kstandarddirs.h>
@@ -26,7 +26,7 @@
ScriptLauncher::ScriptLauncher(Server* server)
-: QObject(server)
+: TQObject(server)
{
m_server = server;
}
@@ -35,34 +35,34 @@ ScriptLauncher::~ScriptLauncher()
{
}
-void ScriptLauncher::launchScript(const QString& target, const QString &parameter)
+void ScriptLauncher::launchScript(const TQString& target, const TQString &parameter)
{
KStandardDirs kstddir;
- // QString scriptPath(kstddir.saveLocation("data",QString("konversation/scripts")));
+ // TQString scriptPath(kstddir.saveLocation("data",TQString("konversation/scripts")));
KProcess process;
// send the script all the information it will need
- QStringList parameterList=QStringList::split(' ',parameter);
+ TQStringList parameterList=TQStringList::split(' ',parameter);
// find script path (could be installed for all users in $KDEDIR/share/apps/ or
// for one user alone in $HOME/.kde/share/apps/
- QString scriptPath(kstddir.findResource("data","konversation/scripts/"+parameterList[0]));
+ TQString scriptPath(kstddir.findResource("data","konversation/scripts/"+parameterList[0]));
process << scriptPath // script path and name
<< kapp->dcopClient()->appId() // our dcop port
- << QString::number(m_server->connectionId()) // the server we are connected to
+ << TQString::number(m_server->connectionId()) // the server we are connected to
<< target; // the target where the call came from
// send remaining parameters to the script
for(unsigned int index=1;index<parameterList.count();index++)
process << parameterList[index];
- QFileInfo fileInfo(scriptPath);
+ TQFileInfo fileInfo(scriptPath);
process.setWorkingDirectory(fileInfo.dirPath());
if(process.start()==false)
{
- QFile file(parameterList[0]);
+ TQFile file(parameterList[0]);
if(!file.exists()) emit scriptNotFound(file.name());
else emit scriptExecutionError(file.name());
}