From 2ec401058a04c15d2725c94d38226d0ac4505496 Mon Sep 17 00:00:00 2001 From: tille Date: Sun, 25 May 2003 18:19:04 +0000 Subject: saves configured interfaces now --- (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 41dfbd8..c1c7e69 100644 --- a/noncore/settings/networksettings/ppp/pppdata.h +++ b/noncore/settings/networksettings/ppp/pppdata.h @@ -31,9 +31,10 @@ #include #include +#include +#include #include #include -#include #include "kpppconfig.h" @@ -58,6 +59,7 @@ class Config; #define GENERAL_GRP "PPP_General" #define MODEM_GRP "PPP_Modem" #define ACCOUNT_GRP "PPP_Account" +#define ACCLIST_GRP "PPP_Accounts_List" //#define GRAPH_GRP "Graph" //#define WINPOS_GRP "WindowPosition" @@ -140,22 +142,14 @@ class Config; #define TOTALCOSTS_KEY "TotalCosts" #define TOTALBYTES_KEY "TotalBytes" -// graph colors -#define GENABLED "Enabled" -#define GCOLOR_BG "Background" -#define GCOLOR_TEXT "Text" -#define GCOLOR_IN "InBytes" -#define GCOLOR_OUT "OutBytes" - // pppd errors #define E_IF_TIMEOUT 1 #define E_PPPD_DIED 2 -// window position -#define WINPOS_CONWIN_X "WindowPositionConWinX" -#define WINPOS_CONWIN_Y "WindowPositionConWinY" -#define WINPOS_STATWIN_X "WindowPositionStatWinX" -#define WINPOS_STATWIN_Y "WindowPositionStatWinY" +// account list +#define ACCOUNTS_COUNT "Accounts_Count" +#define ACOUNTS_DEV "Accounts_Modem" +#define ACOUNTS_ACC "Accounts_Account" class PPPData { public: @@ -170,6 +164,8 @@ public: void save(); void cancel(); + QMap getConfiguredInterfaces(); + void setConfiguredInterfaces( QMap ); // function to read/write date to configuration file QString readConfig(const QString &, const QString &, const QString &); @@ -189,6 +185,7 @@ public: QString password() const; void setPassword(const QString &); + int currentAccountID() { return caccount; }; const QString defaultAccount(); void setDefaultAccount(const QString &); -- cgit v0.9.0.2