From 13deabf8b93a2a6307978d9f49ad8fde5dbefdfd Mon Sep 17 00:00:00 2001 From: Mateusz Kaduk Date: Sun, 15 May 2005 09:17:40 +0000 Subject: Using guichan ListModel --- src/resources/buddylist.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/resources/buddylist.h') diff --git a/src/resources/buddylist.h b/src/resources/buddylist.h index cb798f1e..704ce450 100644 --- a/src/resources/buddylist.h +++ b/src/resources/buddylist.h @@ -23,10 +23,11 @@ #ifndef _TMW_BUDDYLIST_H #define _TMW_BUDDYLIST_H +#include #include #include -class BuddyList { +class BuddyList : public gcn::ListModel { public: /** * Constructor @@ -36,27 +37,27 @@ class BuddyList { /** * Destructor */ - ~BuddyList(); + virtual ~BuddyList(); /** - * Adds 'buddy' to the list + * Adds buddy to the list */ bool addBuddy(const std::string buddy); /** - * Removes 'buddy' from the list + * Removes buddy from the list */ bool removeBuddy(const std::string buddy); /** * Returns the number of buddy on the list */ - int getBuddyNumber(void); + int getNumberOfElements(void); /** * Returns the buddy of the number or null */ - std::string getBuddy(int number); + std::string getElementAt(int number); private: std::list buddylist; /**< Buddy list */ -- cgit v1.2.3-60-g2f50