|
1 /* |
|
2 * Copyright (c) 2002-2005 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: The SenServicePolicy is a non-public implementation of |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #ifndef SEN_SERVICE_POLICY_H |
|
26 #define SEN_SERVICE_POLICY_H |
|
27 |
|
28 // INCLUDES |
|
29 #include <e32base.h> // for CActive |
|
30 #include <badesca.h> |
|
31 |
|
32 #include "SenDomFragment.h" |
|
33 #include "MSenServiceDescription.h" |
|
34 #include "servicepolicy.h" |
|
35 #include "MSenServicePolicy.h" |
|
36 // FORWARD DECLARATIONS |
|
37 |
|
38 |
|
39 // CLASS DECLARATION |
|
40 |
|
41 /** |
|
42 * Example structure of ServicePolicy XML fragment: |
|
43 * |
|
44 * <ServicePolicy> |
|
45 * |
|
46 * </ServicePolicy> |
|
47 */ |
|
48 class CSenServicePolicy : public CServicePolicy |
|
49 { |
|
50 public: // Constructors and destructor |
|
51 |
|
52 /** |
|
53 * Two-phased constructors. |
|
54 * These parameterless constructors are ment to be used |
|
55 * for example before parsing XML stream. |
|
56 */ |
|
57 static CSenServicePolicy* NewL(); |
|
58 static CSenServicePolicy* NewLC(); |
|
59 |
|
60 virtual ~CSenServicePolicy(); |
|
61 // From CServicePolicy |
|
62 virtual TInt RebuildServicePolicyFrom(MSenServicePolicy& aTemplate); |
|
63 virtual TBool Accepts(MSenServicePolicy& aPolicyPattern); |
|
64 virtual CSenElement* ClientPolicy(); |
|
65 private: |
|
66 /** |
|
67 * C++ default constructor. |
|
68 */ |
|
69 CSenServicePolicy(); |
|
70 void ConstructL(); |
|
71 /** |
|
72 * By default Symbian 2nd phase constructors are private. |
|
73 */ |
|
74 void BaseConstructL(); |
|
75 }; |
|
76 |
|
77 #endif //SEN_SERVICE_POLICY_H |
|
78 |
|
79 // End of File |