57
|
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 ENVIRONMENTCHANGENOTIFIER_H_
|
|
19 |
#define ENVIRONMENTCHANGENOTIFIER_H_
|
|
20 |
|
|
21 |
// System includes
|
|
22 |
#include <e32base.h>
|
|
23 |
|
|
24 |
// Forward declaration
|
|
25 |
class CEnvironmentChangeNotifier;
|
|
26 |
class TimezoneClient;
|
|
27 |
|
|
28 |
const int KInitialEvent = (
|
|
29 |
EChangesLocale |
|
|
30 |
EChangesMidnightCrossover |
|
|
31 |
EChangesThreadDeath |
|
|
32 |
EChangesPowerStatus |
|
|
33 |
EChangesSystemTime |
|
|
34 |
EChangesFreeMemory |
|
|
35 |
EChangesOutOfMemory);
|
|
36 |
|
|
37 |
class EnvironmentChangeNotifier : public CBase
|
|
38 |
{
|
|
39 |
public:
|
|
40 |
EnvironmentChangeNotifier(TimezoneClient *client);
|
|
41 |
~EnvironmentChangeNotifier();
|
|
42 |
|
|
43 |
public:
|
|
44 |
static int environmentCallback(TAny* obj);
|
|
45 |
|
|
46 |
private:
|
|
47 |
void notifyEnvChange();
|
|
48 |
|
|
49 |
private:
|
|
50 |
CEnvironmentChangeNotifier *mNotifier;
|
|
51 |
TimezoneClient *mTzClient;
|
|
52 |
};
|
|
53 |
|
|
54 |
#endif /* ENVIRONMENTCHANGENOTIFIER_H_ */
|
|
55 |
|
|
56 |
// End of file -- Do not remove this.
|