9#include "mailtransport_export.h"
10#include "transportbase.h"
11#include "transporttype.h"
15class TransportPrivate;
20namespace MailTransport
32class MAILTRANSPORT_EXPORT
Transport :
public TransportBase
36 Q_PROPERTY(
QString password READ password WRITE setPassword NOTIFY passwordChanged)
37 Q_PROPERTY(
TransportType transportType READ transportType NOTIFY transportTypeChanged)
40 friend class TransportManagerPrivate;
54 [[nodiscard]] Q_INVOKABLE
bool isValid()
const;
59 [[nodiscard]]
QString password()
const;
65 void setPassword(
const QString &passwd);
72 void forceUniqueName();
84 void updatePasswordState();
91 [[nodiscard]]
bool isComplete()
const;
96 [[nodiscard]]
QString authenticationTypeString()
const;
105 [[nodiscard]]
static QString authenticationTypeString(
int type);
131 void usrRead()
override;
132 bool usrSave()
override;
137 [[nodiscard]]
bool needsWalletMigration()
const;
142 void migrateToWallet();
164 void readTransportPasswordFinished(QKeychain::Job *baseJob);
168 std::unique_ptr<TransportPrivate>
const d;
Central transport management interface.
A representation of a transport type.
Represents the settings of a specific mail transport.
void passwordLoaded()
Emitted when passwords have been loaded from QKeyChain.
void passwordChanged()
Emitted when the password is changed.
void transportTypeChanged()
Emitted when the transport type is changed.
~Transport() override
Destructor.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:17 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.