summaryrefslogtreecommitdiffstats
path: root/src/kvilib/ext/kvi_sharedfiles.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
commit0a80cfd57d271dd44221467efb426675fa470356 (patch)
tree6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/kvilib/ext/kvi_sharedfiles.h
parent3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff)
downloadkvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz
kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kvilib/ext/kvi_sharedfiles.h')
-rw-r--r--src/kvilib/ext/kvi_sharedfiles.h39
1 files changed, 20 insertions, 19 deletions
diff --git a/src/kvilib/ext/kvi_sharedfiles.h b/src/kvilib/ext/kvi_sharedfiles.h
index 3a6d2239..560e7494 100644
--- a/src/kvilib/ext/kvi_sharedfiles.h
+++ b/src/kvilib/ext/kvi_sharedfiles.h
@@ -34,28 +34,28 @@
#include "kvi_pointerhashtable.h"
#include <time.h>
-#include <qtimer.h>
+#include <tqtimer.h>
class KVILIB_API KviSharedFile : public KviHeapObject
{
public:
- KviSharedFile(const QString &szName,const QString &szAbsPath,const QString &szUserMask,time_t expireTime,unsigned int uFileSize);
+ KviSharedFile(const TQString &szName,const TQString &szAbsPath,const TQString &szUserMask,time_t expireTime,unsigned int uFileSize);
~KviSharedFile();
private:
- QString m_szName;
- QString m_szAbsFilePath;
+ TQString m_szName;
+ TQString m_szAbsFilePath;
time_t m_expireTime;
- QString m_szUserMask;
+ TQString m_szUserMask;
unsigned int m_uFileSize;
unsigned int m_uWildCount;
unsigned int m_uNonWildCount;
public:
- const QString &name(){ return m_szName; };
+ const TQString &name(){ return m_szName; };
- const QString &absFilePath(){ return m_szAbsFilePath; };
+ const TQString &absFilePath(){ return m_szAbsFilePath; };
- const QString &userMask(){ return m_szUserMask; };
+ const TQString &userMask(){ return m_szUserMask; };
time_t expireTime(){ return m_expireTime; };
bool expires(){ return (m_expireTime != 0); };
@@ -64,32 +64,33 @@ public:
unsigned int wildcardCount(){ return m_uWildCount; };
unsigned int nonWildcardCount(){ return m_uNonWildCount; };
- int maskLength(){ return m_szUserMask.length(); };
+ int tqmaskLength(){ return m_szUserMask.length(); };
};
typedef KviPointerList<KviSharedFile> KviSharedFileList;
-class KVILIB_API KviSharedFilesManager : public QObject
+class KVILIB_API KviSharedFilesManager : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
KviSharedFilesManager();
~KviSharedFilesManager();
private:
- QTimer * m_pCleanupTimer;
- KviPointerHashTable<QString,KviSharedFileList> * m_pSharedListDict;
+ TQTimer * m_pCleanupTimer;
+ KviPointerHashTable<TQString,KviSharedFileList> * m_pSharedListDict;
public:
void addSharedFile(KviSharedFile * f);
- KviSharedFile * addSharedFile(const QString &szName,const QString &szAbsPath,const QString &szMask,int timeoutInSecs);
- KviSharedFile * lookupSharedFile(const QString &szName,KviIrcMask * mask,unsigned int uFileSize = 0);
- bool removeSharedFile(const QString &szName,const QString &szMask,unsigned int uFileSize);
- bool removeSharedFile(const QString &szName,KviSharedFile * off);
- void load(const QString &filename);
- void save(const QString &filename);
+ KviSharedFile * addSharedFile(const TQString &szName,const TQString &szAbsPath,const TQString &szMask,int timeoutInSecs);
+ KviSharedFile * lookupSharedFile(const TQString &szName,KviIrcMask * tqmask,unsigned int uFileSize = 0);
+ bool removeSharedFile(const TQString &szName,const TQString &szMask,unsigned int uFileSize);
+ bool removeSharedFile(const TQString &szName,KviSharedFile * off);
+ void load(const TQString &filename);
+ void save(const TQString &filename);
void clear();
- KviPointerHashTable<QString,KviSharedFileList> * sharedFileListDict(){ return m_pSharedListDict; };
+ KviPointerHashTable<TQString,KviSharedFileList> * sharedFileListDict(){ return m_pSharedListDict; };
private:
void doInsert(KviSharedFileList * l, KviSharedFile * o);
private slots: