diff options
author | José Ávila <linux@javila.net> | 2005-06-19 16:51:56 +0000 |
---|---|---|
committer | José Ávila <linux@javila.net> | 2005-06-19 16:51:56 +0000 |
commit | cc8d54427a4c4ebfdd403219403c381df27647dd (patch) | |
tree | 805307f2a450e3e4a7a48da3691f82f421c8176b /src/resources | |
parent | 64fe1c1db81b38a5e6e20ec9b0348578e3e8b52f (diff) | |
download | mana-cc8d54427a4c4ebfdd403219403c381df27647dd.tar.gz mana-cc8d54427a4c4ebfdd403219403c381df27647dd.tar.bz2 mana-cc8d54427a4c4ebfdd403219403c381df27647dd.tar.xz mana-cc8d54427a4c4ebfdd403219403c381df27647dd.zip |
now buddy.xml is saved in home dir...
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/buddylist.cpp | 10 | ||||
-rw-r--r-- | src/resources/buddylist.h | 5 |
2 files changed, 3 insertions, 12 deletions
diff --git a/src/resources/buddylist.cpp b/src/resources/buddylist.cpp index d6848461..ed80eaf9 100644 --- a/src/resources/buddylist.cpp +++ b/src/resources/buddylist.cpp @@ -22,13 +22,14 @@ */ #include "buddylist.h" +#include "main.h" #include <iostream> #include <fstream> BuddyList::BuddyList() { - // Find home dir - findHomeDir(); + // Find saved buddy list file + filename = new std::string(std::string(homeDir) + "buddy.xml"); // Create buddy file buddyXmlwriterMemory(); @@ -65,11 +66,6 @@ BuddyList::~BuddyList() delete filename; } -void BuddyList::findHomeDir(void) { - //TODO: Find homeDir - filename = new std::string("buddy.xml"); -} - void BuddyList::streamFile(void) { int ret; diff --git a/src/resources/buddylist.h b/src/resources/buddylist.h index b76fbfad..32cce06a 100644 --- a/src/resources/buddylist.h +++ b/src/resources/buddylist.h @@ -79,11 +79,6 @@ class BuddyList : public gcn::ListModel { */ 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; |