mailtransport
transport.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef MAILTRANSPORT_TRANSPORT_H
00021 #define MAILTRANSPORT_TRANSPORT_H
00022
00023 #include <mailtransport/transportbase.h>
00024 #include <mailtransport/mailtransport_export.h>
00025
00026 class TransportPrivate;
00027
00028 namespace MailTransport {
00029
00035 class MAILTRANSPORT_EXPORT Transport : public TransportBase
00036 {
00037 Q_OBJECT
00038 friend class TransportManager;
00039
00040 public:
00044 virtual ~Transport();
00045
00046 typedef QList<Transport*> List;
00047
00051 bool isValid() const;
00052
00056 QString password();
00057
00062 void setPassword( const QString &passwd );
00063
00074 void updatePasswordState();
00075
00081 bool isComplete() const;
00082
00086 QString authenticationTypeString() const;
00087
00096 Transport *clone() const;
00097
00098 protected:
00103 Transport( const QString &cfgGroup );
00104
00105 virtual void usrReadConfig();
00106 virtual void usrWriteConfig();
00107
00111 bool needsWalletMigration() const;
00112
00116 void migrateToWallet();
00117
00118 private Q_SLOTS:
00119 void readPassword();
00120
00121 private:
00122 TransportPrivate *const d;
00123 };
00124
00125 }
00126
00127 #endif