Diffstat (limited to 'noncore/graphics/opie-eye/slave/slavereciever.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/slave/slavereciever.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/noncore/graphics/opie-eye/slave/slavereciever.h b/noncore/graphics/opie-eye/slave/slavereciever.h new file mode 100644 index 0000000..214bfc6 --- a/dev/null +++ b/noncore/graphics/opie-eye/slave/slavereciever.h | |||
@@ -0,0 +1,58 @@ | |||
1 | /* | ||
2 | * GPLv2 | ||
3 | */ | ||
4 | |||
5 | |||
6 | #ifndef SLAVE_RECEIVER_H | ||
7 | #define SLAVE_RECEIVER_H | ||
8 | |||
9 | /** | ||
10 | * Receive Requests | ||
11 | */ | ||
12 | |||
13 | #include <iface/slaveiface.h> | ||
14 | |||
15 | #include <qobject.h> | ||
16 | #include <qdatastream.h> | ||
17 | #include <qstringlist.h> | ||
18 | #include <qvaluelist.h> | ||
19 | #include <qpixmap.h> | ||
20 | |||
21 | |||
22 | |||
23 | typedef QValueList<PixmapInfo> PixmapList; | ||
24 | typedef QValueList<ImageInfo> StringList; | ||
25 | |||
26 | class QTimer; | ||
27 | class QSocket; | ||
28 | class SlaveReciever : public QObject { | ||
29 | Q_OBJECT | ||
30 | |||
31 | friend QDataStream &operator<<( QDataStream&, const PixmapInfo& ); | ||
32 | friend QDataStream &operator>>( QDataStream&, PixmapInfo& ); | ||
33 | friend QDataStream &operator<<( QDataStream&, const ImageInfo& ); | ||
34 | friend QDataStream &operator>>( QDataStream&, ImageInfo ); | ||
35 | public: | ||
36 | |||
37 | enum Job { ImageInfoJob, FullImageInfoJob, ThumbNailJob }; | ||
38 | SlaveReciever( QObject* parent ); | ||
39 | ~SlaveReciever(); | ||
40 | |||
41 | public slots: | ||
42 | void recieveAnswer( const QCString&, const QByteArray& ); | ||
43 | public: | ||
44 | PixmapList outPix()const; | ||
45 | StringList outInf()const; | ||
46 | |||
47 | private slots: | ||
48 | void slotSend(); | ||
49 | void slotImageInfo(); | ||
50 | void slotThumbNail(); | ||
51 | private: | ||
52 | QTimer *m_inf, *m_pix, *m_out; | ||
53 | StringList m_inList, m_outList; | ||
54 | PixmapList m_inPix, m_outPix; | ||
55 | }; | ||
56 | |||
57 | |||
58 | #endif | ||