|
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: MNssInterCompContextMgrClient provides the public callback interfaces |
|
15 * for internal VAS clients that want to retrieve contexts from the VAS Db. |
|
16 * The client must inherit and override the following methods to |
|
17 * handle VAS Db responses for retrieving context(s). |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef MNSSINTERCOMPCONTEXTMGRCLIENT_H |
|
23 #define MNSSINTERCOMPCONTEXTMGRCLIENT_H |
|
24 |
|
25 #include <e32std.h> |
|
26 #include <e32base.h> |
|
27 |
|
28 |
|
29 // FORWARD DECLARATION |
|
30 class CNssContext; |
|
31 |
|
32 // TYPEDEFS |
|
33 typedef CArrayPtrFlat<CNssContext> TMNssContextList; |
|
34 |
|
35 // CLASS DECLARATIONS |
|
36 /** |
|
37 * MNssInterCompContextMgrClient defines the call back methods used by VAS DB. |
|
38 * @lib NssVASApi.lib |
|
39 * @since 2.0 |
|
40 */ |
|
41 class MNssInterCompContextMgrClient |
|
42 { |
|
43 public: |
|
44 /** |
|
45 * Callback to indicate GetContext successed. |
|
46 * client has to delete the context after using the context. |
|
47 * @since 2.0 |
|
48 * @param aContext |
|
49 * @return None |
|
50 */ |
|
51 virtual void GetContextCompleted( CNssContext* aContext, |
|
52 TInt aErrorCode ) = 0; |
|
53 |
|
54 /** |
|
55 * Callback to indicate GetContext successed. |
|
56 * client has to ResetAndDestroy() after using the list. |
|
57 * @since 2.0 |
|
58 * @param aContextList A list of contexts. |
|
59 * @return None |
|
60 */ |
|
61 virtual void GetContextListCompleted( TMNssContextList *aContextList, |
|
62 TInt aErrorCode ) = 0; |
|
63 |
|
64 |
|
65 /** |
|
66 * Callback to indicate GetContext successed. |
|
67 * client has to ResetAndDestroy() after using the list. |
|
68 * @since 2.0 |
|
69 * @param aContextList A list of contexts. |
|
70 * @return None |
|
71 */ |
|
72 virtual void GetGlobalContextsCompleted( TMNssContextList *aContextList, |
|
73 TInt aErrorCode ) = 0; |
|
74 |
|
75 }; |
|
76 |
|
77 #endif |