summaryrefslogtreecommitdiffstats
path: root/kmail/kmfolder.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kmfolder.h')
-rw-r--r--kmail/kmfolder.h82
1 files changed, 41 insertions, 41 deletions
diff --git a/kmail/kmfolder.h b/kmail/kmfolder.h
index db13ae8c..4c7a2133 100644
--- a/kmail/kmfolder.h
+++ b/kmail/kmfolder.h
@@ -36,7 +36,7 @@ using KMail::MailingList;
#include "mimelib/string.h"
-#include <qptrvector.h>
+#include <tqptrvector.h>
#include <sys/types.h>
#include <stdio.h>
#include <kshortcut.h>
@@ -53,7 +53,7 @@ namespace KMail {
}
using KMail::AttachmentStrategy;
-typedef QValueList<Q_UINT32> SerNumList;
+typedef TQValueList<Q_UINT32> SerNumList;
/** Mail folder.
* (description will be here).
@@ -86,7 +86,7 @@ public:
* the global MsgDict for lookup.
* @return A new folder instance.
*/
- KMFolder( KMFolderDir* parent, const QString& name,
+ KMFolder( KMFolderDir* parent, const TQString& name,
KMFolderType aFolderType, bool withIndex = true,
bool exportedSernums = true );
~KMFolder();
@@ -140,16 +140,16 @@ public:
KMFolderType folderType() const;
/** Returns the filename of the folder (reimplemented in KMFolderImap) */
- QString fileName() const;
+ TQString fileName() const;
/** Returns full path to folder file */
- QString location() const;
+ TQString location() const;
/** Returns full path to index file */
- QString indexLocation() const;
+ TQString indexLocation() const;
/** Returns full path to sub directory file */
- QString subdirLocation() const;
+ TQString subdirLocation() const;
/** Returns the folder directory associated with this node or
0 if no such directory exists */
@@ -196,9 +196,9 @@ public:
* for each derived KMFolder).
*/
FolderJob* createJob( KMMessage *msg, FolderJob::JobType jt = FolderJob::tGetMessage,
- KMFolder *folder = 0, QString partSpecifier = QString::null,
+ KMFolder *folder = 0, TQString partSpecifier = TQString::null,
const AttachmentStrategy *as = 0 ) const;
- FolderJob* createJob( QPtrList<KMMessage>& msgList, const QString& sets,
+ FolderJob* createJob( TQPtrList<KMMessage>& msgList, const TQString& sets,
FolderJob::JobType jt = FolderJob::tGetMessage,
KMFolder *folder = 0 ) const;
@@ -218,7 +218,7 @@ public:
/** Detach message from this folder. Usable to call addMsg() afterwards.
Loads the message if it is not loaded up to now. */
KMMessage* take(int idx);
- void take(QPtrList<KMMessage> msgList);
+ void take(TQPtrList<KMMessage> msgList);
/** Add the given message to the folder. Usually the message
is added at the end of the folder. Returns zero on success and
@@ -237,7 +237,7 @@ public:
* Adds the given messages to the folder. Behaviour is identical
* to addMsg(msg)
*/
- int addMsg(QPtrList<KMMessage>&, QValueList<int>& index_return);
+ int addMsg(TQPtrList<KMMessage>&, TQValueList<int>& index_return);
/** Called by derived classes implementation of addMsg.
Emits msgAdded signals */
@@ -245,7 +245,7 @@ public:
/** Remove (first occurrence of) given message from the folder. */
void removeMsg(int i, bool imapQuiet = false);
- void removeMsg(QPtrList<KMMessage> msgList, bool imapQuiet = false);
+ void removeMsg(TQPtrList<KMMessage> msgList, bool imapQuiet = false);
/** Delete messages in the folder that are older than days. Return the
* number of deleted messages. */
@@ -256,7 +256,7 @@ public:
code on failure. The index of the new message is stored in index_return
if given. */
int moveMsg(KMMessage* msg, int* index_return = 0);
- int moveMsg(QPtrList<KMMessage>, int* index_return = 0);
+ int moveMsg(TQPtrList<KMMessage>, int* index_return = 0);
/** Returns the index of the given message or -1 if not found. */
int find(const KMMsgBase* msg) const;
@@ -327,7 +327,7 @@ public:
/** Physically rename the folder. Returns zero on success and an errno
on failure. */
- int rename(const QString& newName, KMFolderDir *aParent = 0);
+ int rename(const TQString& newName, KMFolderDir *aParent = 0);
/** Returns true if the table of contents is dirty. This happens when
a message is deleted from the folder. The toc will then be re-created
@@ -362,15 +362,15 @@ public:
void setSystemFolder(bool itIs) { mIsSystemFolder=itIs; }
/** Returns the label of the folder for visualization. */
- virtual QString label() const;
- void setLabel( const QString& l ) { mLabel = l; }
+ virtual TQString label() const;
+ void setLabel( const TQString& l ) { mLabel = l; }
/** Set the label that is used as a system default */
- virtual QString systemLabel() const { return mSystemLabel; }
- void setSystemLabel( const QString& l ) { mSystemLabel = l; }
+ virtual TQString systemLabel() const { return mSystemLabel; }
+ void setSystemLabel( const TQString& l ) { mSystemLabel = l; }
/** URL of the node for visualization purposes. */
- virtual QString prettyURL() const;
+ virtual TQString prettyURL() const;
/** Returns true if this folder is associated with a mailing-list. */
void setMailingListEnabled( bool enabled );
@@ -379,24 +379,24 @@ public:
void setMailingList( const MailingList& mlist );
MailingList mailingList() const
{ return mMailingList; }
- QString mailingListPostAddress() const;
+ TQString mailingListPostAddress() const;
void setIdentity(uint identity);
uint identity() const;
/** Get / set the name of the field that is used for the Sender/Receiver column in the headers (From/To) */
- QString whoField() const { return mWhoField; }
- void setWhoField(const QString& aWhoField);
+ TQString whoField() const { return mWhoField; }
+ void setWhoField(const TQString& aWhoField);
/** Get / set the user-settings for the WhoField (From/To/Empty) */
- QString userWhoField(void) { return mUserWhoField; }
- void setUserWhoField(const QString &whoField,bool writeConfig=true);
+ TQString userWhoField(void) { return mUserWhoField; }
+ void setUserWhoField(const TQString &whoField,bool writeConfig=true);
/** A cludge to help make sure the count of unread messges is kept in sync */
void correctUnreadMsgsCount();
/** Returns a string that can be used to identify this folder */
- QString idString() const;
+ TQString idString() const;
/**
* Set whether this folder automatically expires messages.
@@ -468,8 +468,8 @@ public:
/**
* If expiry should move to folder, return the ID of that folder
*/
- QString expireToFolderId() const { return mExpireToFolderId; }
- void setExpireToFolderId( const QString& id );
+ TQString expireToFolderId() const { return mExpireToFolderId; }
+ void setExpireToFolderId( const TQString& id );
/**
* Expire old messages in this folder.
@@ -484,15 +484,15 @@ public:
/** Set the status of the message at index @p idx to @p status. */
void setStatus(int idx, KMMsgStatus status, bool toggle=false);
- /** Set the status of the message(s) in the QValueList @p ids to @p status. */
- void setStatus(QValueList<int>& ids, KMMsgStatus status, bool toggle=false);
+ /** Set the status of the message(s) in the TQValueList @p ids to @p status. */
+ void setStatus(TQValueList<int>& ids, KMMsgStatus status, bool toggle=false);
/** Icon related methods */
bool useCustomIcons() const { return mUseCustomIcons; }
void setUseCustomIcons(bool useCustomIcons) { mUseCustomIcons = useCustomIcons; }
- QString normalIconPath() const { return mNormalIconPath; }
- QString unreadIconPath() const { return mUnreadIconPath; }
- void setIconPaths(const QString &normalPath, const QString &unreadPath);
+ TQString normalIconPath() const { return mNormalIconPath; }
+ TQString unreadIconPath() const { return mUnreadIconPath; }
+ void setIconPaths(const TQString &normalPath, const TQString &unreadPath);
void removeJobs();
@@ -562,7 +562,7 @@ signals:
void msgRemoved(KMFolder*, Q_UINT32 sernum);
/** Emitted after a message is removed from the folder. */
- void msgRemoved( int idx, QString msgIdMD5 );
+ void msgRemoved( int idx, TQString msgIdMD5 );
void msgRemoved(KMFolder*);
/** Emitted when a message is added from the folder. */
@@ -576,7 +576,7 @@ signals:
void msgHeaderChanged(KMFolder*, int);
/** Emmited to display a message somewhere in a status line. */
- void statusMsg(const QString&);
+ void statusMsg(const TQString&);
/** Emitted when number of unread messages has changed. */
void numUnreadMsgsChanged( KMFolder* );
@@ -616,9 +616,9 @@ private:
bool mExportsSernums :1;
bool mMoveInProgress :1;
- /** nationalized label or QString::null (then name() should be used) */
- QString mLabel;
- QString mSystemLabel;
+ /** nationalized label or TQString::null (then name() should be used) */
+ TQString mLabel;
+ TQString mSystemLabel;
/** Support for automatic expiry of old messages */
bool mExpireMessages; // true if old messages are expired
@@ -627,12 +627,12 @@ private:
ExpireUnits mUnreadExpireUnits;
ExpireUnits mReadExpireUnits;
ExpireAction mExpireAction;
- QString mExpireToFolderId;
+ TQString mExpireToFolderId;
/** Icon related variables */
bool mUseCustomIcons;
- QString mNormalIconPath;
- QString mUnreadIconPath;
+ TQString mNormalIconPath;
+ TQString mUnreadIconPath;
/** Mailing list attributes */
bool mMailingListEnabled;
@@ -643,7 +643,7 @@ private:
uint mIdentity;
/** name of the field that is used for "From" in listbox */
- QString mWhoField, mUserWhoField;
+ TQString mWhoField, mUserWhoField;
/** Should replies to messages in this folder be put in here? */
bool mPutRepliesInSameFolder;