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 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __AUTOLOCKVIEW_H__ |
|
20 #define __AUTOLOCKVIEW_H__ |
|
21 |
|
22 #include <aknview.h> |
|
23 #include "AutolockContainer.h" |
|
24 |
|
25 class CAutolockView : public CAknView |
|
26 { |
|
27 public: |
|
28 /** |
|
29 * Symbian OS constructor. |
|
30 */ |
|
31 void ConstructL(); |
|
32 /** |
|
33 * Destructor. |
|
34 */ |
|
35 ~CAutolockView(); |
|
36 public: // from CAknView |
|
37 /** |
|
38 * Returns view id. |
|
39 * @return An unsigned integer (view id). |
|
40 */ |
|
41 TUid Id() const; |
|
42 /** |
|
43 * Handles commands. |
|
44 * @param aCommand Command to be handled. |
|
45 * @return void. |
|
46 */ |
|
47 void HandleCommandL(TInt aCommand); |
|
48 /** |
|
49 * Handles statuspane changes |
|
50 * @return void. |
|
51 */ |
|
52 void HandleStatusPaneSizeChange(); |
|
53 /** |
|
54 * Handles screen layout changes |
|
55 */ |
|
56 void ScreenDeviceChanged(); |
|
57 void MakeVisible(TBool aVisibility); |
|
58 void HandleCall(TInt aCommand, TRect &aRect ); |
|
59 private: // from CAknView |
|
60 /** |
|
61 * Activates the view. |
|
62 * @param aPrevViewId ID of previous view |
|
63 * @param aCustomMessageId customized message ID |
|
64 * @param aCustomMessage sutomized message payload |
|
65 */ |
|
66 void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,const TDesC8& aCustomMessage); |
|
67 /** |
|
68 * Deactivates view |
|
69 */ |
|
70 void DoDeactivate(); |
|
71 private: // data |
|
72 CAutolockContainer* iView; |
|
73 }; |
|
74 #endif |
|
75 // end of file |
|