1 /* |
|
2 * Copyright (c) 2008 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: Contact data container observer interface |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MVIMPSTSTORAGECONTACTSOBSERVER_H |
|
21 #define MVIMPSTSTORAGECONTACTSOBSERVER_H |
|
22 |
|
23 #include <e32std.h> |
|
24 #include "tvimpstenums.h" |
|
25 |
|
26 class MVIMPSTStorageContact; |
|
27 class MVIMPSTStorageContactList; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * Interface for contact data container observer |
|
33 * |
|
34 * @lib vimpststorage.dll |
|
35 * @since 5.0 |
|
36 */ |
|
37 class MVIMPSTStorageContactsObserver |
|
38 { |
|
39 public: // New functions |
|
40 |
|
41 /** |
|
42 * Called when a contact or list is about to change, or has been changed. |
|
43 * @param aList List that is changed. Can be NULL if contact is changed. |
|
44 * @param aContact Contact that is changed. Can be NULL if list is changed |
|
45 * @param aEventType The type of event: EStorageEventPreChange before |
|
46 * the change (contact still has the old information), or |
|
47 * EStorageEventPostChange after the change took place |
|
48 * (contact has new information) |
|
49 * @param aUserIdChanged, ETrue if userid has been changed else EFalse. |
|
50 */ |
|
51 virtual void HandleStorageChangeL( TVIMPSTEnums::TVIMPSTStorgaeEventType aEventType, |
|
52 MVIMPSTStorageContactList* aList, |
|
53 MVIMPSTStorageContact* aContact , |
|
54 TInt aContactIndex ) = 0; |
|
55 |
|
56 /** |
|
57 * Virtual destructor |
|
58 */ |
|
59 virtual ~MVIMPSTStorageContactsObserver() {}; |
|
60 }; |
|
61 |
|
62 #endif // MVIMPSTSTORAGECONTACTSOBSERVER_H |
|
63 |
|
64 // End of File |
|