summaryrefslogtreecommitdiffstats
path: root/kmail/headerstrategy.cpp
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/headerstrategy.cpp
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/headerstrategy.cpp')
-rw-r--r--kmail/headerstrategy.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kmail/headerstrategy.cpp b/kmail/headerstrategy.cpp
index 1c73532c7..bfe9845be 100644
--- a/kmail/headerstrategy.cpp
+++ b/kmail/headerstrategy.cpp
@@ -69,8 +69,8 @@ namespace KMail {
// Convenience function
//
- static QStringList stringList( const char * headers[], int numHeaders ) {
- QStringList sl;
+ static TQStringList stringList( const char * headers[], int numHeaders ) {
+ TQStringList sl;
for ( int i = 0 ; i < numHeaders ; ++i )
sl.push_back( headers[i] );
return sl;
@@ -94,7 +94,7 @@ namespace KMail {
DefaultPolicy defaultPolicy() const { return Display; }
- bool showHeader( const QString & ) const {
+ bool showHeader( const TQString & ) const {
return true; // more efficient than default impl
}
};
@@ -117,11 +117,11 @@ namespace KMail {
const HeaderStrategy * next() const { return standard(); }
const HeaderStrategy * prev() const { return all(); }
- QStringList headersToDisplay() const { return mHeadersToDisplay; }
+ TQStringList headersToDisplay() const { return mHeadersToDisplay; }
DefaultPolicy defaultPolicy() const { return Hide; }
private:
- const QStringList mHeadersToDisplay;
+ const TQStringList mHeadersToDisplay;
};
//
@@ -142,11 +142,11 @@ namespace KMail {
const HeaderStrategy * next() const { return brief(); }
const HeaderStrategy * prev() const { return rich(); }
- QStringList headersToDisplay() const { return mHeadersToDisplay; }
+ TQStringList headersToDisplay() const { return mHeadersToDisplay; }
DefaultPolicy defaultPolicy() const { return Hide; }
private:
- const QStringList mHeadersToDisplay;
+ const TQStringList mHeadersToDisplay;
};
//
@@ -167,11 +167,11 @@ namespace KMail {
const HeaderStrategy * next() const { return custom(); }
const HeaderStrategy * prev() const { return standard(); }
- QStringList headersToDisplay() const { return mHeadersToDisplay; }
+ TQStringList headersToDisplay() const { return mHeadersToDisplay; }
DefaultPolicy defaultPolicy() const { return Hide; }
private:
- const QStringList mHeadersToDisplay;
+ const TQStringList mHeadersToDisplay;
};
@@ -191,13 +191,13 @@ namespace KMail {
const HeaderStrategy * next() const { return all(); }
const HeaderStrategy * prev() const { return brief(); }
- QStringList headersToDisplay() const { return mHeadersToDisplay; }
- QStringList headersToHide() const { return mHeadersToHide; }
+ TQStringList headersToDisplay() const { return mHeadersToDisplay; }
+ TQStringList headersToHide() const { return mHeadersToHide; }
DefaultPolicy defaultPolicy() const { return mDefaultPolicy; }
private:
- QStringList mHeadersToDisplay;
- QStringList mHeadersToHide;
+ TQStringList mHeadersToDisplay;
+ TQStringList mHeadersToHide;
DefaultPolicy mDefaultPolicy;
};
@@ -208,14 +208,14 @@ namespace KMail {
KConfigGroup customHeader( KMKernel::config(), "Custom Headers" );
if ( customHeader.hasKey( "headers to display" ) ) {
mHeadersToDisplay = customHeader.readListEntry( "headers to display" );
- for ( QStringList::iterator it = mHeadersToDisplay.begin() ; it != mHeadersToDisplay.end() ; ++ it )
+ for ( TQStringList::iterator it = mHeadersToDisplay.begin() ; it != mHeadersToDisplay.end() ; ++ it )
*it = (*it).lower();
} else
mHeadersToDisplay = stringList( standardHeaders, numStandardHeaders );
if ( customHeader.hasKey( "headers to hide" ) ) {
mHeadersToHide = customHeader.readListEntry( "headers to hide" );
- for ( QStringList::iterator it = mHeadersToHide.begin() ; it != mHeadersToHide.end() ; ++ it )
+ for ( TQStringList::iterator it = mHeadersToHide.begin() ; it != mHeadersToHide.end() ; ++ it )
*it = (*it).lower();
}
@@ -234,15 +234,15 @@ namespace KMail {
}
- QStringList HeaderStrategy::headersToDisplay() const {
- return QStringList();
+ TQStringList HeaderStrategy::headersToDisplay() const {
+ return TQStringList();
}
- QStringList HeaderStrategy::headersToHide() const {
- return QStringList();
+ TQStringList HeaderStrategy::headersToHide() const {
+ return TQStringList();
}
- bool HeaderStrategy::showHeader( const QString & header ) const {
+ bool HeaderStrategy::showHeader( const TQString & header ) const {
if ( headersToDisplay().contains( header.lower() ) ) return true;
if ( headersToHide().contains( header.lower() ) ) return false;
return defaultPolicy() == Display;
@@ -261,8 +261,8 @@ namespace KMail {
return 0; // make compiler happy
}
- const HeaderStrategy * HeaderStrategy::create( const QString & type ) {
- QString lowerType = type.lower();
+ const HeaderStrategy * HeaderStrategy::create( const TQString & type ) {
+ TQString lowerType = type.lower();
if ( lowerType == "all" ) return all();
if ( lowerType == "rich" ) return HeaderStrategy::rich();
//if ( lowerType == "standard" ) return standard(); // not needed, see below