haiku/src/preferences/network/ConfigData.h
DarkWyrm 9bf86676ad Serious refactoring of app code.
Updating files to style guidelines
Separated classes into their own files
Lots of other things, but still nowhere near finished


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16265 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-07 01:38:02 +00:00

56 lines
850 B
C++

#ifndef CONFIG_DATA_H
#define CONFIG_DATA_H
#include <String.h>
#include <File.h>
#include <List.h>
class InterfaceData
{
public:
InterfaceData(const char *name);
BString fConfig;
BString fPath;
BString fType;
BString fIPAddress;
BString fNetMask;
BString fGateway;
BString fPrettyName;
BString fName;
bool fEnabled;
bool fDHCP;
};
class ConfigData
{
public:
ConfigData(void);
~ConfigData(void);
void EmptyInterfaces(void);
BString fDomainName;
BString fHostname;
BString fPrimaryDNS;
BString fSecondaryDNS;
bool fFTPServer;
bool fTelnetServer;
BString fUsername;
BString fPassword;
BString fProtocols;
bool fAppleTalk;
bool fIPForwarding;
bool fUseDNS;
BList fInterfaceList;
};
void SaveBackup(const char *filename, ConfigData &data);
status_t LoadBackup(const char *pathname, ConfigData &data);
#endif