1 #ifndef __HIREDIS_EXAMPLE_QT_H
2 #define __HIREDIS_EXAMPLE_QT_H
3 
4 #include <adapters/qt.h>
5 
6 class ExampleQt : public QObject {
7 
8     Q_OBJECT
9 
10     public:
11         ExampleQt(const char * value, QObject * parent = 0)
QObject(parent)12             : QObject(parent), m_value(value) {}
13 
14     signals:
15         void finished();
16 
17     public slots:
18         void run();
19 
20     private:
finish()21         void finish() { emit finished(); }
22 
23     private:
24         const char * m_value;
25         redisAsyncContext * m_ctx;
26         RedisQtAdapter m_adapter;
27 
28     friend
29     void getCallback(redisAsyncContext *, void *, void *);
30 };
31 
32 #endif /* !__HIREDIS_EXAMPLE_QT_H */
33