diff options
Diffstat (limited to 'kppp/pppdata.h')
-rw-r--r-- | kppp/pppdata.h | 256 |
1 files changed, 128 insertions, 128 deletions
diff --git a/kppp/pppdata.h b/kppp/pppdata.h index ac50a315..7879d1fa 100644 --- a/kppp/pppdata.h +++ b/kppp/pppdata.h @@ -31,9 +31,9 @@ #include <unistd.h> #include <sys/types.h> -#include <qstring.h> -#include <qstringlist.h> -#include <qcolor.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqcolor.h> #include "kpppconfig.h" @@ -179,29 +179,29 @@ public: int access() const; // read/write access // function to read/write date to configuration file - QString readConfig(const QString &, const QString &, const QString &); - int readNumConfig(const QString &, const QString &, int); - bool readListConfig(const QString &, const QString &, - QStringList &, char sep = ','); - void writeConfig(const QString &, const QString &, const QString &); - void writeConfig(const QString &, const QString &, int); - void writeListConfig(const QString &, const QString &, - QStringList &, char sep = ','); + TQString readConfig(const TQString &, const TQString &, const TQString &); + int readNumConfig(const TQString &, const TQString &, int); + bool readListConfig(const TQString &, const TQString &, + TQStringList &, char sep = ','); + void writeConfig(const TQString &, const TQString &, const TQString &); + void writeConfig(const TQString &, const TQString &, int); + void writeListConfig(const TQString &, const TQString &, + TQStringList &, char sep = ','); // return the current account group - QString currentAccountGroup() { return caccountgroup; } + TQString currentAccountGroup() { return caccountgroup; } // return the current modem group - QString currentModemGroup() { return cmodemgroup; } + TQString currentModemGroup() { return cmodemgroup; } // functions to set/get general kppp info - QString password() const; - void setPassword(const QString &); + TQString password() const; + void setPassword(const TQString &); - const QString defaultAccount(); - void setDefaultAccount(const QString &); + const TQString defaultAccount(); + void setDefaultAccount(const TQString &); - const QString defaultModem(); - void setDefaultModem(const QString &); + const TQString defaultModem(); + void setDefaultModem(const TQString &); void set_xserver_exit_disconnect(bool set); bool get_xserver_exit_disconnect(); @@ -230,10 +230,10 @@ public: void set_dock_into_panel(bool set); bool get_dock_into_panel(); - const QString enter(); - void setEnter(const QString &); + const TQString enter(); + void setEnter(const TQString &); - QString pppdVersion(); + TQString pppdVersion(); bool pppdVersionMin(int ver, int mod, int patch); int pppdTimeout(); @@ -241,18 +241,18 @@ public: // functions to set/get account information int modemCount() const; - bool setModem(const QString &); + bool setModem(const TQString &); bool setModemByIndex(int); - bool isUniqueModname(const QString &); + bool isUniqueModname(const TQString &); bool deleteModem(); - bool deleteModem(const QString &); + bool deleteModem(const TQString &); int newmodem(); int copymodem(int i); - const QString modname(); - void setModname(const QString &); + const TQString modname(); + void setModname(const TQString &); int busyWait(); @@ -264,17 +264,17 @@ public: int modemEscapeGuardTime(); void setModemEscapeGuardTime(int i); - void setModemEscapeStr(const QString &); - const QString modemEscapeStr(); + void setModemEscapeStr(const TQString &); + const TQString modemEscapeStr(); - void setModemEscapeResp(const QString &); - const QString modemEscapeResp(); + void setModemEscapeResp(const TQString &); + const TQString modemEscapeResp(); - const QString modemDevice(); - void setModemDevice(const QString &); + const TQString modemDevice(); + void setModemDevice(const TQString &); - QString flowcontrol(); - void setFlowcontrol(const QString &); + TQString flowcontrol(); + void setFlowcontrol(const TQString &); int modemTimeout(); void setModemTimeout(int); @@ -282,7 +282,7 @@ public: int modemToneDuration(); void setModemToneDuration(int); - QString volumeInitString(); + TQString volumeInitString(); int volume(); void setVolume(int); @@ -290,11 +290,11 @@ public: void setWaitForDialTone(int i); // modem command strings/responses - const QString modemInitStr(int i); - void setModemInitStr(int i, const QString &); + const TQString modemInitStr(int i); + void setModemInitStr(int i, const TQString &); - const QString modemInitResp(); - void setModemInitResp(const QString &); + const TQString modemInitResp(); + void setModemInitResp(const TQString &); int modemPreInitDelay(); void setModemPreInitDelay(int); @@ -302,50 +302,50 @@ public: int modemInitDelay(); void setModemInitDelay(int); - QString modemNoDialToneDetectionStr(); - void setModemNoDialToneDetectionStr(const QString &); + TQString modemNoDialToneDetectionStr(); + void setModemNoDialToneDetectionStr(const TQString &); - const QString modemDialStr(); - void setModemDialStr(const QString &); + const TQString modemDialStr(); + void setModemDialStr(const TQString &); - const QString modemConnectResp(); - void setModemConnectResp(const QString &); + const TQString modemConnectResp(); + void setModemConnectResp(const TQString &); - const QString modemBusyResp(); - void setModemBusyResp(const QString &); + const TQString modemBusyResp(); + void setModemBusyResp(const TQString &); - const QString modemNoCarrierResp(); - void setModemNoCarrierResp(const QString &); + const TQString modemNoCarrierResp(); + void setModemNoCarrierResp(const TQString &); - const QString modemNoDialtoneResp(); - void setModemNoDialtoneResp(const QString &); + const TQString modemNoDialtoneResp(); + void setModemNoDialtoneResp(const TQString &); - const QString modemHangupStr(); - void setModemHangupStr(const QString &); + const TQString modemHangupStr(); + void setModemHangupStr(const TQString &); - const QString modemHangupResp(); - void setModemHangupResp(const QString &); + const TQString modemHangupResp(); + void setModemHangupResp(const TQString &); - QString modemDLPResp(); - void setModemDLPResp(const QString &); + TQString modemDLPResp(); + void setModemDLPResp(const TQString &); - const QString modemAnswerStr(); - void setModemAnswerStr(const QString &); + const TQString modemAnswerStr(); + void setModemAnswerStr(const TQString &); - const QString modemRingResp(); - void setModemRingResp(const QString &); + const TQString modemRingResp(); + void setModemRingResp(const TQString &); - const QString modemAnswerResp(); - void setModemAnswerResp(const QString &); + const TQString modemAnswerResp(); + void setModemAnswerResp(const TQString &); - QString volumeOff(); - void setVolumeOff(const QString &); + TQString volumeOff(); + void setVolumeOff(const TQString &); - QString volumeMedium(); - void setVolumeMedium(const QString &); + TQString volumeMedium(); + void setVolumeMedium(const TQString &); - QString volumeHigh(); - void setVolumeHigh(const QString &); + TQString volumeHigh(); + void setVolumeHigh(const TQString &); #if 0 void setUseCDLine(const int n); @@ -354,34 +354,34 @@ public: // functions to set/get account information int accountCount() const; - bool setAccount(const QString &); + bool setAccount(const TQString &); bool setAccountByIndex(int); - bool isUniqueAccname(const QString &); + bool isUniqueAccname(const TQString &); bool deleteAccount(); - bool deleteAccount(const QString &); + bool deleteAccount(const TQString &); int newaccount(); int copyaccount(int i); - const QString accname(); - void setAccname(const QString &); + const TQString accname(); + void setAccname(const TQString &); - QStringList &phonenumbers(); - const QString phonenumber(); - void setPhonenumber(const QString &); + TQStringList &phonenumbers(); + const TQString phonenumber(); + void setPhonenumber(const TQString &); - const QString dialPrefix(); - void setDialPrefix(const QString &); + const TQString dialPrefix(); + void setDialPrefix(const TQString &); int authMethod(); void setAuthMethod(int); - const QString storedUsername(); - void setStoredUsername(const QString &); + const TQString storedUsername(); + void setStoredUsername(const TQString &); - const QString storedPassword(); - void setStoredPassword(const QString &); + const TQString storedPassword(); + void setStoredPassword(const TQString &); bool storePassword(); void setStorePassword(bool); @@ -389,32 +389,32 @@ public: int callbackType(); void setCallbackType(int); - QString callbackPhone(); - void setCallbackPhone(const QString &); + TQString callbackPhone(); + void setCallbackPhone(const TQString &); bool waitCallback(); void setWaitCallback(bool); - const QString speed(); - void setSpeed(const QString &); + const TQString speed(); + void setSpeed(const TQString &); - const QString command_before_connect(); - void setCommand_before_connect(const QString &); + const TQString command_before_connect(); + void setCommand_before_connect(const TQString &); - const QString command_on_connect(); - void setCommand_on_connect(const QString &); + const TQString command_on_connect(); + void setCommand_on_connect(const TQString &); - const QString command_on_disconnect(); - void setCommand_on_disconnect(const QString &); + const TQString command_on_disconnect(); + void setCommand_on_disconnect(const TQString &); - const QString command_before_disconnect(); - void setCommand_before_disconnect(const QString &); + const TQString command_before_disconnect(); + void setCommand_before_disconnect(const TQString &); - const QString ipaddr(); - void setIpaddr(const QString &); + const TQString ipaddr(); + void setIpaddr(const TQString &); - const QString subnetmask(); - void setSubnetmask(const QString &); + const TQString subnetmask(); + void setSubnetmask(const TQString &); bool AcctEnabled(); void setAcctEnabled(bool set); @@ -431,27 +431,27 @@ public: bool autoname(); void setAutoname(bool set); - const QString gateway(); - void setGateway(const QString &); + const TQString gateway(); + void setGateway(const TQString &); bool defaultroute(); void setDefaultroute(bool set); - QStringList &dns(); - void setDns(QStringList &); + TQStringList &dns(); + void setDns(TQStringList &); - const QString domain(); - void setDomain(const QString &); + const TQString domain(); + void setDomain(const TQString &); - QStringList &scriptType(); - void setScriptType(QStringList &); + TQStringList &scriptType(); + void setScriptType(TQStringList &); - QStringList &script(); - void setScript(QStringList &); + TQStringList &script(); + void setScript(TQStringList &); - QStringList &pppdArgument(); + TQStringList &pppdArgument(); void setpppdArgumentDefaults(); - void setpppdArgument(QStringList &); + void setpppdArgument(TQStringList &); //functions to change/set the child pppd process info bool pppdRunning() const; @@ -461,26 +461,26 @@ public: void setpppdError(int err); // functions to set/query the accounting info - const QString accountingFile(); - void setAccountingFile(const QString &); + const TQString accountingFile(); + void setAccountingFile(const TQString &); - const QString totalCosts(); - void setTotalCosts(const QString &); + const TQString totalCosts(); + void setTotalCosts(const TQString &); int totalBytes(); void setTotalBytes(int); // graphing widget void setGraphingOptions(bool enabled, - QColor bg, - QColor text, - QColor in, - QColor out); + TQColor bg, + TQColor text, + TQColor in, + TQColor out); void graphingOptions(bool &enabled, - QColor &bg, - QColor &text, - QColor &in, - QColor &out); + TQColor &bg, + TQColor &text, + TQColor &in, + TQColor &out); bool graphingEnabled(); // window positions @@ -490,14 +490,14 @@ public: void setWinPosStatWin(int, int); private: - QString passwd; + TQString passwd; KConfig* config; // configuration object int accounthighcount; // index of highest account int caccount; // index of the current account int modemhighcount; // index of highest modem int cmodem; // index of the current modem - QString cmodemgroup; // name of current modem group - QString caccountgroup; // name of current account group + TQString cmodemgroup; // name of current modem group + TQString caccountgroup; // name of current account group pid_t suidprocessid; // process ID of setuid child bool pppdisrunning; // pppd process // daemon @@ -505,7 +505,7 @@ private: int pppdVer, pppdMod, pppdPatch; // pppd version bool waitcallback; // callback waiting flag - QStringList phonelist; + TQStringList phonelist; }; extern PPPData gpppdata; |