diff options
Diffstat (limited to 'src/kvilib/ext/kvi_sharedfiles.h')
-rw-r--r-- | src/kvilib/ext/kvi_sharedfiles.h | 39 |
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: |