summaryrefslogtreecommitdiff
path: root/src/resources/buddylist.h
diff options
context:
space:
mode:
authorMateusz Kaduk <mateusz.kaduk@gmail.com>2005-06-30 19:59:06 +0000
committerMateusz Kaduk <mateusz.kaduk@gmail.com>2005-06-30 19:59:06 +0000
commitcb64648084c9690f6bc5d1587c48a557021b0303 (patch)
tree0888f63662dcc26b96a86abc1b367ee6ae2b5395 /src/resources/buddylist.h
parenta41b78198f71e8ab1d7d85a5fef8c3cb9ca4bfc5 (diff)
downloadmana-cb64648084c9690f6bc5d1587c48a557021b0303.tar.gz
mana-cb64648084c9690f6bc5d1587c48a557021b0303.tar.bz2
mana-cb64648084c9690f6bc5d1587c48a557021b0303.tar.xz
mana-cb64648084c9690f6bc5d1587c48a557021b0303.zip
No need for xml, for saving buddy. Now saving, loading works.
Diffstat (limited to 'src/resources/buddylist.h')
-rw-r--r--src/resources/buddylist.h21
1 files changed, 5 insertions, 16 deletions
diff --git a/src/resources/buddylist.h b/src/resources/buddylist.h
index 32cce06a..5f082ba7 100644
--- a/src/resources/buddylist.h
+++ b/src/resources/buddylist.h
@@ -27,9 +27,6 @@
#include <guichan.hpp>
#include <list>
#include <string>
-#include <libxml/encoding.h>
-#include <libxml/xmlwriter.h>
-#include <libxml/xmlreader.h>
class BuddyList : public gcn::ListModel {
public:
@@ -64,27 +61,19 @@ class BuddyList : public gcn::ListModel {
std::string getElementAt(int number);
private:
- /**
- * Create a new XmlWriter for memory
- */
- void buddyXmlwriterMemory(void);
-
/**
- * Process node and load buddy
+ * Save buddy to file
*/
- void processNode(void);
+ void saveFile(void);
/**
- * Parse a buddy XML file
+ * Load buddy from file
*/
- void streamFile(void);
+ void loadFile(void);
std::list<std::string> buddylist; /**< Buddy list */
std::list<std::string>::iterator buddyit; /**< Iterator */
- xmlTextWriterPtr writer;
- xmlTextReaderPtr reader;
- xmlBufferPtr buf;
- std::string *filename; /* File to work with */
+ std::string *filename; /* File to work with */
};
#endif /* _TMW_BUDDYLIST_H */