|
1 /* |
|
2 * Copyright (c) 2003-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: Group data container observer interface |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MCASTOREDGROUPSOBSERVER_H |
|
21 #define MCASTOREDGROUPSOBSERVER_H |
|
22 |
|
23 #include <e32std.h> |
|
24 #include "TStorageManagerGlobals.h" |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Interface for group data container observer |
|
30 * |
|
31 * @lib CAStorage.dll |
|
32 * @since 2.1 |
|
33 */ |
|
34 class MCAStoredGroupsObserver |
|
35 { |
|
36 public: // New functions |
|
37 |
|
38 /** |
|
39 * Called when a group is deleted. |
|
40 * @since 2.1 |
|
41 * @param aId The ID of the deleted group |
|
42 */ |
|
43 virtual void HandleDelete( const TDesC& aId ) = 0; |
|
44 |
|
45 /** |
|
46 * Called when a group is added. |
|
47 * @since 2.1 |
|
48 * @param aId The ID of the added group |
|
49 */ |
|
50 virtual void HandleAddition( const TDesC& aId ) = 0; |
|
51 |
|
52 /** |
|
53 * Called when a group is changed. |
|
54 * @since 2.1 |
|
55 * @param aId The ID of the changed group |
|
56 */ |
|
57 virtual void HandleChange( const TDesC& aId ) = 0; |
|
58 |
|
59 /** |
|
60 * Called when backup/restore starts/stops. |
|
61 * There is no distinction between backup/restore (Symbian limitation). |
|
62 * However, the called party should fetch new list(s) as they |
|
63 * may have changed if the operation was restore operation. |
|
64 * @since 2.1 |
|
65 * @param aEventType Type of backup/restore event |
|
66 */ |
|
67 virtual void HandleBackupRestoreEvent( |
|
68 const TStorageManagerGlobals::TCAObserverEventType aEventType ) = 0; |
|
69 |
|
70 /** |
|
71 * Virtual destructor |
|
72 */ |
|
73 virtual ~MCAStoredGroupsObserver() {}; |
|
74 }; |
|
75 |
|
76 #endif // MCASTOREDGROUPSOBSERVER_H |
|
77 |
|
78 // End of File |