|
1 /* |
|
2 * Copyright (c) 2008-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: Allows change the screen size |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __GLX_RESOLUTION_MANAGER__ |
|
21 #define __GLX_RESOLUTION_MANAGER__ |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 |
|
26 // Forward Declarations |
|
27 class CGlxResolutionUtility; |
|
28 |
|
29 /** |
|
30 * Class Description |
|
31 * Restricted Resolution Implementation |
|
32 * Dont use this class directly, |
|
33 * use CGlxResolutionUtility instead |
|
34 * @author Loughlin |
|
35 */ |
|
36 NONSHARABLE_CLASS (CGlxResolutionManager) : public CBase |
|
37 { |
|
38 public: |
|
39 /** |
|
40 * Symbian Constructor |
|
41 * @return a CGlxResolutionManager object. |
|
42 */ |
|
43 IMPORT_C static CGlxResolutionManager* NewL(); |
|
44 |
|
45 /** |
|
46 * Destructor |
|
47 */ |
|
48 IMPORT_C ~CGlxResolutionManager(); |
|
49 |
|
50 |
|
51 private: |
|
52 /** |
|
53 * C++ Constructor |
|
54 */ |
|
55 CGlxResolutionManager(); |
|
56 |
|
57 public: |
|
58 /** |
|
59 * Sets the screen size |
|
60 * @param The screens size |
|
61 */ |
|
62 IMPORT_C void SetScreenSize( TSize aScrnSz ); |
|
63 |
|
64 |
|
65 private: |
|
66 |
|
67 /// Onw: the client side resolution implementation |
|
68 CGlxResolutionUtility* iResUtility; |
|
69 }; |
|
70 |
|
71 #endif // __GLX_RESOLUTION_MANAGER__ |
|
72 |