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
23 #include "setupobject.h"
27 namespace KIdentityManagement
30 class IdentityManager
;
33 class Identity
: public SetupObject
37 explicit Identity(QObject
*parent
= Q_NULLPTR
);
39 void create() Q_DECL_OVERRIDE
;
40 void destroy() Q_DECL_OVERRIDE
;
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
);
54 QString
identityName() const;
57 QString m_identityName
;
60 QString m_organization
;
62 QString m_prefCryptoFormat
;
64 Transport
*m_transport
;
65 KIdentityManagement::IdentityManager
*m_manager
;
66 KIdentityManagement::Identity
*m_identity
;