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 QCheckBox;
00036 class QLabel;
00037 class QPushButton;
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, QWidget *parent = 0 );
00058
00062 void showPage( QWidget *page );
00063
00064 protected:
00065 AccountWizard( KMKernel *kernel, QWidget *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 QStringList&, const QStringList& );
00085 void imapCapabilities( const QStringList&, const QStringList& );
00086 void smtpCapabilities( const QStringList&, const QStringList&,
00087 const QString&, const QString&, const QString& );
00088
00089 private:
00090 QString accountName() const;
00091 QLabel *createInfoLabel( const QString &msg );
00092
00093 void checkPopCapabilities( const QString&, int );
00094 void checkImapCapabilities( const QString&, int );
00095 void checkSmtpCapabilities( const QString&, int );
00096 uint popCapabilitiesFromStringList( const QStringList& );
00097 uint imapCapabilitiesFromStringList( const QStringList& );
00098 uint authMethodsFromString( const QString& );
00099 uint authMethodsFromStringList( const QStringList& );
00100
00101 QWidget *mWelcomePage;
00102
00103 QWidget *mAccountTypePage;
00104 AccountTypeBox *mTypeBox;
00105
00106 QWidget *mAccountInformationPage;
00107 KLineEdit *mRealName;
00108 KLineEdit *mEMailAddress;
00109 KLineEdit *mOrganization;
00110
00111 QWidget *mLoginInformationPage;
00112 KLineEdit *mLoginName;
00113 KLineEdit *mPassword;
00114
00115 QWidget *mServerInformationPage;
00116 QLabel *mIncomingLabel;
00117 KLineEdit *mIncomingServer;
00118 QCheckBox *mIncomingUseSSL;
00119 KLineEdit *mIncomingLocation;
00120
00121 QPushButton *mChooseLocation;
00122 KLineEdit *mOutgoingServer;
00123 QCheckBox *mOutgoingUseSSL;
00124 QCheckBox *mLocalDelivery;
00125
00126 QWidget *mIncomingServerWdg;
00127 QWidget *mIncomingLocationWdg;
00128
00129 QLabel *mAuthInfoLabel;
00130
00131 KMKernel *mKernel;
00132 KMAccount *mAccount;
00133 KMTransportInfo *mTransportInfo;
00134 QPtrList<KMTransportInfo> mTransportInfoList;
00135 KMServerTest *mServerTest;
00136 };
00137
00138 #endif
|