summaryrefslogtreecommitdiff
path: root/noncore/graphics/opie-eye/lib/slavemaster.h
Side-by-side diff
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.h10
1 files changed, 10 insertions, 0 deletions
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
@@ -1,34 +1,44 @@
#ifndef OPIE_EYE_SLAVE_MASTER_H
#define OPIE_EYE_SLAVE_MASTER_H
#include <iface/dirlister.h>
#include <iface/slaveiface.h>
#include <qobject.h>
#include <qstring.h>
#include <qsize.h>
+namespace SlaveHelper {
+/**
+ * Small Helper to create a SlaveMaster
+ * and to connect its' signals to the
+ * object. To use the object as a proxy
+ */
+void slaveConnectSignals( QObject* );
+}
+
+
class SlaveMaster : public QObject {
Q_OBJECT
typedef QValueList<ImageInfo> ImageInfos;
typedef QValueList<PixmapInfo> PixmapInfos;
public:
static SlaveMaster *self();
void thumbInfo( const QString& );
void imageInfo( const QString& );
void thumbNail( const QString&, int w, int h );
QImage image( const QString&, PDirLister::Factor, int );
signals:
void sig_start();
void sig_end();
void sig_thumbInfo( const QString&, const QString& );
void sig_fullInfo( const QString&, const QString& );
void sig_thumbNail( const QString&, const QPixmap& );
private slots:
void recieve( const QCString&, const QByteArray& );
void slotTimerStart();
private:
SlaveMaster();
~SlaveMaster();