equal
deleted
inserted
replaced
|
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: MNssSaveContextClient provides the public callback interfaces for |
|
15 * clients that want to store contexts to the VAS Db. The client must |
|
16 * inherit and override the SaveContextCompleted() and SaveContextFailed() |
|
17 * methods to handle VAS Db responses for storing context(s). |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef MNSSSAVECONTEXTCLIENT_H |
|
23 #define MNSSSAVECONTEXTCLIENT_H |
|
24 #include <e32std.h> |
|
25 |
|
26 |
|
27 // CLASS DECLARATIONS |
|
28 /** |
|
29 * MNssSaveContextClient is the interface for save context call backs. |
|
30 * @lib NssVASApi.lib |
|
31 * @since 2.0 |
|
32 */ |
|
33 class MNssSaveContextClient |
|
34 { |
|
35 public: |
|
36 |
|
37 /*enum TNssSaveContextClientFailCode |
|
38 { |
|
39 EVASDBNoMemory = 2, |
|
40 EVASDBDiskFull, |
|
41 EVASDBFailure, |
|
42 EVASSRSFailure |
|
43 };*/ |
|
44 /** |
|
45 * Callback to indicate SaveContext successed. |
|
46 * @since 2.0 |
|
47 * @param aErrorCode KErrNone if saving of context has completed successfully |
|
48 * @return None |
|
49 */ |
|
50 virtual void SaveContextCompleted( TInt aErrorCode ) = 0; |
|
51 |
|
52 /** |
|
53 * Callback to indicate SaveContext failed. |
|
54 * @since 2.0 |
|
55 * @param aFailCode - The reason SaveContext failed. |
|
56 * @return None |
|
57 */ |
|
58 //virtual void SaveContextFailed(TNssSaveContextClientFailCode aFailCode)=0; |
|
59 |
|
60 }; |
|
61 |
|
62 #endif |