-rw-r--r-- | noncore/graphics/opie-eye/lib/slavemaster.cpp | 18 | ||||
-rw-r--r-- | noncore/graphics/opie-eye/lib/slavemaster.h | 10 |
2 files changed, 27 insertions, 1 deletions
diff --git a/noncore/graphics/opie-eye/lib/slavemaster.cpp b/noncore/graphics/opie-eye/lib/slavemaster.cpp index 5bb7ab8..d7165cc 100644 --- a/noncore/graphics/opie-eye/lib/slavemaster.cpp +++ b/noncore/graphics/opie-eye/lib/slavemaster.cpp | |||
@@ -146,9 +146,25 @@ void SlaveMaster::slotTimerStart() { | |||
146 | 146 | ||
147 | m_inThumbInfo.clear(); | 147 | m_inThumbInfo.clear(); |
148 | m_inImageInfo.clear(); | 148 | m_inImageInfo.clear(); |
149 | m_inThumbNail.clear(); | 149 | m_inThumbNail.clear(); |
150 | } | 150 | } |
151 | 151 | ||
152 | QImage SlaveMaster::image( const QString& str, PDirLister::Factor, int ) { | 152 | QImage SlaveMaster::image( const QString& , PDirLister::Factor, int ) { |
153 | return QImage(); | 153 | return QImage(); |
154 | } | 154 | } |
155 | |||
156 | |||
157 | namespace SlaveHelper { | ||
158 | void slaveConnectSignals( QObject* target ) { | ||
159 | SlaveMaster* master = SlaveMaster::self(); | ||
160 | |||
161 | QObject::connect( master, SIGNAL(sig_start()), target, SIGNAL(sig_start()) ); | ||
162 | QObject::connect( master, SIGNAL(sig_end()), target, SIGNAL(sig_end()) ); | ||
163 | QObject::connect( master, SIGNAL(sig_thumbInfo(const QString&, const QString&)), | ||
164 | target, SIGNAL(sig_thumbInfo(const QString&, const QString&)) ); | ||
165 | QObject::connect( master, SIGNAL(sig_fullInfo(const QString&, const QString&)), | ||
166 | target, SIGNAL(sig_fullInfo(const QString&, const QString&)) ); | ||
167 | QObject::connect( master, SIGNAL(sig_thumbNail(const QString&, const QPixmap&)), | ||
168 | target, SIGNAL(sig_thumbNail(const QString&, const QPixmap&)) ); | ||
169 | } | ||
170 | } | ||
diff --git a/noncore/graphics/opie-eye/lib/slavemaster.h b/noncore/graphics/opie-eye/lib/slavemaster.h index f5284a6..98c3403 100644 --- a/noncore/graphics/opie-eye/lib/slavemaster.h +++ b/noncore/graphics/opie-eye/lib/slavemaster.h | |||
@@ -5,12 +5,22 @@ | |||
5 | #include <iface/slaveiface.h> | 5 | #include <iface/slaveiface.h> |
6 | 6 | ||
7 | #include <qobject.h> | 7 | #include <qobject.h> |
8 | #include <qstring.h> | 8 | #include <qstring.h> |
9 | #include <qsize.h> | 9 | #include <qsize.h> |
10 | 10 | ||
11 | namespace SlaveHelper { | ||
12 | /** | ||
13 | * Small Helper to create a SlaveMaster | ||
14 | * and to connect its' signals to the | ||
15 | * object. To use the object as a proxy | ||
16 | */ | ||
17 | void slaveConnectSignals( QObject* ); | ||
18 | } | ||
19 | |||
20 | |||
11 | class SlaveMaster : public QObject { | 21 | class SlaveMaster : public QObject { |
12 | Q_OBJECT | 22 | Q_OBJECT |
13 | typedef QValueList<ImageInfo> ImageInfos; | 23 | typedef QValueList<ImageInfo> ImageInfos; |
14 | typedef QValueList<PixmapInfo> PixmapInfos; | 24 | typedef QValueList<PixmapInfo> PixmapInfos; |
15 | public: | 25 | public: |
16 | static SlaveMaster *self(); | 26 | static SlaveMaster *self(); |