summaryrefslogtreecommitdiffstats
path: root/src/gvcore/imageloader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gvcore/imageloader.h')
-rw-r--r--src/gvcore/imageloader.h50
1 files changed, 26 insertions, 24 deletions
diff --git a/src/gvcore/imageloader.h b/src/gvcore/imageloader.h
index 1a61749..e972fc9 100644
--- a/src/gvcore/imageloader.h
+++ b/src/gvcore/imageloader.h
@@ -21,10 +21,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#ifndef IMAGELOADER_H
#define IMAGELOADER_H
-// Qt
-#include <qasyncimageio.h>
-#include <qbuffer.h>
-#include <qcstring.h>
+// TQt
+#include <tqasyncimageio.h>
+#include <tqbuffer.h>
+#include <tqcstring.h>
// KDE
#include <kio/job.h>
@@ -39,9 +39,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace Gwenview {
class DecoderThread : public TSThread {
Q_OBJECT
+ TQ_OBJECT
public:
- void setRawData(const QByteArray&);
- QImage popLoadedImage();
+ void setRawData(const TQByteArray&);
+ TQImage popLoadedImage();
signals:
void failed();
@@ -51,38 +52,39 @@ protected:
void run();
private:
- QMutex mMutex;
- QByteArray mRawData;
- QImage mImage;
+ TQMutex mMutex;
+ TQByteArray mRawData;
+ TQImage mImage;
};
class ImageLoaderPrivate;
-class LIBGWENVIEW_EXPORT ImageLoader : public QObject, public QImageConsumer {
+class LIBGWENVIEW_EXPORT ImageLoader : public TQObject, public TQImageConsumer {
Q_OBJECT
+ TQ_OBJECT
public:
- static ImageLoader* loader( const KURL& url, const QObject* owner, BusyLevel priority ); // use this instead of ctor
- void release( const QObject* owner ); // use this instead of dtor
+ static ImageLoader* loader( const KURL& url, const TQObject* owner, BusyLevel priority ); // use this instead of ctor
+ void release( const TQObject* owner ); // use this instead of dtor
- QImage processedImage() const;
+ TQImage processedImage() const;
ImageFrames frames() const;
- QCString imageFormat() const;
- QByteArray rawData() const;
- QString mimeType() const;
+ TQCString imageFormat() const;
+ TQByteArray rawData() const;
+ TQString mimeType() const;
MimeTypeUtils::Kind urlKind() const;
KURL url() const;
- QRegion loadedRegion() const; // valid parts of processedImage()
+ TQRegion loadedRegion() const; // valid parts of processedImage()
bool completed() const;
signals:
void urlKindDetermined();
void sizeLoaded(int, int);
- void imageChanged(const QRect&);
+ void imageChanged(const TQRect&);
void imageLoaded( bool ok );
private slots:
void slotStatResult(KIO::Job*);
- void slotDataReceived(KIO::Job*, const QByteArray& chunk);
+ void slotDataReceived(KIO::Job*, const TQByteArray& chunk);
void slotGetResult(KIO::Job*);
void decodeChunk();
void slotDecoderThreadFailed();
@@ -95,8 +97,8 @@ private slots:
private:
ImageLoader();
~ImageLoader();
- void ref( const QObject* owner, BusyLevel priority );
- void deref( const QObject* owner );
+ void ref( const TQObject* owner, BusyLevel priority );
+ void deref( const TQObject* owner );
void suspendLoading();
void resumeLoading();
void finish( bool ok );
@@ -106,11 +108,11 @@ private:
void checkPendingGet();
BusyLevel priority() const;
- // QImageConsumer methods
+ // TQImageConsumer methods
void end();
- void changed(const QRect&);
+ void changed(const TQRect&);
void frameDone();
- void frameDone(const QPoint& offset, const QRect& rect);
+ void frameDone(const TQPoint& offset, const TQRect& rect);
void setLooping(int);
void setFramePeriod(int milliseconds);
void setSize(int, int);