Added class ControllerManager
This commit is contained in:
parent
72910644e5
commit
f6b13ea489
4 changed files with 57 additions and 8 deletions
28
telldus-core/service/ControllerManager.cpp
Normal file
28
telldus-core/service/ControllerManager.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "ControllerManager.h"
|
||||
#include "Controller.h"
|
||||
|
||||
#include <map>
|
||||
|
||||
typedef std::map<int, Controller *> ControllerMap;
|
||||
|
||||
class ControllerManager::PrivateData {
|
||||
public:
|
||||
int lastControllerId;
|
||||
ControllerMap controllers;
|
||||
};
|
||||
|
||||
ControllerManager::ControllerManager(){
|
||||
d = new PrivateData;
|
||||
d->lastControllerId = 0;
|
||||
}
|
||||
|
||||
ControllerManager::~ControllerManager(void) {
|
||||
for (ControllerMap::iterator it = d->controllers.begin(); it != d->controllers.end(); ++it) {
|
||||
delete( it->second );
|
||||
}
|
||||
delete d;
|
||||
}
|
||||
|
||||
void ControllerManager::loadControllers() {
|
||||
//TODO: Do something
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue