author | zecke <zecke> | 2004-03-22 23:32:41 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-03-22 23:32:41 (UTC) |
commit | 428b687982966dc2efabaf6dbcc55ad0ea30aa10 (patch) (unidiff) | |
tree | 86da20abd2e4b97a59dc32e17996bde5ee74cc91 /noncore/graphics/opie-eye/slave/slavereciever.h | |
parent | 7ce623c6351646ce738a81e103632d73c5454ecc (diff) | |
download | opie-428b687982966dc2efabaf6dbcc55ad0ea30aa10.zip opie-428b687982966dc2efabaf6dbcc55ad0ea30aa10.tar.gz opie-428b687982966dc2efabaf6dbcc55ad0ea30aa10.tar.bz2 |
Initial Check in of the Eye Of Zilla. This ImageViewer features
Image Infos, EXIF, Jpeg,Png,Gif support. It supports scaled loading
of Jpegs. an smart image cache....
GUI needs some work and we need to find a bug in QCOP as well.
TODO:
Add Image Service for example Mailer
Add ImageCanvas/Zoomer/Display
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 | ||