Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Pierogi
Summary Forums Tracker Lists Tasks Docs News SCM Files
1 #ifndef PIRKEYSETMANAGER_H
2 #define PIRKEYSETMANAGER_H
4 #include "pirkeysetmetadata.h"
5 //#include "protocol.h"
6 #include "pirkeynames.h"
7 #include "selectionwindow.h"
9 //#include <QtCore/QCoreApplication>
10 #include <QThread>
11 //#include <QStringList>
13 #include <map>
15 typedef std::map<int, PIRKeysetMetaData *> PIRKeysetCollection;
17 class PIRKeysetManager
18 {
19 public:
20   PIRKeysetManager(
21     QObject *guiObject);
23   ~PIRKeysetManager();
25   void populateGuiWidget(
26     SelectionWindow *widget);
28   void stopRepeating();
30   bool hasKey(
31     int keysetID,
32     PIRKeyName name);
34   PIRMakeName getMake(
35     int keysetID);
37   QString getDisplayName(
38     int keysetID);
40 private:
41   // This needs to be improved:
42   void populateKeyset(
43     PIRKeysetMetaData *keyset);
45   PIRKeysetCollection keysetsInfo;
47   // The counter will be used to generate unique ids for each keyset:
48   unsigned int counter;
50   QThread commandThread;
51 };
53 #endif // PIRKEYSETMANAGER_H

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment