]> git.sur5r.net Git - minitube/blob - src/globalshortcutbackend.h
Imported Upstream version 1.2
[minitube] / src / globalshortcutbackend.h
1 #ifndef GLOBALSHORTCUTBACKEND_H
2 #define GLOBALSHORTCUTBACKEND_H
3
4 #include <QObject>
5
6 class GlobalShortcuts;
7
8 class GlobalShortcutBackend : public QObject {
9 public:
10   GlobalShortcutBackend(GlobalShortcuts* parent = 0);
11   virtual ~GlobalShortcutBackend() {}
12
13   bool is_active() const { return active_; }
14
15   bool Register();
16   void Unregister();
17   void Reregister();
18
19 protected:
20   virtual bool DoRegister() = 0;
21   virtual void DoUnregister() = 0;
22
23   GlobalShortcuts* manager_;
24   bool active_;
25 };
26
27 #endif // GLOBALSHORTCUTBACKEND_H