summaryrefslogtreecommitdiffstats
path: root/plugins/scanfolder/scanfolder.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
commit1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch)
tree38559cd68cd4f63023fb5f6375def9db3b8b491e /plugins/scanfolder/scanfolder.h
parent894f94545727610df22c4f73911d62d58266f695 (diff)
downloadktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.tar.gz
ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.zip
TQt4 port ktorrent
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'plugins/scanfolder/scanfolder.h')
-rw-r--r--plugins/scanfolder/scanfolder.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/plugins/scanfolder/scanfolder.h b/plugins/scanfolder/scanfolder.h
index 8e8c27c..fdae09a 100644
--- a/plugins/scanfolder/scanfolder.h
+++ b/plugins/scanfolder/scanfolder.h
@@ -22,11 +22,11 @@
#include <kdirlister.h>
#include <kfileitem.h>
-#include <qstring.h>
-#include <qobject.h>
-#include <qdir.h>
-#include <qvaluelist.h>
-#include <qtimer.h>
+#include <tqstring.h>
+#include <tqobject.h>
+#include <tqdir.h>
+#include <tqvaluelist.h>
+#include <tqtimer.h>
#include <kurl.h>
namespace kt
@@ -53,9 +53,10 @@ namespace kt
* @see LoadedTorrentAction
*
*/
- class ScanFolder : public QObject
+ class ScanFolder : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -65,7 +66,7 @@ namespace kt
* @param action Action to perform on loaded torrents.
* @param openSilently Wheather to open torrent silently or not.
*/
- ScanFolder(CoreInterface* core, QString& dir, LoadedTorrentAction action = defaultAction, bool openSilently = true);
+ ScanFolder(CoreInterface* core, TQString& dir, LoadedTorrentAction action = defaultAction, bool openSilently = true);
~ScanFolder();
///Accessor method for m_openSilently.
@@ -82,7 +83,7 @@ namespace kt
bool isValid() const { return m_valid; }
///Sets directory path
- void setFolderUrl(QString& url);
+ void setFolderUrl(TQString& url);
public slots:
void onNewItems(const KFileItemList &items);
@@ -102,10 +103,10 @@ namespace kt
LoadedTorrentAction m_loadedAction;
bool m_openSilently;
- QValueList<KURL> m_pendingURLs;
- QValueList<KURL> m_incompleteURLs;
+ TQValueList<KURL> m_pendingURLs;
+ TQValueList<KURL> m_incompleteURLs;
- QTimer m_incomplePollingTimer;
+ TQTimer m_incomplePollingTimer;
};
}
#endif