SVN_SILENT made messages (.desktop file) - always resolve ours
[kdepim.git] / accountwizard / identity.h
blob07ada28a3a85318edd4b10ba607c7639cc1c586a
1 /*
2 Copyright (c) 2010 Laurent Montel <montel@kde.org>
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.
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.
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.
20 #ifndef IDENTITY_H
21 #define IDENTITY_H
23 #include "setupobject.h"
25 class Transport;
27 namespace KIdentityManagement
29 class Identity;
30 class IdentityManager;
33 class Identity : public SetupObject
35 Q_OBJECT
36 public:
37 explicit Identity(QObject *parent = Q_NULLPTR);
38 ~Identity();
39 void create() Q_DECL_OVERRIDE;
40 void destroy() Q_DECL_OVERRIDE;
42 public Q_SLOTS:
43 Q_SCRIPTABLE void setIdentityName(const QString &name);
44 Q_SCRIPTABLE void setRealName(const QString &name);
45 Q_SCRIPTABLE void setEmail(const QString &email);
46 Q_SCRIPTABLE void setOrganization(const QString &org);
47 Q_SCRIPTABLE void setSignature(const QString &sig);
48 Q_SCRIPTABLE uint uoid() const;
49 Q_SCRIPTABLE void setTransport(QObject *transport);
50 Q_SCRIPTABLE void setPreferredCryptoMessageFormat(const QString &format);
51 Q_SCRIPTABLE void setXFace(const QString &xface);
53 protected:
54 QString identityName() const;
56 private:
57 QString m_identityName;
58 QString m_realName;
59 QString m_email;
60 QString m_organization;
61 QString m_signature;
62 QString m_prefCryptoFormat;
63 QString m_xface;
64 Transport *m_transport;
65 KIdentityManagement::IdentityManager *m_manager;
66 KIdentityManagement::Identity *m_identity;
69 #endif