hlswmaster-ng/gameparser.h

40 lines
729 B
C
Raw Permalink Normal View History

2006-02-02 16:55:44 +01:00
#ifndef _GAMEPARSER_H_
#define _GAMEPARSER_H_
#include "gamelist.h"
#include "thread.h"
#include "config.h"
#include "recvqueue.h"
#include "modulelist.h"
#include "timerservice.h"
class GameParser : public GameList, public Thread {
public:
GameParser(Config& conf, RecvQueue& rxQueue, ModuleList& modlist);
~GameParser();
int execute(void* arg);
void cleanup();
protected:
GameParser(const GameParser& rp);
GameParser& operator=(const GameParser& rp);
private:
class CleanupEvent : public Command {
public:
CleanupEvent(GameList* sl) : sl(sl) {}
~CleanupEvent() {}
void execute() { sl->cleanup(); }
private:
GameList* sl;
};
RecvQueue& rxQueue;
ModuleList& modList;
};
#endif // _GAMEPARSER_H_