33 lines
464 B
C++
33 lines
464 B
C++
#include "gamelist.h"
|
|
|
|
#define DEFAULT_TIMEOUT 180
|
|
|
|
GameList::GameList(Config& conf)
|
|
{
|
|
int interval = conf.getInteger("global", "game_timeout", DEFAULT_TIMEOUT);
|
|
TimerService::registerTimer(new Timer(new CleanupEvent(this), interval));
|
|
}
|
|
|
|
GameList::~GameList()
|
|
{
|
|
}
|
|
|
|
void GameList::cleanup()
|
|
{
|
|
}
|
|
|
|
void GameList::addGame()
|
|
{
|
|
}
|
|
|
|
|
|
long GameList::getLastMod()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
Iterator<GameEntry>* GameList::createIterator()
|
|
{
|
|
return new NullIterator<GameEntry>();
|
|
}
|