summaryrefslogtreecommitdiffstats
path: root/kdesu/su.cpp
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 /kdesu/su.cpp
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 'kdesu/su.cpp')
-rw-r--r--kdesu/su.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kdesu/su.cpp b/kdesu/su.cpp
index 344c0f34c..864a3bcc0 100644
--- a/kdesu/su.cpp
+++ b/kdesu/su.cpp
@@ -29,9 +29,9 @@
#include <sys/types.h>
#include <sys/stat.h>
-#include <qglobal.h>
-#include <qcstring.h>
-#include <qfile.h>
+#include <tqglobal.h>
+#include <tqcstring.h>
+#include <tqfile.h>
#include <kconfig.h>
#include <kdebug.h>
@@ -50,7 +50,7 @@
#define __PATH_SUDO "false"
#endif
-SuProcess::SuProcess(const QCString &user, const QCString &command)
+SuProcess::SuProcess(const TQCString &user, const TQCString &command)
{
m_User = user;
m_Command = command;
@@ -112,14 +112,14 @@ int SuProcess::exec(const char *password, int check)
if (superUserCommand == "su") {
args += "-c";
}
- args += QCString(__KDE_BINDIR) + "/kdesu_stub";
+ args += TQCString(__KDE_BINDIR) + "/kdesu_stub";
#ifndef Q_OS_DARWIN
args += "-";
#endif
- /// QCString command = __PATH_SU;
+ /// TQCString command = __PATH_SU;
/// if (::access(__PATH_SU, X_OK) != 0)
- QCString command;
+ TQCString command;
if (superUserCommand == "sudo") {
command = __PATH_SUDO;
} else {
@@ -128,8 +128,8 @@ int SuProcess::exec(const char *password, int check)
if (::access(command, X_OK) != 0)
{
- /// command = QFile::encodeName(KGlobal::dirs()->findExe("su"));
- command = QFile::encodeName( KGlobal::dirs()->findExe(superUserCommand.ascii()) );
+ /// command = TQFile::encodeName(KGlobal::dirs()->findExe("su"));
+ command = TQFile::encodeName( KGlobal::dirs()->findExe(superUserCommand.ascii()) );
if (command.isEmpty())
return check ? SuNotFound : -1;
}
@@ -231,7 +231,7 @@ int SuProcess::ConverseSU(const char *password)
unsigned i, j;
// kdDebug(900) << k_lineinfo << "ConverseSU starting." << endl;
- QCString line;
+ TQCString line;
while (true)
{
line = readLine();
@@ -257,7 +257,7 @@ int SuProcess::ConverseSU(const char *password)
// couldn't have been a password prompt (the definition
// of prompt being that there's a line of output followed
// by a colon, and then the process waits).
- QCString more = readLine();
+ TQCString more = readLine();
if (more.isEmpty())
break;
@@ -302,7 +302,7 @@ int SuProcess::ConverseSU(const char *password)
//////////////////////////////////////////////////////////////////////////
case CheckStar:
{
- QCString s = line.stripWhiteSpace();
+ TQCString s = line.stripWhiteSpace();
if (s.isEmpty())
{
state=HandleStub;