|
1 /* |
|
2 * Copyright (c) 2006 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: Global interface for the UI to get notifications from the engine, |
|
15 * storage etc, when theres a change in contact, list, invite, |
|
16 * settings, conversation, group etc |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 #ifndef MCAGLOBALNOTIFICATIONOBSERVERMANAGERPC_H |
|
24 #define MCAGLOBALNOTIFICATIONOBSERVERMANAGERPC_H |
|
25 |
|
26 #include <e32std.h> |
|
27 |
|
28 class MCAUiGlobalNotificationObserverPC; |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * Interface for observer |
|
33 * |
|
34 * @lib wvuiprocessng.dll |
|
35 * @since 3.2 |
|
36 */ |
|
37 |
|
38 class MCAGlobalNotificationObserverPC |
|
39 { |
|
40 public://new functions, called from ccasyncchecker |
|
41 |
|
42 /** |
|
43 * Has the mcacontactlists sync been done |
|
44 */ |
|
45 virtual TBool IsContactListsSyncDoneL() = 0; |
|
46 |
|
47 /* |
|
48 * Is the mcacontactlist interface valid. If not logged in, it is invalid |
|
49 */ |
|
50 virtual TBool IsValidListInterfaceL() = 0; |
|
51 |
|
52 /* |
|
53 * Is the storage synchronised |
|
54 */ |
|
55 virtual TBool StoredContactsIsAllSynchronised( TBool& aFailed ) = 0; |
|
56 |
|
57 /* |
|
58 * Is the mcastoredcontacts interface valid.If not logged in, it is invalid |
|
59 */ |
|
60 virtual TBool IsValidStoredContactsInterface() = 0; |
|
61 |
|
62 public: |
|
63 /** |
|
64 * Add the UI class as an observer for call backs |
|
65 * aGlobalObserver: reference to the UI class which implements |
|
66 * the MCAGlobalNotificationObserverPC interface |
|
67 */ |
|
68 virtual void AddGlobalObserverL( MCAUiGlobalNotificationObserverPC* aGlobalObserver ) = 0; |
|
69 |
|
70 /** |
|
71 * Add the UI class as an observer for call backs |
|
72 * aGlobalObserver: reference to the UI class which implements |
|
73 * the MCAGlobalNotificationObserverPC interface |
|
74 */ |
|
75 virtual void RemoveGlobalObserver( MCAUiGlobalNotificationObserverPC* aGlobalObserver ) = 0; |
|
76 |
|
77 /** |
|
78 * Virtual destructor |
|
79 */ |
|
80 virtual ~MCAGlobalNotificationObserverPC() {}; |
|
81 }; |
|
82 |
|
83 #endif //MCAGLOBALNOTIFICATIONOBSERVERPC_H |