summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/ppp/pppdata.h
authortille <tille>2003-05-24 16:12:02 (UTC)
committer tille <tille>2003-05-24 16:12:02 (UTC)
commitcc1aa3e178dff65854913bd5667579fc33ce707d (patch) (side-by-side diff)
treed37d7fd8fb3b9832c0825b015af862f2cc62f473 /noncore/settings/networksettings/ppp/pppdata.h
parent5667ded1d4583cfb79b2ddfd7aaae0e58ed6d552 (diff)
downloadopie-cc1aa3e178dff65854913bd5667579fc33ce707d.zip
opie-cc1aa3e178dff65854913bd5667579fc33ce707d.tar.gz
opie-cc1aa3e178dff65854913bd5667579fc33ce707d.tar.bz2
saves config (still in the kppp way)
Diffstat (limited to 'noncore/settings/networksettings/ppp/pppdata.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/ppp/pppdata.h78
1 files changed, 40 insertions, 38 deletions
diff --git a/noncore/settings/networksettings/ppp/pppdata.h b/noncore/settings/networksettings/ppp/pppdata.h
index e286b70..57ce2fd 100644
--- a/noncore/settings/networksettings/ppp/pppdata.h
+++ b/noncore/settings/networksettings/ppp/pppdata.h
@@ -55,11 +55,11 @@ class Config;
//
// groups
-#define GENERAL_GRP "General"
-#define MODEM_GRP "Modem"
-#define ACCOUNT_GRP "Account"
-#define GRAPH_GRP "Graph"
-#define WINPOS_GRP "WindowPosition"
+#define GENERAL_GRP "PPP_General"
+#define MODEM_GRP "PPP_Modem"
+#define ACCOUNT_GRP "PPP_Account"
+//#define GRAPH_GRP "Graph"
+//#define WINPOS_GRP "WindowPosition"
// general
#define DEFAULTACCOUNT_KEY "DefaultAccount"
@@ -161,6 +161,7 @@ class PPPData {
public:
PPPData();
~PPPData() {};
+ static PPPData* data();
enum { NumInitStrings = 2 };
@@ -168,7 +169,7 @@ public:
bool open();
void save();
void cancel();
- int access() const; // read/write access
+// int access() const; // read/write access
// function to read/write date to configuration file
QString readConfig(const QString &, const QString &, const QString &);
@@ -426,40 +427,41 @@ public:
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);
+// // 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:
- QString passwd;
- Config* config; // configuration object
- int highcount; // index of highest account
- int caccount; // index of the current account
- QString cgroup; // name of current config group
- pid_t suidprocessid; // process ID of setuid child
- bool pppdisrunning; // pppd process
- // daemon
- int pppderror; // error encounterd running pppd
- int pppdVer, pppdMod, pppdPatch; // pppd version
-
- QStringList phonelist;
-};
-extern PPPData gpppdata;
+ static PPPData *_data;
+
+ QString passwd;
+ 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
+ pid_t suidprocessid; // process ID of setuid child
+ bool pppdisrunning; // pppd process
+ // daemon
+ int pppderror; // error encounterd running pppd
+ int pppdVer, pppdMod, pppdPatch; // pppd version
+
+ QStringList phonelist;
+};
#endif