Torc  0.1
torcrunlooposx.h
Go to the documentation of this file.
1 #ifndef TORCRUNLOOPOSX_H
2 #define TORCRUNLOOPOSX_H
3 
4 // OS X
5 #include <CoreFoundation/CoreFoundation.h>
6 
7 // Torc
8 #include "torcqthread.h"
9 
10 class CallbackObject : public QObject
11 {
12  Q_OBJECT
13 
14  public:
16 
17  public slots:
18  void Run (void);
19 };
20 
22 {
23  friend class TorcRunLoopOSX;
24 
25  Q_OBJECT
26 
27  protected:
30 
31  protected:
32  void Start (void);
33  void Finish (void);
34 
35  private:
36  CallbackObject *m_object;
37 };
38 
44 extern CFRunLoopRef gAdminRunLoop;
45 
46 #endif // TORCRUNLOOPOSX_H
TorcQThread subclass to run a CFRunLoop.
CFRunLoopRef gAdminRunLoop
A reference to the global administration CFRunLoop.
A simple class encapusulating a single timer to start the CFRunLoop.
A TorcAdminObject to instanciate the TorcOSXCallbackThread singleton.
A Torc specific wrapper around QThread.
Definition: torcqthread.h:7