diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kppp/requester.cpp | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kppp/requester.cpp')
-rw-r--r-- | kppp/requester.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kppp/requester.cpp b/kppp/requester.cpp index b3b1df82..b5450929 100644 --- a/kppp/requester.cpp +++ b/kppp/requester.cpp @@ -57,7 +57,7 @@ extern "C" { #endif #include <kdebug.h> -#include <qfile.h> +#include <tqfile.h> #include "auth.h" #include "pppdata.h" @@ -171,7 +171,7 @@ bool Requester::recvResponse() { return (response.status == 0); } -int Requester::openModem(const QString & dev) { +int Requester::openModem(const TQString & dev) { struct OpenModemRequest req; req.header.type = Opener::OpenDevice; @@ -183,7 +183,7 @@ int Requester::openModem(const QString & dev) { } -int Requester::openLockfile(const QString &dev, int flags) { +int Requester::openLockfile(const TQString &dev, int flags) { struct OpenLockRequest req; @@ -229,7 +229,7 @@ int Requester::openSysLog() { } -bool Requester::setSecret(int method, const QString &name, const QString &password) { +bool Requester::setSecret(int method, const TQString &name, const TQString &password) { assert(name!=0); assert(password!=0); @@ -249,9 +249,9 @@ bool Requester::setSecret(int method, const QString &name, const QString &passwo default: return false; } - strncpy(req.username, QFile::encodeName(name), Opener::MaxStrLen); + strncpy(req.username, TQFile::encodeName(name), Opener::MaxStrLen); req.username[Opener::MaxStrLen] = '\0'; - strncpy(req.password, QFile::encodeName(password), Opener::MaxStrLen); + strncpy(req.password, TQFile::encodeName(password), Opener::MaxStrLen); req.password[Opener::MaxStrLen] = '\0'; sendRequest((struct RequestHeader *) &req, sizeof(req)); return recvResponse(); @@ -272,22 +272,22 @@ bool Requester::removeSecret(int authMethod) { return recvResponse(); } -bool Requester::setHostname(const QString &name) { +bool Requester::setHostname(const TQString &name) { if (name.isEmpty()) return false; struct SetHostnameRequest req; req.header.type = Opener::SetHostname; - strncpy(req.name, QFile::encodeName(name), Opener::MaxStrLen); + strncpy(req.name, TQFile::encodeName(name), Opener::MaxStrLen); req.name[Opener::MaxStrLen] = '\0'; sendRequest((struct RequestHeader *) &req, sizeof(req)); return recvResponse(); } -bool Requester::execPPPDaemon(const QString &arguments) { +bool Requester::execPPPDaemon(const TQString &arguments) { struct ExecDaemonRequest req; req.header.type = Opener::ExecPPPDaemon; - strncpy(req.arguments, QFile::encodeName(arguments), MAX_CMDLEN); + strncpy(req.arguments, TQFile::encodeName(arguments), MAX_CMDLEN); req.arguments[MAX_CMDLEN] = '\0'; sendRequest((struct RequestHeader *) &req, sizeof(req)); if(recvResponse()==0) { @@ -349,7 +349,7 @@ bool Requester::sendRequest(struct RequestHeader *request, int len) { } -int Requester::indexDevice(const QString &dev) { +int Requester::indexDevice(const TQString &dev) { int index = -1; |