diff options
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; |