summaryrefslogtreecommitdiffstats
path: root/kmail/quotajobs.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kmail/quotajobs.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/quotajobs.h')
-rw-r--r--kmail/quotajobs.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/kmail/quotajobs.h b/kmail/quotajobs.h
index 01112d46..a27e70f8 100644
--- a/kmail/quotajobs.h
+++ b/kmail/quotajobs.h
@@ -32,11 +32,11 @@
#ifndef QUOTAJOBS_H
#define QUOTAJOBS_H
-#include <qvariant.h>
+#include <tqvariant.h>
#include <kio/job.h>
#include <klocale.h>
-#include <qvaluevector.h>
+#include <tqvaluevector.h>
#include <math.h>
@@ -49,7 +49,7 @@ namespace KMail {
class QuotaInfo {
public :
QuotaInfo() {} // for QValueVector
- QuotaInfo( const QString& _name, const QString& _root, const QVariant& _current, const QVariant& _max )
+ QuotaInfo( const TQString& _name, const TQString& _root, const TQVariant& _current, const TQVariant& _max )
: mName( _name ), mRoot( _root ), mCurrent( _current ),mMax( _max ) {}
bool operator==( const QuotaInfo & other ) const {
return mName == other.mName && mRoot == other.mRoot && mMax == other.mMax && mCurrent == other.mCurrent;
@@ -60,23 +60,23 @@ class QuotaInfo {
bool isValid() const { return !mName.isEmpty(); }
bool isEmpty() const { return mName.isEmpty() || ( mRoot.isEmpty() && !mCurrent.isValid() && !mMax.isValid() ); }
- QString name() const { return mName; }
- void setName( const QString& n ) { mName = n; }
- QString root() const { return mRoot; }
- void setRoot( const QString& r ) { mRoot = r; }
- QVariant max() const { return mMax; }
- void setMax( const QVariant& m ) { mMax = m; }
- QVariant current() const { return mCurrent; }
- void setCurrent( const QVariant& c ) { mCurrent = c; }
+ TQString name() const { return mName; }
+ void setName( const TQString& n ) { mName = n; }
+ TQString root() const { return mRoot; }
+ void setRoot( const TQString& r ) { mRoot = r; }
+ TQVariant max() const { return mMax; }
+ void setMax( const TQVariant& m ) { mMax = m; }
+ TQVariant current() const { return mCurrent; }
+ void setCurrent( const TQVariant& c ) { mCurrent = c; }
- QString toString() const {
+ TQString toString() const {
if ( isValid() && !isEmpty() ) {
readConfig();
int factor = static_cast<int> ( pow( 1000, mFactor ) );
return i18n("%1 of %2 %3 used").arg( mCurrent.toInt() / factor )
.arg( mMax.toInt() / factor ).arg( mUnits );
}
- return QString();
+ return TQString();
}
private:
@@ -98,15 +98,15 @@ class QuotaInfo {
}
}
- QString mName; // e.g. STORAGE
- QString mRoot; /// e.g. INBOX
- QVariant mCurrent;
- QVariant mMax;
- mutable QString mUnits; //used by readConfig (const) privately and is modified
+ TQString mName; // e.g. STORAGE
+ TQString mRoot; /// e.g. INBOX
+ TQVariant mCurrent;
+ TQVariant mMax;
+ mutable TQString mUnits; //used by readConfig (const) privately and is modified
mutable int mFactor;
};
-typedef QValueVector<QuotaInfo> QuotaInfoList;
+typedef TQValueVector<QuotaInfo> QuotaInfoList;
/**
* This namespace contains functions that return jobs for quota operations.
@@ -138,14 +138,14 @@ class GetQuotarootJob : public KIO::SimpleJob
{
Q_OBJECT
public:
- GetQuotarootJob( const KURL& url, const QByteArray &packedArgs, bool showProgressInfo );
+ GetQuotarootJob( const KURL& url, const TQByteArray &packedArgs, bool showProgressInfo );
signals:
/** Emitted when the server returns a (potentially empty) list of
* quota roots for the specified mailbox.
* @param roots List of quota roots for the mailbox
*/
- void quotaRootResult( const QStringList& roots );
+ void quotaRootResult( const TQStringList& roots );
/**
* Emitted when the server returns a list of quota infos for the specified
@@ -156,7 +156,7 @@ signals:
void quotaInfoReceived( const QuotaInfoList& info );
protected slots:
- void slotInfoMessage( KIO::Job*, const QString& );
+ void slotInfoMessage( KIO::Job*, const TQString& );
};
/// for getStorageQuota()
@@ -179,7 +179,7 @@ signals:
protected slots:
- void slotQuotarootResult( const QStringList& roots );
+ void slotQuotarootResult( const TQStringList& roots );
void slotQuotaInfoReceived( const QuotaInfoList& roots );
private:
QuotaInfo mStorageQuotaInfo;