settings_manager.h

00001 /* 00002 $Id: settings__manager_8h-source.html,v 1.1 2004/10/05 21:12:03 mentat Exp $ 00003 00004 GNU Messenger - The secure instant messenger 00005 Copyright (C) 2003-2004 Jesse Lovelace <jesse at aslogicsys dot com> 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 2 of the License, or 00010 (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program; if not, write to the Free Software 00019 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 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 } // !GNUMessenger 00061 00062 00063 00064 #endif // !GM_SETTINGS_MANAGER_H

Generated on Tue Oct 5 14:41:47 2004 for GNU Messenger by doxygen 1.3.8