summaryrefslogtreecommitdiffstats
path: root/kpackage/kpPty.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
commitaa3a1ca934bc541bddd3fa136a85f106f7da266e (patch)
tree9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kpackage/kpPty.h
parentb10cf7066791a2f362495890cd50c984e8025412 (diff)
downloadtdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz
tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpackage/kpPty.h')
-rw-r--r--kpackage/kpPty.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/kpackage/kpPty.h b/kpackage/kpPty.h
index f427ef8..bf303f2 100644
--- a/kpackage/kpPty.h
+++ b/kpackage/kpPty.h
@@ -27,11 +27,11 @@
#ifndef KPPTY_H
#define KPPTY_H
-#include <qmultilineedit.h>
-#include <qstringlist.h>
-#include <qregexp.h>
-#include <qtextcodec.h>
-#include <qmap.h>
+#include <tqmultilineedit.h>
+#include <tqstringlist.h>
+#include <tqregexp.h>
+#include <tqtextcodec.h>
+#include <tqmap.h>
#include <kprocio.h>
@@ -43,7 +43,7 @@ class kpKProcIO: public KProcIO
public:
- kpKProcIO ( QTextCodec *_codec = 0);
+ kpKProcIO ( TQTextCodec *_codec = 0);
~kpKProcIO();
bool sstart (RunMode runmode);
@@ -57,12 +57,12 @@ public:
kpPty();
~kpPty();
- QStringList run(const QString &cmd, bool inLoop = TRUE,
+ TQStringList run(const TQString &cmd, bool inLoop = TRUE,
bool needRoot= FALSE);
bool startSession(bool needRoot);
void close();
- QString remote;
+ TQString remote;
int Result;
// True if have started a session
bool inSession;
@@ -76,8 +76,8 @@ public slots:
void keyOut(char);
signals:
- void textIn(const QString &, bool);
- void result(QStringList &, int);
+ void textIn(const TQString &, bool);
+ void result(TQStringList &, int);
private:
void finish(int ret);
@@ -85,21 +85,21 @@ private:
void startSsh();
void startSu();
void startSudo();
- void breakUpCmd(const QString &);
+ void breakUpCmd(const TQString &);
bool needSession(bool needRoot);
kpKProcIO* pty;
- QTimer *tm;
- QStringList retList;
- QRegExp terminator;
+ TQTimer *tm;
+ TQStringList retList;
+ TQRegExp terminator;
bool pUnterm;
- QString uptext;
+ TQString uptext;
// True if in event loop
bool eventLoop;
// True if trying to login
bool loginSession;
- QTextCodec *codec;
- QMap<QString, QCString> passwords;
+ TQTextCodec *codec;
+ TQMap<TQString, TQCString> passwords;
};