kmail
accountwizard.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef KMWIZARD_H
00030 #define KMWIZARD_H
00031
00032 #include <kwizard.h>
00033
00034 class KLineEdit;
00035 class TQCheckBox;
00036 class TQLabel;
00037 class TQPushButton;
00038
00039 class KMAccount;
00040 class KMKernel;
00041 class KMServerTest;
00042 class AccountTypeBox;
00043 class KMTransportInfo;
00044
00045 class AccountWizard : public KWizard
00046 {
00047 Q_OBJECT
00048
00049 public:
00057 static void start( KMKernel *kernel, TQWidget *parent = 0 );
00058
00062 void showPage( TQWidget *page );
00063
00064 protected:
00065 AccountWizard( KMKernel *kernel, TQWidget *parent );
00066 ~AccountWizard() {};
00067
00068 void setupWelcomePage();
00069 void setupAccountTypePage();
00070 void setupAccountInformationPage();
00071 void setupLoginInformationPage();
00072 void setupServerInformationPage();
00073
00074 protected slots:
00075 void chooseLocation();
00076 virtual void accept();
00077 void createTransport();
00078 void transportCreated();
00079 void createAccount();
00080 void accountCreated();
00081 void finished();
00082
00083 private slots:
00084 void popCapabilities( const TQStringList&, const TQStringList& );
00085 void imapCapabilities( const TQStringList&, const TQStringList& );
00086 void smtpCapabilities( const TQStringList&, const TQStringList&,
00087 const TQString&, const TQString&, const TQString& );
00088
00089 private:
00090 TQString accountName() const;
00091 TQLabel *createInfoLabel( const TQString &msg );
00092
00093 void checkPopCapabilities( const TQString&, int );
00094 void checkImapCapabilities( const TQString&, int );
00095 void checkSmtpCapabilities( const TQString&, int );
00096 uint popCapabilitiesFromStringList( const TQStringList& );
00097 uint imapCapabilitiesFromStringList( const TQStringList& );
00098 uint authMethodsFromString( const TQString& );
00099 uint authMethodsFromStringList( const TQStringList& );
00100
00101 TQWidget *mWelcomePage;
00102
00103 TQWidget *mAccountTypePage;
00104 AccountTypeBox *mTypeBox;
00105
00106 TQWidget *mAccountInformationPage;
00107 KLineEdit *mRealName;
00108 KLineEdit *mEMailAddress;
00109 KLineEdit *mOrganization;
00110
00111 TQWidget *mLoginInformationPage;
00112 KLineEdit *mLoginName;
00113 KLineEdit *mPassword;
00114
00115 TQWidget *mServerInformationPage;
00116 TQLabel *mIncomingLabel;
00117 KLineEdit *mIncomingServer;
00118 TQCheckBox *mIncomingUseSSL;
00119 KLineEdit *mIncomingLocation;
00120
00121 TQPushButton *mChooseLocation;
00122 KLineEdit *mOutgoingServer;
00123 TQCheckBox *mOutgoingUseSSL;
00124 TQCheckBox *mLocalDelivery;
00125
00126 TQWidget *mIncomingServerWdg;
00127 TQWidget *mIncomingLocationWdg;
00128
00129 TQLabel *mAuthInfoLabel;
00130
00131 KMKernel *mKernel;
00132 KMAccount *mAccount;
00133 KMTransportInfo *mTransportInfo;
00134 TQPtrList<KMTransportInfo> mTransportInfoList;
00135 KMServerTest *mServerTest;
00136 };
00137
00138 #endif
|