|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef VUICNOTIFICATIONOBSERVER_H |
|
19 #define VUICNOTIFICATIONOBSERVER_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> |
|
23 #include <e32property.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 |
|
27 // CLASS DECLARATION |
|
28 /** |
|
29 * |
|
30 * |
|
31 */ |
|
32 NONSHARABLE_CLASS( CNotificationObserver ) : public CActive |
|
33 { |
|
34 public: // Constructors and destructor |
|
35 |
|
36 /** |
|
37 * Symbian two-phased constructor. |
|
38 */ |
|
39 static CNotificationObserver* NewL(); |
|
40 |
|
41 /** |
|
42 * Destructor. |
|
43 */ |
|
44 virtual ~CNotificationObserver(); |
|
45 |
|
46 public: // From base classes |
|
47 |
|
48 /** |
|
49 * From CActive |
|
50 * @see CActive for more information |
|
51 */ |
|
52 void DoCancel(); |
|
53 |
|
54 /** |
|
55 * From CActive |
|
56 * @see CActive for more information |
|
57 */ |
|
58 void RunL(); |
|
59 |
|
60 protected: // New functions |
|
61 |
|
62 /** |
|
63 * C++ default constructor. |
|
64 */ |
|
65 CNotificationObserver(); |
|
66 |
|
67 /** |
|
68 * Symbian OS 2nd phase constructor. |
|
69 */ |
|
70 virtual void ConstructL(); |
|
71 |
|
72 private: // Data |
|
73 |
|
74 // Fold event |
|
75 RProperty iNotificationState; |
|
76 |
|
77 // Current fold status |
|
78 TInt iNotificationStatus; |
|
79 }; |
|
80 |
|
81 #endif // VUICNOTIFICATIONOBSERVER_H |
|
82 |
|
83 // End of File |