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: MNssGetTagReference Client is the public callback interfaces for |
|
15 * clients that want to retrieve tag references from the VAS Db. |
|
16 * The client must inherit and override the GetTagCompleted() and |
|
17 * GetTagFailed() methods to handle VAS Db responses for |
|
18 * retrieving tag reference(s). |
|
19 * |
|
20 */ |
|
21 |
|
22 #ifndef MNSSGETTAGREFCLIENT_H |
|
23 #define MNSSGETTAGREFCLIENT_H |
|
24 |
|
25 // includes |
|
26 #include <e32std.h> |
|
27 #include <e32base.h> |
|
28 |
|
29 // forward declarations |
|
30 class MNssTagReference; |
|
31 |
|
32 //typedef |
|
33 typedef CArrayPtrFlat<MNssTagReference> NssTagReferenceListArray; |
|
34 |
|
35 // CLASS DECLARATIONS |
|
36 /** |
|
37 * MNssGetTagReferenceClient defines the call back methods used by VAS DB |
|
38 * when replying to an asynchronous GetTagReference() request. |
|
39 * @lib NssVASApi.lib |
|
40 * @since 2.0 |
|
41 */ |
|
42 |
|
43 class MNssGetTagReferenceClient |
|
44 { |
|
45 public: |
|
46 |
|
47 /*enum TNssGetTagReferenceClientFailCode |
|
48 { |
|
49 EVASDBItemNotFound = 1, |
|
50 EVASDBNoMemory, |
|
51 EVASDBDiskFull, |
|
52 EVASDBFailure |
|
53 };*/ |
|
54 |
|
55 /** |
|
56 * Callback to indicate GetTagReference successed. |
|
57 * client has to delete the tagref list |
|
58 * @since 2.0 |
|
59 * @param aTagRefList |
|
60 * @return None |
|
61 */ |
|
62 virtual void GetTagReferenceListCompleted( |
|
63 CArrayPtrFlat<MNssTagReference>* aTagRefList, TInt aErrorCode ) = 0; |
|
64 |
|
65 /** |
|
66 * Callback to indicate GetTagReference failed. |
|
67 * @since 2.0 |
|
68 * @param aFailCode - The reason GetTagReference failed |
|
69 * @return None |
|
70 */ |
|
71 //virtual void GetTagReferenceFailed(TNssGetTagReferenceClientFailCode aFailCode)=0; |
|
72 |
|
73 }; |
|
74 |
|
75 #endif |
|