mailtransport
20 #ifndef MAILTRANSPORT_TRANSPORTMANAGER_H
21 #define MAILTRANSPORT_TRANSPORTMANAGER_H
23 #include <mailtransport/mailtransport_export.h>
24 #include <mailtransport/transporttype.h>
26 #include <QtCore/QList>
27 #include <QtCore/QObject>
29 #include <akonadi/agenttype.h>
37 namespace MailTransport {
41 class TransportManagerPrivate;
57 Q_CLASSINFO(
"D-Bus Interface",
"org.kde.pim.TransportManager" )
60 friend class TransportManagerPrivate;
79 void loadPasswordsAsync();
90 Transport *transportById(
int id,
bool def =
true )
const;
126 void addTransport(
Transport *transport );
136 MAILTRANSPORT_DEPRECATED
TransportJob *createTransportJob(
int transportId );
158 MAILTRANSPORT_DEPRECATED
void schedule(
TransportJob *job );
164 void createDefaultTransport();
181 bool showTransportCreationDialog(
QWidget *parent, ShowCondition showCondition = Always );
197 Q_SCRIPTABLE
bool isEmpty()
const;
212 Q_SCRIPTABLE
QString defaultTransportName()
const;
218 Q_SCRIPTABLE
int defaultTransportId()
const;
224 Q_SCRIPTABLE
void setDefaultTransport(
int id );
230 Q_SCRIPTABLE
void removeTransport(
int id );
237 Q_SCRIPTABLE
void transportsChanged();
244 Q_SCRIPTABLE
void changesCommitted();
251 void passwordsChanged();
258 void transportRemoved(
int id,
const QString &name );
266 void transportRenamed(
int id,
const QString &oldName,
const QString &newName );
273 KWallet::Wallet *wallet();
278 void loadPasswords();
288 void emitChangesCommitted();
291 TransportManagerPrivate *
const d;
293 Q_PRIVATE_SLOT( d,
void slotTransportsChanged() )
294 Q_PRIVATE_SLOT( d,
void slotWalletOpened(
bool success ) )
295 Q_PRIVATE_SLOT( d,
void dbusServiceUnregistered() )
296 Q_PRIVATE_SLOT( d,
void agentTypeAdded( const Akonadi::AgentType &atype ) )
297 Q_PRIVATE_SLOT( d,
void agentTypeRemoved( const Akonadi::AgentType &atype ) )
298 Q_PRIVATE_SLOT( d,
void jobResult( KJob *job ) )
303 #endif // MAILTRANSPORT_TRANSPORTMANAGER_H
Central transport management interface.
ShowCondition
Describes when to show the transport creation dialog.
Show the transport creation dialog unconditionally.
Abstract base class for all mail transport jobs.
Represents the settings of a specific mail transport.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:49 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.