00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
#ifndef GM_SETTINGS_MANAGER_H
00022
#define GM_SETTINGS_MANAGER_H
00023
00024
#include "gm/xmlnode.h"
00025
00026
namespace GNUMessenger
00027 {
00028
00032 class SettingsManager
00033 {
00034
public:
00035
SettingsManager(
XMLNode& xml): m_xml(xml) {}
00036
00037
void setPrivateKey(
const string & key);
00038
void setPublicKey(
const string & key);
00039
00040 string getPublicKey();
00041
00042
bool setProfile(
const string& info);
00043 string getProfile();
00044
00045
bool setAwayMessage(
const string & label,
const string& message);
00046 string getAwayMessage(
const string& label);
00047
bool deleteAwayMessage(
const string& label);
00048
00049
bool hasNet(
const string& net);
00050
00051
bool getNet(
const string& net,
XMLNode& node);
00052
bool setNet(
XMLNode& net);
00053
bool deleteNet(
const string& netname);
00054
00055
private:
00056
XMLNode& m_xml;
00057
00058 };
00059
00060 }
00061
00062
00063
00064
#endif // !GM_SETTINGS_MANAGER_H