• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

mailtransport

  • sources
  • kde-4.14
  • kdepimlibs
  • mailtransport
transport.h
1 /*
2  Copyright (c) 2006 - 2007 Volker Krause <vkrause@kde.org>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #ifndef MAILTRANSPORT_TRANSPORT_H
21 #define MAILTRANSPORT_TRANSPORT_H
22 
23 #include <mailtransport/mailtransport_export.h>
24 #include <mailtransport/transportbase.h>
25 #include <mailtransport/transporttype.h>
26 
27 class TransportPrivate;
28 
29 namespace MailTransport {
30 
31 class TransportType;
32 
44 // TODO KDE5: Do something about the kcfg-generated TransportBase.
45 // Currently it has the config stuff as private members, which means it is
46 // utterly inextensible. Also the sendmail and akonadi-type transports use
47 // the "host" setting for keeping the location of the sendmail executable and
48 // the resource id, respectively. This is a hack; they should have separate
49 // config options... (cberzan)
50 class MAILTRANSPORT_EXPORT Transport : public TransportBase
51 {
52  Q_OBJECT
53  friend class TransportManager;
54  friend class TransportManagerPrivate;
55 
56  public:
60  virtual ~Transport();
61 
62  typedef QList<Transport*> List;
63 
67  bool isValid() const;
68 
72  QString password();
73 
78  void setPassword( const QString &passwd );
79 
85  void forceUniqueName();
86 
97  void updatePasswordState();
98 
104  bool isComplete() const;
105 
109  QString authenticationTypeString() const;
110 
118  static QString authenticationTypeString( int type );
119 
128  Transport *clone() const;
129 
135  TransportType transportType() const;
136 
142  void setTransportType( const TransportType &type );
143 
144  protected:
149  Transport( const QString &cfgGroup );
150 
151  virtual void usrReadConfig();
152  virtual void usrWriteConfig();
153 
157  bool needsWalletMigration() const;
158 
162  void migrateToWallet();
163 
164  private Q_SLOTS:
165 
166  // Used by our friend, TransportManager
167  void readPassword();
168 
169  private:
170  TransportPrivate *const d;
171 };
172 
173 } // namespace MailTransport
174 
175 #endif // MAILTRANSPORT_TRANSPORT_H
MailTransport::TransportType
A representation of a transport type.
Definition: transporttype.h:51
MailTransport::TransportManager
Central transport management interface.
Definition: transportmanager.h:54
TransportPrivate
Private class that helps to provide binary compatibility between releases.
Definition: transport_p.h:29
QString
QList
MailTransport::Transport
Represents the settings of a specific mail transport.
Definition: transport.h:50
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

mailtransport

Skip menu "mailtransport"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal