|
1 /* |
|
2 * Copyright (c) 2009 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 "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: Header declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 #ifndef C_POLICY_ASSERTION_H |
|
25 #define C_POLICY_ASSERTION_H |
|
26 #include "assertion.h" |
|
27 |
|
28 class CPolicyAssertion : public CAssertion |
|
29 { |
|
30 public: |
|
31 static CPolicyAssertion* NewL(); |
|
32 static CPolicyAssertion* NewLC(); |
|
33 |
|
34 static CPolicyAssertion* NewL(CPolicyAssertion* aValue); |
|
35 static CPolicyAssertion* NewLC(CPolicyAssertion* aValue); |
|
36 |
|
37 virtual ~CPolicyAssertion(); |
|
38 //from CAssertion |
|
39 virtual TAssertionType Type(); |
|
40 virtual MAssertion* NormalizeL(); |
|
41 virtual MAssertion* NormalizeL(CPolicyRegistry* aRegistry); |
|
42 virtual MAssertion* IntersectL(MAssertion* aAssertion, CPolicyRegistry* aRegistry); |
|
43 virtual MAssertion* MergeL(MAssertion* aAssertion, CPolicyRegistry* aRegistry); |
|
44 |
|
45 public: |
|
46 void SetNameL(TDesC8& aName); |
|
47 void SetIdL(TDesC8& aId); |
|
48 TPtrC8 Name(); |
|
49 TPtrC8 Id(); |
|
50 TPtrC8 PolicyURI(); |
|
51 |
|
52 private: |
|
53 CPolicyAssertion(); |
|
54 void ConstructL(); |
|
55 void ConstructL(CPolicyAssertion* aValue); |
|
56 private: |
|
57 HBufC8* iName; |
|
58 HBufC8* iId; |
|
59 HBufC8* iMetadataEndpoint; |
|
60 |
|
61 |
|
62 }; |
|
63 #endif //C_POLICY_ASSERTION_H |