summaryrefslogtreecommitdiff
path: root/src/resources/buddylist.cpp
diff options
context:
space:
mode:
authorJosé Ávila <linux@javila.net>2005-06-19 16:51:56 +0000
committerJosé Ávila <linux@javila.net>2005-06-19 16:51:56 +0000
commitcc8d54427a4c4ebfdd403219403c381df27647dd (patch)
tree805307f2a450e3e4a7a48da3691f82f421c8176b /src/resources/buddylist.cpp
parent64fe1c1db81b38a5e6e20ec9b0348578e3e8b52f (diff)
downloadmana-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/buddylist.cpp')
-rw-r--r--src/resources/buddylist.cpp10
1 files changed, 3 insertions, 7 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;