63
|
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: Helper class to contain a labeled CCTCertInfo object
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef CPADVSECSETTINGSLABELEDCERTINFO_SYMBIAN_H
|
|
19 |
#define CPADVSECSETTINGSLABELEDCERTINFO_SYMBIAN_H
|
|
20 |
|
|
21 |
#include <e32base.h> // CBase
|
|
22 |
|
|
23 |
class CCTCertInfo;
|
|
24 |
|
|
25 |
|
|
26 |
/**
|
|
27 |
* Displayed certificate labels are constructed using CCTCertInfo
|
|
28 |
* label and subject name. CAdvSecSettingsLabeledCertInfo class
|
|
29 |
* is used as contained class for labeled CCTCertInfo objects.
|
|
30 |
*/
|
|
31 |
class CAdvSecSettingsLabeledCertInfo : public CBase
|
|
32 |
{
|
|
33 |
public: // constructor and destructor
|
|
34 |
CAdvSecSettingsLabeledCertInfo(const CCTCertInfo &aCertInfo);
|
|
35 |
~CAdvSecSettingsLabeledCertInfo();
|
|
36 |
|
|
37 |
public: // new functions
|
|
38 |
const CCTCertInfo &CertInfo() const;
|
|
39 |
const TDesC &Label() const;
|
|
40 |
void SetLabelL(const TDesC &aLabel);
|
|
41 |
void AppendLabelL(const TDesC &aSeparator, const TDesC &aAdditionalText);
|
|
42 |
static TInt Compare(const CAdvSecSettingsLabeledCertInfo& aLeft,
|
|
43 |
const CAdvSecSettingsLabeledCertInfo& aRight);
|
|
44 |
|
|
45 |
private: // data
|
|
46 |
const CCTCertInfo& iCertInfo;
|
|
47 |
HBufC* iLabel;
|
|
48 |
};
|
|
49 |
|
|
50 |
#endif // CPADVSECSETTINGSLABELEDCERTINFO_SYMBIAN_H
|
|
51 |
|