diff options
author | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2005-06-19 10:55:02 +0000 |
---|---|---|
committer | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2005-06-19 10:55:02 +0000 |
commit | 64fe1c1db81b38a5e6e20ec9b0348578e3e8b52f (patch) | |
tree | 60162c76980d54accd98c1e9ea4d0ac00a85ffd2 /src/resources/buddylist.h | |
parent | 1f86c22c35d2de5e9c71d9627adc18f780347f30 (diff) | |
download | mana-64fe1c1db81b38a5e6e20ec9b0348578e3e8b52f.tar.gz mana-64fe1c1db81b38a5e6e20ec9b0348578e3e8b52f.tar.bz2 mana-64fe1c1db81b38a5e6e20ec9b0348578e3e8b52f.tar.xz mana-64fe1c1db81b38a5e6e20ec9b0348578e3e8b52f.zip |
Now added buddy are saved
Diffstat (limited to 'src/resources/buddylist.h')
-rw-r--r-- | src/resources/buddylist.h | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/src/resources/buddylist.h b/src/resources/buddylist.h index 0987bc30..b76fbfad 100644 --- a/src/resources/buddylist.h +++ b/src/resources/buddylist.h @@ -29,6 +29,7 @@ #include <string> #include <libxml/encoding.h> #include <libxml/xmlwriter.h> +#include <libxml/xmlreader.h> class BuddyList : public gcn::ListModel { public: @@ -63,15 +64,32 @@ class BuddyList : public gcn::ListModel { std::string getElementAt(int number); private: + /** + * Create a new XmlWriter for memory + */ + void buddyXmlwriterMemory(void); - /** - * Create a new XmlWriter for uri - */ - void buddyXmlwriterFilename(const char *uri); + /** + * Process node and load buddy + */ + void processNode(void); + + /** + * Parse a buddy XML file + */ + void streamFile(void); + + /** + * Find home dir for writing + */ + void findHomeDir(void); std::list<std::string> buddylist; /**< Buddy list */ std::list<std::string>::iterator buddyit; /**< Iterator */ - xmlTextWriterPtr writer; + xmlTextWriterPtr writer; + xmlTextReaderPtr reader; + xmlBufferPtr buf; + std::string *filename; /* File to work with */ }; #endif /* _TMW_BUDDYLIST_H */ |