|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Certificate class in advanced security settings |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef ADVSECSETTINGSCERTIFICATE_H |
|
19 #define ADVSECSETTINGSCERTIFICATE_H |
|
20 |
|
21 #include <QObject> |
|
22 |
|
23 |
|
24 /** |
|
25 * Certificate class in advances security settings. |
|
26 */ |
|
27 class AdvSecSettingsCertificate : public QObject |
|
28 { |
|
29 Q_OBJECT |
|
30 |
|
31 public: // new definitions |
|
32 enum CertificateType { |
|
33 NotDefined, |
|
34 AuthorityCertificate, |
|
35 TrustedSiteCertificate, |
|
36 PersonalCertificate, |
|
37 DeviceCertificate |
|
38 }; |
|
39 |
|
40 public: // constructor and destructor |
|
41 explicit AdvSecSettingsCertificate(QObject *parent = 0); |
|
42 virtual ~AdvSecSettingsCertificate(); |
|
43 |
|
44 public: // new functions |
|
45 CertificateType certType() const; |
|
46 void setCertType(CertificateType type); |
|
47 |
|
48 const QString &label() const; |
|
49 void setLabel(const QString &label); |
|
50 |
|
51 int modelIndex() const; |
|
52 void setModelIndex(int index); |
|
53 |
|
54 private: // new functions |
|
55 Q_DISABLE_COPY(AdvSecSettingsCertificate) |
|
56 |
|
57 private: // data |
|
58 CertificateType mCertType; |
|
59 QString mLabel; |
|
60 int mModelIndex; |
|
61 }; |
|
62 |
|
63 |
|
64 #endif // ADVSECSETTINGSCERTIFICATE_H |