72
|
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: CSysApCenRepSilentModeObserver class definition.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef SYSAPCENREPSILENTMODEOBSERVER_H
|
|
20 |
#define SYSAPCENREPSILENTMODEOBSERVER_H
|
|
21 |
|
|
22 |
// INCLUDES
|
|
23 |
#include <e32base.h>
|
|
24 |
#include <centralrepository.h>
|
|
25 |
#include "SysAp.hrh"
|
|
26 |
#include <cenrepnotifyhandler.h>
|
|
27 |
#include <ProfileEngineDomainCRKeys.h>
|
|
28 |
|
|
29 |
// CLASS DECLARATION
|
|
30 |
|
|
31 |
|
|
32 |
class CSysApCenRepSilentModeObserver : public CBase, public MCenRepNotifyHandlerCallback
|
|
33 |
{
|
|
34 |
public: // Constructors and destructor
|
|
35 |
/**
|
|
36 |
* Default constructor
|
|
37 |
*/
|
|
38 |
static CSysApCenRepSilentModeObserver* NewL( );
|
|
39 |
|
|
40 |
/**
|
|
41 |
* Destructor.
|
|
42 |
*/
|
|
43 |
~CSysApCenRepSilentModeObserver();
|
|
44 |
|
|
45 |
// From MCenRepNotifyHandlerCallback
|
|
46 |
void HandleNotifyInt( TUint32 aId, TInt aNewValue );
|
|
47 |
void HandleNotifyError( TUint32 aId, TInt error, CCenRepNotifyHandler* aHandler );
|
|
48 |
|
|
49 |
private:
|
|
50 |
|
|
51 |
/**
|
|
52 |
* @param None
|
|
53 |
* @return void
|
|
54 |
*/
|
|
55 |
void ConstructL( );
|
|
56 |
|
|
57 |
|
|
58 |
/**
|
|
59 |
* C++ default constructor.
|
|
60 |
* @param None
|
|
61 |
* @return void
|
|
62 |
*/
|
|
63 |
CSysApCenRepSilentModeObserver();
|
|
64 |
|
|
65 |
|
|
66 |
//To activate and Deactivate the indicator
|
|
67 |
void SilenceIndicatorL(TInt avalue);
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
private:
|
|
73 |
|
|
74 |
CRepository* iSession;
|
|
75 |
//To listen to the silentmodekey
|
|
76 |
CCenRepNotifyHandler* iSilentModeHandler;
|
|
77 |
};
|
|
78 |
|
|
79 |
#endif // SYSAPCENREPSILENTMODEOBSERVER_H
|
|
80 |
|
|
81 |
// End of File
|