diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kmail/accountdialog.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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/accountdialog.h')
-rw-r--r-- | kmail/accountdialog.h | 254 |
1 files changed, 127 insertions, 127 deletions
diff --git a/kmail/accountdialog.h b/kmail/accountdialog.h index 784cee00b..837e23cf7 100644 --- a/kmail/accountdialog.h +++ b/kmail/accountdialog.h @@ -26,7 +26,7 @@ #include <kdialogbase.h> #include <klistview.h> #include <klineedit.h> -#include <qguardedptr.h> +#include <tqguardedptr.h> #include "imapaccountbase.h" class QRegExpValidator; @@ -57,157 +57,157 @@ class AccountDialog : public KDialogBase Q_OBJECT public: - AccountDialog( const QString & caption, KMAccount *account, - QWidget *parent=0, const char *name=0, bool modal=true ); + AccountDialog( const TQString & caption, KMAccount *account, + TQWidget *parent=0, const char *name=0, bool modal=true ); virtual ~AccountDialog(); private: struct LocalWidgets { - QLabel *titleLabel; - QLineEdit *nameEdit; - QComboBox *locationEdit; - QRadioButton *lockMutt; - QRadioButton *lockMuttPriv; - QRadioButton *lockProcmail; - QComboBox *procmailLockFileName; - QRadioButton *lockFcntl; - QRadioButton *lockNone; - QLineEdit *precommand; + TQLabel *titleLabel; + TQLineEdit *nameEdit; + TQComboBox *locationEdit; + TQRadioButton *lockMutt; + TQRadioButton *lockMuttPriv; + TQRadioButton *lockProcmail; + TQComboBox *procmailLockFileName; + TQRadioButton *lockFcntl; + TQRadioButton *lockNone; + TQLineEdit *precommand; #if 0 - QCheckBox *resourceCheck; - QPushButton *resourceClearButton; - QPushButton *resourceClearPastButton; + TQCheckBox *resourceCheck; + TQPushButton *resourceClearButton; + TQPushButton *resourceClearPastButton; #endif - QCheckBox *includeInCheck; - QCheckBox *intervalCheck; - QLabel *intervalLabel; + TQCheckBox *includeInCheck; + TQCheckBox *intervalCheck; + TQLabel *intervalLabel; KIntNumInput *intervalSpin; - QComboBox *folderCombo; - //QComboBox *identityCombo; + TQComboBox *folderCombo; + //TQComboBox *identityCombo; KPIM::IdentityCombo *identityCombo; - QLabel *identityLabel; + TQLabel *identityLabel; }; struct MaildirWidgets { - QLabel *titleLabel; - QLineEdit *nameEdit; - QComboBox *locationEdit; - QLineEdit *precommand; + TQLabel *titleLabel; + TQLineEdit *nameEdit; + TQComboBox *locationEdit; + TQLineEdit *precommand; #if 0 - QCheckBox *resourceCheck; - QPushButton *resourceClearButton; - QPushButton *resourceClearPastButton; + TQCheckBox *resourceCheck; + TQPushButton *resourceClearButton; + TQPushButton *resourceClearPastButton; #endif - QCheckBox *includeInCheck; - QCheckBox *intervalCheck; - QLabel *intervalLabel; + TQCheckBox *includeInCheck; + TQCheckBox *intervalCheck; + TQLabel *intervalLabel; KIntNumInput *intervalSpin; - QComboBox *folderCombo; - //QComboBox *identityCombo; + TQComboBox *folderCombo; + //TQComboBox *identityCombo; KPIM::IdentityCombo *identityCombo; - QLabel *identityLabel; + TQLabel *identityLabel; }; struct PopWidgets { - QLabel *titleLabel; - QLineEdit *nameEdit; - QLineEdit *loginEdit; - QLineEdit *passwordEdit; - QLineEdit *hostEdit; - QLineEdit *portEdit; - QLineEdit *precommand; - QButtonGroup *encryptionGroup; - QRadioButton *encryptionNone; - QRadioButton *encryptionSSL; - QRadioButton *encryptionTLS; - QButtonGroup *authGroup; - QRadioButton *authUser; - QRadioButton *authPlain; - QRadioButton *authLogin; - QRadioButton *authCRAM_MD5; - QRadioButton *authDigestMd5; - QRadioButton *authNTLM; - QRadioButton *authGSSAPI; - QRadioButton *authAPOP; + TQLabel *titleLabel; + TQLineEdit *nameEdit; + TQLineEdit *loginEdit; + TQLineEdit *passwordEdit; + TQLineEdit *hostEdit; + TQLineEdit *portEdit; + TQLineEdit *precommand; + TQButtonGroup *encryptionGroup; + TQRadioButton *encryptionNone; + TQRadioButton *encryptionSSL; + TQRadioButton *encryptionTLS; + TQButtonGroup *authGroup; + TQRadioButton *authUser; + TQRadioButton *authPlain; + TQRadioButton *authLogin; + TQRadioButton *authCRAM_MD5; + TQRadioButton *authDigestMd5; + TQRadioButton *authNTLM; + TQRadioButton *authGSSAPI; + TQRadioButton *authAPOP; - QPushButton *checkCapabilities; - QCheckBox *usePipeliningCheck; - QCheckBox *storePasswordCheck; - QCheckBox *leaveOnServerCheck; - QCheckBox *leaveOnServerDaysCheck; + TQPushButton *checkCapabilities; + TQCheckBox *usePipeliningCheck; + TQCheckBox *storePasswordCheck; + TQCheckBox *leaveOnServerCheck; + TQCheckBox *leaveOnServerDaysCheck; KIntNumInput *leaveOnServerDaysSpin; - QCheckBox *leaveOnServerCountCheck; + TQCheckBox *leaveOnServerCountCheck; KIntNumInput *leaveOnServerCountSpin; - QCheckBox *leaveOnServerSizeCheck; + TQCheckBox *leaveOnServerSizeCheck; KIntNumInput *leaveOnServerSizeSpin; #if 0 - QCheckBox *resourceCheck; - QPushButton *resourceClearButton; - QPushButton *resourceClearPastButton; + TQCheckBox *resourceCheck; + TQPushButton *resourceClearButton; + TQPushButton *resourceClearPastButton; #endif - QCheckBox *includeInCheck; - QCheckBox *intervalCheck; - QCheckBox *filterOnServerCheck; - QLabel *intervalLabel; + TQCheckBox *includeInCheck; + TQCheckBox *intervalCheck; + TQCheckBox *filterOnServerCheck; + TQLabel *intervalLabel; KIntNumInput *intervalSpin; KIntNumInput *filterOnServerSizeSpin; - QComboBox *folderCombo; - //QComboBox *identityCombo; + TQComboBox *folderCombo; + //TQComboBox *identityCombo; KPIM::IdentityCombo *identityCombo; - QLabel *identityLabel; + TQLabel *identityLabel; }; struct ImapWidgets { - QLabel *titleLabel; - QLineEdit *nameEdit; - QLineEdit *loginEdit; - QLineEdit *passwordEdit; - QLineEdit *hostEdit; - QLineEdit *portEdit; + TQLabel *titleLabel; + TQLineEdit *nameEdit; + TQLineEdit *loginEdit; + TQLineEdit *passwordEdit; + TQLineEdit *hostEdit; + TQLineEdit *portEdit; #if 0 - QCheckBox *resourceCheck; - QPushButton *resourceClearButton; - QPushButton *resourceClearPastButton; + TQCheckBox *resourceCheck; + TQPushButton *resourceClearButton; + TQPushButton *resourceClearPastButton; #endif - QCheckBox *autoExpungeCheck; // only used by normal (online) IMAP - QCheckBox *hiddenFoldersCheck; - QCheckBox *subscribedFoldersCheck; - QCheckBox *locallySubscribedFoldersCheck; - QCheckBox *loadOnDemandCheck; - QCheckBox *storePasswordCheck; - QCheckBox *progressDialogCheck; // only used by Disconnected IMAP - QCheckBox *includeInCheck; - QCheckBox *intervalCheck; - QCheckBox *listOnlyOpenCheck; - QLabel *intervalLabel; + TQCheckBox *autoExpungeCheck; // only used by normal (online) IMAP + TQCheckBox *hiddenFoldersCheck; + TQCheckBox *subscribedFoldersCheck; + TQCheckBox *locallySubscribedFoldersCheck; + TQCheckBox *loadOnDemandCheck; + TQCheckBox *storePasswordCheck; + TQCheckBox *progressDialogCheck; // only used by Disconnected IMAP + TQCheckBox *includeInCheck; + TQCheckBox *intervalCheck; + TQCheckBox *listOnlyOpenCheck; + TQLabel *intervalLabel; KIntNumInput *intervalSpin; - QButtonGroup *encryptionGroup; - QRadioButton *encryptionNone; - QRadioButton *encryptionSSL; - QRadioButton *encryptionTLS; - QButtonGroup *authGroup; - QRadioButton *authUser; - QRadioButton *authPlain; - QRadioButton *authLogin; - QRadioButton *authCramMd5; - QRadioButton *authDigestMd5; - QRadioButton *authGSSAPI; - QRadioButton *authNTLM; - QRadioButton *authAnonymous; - QPushButton *checkCapabilities; + TQButtonGroup *encryptionGroup; + TQRadioButton *encryptionNone; + TQRadioButton *encryptionSSL; + TQRadioButton *encryptionTLS; + TQButtonGroup *authGroup; + TQRadioButton *authUser; + TQRadioButton *authPlain; + TQRadioButton *authLogin; + TQRadioButton *authCramMd5; + TQRadioButton *authDigestMd5; + TQRadioButton *authGSSAPI; + TQRadioButton *authNTLM; + TQRadioButton *authAnonymous; + TQPushButton *checkCapabilities; FolderRequester *trashCombo; KLineEdit *personalNS; KLineEdit *otherUsersNS; KLineEdit *sharedNS; - QToolButton *editPNS; - QToolButton *editONS; - QToolButton *editSNS; + TQToolButton *editPNS; + TQToolButton *editONS; + TQToolButton *editSNS; ImapAccountBase::nsDelimMap nsMap; KPIM::IdentityCombo *identityCombo; - QLabel *identityLabel; + TQLabel *identityLabel; }; private slots: @@ -229,14 +229,14 @@ class AccountDialog : public KDialogBase void slotImapEncryptionChanged(int); void slotCheckPopCapabilities(); void slotCheckImapCapabilities(); - void slotPopCapabilities( const QStringList &, const QStringList & ); - void slotImapCapabilities( const QStringList &, const QStringList & ); + void slotPopCapabilities( const TQStringList &, const TQStringList & ); + void slotImapCapabilities( const TQStringList &, const TQStringList & ); void slotReloadNamespaces(); void slotSetupNamespaces( const ImapAccountBase::nsDelimMap& map ); void slotEditPersonalNamespace(); void slotEditOtherUsersNamespace(); void slotEditSharedNamespace(); - void slotConnectionResult( int errorCode, const QString& ); + void slotConnectionResult( int errorCode, const TQString& ); void slotLeaveOnServerDaysChanged( int value ); void slotLeaveOnServerCountChanged( int value ); void slotFilterOnServerSizeChanged( int value ); @@ -253,13 +253,13 @@ class AccountDialog : public KDialogBase void makeImapAccountPage( bool disconnected = false ); void setupSettings(); void saveSettings(); - void checkHighest( QButtonGroup * ); - static unsigned int popCapabilitiesFromStringList( const QStringList & ); - static unsigned int imapCapabilitiesFromStringList( const QStringList & ); + void checkHighest( TQButtonGroup * ); + static unsigned int popCapabilitiesFromStringList( const TQStringList & ); + static unsigned int imapCapabilitiesFromStringList( const TQStringList & ); void enablePopFeatures( unsigned int ); void enableImapAuthMethods( unsigned int ); void initAccountForConnect(); - const QString namespaceListToString( const QStringList& list ); + const TQString namespaceListToString( const TQStringList& list ); private: LocalWidgets mLocal; @@ -267,8 +267,8 @@ class AccountDialog : public KDialogBase PopWidgets mPop; ImapWidgets mImap; KMAccount *mAccount; - QValueList<QGuardedPtr<KMFolder> > mFolderList; - QStringList mFolderNames; + TQValueList<TQGuardedPtr<KMFolder> > mFolderList; + TQStringList mFolderNames; KMServerTest *mServerTest; enum EncryptionMethods { NoEncryption = 0, @@ -296,7 +296,7 @@ class AccountDialog : public KDialogBase unsigned int mCapaSSL; unsigned int mCapaTLS; KMail::SieveConfigEditor *mSieveConfigEditor; - QRegExpValidator *mValidator; + TQRegExpValidator *mValidator; }; class NamespaceLineEdit: public KLineEdit @@ -304,15 +304,15 @@ class NamespaceLineEdit: public KLineEdit Q_OBJECT public: - NamespaceLineEdit( QWidget* parent ); + NamespaceLineEdit( TQWidget* parent ); - const QString& lastText() { return mLastText; } + const TQString& lastText() { return mLastText; } public slots: - virtual void setText ( const QString & ); + virtual void setText ( const TQString & ); private: - QString mLastText; + TQString mLastText; }; class NamespaceEditDialog: public KDialogBase @@ -320,7 +320,7 @@ class NamespaceEditDialog: public KDialogBase Q_OBJECT public: - NamespaceEditDialog( QWidget* parent, ImapAccountBase::imapNamespace type, + NamespaceEditDialog( TQWidget* parent, ImapAccountBase::imapNamespace type, ImapAccountBase::nsDelimMap* map ); protected slots: @@ -331,8 +331,8 @@ class NamespaceEditDialog: public KDialogBase ImapAccountBase::imapNamespace mType; ImapAccountBase::nsDelimMap* mNamespaceMap; ImapAccountBase::namespaceDelim mDelimMap; - QMap<int, NamespaceLineEdit*> mLineEditMap; - QButtonGroup* mBg; + TQMap<int, NamespaceLineEdit*> mLineEditMap; + TQButtonGroup* mBg; }; } // namespace KMail |