#ifndef _GAMELIST_H_ #define _GAMELIST_H_ #include "config.h" #include "list.h" #include "timerservice.h" class GameEntry { public: GameEntry(); ~GameEntry(); protected: GameEntry(const GameEntry& ge); GameEntry& operator=(const GameEntry& ge); private: // struct in_addr addr; int port1; int port2; int gameid; }; class GameList { public: GameList(Config& conf); ~GameList(); void cleanup(); void addGame(); long getLastMod(); Iterator* createIterator(); protected: GameList(const GameList& gl); GameList& operator=(const GameList& gl); private: class CleanupEvent : public Command { public: CleanupEvent(GameList* gl) : gl(gl) {} ~CleanupEvent() {} void execute() { gl->cleanup(); } private: GameList* gl; }; List glist; }; #endif // _GAMELIST_H_