|
1 /* |
|
2 * Copyright (c) 2006-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: This class updates the status indicator container control |
|
15 * in status pane. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef C_AKNSTATUSPANEINDICATOROBSERVER_H |
|
21 #define C_AKNSTATUSPANEINDICATOROBSERVER_H |
|
22 |
|
23 #include <bacntf.h> |
|
24 #include <coecntrl.h> |
|
25 #include <AknControl.h> |
|
26 #include "aknstatuspanedata.h" |
|
27 #include "aknstatuspanedataobserver.h" |
|
28 |
|
29 class CBase; |
|
30 class CAknIndicatorContainer; |
|
31 class CAknStatusPaneDataSubscriber; |
|
32 |
|
33 /** |
|
34 * This internal Avkon class updates the status indicator container control in status pane. |
|
35 * |
|
36 * @since 3.2 |
|
37 * @lib Avkon |
|
38 */ |
|
39 NONSHARABLE_CLASS(CAknIndicatorDataObserver) : public CBase, |
|
40 public MAknStatusPaneDataObserver |
|
41 { |
|
42 |
|
43 public: |
|
44 |
|
45 /** |
|
46 * Standard constructor |
|
47 */ |
|
48 CAknIndicatorDataObserver(CAknIndicatorContainer* aIndicatorPane); |
|
49 |
|
50 /** |
|
51 * Destructor |
|
52 */ |
|
53 ~CAknIndicatorDataObserver(); |
|
54 |
|
55 /** |
|
56 * From MAknStatusPaneDataObserver |
|
57 */ |
|
58 void HandleUpdateL(const TAknStatusPaneStateData& aData); |
|
59 |
|
60 private: |
|
61 |
|
62 // Not owned. Pointer to Indicator pane. |
|
63 CAknIndicatorContainer* iIndicatorPane; |
|
64 |
|
65 // Not owned. Pointer to data subscriber. |
|
66 CAknStatusPaneDataSubscriber* iDataSubscriber; |
|
67 |
|
68 TBool iFirstUpdate; |
|
69 }; |
|
70 |
|
71 #endif // C_AKNSTATUSPANEINDICATOROBSERVER_H |