55
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 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 file contains the header file of the CIAUpdateBGNotifyhandler
|
|
15 |
* class
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef __IAUPDATEBGNOTIFYHANDLER_H__
|
|
21 |
#define __IAUPDATEBGNOTIFYHHANDLER_H__
|
|
22 |
|
|
23 |
// INCLUDES
|
|
24 |
#include <e32base.h>
|
|
25 |
#include <e32property.h>
|
|
26 |
|
|
27 |
// FORWARD DECLARATIONS
|
|
28 |
|
|
29 |
// CLASS DECLARATIONS
|
|
30 |
|
|
31 |
/**
|
|
32 |
* Observer
|
|
33 |
*/
|
|
34 |
class MIAUpdateBGNotifyObserver
|
|
35 |
{
|
|
36 |
public: // Observer API
|
|
37 |
/**
|
|
38 |
* Called by CIAUpdateBGNotifyHandler when indicator is to
|
|
39 |
* be removed
|
|
40 |
*/
|
|
41 |
virtual void HandleIndicatorRemoveL() = 0;
|
|
42 |
};
|
|
43 |
/**
|
|
44 |
*
|
|
45 |
*/
|
|
46 |
|
|
47 |
class CIAUpdateBGNotifyHandler : public CActive
|
|
48 |
{
|
|
49 |
public:
|
|
50 |
|
|
51 |
/**
|
|
52 |
* Construct a CIAUpdateBGNotifyHandler using two phase construction,
|
|
53 |
* and return a pointer to the created object
|
|
54 |
* @return A pointer to the created instance of CIAUpdateBGNotifyHandler
|
|
55 |
*/
|
|
56 |
static CIAUpdateBGNotifyHandler* NewL();
|
|
57 |
|
|
58 |
/**
|
|
59 |
* Construct a CIAUpdateBGNotifyHandler using two phase construction,
|
|
60 |
* and return a pointer to the created object
|
|
61 |
* @return A pointer to the created instance of CIAUpdateBGNotifyHandler
|
|
62 |
*/
|
|
63 |
static CIAUpdateBGNotifyHandler* NewLC();
|
|
64 |
|
|
65 |
/**
|
|
66 |
* Destructor
|
|
67 |
*/
|
|
68 |
~CIAUpdateBGNotifyHandler();
|
|
69 |
|
|
70 |
public: // new functions
|
|
71 |
|
|
72 |
/**
|
|
73 |
*
|
|
74 |
*/
|
|
75 |
void StartListeningL( MIAUpdateBGNotifyObserver* iObserver );
|
|
76 |
|
|
77 |
private: // CActive
|
|
78 |
|
|
79 |
/**
|
|
80 |
* @see CActive::DoCancel
|
|
81 |
*/
|
|
82 |
void DoCancel();
|
|
83 |
|
|
84 |
/**
|
|
85 |
* @see CActive::RunL
|
|
86 |
*/
|
|
87 |
void RunL();
|
|
88 |
|
|
89 |
/**
|
|
90 |
* @see CActive::RunError
|
|
91 |
*/
|
|
92 |
TInt RunError( TInt aError );
|
|
93 |
|
|
94 |
private:
|
|
95 |
|
|
96 |
/**
|
|
97 |
* C++ constructor
|
|
98 |
*/
|
|
99 |
CIAUpdateBGNotifyHandler();
|
|
100 |
|
|
101 |
/**
|
|
102 |
* Perform the second phase construction of a CIAUpdateBGNotifyHandler object
|
|
103 |
*/
|
|
104 |
void ConstructL();
|
|
105 |
|
|
106 |
private: //data
|
|
107 |
|
|
108 |
RProperty iProperty;
|
|
109 |
|
|
110 |
MIAUpdateBGNotifyObserver* iObserver;
|
|
111 |
|
|
112 |
};
|
|
113 |
|
|
114 |
|
|
115 |
#endif // __IAUPDATEBGNOTIFYHANDLER_H__
|