00001
00002
00003
00004
00005
00006 #if !defined( _CCLISTMODEL_H_)
00007
00008 #define _CCLISTMODEL_H_
00009
00010 #include <guichan.hpp>
00011 #include <string>
00012 #include <vector>
00013
00014 using namespace std;
00015
00016 class CCListModel: public gcn::ListModel {
00017 public:
00018 CCListModel();
00019 virtual ~CCListModel();
00020
00021 void AddItem(std::string Item);
00022 void AddItem(std::string Item, int Position);
00023
00024 void RemoveItem(std::string Item);
00025 void RemoveItem(int Position);
00026
00027 int getNumberOfElements();
00028
00029 std::string getElementAt(int i);
00030 private:
00031 vector<const char*> m_List;
00032 };
00033
00034 #endif