Diffstat (limited to 'noncore/graphics/opie-eye/lib/slavemaster.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/lib/slavemaster.cpp | 26 |
1 files changed, 21 insertions, 5 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 | |||
@@ -28,5 +28,5 @@ QDataStream & operator >> (QDataStream & str, bool & b) | |||
28 | */ | 28 | */ |
29 | QDataStream &operator<<( QDataStream& s, const PixmapInfo& inf) { | 29 | QDataStream &operator<<( QDataStream& s, const PixmapInfo& inf) { |
30 | owarn << "Image request is " << inf.file.latin1() << " " << inf.width << " " << inf.height << "" << oendl; | 30 | owarn << "Image request is " << inf.file.latin1() << " " << inf.width << " " << inf.height << "" << oendl; |
31 | return s << inf.file << inf.width << inf.height; | 31 | return s << inf.file << inf.width << inf.height; |
32 | } | 32 | } |
@@ -83,8 +83,8 @@ void SlaveMaster::imageInfo( const QString& str ) { | |||
83 | void SlaveMaster::thumbNail( const QString& str, int w, int h ) { | 83 | void SlaveMaster::thumbNail( const QString& str, int w, int h ) { |
84 | if ( str.isEmpty() ) { | 84 | if ( str.isEmpty() ) { |
85 | owarn << "Asking for empty nail" << oendl; | 85 | owarn << "Asking for empty nail" << oendl; |
86 | return; | 86 | return; |
87 | } | 87 | } |
88 | owarn << "Asking for thumbNail in size " << w << " " << h << "" + str << oendl; | 88 | owarn << "Asking for thumbNail in size " << w << " " << h << "" + str << oendl; |
89 | PixmapInfo item; | 89 | PixmapInfo item; |
90 | item.file = str; item.width = w; item.height = h; | 90 | item.file = str; item.width = w; item.height = h; |
@@ -110,5 +110,5 @@ void SlaveMaster::recieve( const QCString& str, const QByteArray& at) { | |||
110 | stream >> infos; | 110 | stream >> infos; |
111 | 111 | ||
112 | owarn << "PixInfos " << pixinfos.count() << "" << oendl; | 112 | owarn << "PixInfos " << pixinfos.count() << "" << oendl; |
113 | 113 | ||
114 | bool got_data = ( !infos.isEmpty() || !pixinfos.isEmpty() ); | 114 | bool got_data = ( !infos.isEmpty() || !pixinfos.isEmpty() ); |
@@ -150,5 +150,21 @@ void SlaveMaster::slotTimerStart() { | |||
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 | } | ||