equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002 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 * Declares UI class for application. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef AUTOLOCKGRIPOBSERVER_H_ |
|
20 #define AUTOLOCKGRIPOBSERVER_H_ |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <e32property.h> |
|
24 #include <w32std.h> |
|
25 #include <hwrmdomainpskeys.h> |
|
26 |
|
27 //CONSTANTS |
|
28 const TInt KCancelKeyCode( 165 ); |
|
29 |
|
30 class MAutolockGripStatusObserver |
|
31 { |
|
32 public: |
|
33 /** |
|
34 * Implement this method to be notified when grip status |
|
35 * changes. |
|
36 */ |
|
37 IMPORT_C virtual TInt DeviceLockQueryStatus() = 0; |
|
38 IMPORT_C virtual TInt DeviceLockStatus() = 0; |
|
39 }; |
|
40 |
|
41 class CAutolockGripStatusObserver : public CActive |
|
42 { |
|
43 public: |
|
44 IMPORT_C static CAutolockGripStatusObserver* NewL( MAutolockGripStatusObserver* aObserver, RWsSession& aSession ); |
|
45 |
|
46 void RunL(); |
|
47 void DoCancel(); |
|
48 ~CAutolockGripStatusObserver(); |
|
49 |
|
50 private: |
|
51 void ConstructL( MAutolockGripStatusObserver* aObserver ); |
|
52 CAutolockGripStatusObserver( RWsSession& aSession ); |
|
53 void GripStatusChangedL( TInt aGripStatus ); |
|
54 |
|
55 private: |
|
56 MAutolockGripStatusObserver* iObserver; |
|
57 RProperty iGripStatus; |
|
58 RWsSession& iSession; |
|
59 }; |
|
60 |
|
61 |
|
62 #endif |