From 8699d02f6c152afed9490e7e7a4315044261e6e8 Mon Sep 17 00:00:00 2001 From: tille Date: Fri, 30 May 2003 15:06:17 +0000 Subject: modem and pppdata is now member of interfaceppp --- (limited to 'noncore/settings/networksettings/ppp/pppdata.h') diff --git a/noncore/settings/networksettings/ppp/pppdata.h b/noncore/settings/networksettings/ppp/pppdata.h index c1c7e69..af960c6 100644 --- a/noncore/settings/networksettings/ppp/pppdata.h +++ b/noncore/settings/networksettings/ppp/pppdata.h @@ -155,19 +155,18 @@ class PPPData { public: PPPData(); ~PPPData() {}; - static PPPData* data(); enum { NumInitStrings = 2 }; // general functions - bool open(); void save(); void cancel(); - QMap getConfiguredInterfaces(); - void setConfiguredInterfaces( QMap ); + static QMap getConfiguredInterfaces(); + static void setConfiguredInterfaces( QMap ); // function to read/write date to configuration file + static Config config(); QString readConfig(const QString &, const QString &, const QString &); int readNumConfig(const QString &, const QString &, int); bool readListConfig(const QString &, const QString &, @@ -207,11 +206,11 @@ public: void set_automatic_redial(bool set); bool automatic_redial(); - void set_iconify_on_connect(bool set); - bool get_iconify_on_connect(); +// void set_iconify_on_connect(bool set); +// bool get_iconify_on_connect(); - void set_dock_into_panel(bool set); - bool get_dock_into_panel(); +// void set_dock_into_panel(bool set); +// bool get_dock_into_panel(); const QString enter(); void setEnter(const QString &); @@ -311,11 +310,6 @@ public: QString volumeHigh(); void setVolumeHigh(const QString &); -#if 0 - void setUseCDLine(const int n); - int UseCDLine(); -#endif - // functions to set/get account information int count() const; bool setAccount(const QString &); @@ -374,8 +368,8 @@ public: bool AcctEnabled(); void setAcctEnabled(bool set); - int VolAcctEnabled(); - void setVolAcctEnabled(int set); +// int VolAcctEnabled(); +// void setVolAcctEnabled(int set); bool autoDNS(); void setAutoDNS(bool set); @@ -415,41 +409,12 @@ public: int pppdError() const; void setpppdError(int err); - // functions to set/query the accounting info -// const QString accountingFile(); -// void setAccountingFile(const QString &); - -// const QString totalCosts(); -// void setTotalCosts(const QString &); - -// int totalBytes(); -// void setTotalBytes(int); - -// // graphing widget -// void setGraphingOptions(bool enabled, -// QColor bg, -// QColor text, -// QColor in, -// QColor out); -// void graphingOptions(bool &enabled, -// QColor &bg, -// QColor &text, -// QColor &in, -// QColor &out); -// bool graphingEnabled(); - -// // window positions -// void winPosConWin(int &, int &); -// void setWinPosConWin(int, int); -// void winPosStatWin(int &, int &); -// void setWinPosStatWin(int, int); - private: - static PPPData *_data; + //static PPPData *_data; int modemDeviceGroup; QString passwd; - static Config* config; // configuration object + // static Config* config; // configuration object int highcount; // index of highest account int caccount; // index of the current account QString cgroup; // name of current config group @@ -460,6 +425,11 @@ private: int pppdVer, pppdMod, pppdPatch; // pppd version QStringList phonelist; + QMap stringEntries; + QMap intEntries; + QMap listEntries; + QMap sepEntries; + }; #endif -- cgit v0.9.0.2