MailTransport

transporttype.h
1 /*
2  Copyright (c) 2009 Constantin Berzan <[email protected]>
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_TRANSPORTTYPE_H
21 #define MAILTRANSPORT_TRANSPORTTYPE_H
22 
23 #include "mailtransport_export.h"
24 #include "transport.h"
25 
26 #include <QString>
27 
28 namespace MailTransport {
29 class AddTransportDialog;
30 class TransportManager;
31 
42 class MAILTRANSPORT_EXPORT TransportType
43 {
44  friend class AddTransportDialog;
45  friend class Transport;
46  friend class TransportManager;
47  friend class TransportManagerPrivate;
48 
49 public:
54 
58  TransportType();
59 
63  TransportType(const TransportType &other);
64 
68  ~TransportType();
69 
73  TransportType &operator=(const TransportType &other);
74 
78  Q_REQUIRED_RESULT bool operator==(const TransportType &other) const;
79 
83  Q_REQUIRED_RESULT bool isValid() const;
84 
88  Q_REQUIRED_RESULT QString name() const;
89 
93  Q_REQUIRED_RESULT QString description() const;
94 
98  Q_REQUIRED_RESULT QString identifier() const;
99 
100  Q_REQUIRED_RESULT bool isAkonadiResource() const;
101 
102 private:
103  //@cond PRIVATE
104  class Private;
106  //@endcond
107 };
108 } // namespace MailTransport
109 
110 Q_DECLARE_METATYPE(MailTransport::TransportType)
111 Q_DECLARE_TYPEINFO(MailTransport::TransportType, Q_MOVABLE_TYPE);
112 
113 #endif // MAILTRANSPORT_TRANSPORTTYPE_H
A representation of a transport type.
Definition: transporttype.h:42
Central transport management interface.
QVector< TransportType > List
Describes a list of transport types.
Definition: transporttype.h:53
Represents the settings of a specific mail transport.
Definition: transport.h:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 1 2020 23:10:04 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.