summaryrefslogtreecommitdiffstats
path: root/kmail/kmkernel.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/kmkernel.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/kmkernel.h')
-rw-r--r--kmail/kmkernel.h172
1 files changed, 86 insertions, 86 deletions
diff --git a/kmail/kmkernel.h b/kmail/kmkernel.h
index cd30a6e26..cd536e825 100644
--- a/kmail/kmkernel.h
+++ b/kmail/kmkernel.h
@@ -3,9 +3,9 @@
#ifndef _KMCONTROL
#define _KMCONTROL
-#include <qobject.h>
-#include <qstring.h>
-#include <qguardedptr.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqguardedptr.h>
#include <weaver.h>
#include <weaverlogger.h>
@@ -80,42 +80,42 @@ class ConfigureDialog;
* (singleton) objects such as the UndoStack, the folder managers and filter
* manager, etc.
*/
-class KDE_EXPORT KMKernel : public QObject, virtual public KMailIface
+class KDE_EXPORT KMKernel : public TQObject, virtual public KMailIface
{
Q_OBJECT
public:
- KMKernel (QObject *parent=0, const char *name=0);
+ KMKernel (TQObject *parent=0, const char *name=0);
~KMKernel ();
/** dcop callable stuff */
void checkMail ();
- QStringList accounts();
- void checkAccount (const QString &account);
+ TQStringList accounts();
+ void checkAccount (const TQString &account);
/** returns id of composer if more are opened */
- int openComposer (const QString &to, const QString &cc, const QString &bcc,
- const QString &subject, const QString &body, int hidden,
+ int openComposer (const TQString &to, const TQString &cc, const TQString &bcc,
+ const TQString &subject, const TQString &body, int hidden,
const KURL &messageFile, const KURL::List &attachURLs,
const QCStringList &customHeaders);
/** For backward compatibility */
- int openComposer (const QString &to, const QString &cc, const QString &bcc,
- const QString &subject, const QString &body, int hidden,
+ int openComposer (const TQString &to, const TQString &cc, const TQString &bcc,
+ const TQString &subject, const TQString &body, int hidden,
const KURL &messageFile, const KURL::List &attachURLs)
{
QCStringList noCustomHeaders;
return openComposer(to, cc, bcc, subject, body, hidden, messageFile, attachURLs, noCustomHeaders);
}
/** For backward compatibility */
- int openComposer (const QString &to, const QString &cc, const QString &bcc,
- const QString &subject, const QString &body, int hidden,
+ int openComposer (const TQString &to, const TQString &cc, const TQString &bcc,
+ const TQString &subject, const TQString &body, int hidden,
const KURL &messageFile, const KURL& attachURL)
{
return openComposer(to, cc, bcc, subject, body, hidden, messageFile, KURL::List(attachURL));
}
/** For backward compatibility */
- int openComposer (const QString &to, const QString &cc, const QString &bcc,
- const QString &subject, const QString &body, int hidden,
+ int openComposer (const TQString &to, const TQString &cc, const TQString &bcc,
+ const TQString &subject, const TQString &body, int hidden,
const KURL &messageFile)
{
return openComposer(to, cc, bcc, subject, body, hidden, messageFile, KURL::List());
@@ -123,71 +123,71 @@ public:
/** For backward compatibility
* @deprecated
*/
- int openComposer (const QString &to, const QString &cc,
- const QString &bcc, const QString &subject,
- const QString &body, int hidden,
- const QString &attachName,
- const QCString &attachCte,
- const QCString &attachData,
- const QCString &attachType,
- const QCString &attachSubType,
- const QCString &attachParamAttr,
- const QString &attachParamValue,
- const QCString &attachContDisp);
-
- int openComposer (const QString &to, const QString &cc,
- const QString &bcc, const QString &subject,
- const QString &body, int hidden,
- const QString &attachName,
- const QCString &attachCte,
- const QCString &attachData,
- const QCString &attachType,
- const QCString &attachSubType,
- const QCString &attachParamAttr,
- const QString &attachParamValue,
- const QCString &attachContDisp,
- const QCString &attachCharset);
-
- DCOPRef openComposer(const QString &to, const QString &cc,
- const QString &bcc, const QString &subject,
- const QString &body,bool hidden);
+ int openComposer (const TQString &to, const TQString &cc,
+ const TQString &bcc, const TQString &subject,
+ const TQString &body, int hidden,
+ const TQString &attachName,
+ const TQCString &attachCte,
+ const TQCString &attachData,
+ const TQCString &attachType,
+ const TQCString &attachSubType,
+ const TQCString &attachParamAttr,
+ const TQString &attachParamValue,
+ const TQCString &attachContDisp);
+
+ int openComposer (const TQString &to, const TQString &cc,
+ const TQString &bcc, const TQString &subject,
+ const TQString &body, int hidden,
+ const TQString &attachName,
+ const TQCString &attachCte,
+ const TQCString &attachData,
+ const TQCString &attachType,
+ const TQCString &attachSubType,
+ const TQCString &attachParamAttr,
+ const TQString &attachParamValue,
+ const TQCString &attachContDisp,
+ const TQCString &attachCharset);
+
+ DCOPRef openComposer(const TQString &to, const TQString &cc,
+ const TQString &bcc, const TQString &subject,
+ const TQString &body,bool hidden);
/** DCOP call used to set the default transport. */
- void setDefaultTransport( const QString & transport );
+ void setDefaultTransport( const TQString & transport );
/** DCOP call used by the Kontact plugin to create a new message. */
- DCOPRef newMessage(const QString &to,
- const QString &cc,
- const QString &bcc,
+ DCOPRef newMessage(const TQString &to,
+ const TQString &cc,
+ const TQString &bcc,
bool hidden,
bool useFolderId,
const KURL &messageFile,
const KURL &attachURL);
- int sendCertificate( const QString& to, const QByteArray& certData );
+ int sendCertificate( const TQString& to, const TQByteArray& certData );
void openReader() { openReader( false ); }
- int dcopAddMessage(const QString & foldername, const QString & messagefile,
- const QString & MsgStatusFlags = QString());
- int dcopAddMessage(const QString & foldername, const KURL & messagefile,
- const QString & MsgStatusFlags = QString());
+ int dcopAddMessage(const TQString & foldername, const TQString & messagefile,
+ const TQString & MsgStatusFlags = TQString());
+ int dcopAddMessage(const TQString & foldername, const KURL & messagefile,
+ const TQString & MsgStatusFlags = TQString());
void dcopResetAddMessage();
/** add messages without rejecting duplicates */
- int dcopAddMessage_fastImport(const QString & foldername, const QString & messagefile,
- const QString & MsgStatusFlags = QString());
- int dcopAddMessage_fastImport(const QString & foldername, const KURL & messagefile,
- const QString & MsgStatusFlags = QString());
-
- QStringList folderList() const;
- DCOPRef getFolder( const QString& vpath );
- void selectFolder( QString folder );
+ int dcopAddMessage_fastImport(const TQString & foldername, const TQString & messagefile,
+ const TQString & MsgStatusFlags = TQString());
+ int dcopAddMessage_fastImport(const TQString & foldername, const KURL & messagefile,
+ const TQString & MsgStatusFlags = TQString());
+
+ TQStringList folderList() const;
+ DCOPRef getFolder( const TQString& vpath );
+ void selectFolder( TQString folder );
int timeOfLastMessageCountChange() const;
- virtual bool showMail( Q_UINT32 serialNumber, QString messageId );
- virtual QString getFrom( Q_UINT32 serialNumber );
- virtual QString debugScheduler();
- virtual QString debugSernum( Q_UINT32 serialNumber );
+ virtual bool showMail( Q_UINT32 serialNumber, TQString messageId );
+ virtual TQString getFrom( Q_UINT32 serialNumber );
+ virtual TQString debugScheduler();
+ virtual TQString debugSernum( Q_UINT32 serialNumber );
int viewMessage( const KURL & messageFile );
/**
@@ -246,17 +246,17 @@ public:
* destinationDir contains the path to the current mail storage when the
* method returns.
*/
- bool transferMail( QString & destinationDir );
+ bool transferMail( TQString & destinationDir );
void ungrabPtrKb(void);
void kmailMsgHandler(QtMsgType aType, const char* aMsg);
bool doSessionManagement();
bool firstInstance() { return the_firstInstance; }
void setFirstInstance(bool value) { the_firstInstance = value; }
- void action (bool mailto, bool check, const QString &to, const QString &cc,
- const QString &bcc, const QString &subj, const QString &body,
+ void action (bool mailto, bool check, const TQString &to, const TQString &cc,
+ const TQString &bcc, const TQString &subj, const TQString &body,
const KURL &messageFile, const KURL::List &attach,
const QCStringList &customHeaders);
- void byteArrayToRemoteFile(const QByteArray&, const KURL&,
+ void byteArrayToRemoteFile(const TQByteArray&, const KURL&,
bool overwrite = FALSE);
bool folderIsDraftOrOutbox( const KMFolder * );
bool folderIsDrafts( const KMFolder * );
@@ -269,7 +269,7 @@ public:
/**
* Find a folder by ID string in all folder managers
*/
- KMFolder* findFolderById( const QString& idString );
+ KMFolder* findFolderById( const TQString& idString );
KInstance *xmlGuiInstance() { return mXmlGuiInstance; }
void setXmlGuiInstance( KInstance *instance ) { mXmlGuiInstance = instance; }
@@ -307,7 +307,7 @@ public:
KMailICalIfaceImpl& iCalIface();
bool firstStart() { return the_firstStart; }
- QString previousVersion() { return the_previousVersion; }
+ TQString previousVersion() { return the_previousVersion; }
bool startingUp() { return the_startingUp; }
void setStartingUp (bool flag) { the_startingUp = flag; }
bool shuttingDown() { return the_shuttingDown; }
@@ -317,7 +317,7 @@ public:
/** Returns the full path of the user's local data directory for KMail.
The path ends with '/'.
*/
- static QString localDataPath();
+ static TQString localDataPath();
/** Returns true if we have a system tray applet. This is needed in order
* to know whether the application should be allowed to exit in case the
@@ -330,11 +330,11 @@ public:
/// Reimplemented from KMailIface
bool handleCommandLine( bool noArgsOpensReader );
- void emergencyExit( const QString& reason );
+ void emergencyExit( const TQString& reason );
/** Returns a message serial number that hasn't been used yet. */
unsigned long getNextMsgSerNum();
- QTextCodec *networkCodec() { return netCodec; }
+ TQTextCodec *networkCodec() { return netCodec; }
/** returns a reference to the first Mainwin or a temporary Mainwin */
KMainWindow* mainWin();
@@ -382,13 +382,13 @@ public:
KMMainWidget *getKMMainWidget();
/** @return a list of all folders from all folder managers. */
- QValueList< QGuardedPtr<KMFolder> > allFolders();
+ TQValueList< TQGuardedPtr<KMFolder> > allFolders();
void raise();
- void loadProfile( const QString& path );
+ void loadProfile( const TQString& path );
- void saveToProfile( const QString& path ) const;
+ void saveToProfile( const TQString& path ) const;
public slots:
/// Save contents of all open composer widnows to ~/dead.letter
@@ -410,7 +410,7 @@ public slots:
void slotConfigChanged();
protected slots:
- void slotDataReq(KIO::Job*,QByteArray&);
+ void slotDataReq(KIO::Job*,TQByteArray&);
void slotResult(KIO::Job*);
signals:
@@ -420,7 +420,7 @@ signals:
private:
void openReader( bool onlyCheck );
- KMMsgStatus strToStatus(const QString &flags);
+ KMMsgStatus strToStatus(const TQString &flags);
KMFolder *currentFolder();
KMFolder *the_inboxFolder;
@@ -445,13 +445,13 @@ private:
struct putData
{
KURL url;
- QByteArray data;
+ TQByteArray data;
int offset;
};
- QMap<KIO::Job *, putData> mPutJobs;
+ TQMap<KIO::Job *, putData> mPutJobs;
/** previous KMail version. If different from current,
the user has just updated. read from config */
- QString the_previousVersion;
+ TQString the_previousVersion;
/** is this the first start? read from config */
bool the_firstStart;
/** are we starting up? set in main.cpp directly before kapp->exec() */
@@ -466,11 +466,11 @@ private:
bool mMailCheckAborted;
static KMKernel *mySelf;
KSharedConfig::Ptr mConfig;
- QTextCodec *netCodec;
+ TQTextCodec *netCodec;
KInstance* mXmlGuiInstance;
ConfigureDialog *mConfigureDialog;
- QTimer *mBackgroundTasksTimer;
+ TQTimer *mBackgroundTasksTimer;
KMailICalIfaceImpl* mICalIface;
JobScheduler* mJobScheduler;
// temporary mainwin
@@ -487,7 +487,7 @@ private:
// context menus and the pinentry program
bool mContextMenuShown;
- QValueList<const KSystemTray*> systemTrayApplets;
+ TQValueList<const KSystemTray*> systemTrayApplets;
/* Weaver */
KPIM::ThreadWeaver::Weaver *the_weaver;
@@ -496,8 +496,8 @@ private:
KWallet::Wallet *mWallet;
// variables used by dcopAddMessage()
- QStringList mAddMessageMsgIds;
- QString mAddMessageLastFolder;
+ TQStringList mAddMessageMsgIds;
+ TQString mAddMessageLastFolder;
KMFolder *mAddMsgCurrentFolder;
};