|
1 /* |
|
2 * Copyright (c) 2002 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: Multiple context manager. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CWPBINDINGCONTEXTMANAGER_H |
|
20 #define CWPBINDINGCONTEXTMANAGER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include "CWPMultiContextManager.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CDesC8Array; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * CWPBindingContextManager handles data in contexts. |
|
33 * |
|
34 * @lib ProvisioningEngine |
|
35 * @since 2.1 |
|
36 */ |
|
37 class CWPBindingContextManager : public CWPMultiContextManager |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 * @return Context manager |
|
44 */ |
|
45 static CWPBindingContextManager* NewL(); |
|
46 |
|
47 /** |
|
48 * Two-phased constructor. |
|
49 * @return Context manager |
|
50 */ |
|
51 static CWPBindingContextManager* NewLC(); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 ~CWPBindingContextManager(); |
|
57 |
|
58 public: // From MWPContextManager |
|
59 |
|
60 void DeleteContextL( MWPContextExtensionArray& aArray, TUint32 aUid ); |
|
61 TInt ContextDataCountL( TUint32 aUid ); |
|
62 TBool DeleteContextDataL( MWPContextExtensionArray& aArray, TUint32 aUid ); |
|
63 void SaveL( MWPContextExtension& aExtension, TInt aItem ); |
|
64 CDesC8Array* ContextDataL( TUint32 aUid ); |
|
65 |
|
66 private: // New methods |
|
67 /** |
|
68 * C++ default constructor. |
|
69 */ |
|
70 CWPBindingContextManager(); |
|
71 |
|
72 /** |
|
73 * By default Symbian 2nd phase constructor is private. |
|
74 */ |
|
75 void ConstructL(); |
|
76 }; |
|
77 |
|
78 #endif /* CWPBINDINGCONTEXTMANAGER_H */ |