|
1 /* |
|
2 * Copyright (c) 2003 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 MCAMAINVIEWOBSERVERPC_H |
|
21 #define MCAMAINVIEWOBSERVERPC_H |
|
22 |
|
23 #include <e32std.h> |
|
24 //#include "TStorageManagerGlobals.h" |
|
25 |
|
26 #include "TEnumsPC.h" |
|
27 |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * Interface for observer |
|
33 * |
|
34 * @lib wvuiprocess.dll |
|
35 * @since 3.0 |
|
36 */ |
|
37 |
|
38 class MCAMainViewObserverPC |
|
39 { |
|
40 public: // New functions |
|
41 |
|
42 /** |
|
43 * Called when a contact is deleted. |
|
44 * @param aId The ID of the deleted contact |
|
45 * @param aFromPEC, ETrue, if event is coming from PEC |
|
46 */ |
|
47 virtual void HandleDelete( const TDesC& aContactId , |
|
48 TEnumsPC::TItem type ) = 0; |
|
49 |
|
50 /** |
|
51 * Called when a contact is added. |
|
52 * @param aList. List for contact that was added. |
|
53 * @param aContact The contact which was added |
|
54 * @param aFromPEC, ETrue, if event is coming from PEC |
|
55 */ |
|
56 virtual void HandleAddition( TEnumsPC::TItem type, |
|
57 TInt aIndex ) = 0; |
|
58 |
|
59 /** |
|
60 * Called when a contact or list is about to change, or has been changed. |
|
61 * @param aList List that is changed. Can be NULL if contact is changed. |
|
62 * @param aContact Contact that is changed. Can be NULL if list is changed |
|
63 * @param aEventType The type of event: EStorageEventPreChange before |
|
64 * the change (contact still has the old information), or |
|
65 * EStorageEventPostChange after the change took place |
|
66 * (contact has new information) |
|
67 */ |
|
68 // the itemtype is type of list item at the hand.. |
|
69 // the changetype is event that has occured due to call from engine.... |
|
70 |
|
71 virtual void HandleChange( TEnumsPC::TItem type, TInt aIndex, |
|
72 TEnumsPC::TChange changeType ) = 0; |
|
73 |
|
74 virtual void HandleWatcherEvent( const TDesC & aString , |
|
75 TEnumsPC::TOnlineStatus aOnlineStatus ) = 0; |
|
76 |
|
77 /** |
|
78 * Gets called when invite event occurs. |
|
79 * @param aEvent Type of event. |
|
80 * @param aUserId userid of the sender |
|
81 * @param aMessage invite message |
|
82 */ |
|
83 virtual void HandleInvitationEventL( TEnumsPC::TInviteType aInviteType, |
|
84 const TDesC& aUserId, |
|
85 const TDesC& aMessage ) = 0; |
|
86 |
|
87 /** |
|
88 * Gets called when we received response to our invitation |
|
89 * @param aAcceptance Accepted or rejected |
|
90 * @param aUserId User Id of the response sender |
|
91 * @param aGroupName group name |
|
92 * @param aResponse response text |
|
93 */ |
|
94 virtual void HandleInvitationResponse( TBool aAcceptance, |
|
95 const TDesC& aUserId, |
|
96 const TDesC& aGroupName, |
|
97 const TDesC& aResponse ) = 0; |
|
98 |
|
99 /** |
|
100 * Handles setting changes. |
|
101 * @param aChangedSettingEnum specifies the changed setting. |
|
102 */ |
|
103 virtual void HandleSettingsChangeL( TInt aChangedSettingEnum ) = 0; |
|
104 /** |
|
105 * Virtual destructor |
|
106 */ |
|
107 virtual ~MCAMainViewObserverPC() {}; |
|
108 }; |
|
109 |
|
110 #endif // MCAMAINVIEWOBSERVERPC_H |
|
111 |
|
112 // End of File |