Diffstat (limited to 'noncore/graphics/opie-eye/lib/slavemaster.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/lib/slavemaster.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/noncore/graphics/opie-eye/lib/slavemaster.h b/noncore/graphics/opie-eye/lib/slavemaster.h new file mode 100644 index 0000000..f5284a6 --- a/dev/null +++ b/noncore/graphics/opie-eye/lib/slavemaster.h | |||
@@ -0,0 +1,43 @@ | |||
1 | #ifndef OPIE_EYE_SLAVE_MASTER_H | ||
2 | #define OPIE_EYE_SLAVE_MASTER_H | ||
3 | |||
4 | #include <iface/dirlister.h> | ||
5 | #include <iface/slaveiface.h> | ||
6 | |||
7 | #include <qobject.h> | ||
8 | #include <qstring.h> | ||
9 | #include <qsize.h> | ||
10 | |||
11 | class SlaveMaster : public QObject { | ||
12 | Q_OBJECT | ||
13 | typedef QValueList<ImageInfo> ImageInfos; | ||
14 | typedef QValueList<PixmapInfo> PixmapInfos; | ||
15 | public: | ||
16 | static SlaveMaster *self(); | ||
17 | |||
18 | void thumbInfo( const QString& ); | ||
19 | void imageInfo( const QString& ); | ||
20 | void thumbNail( const QString&, int w, int h ); | ||
21 | QImage image( const QString&, PDirLister::Factor, int ); | ||
22 | signals: | ||
23 | void sig_start(); | ||
24 | void sig_end(); | ||
25 | |||
26 | void sig_thumbInfo( const QString&, const QString& ); | ||
27 | void sig_fullInfo( const QString&, const QString& ); | ||
28 | void sig_thumbNail( const QString&, const QPixmap& ); | ||
29 | private slots: | ||
30 | void recieve( const QCString&, const QByteArray& ); | ||
31 | void slotTimerStart(); | ||
32 | private: | ||
33 | SlaveMaster(); | ||
34 | ~SlaveMaster(); | ||
35 | static SlaveMaster *m_master; | ||
36 | bool m_started : 1; | ||
37 | QStringList m_inThumbInfo; | ||
38 | QStringList m_inImageInfo; | ||
39 | PixmapInfos m_inThumbNail; | ||
40 | }; | ||
41 | |||
42 | |||
43 | #endif | ||