|
1 /* |
|
2 * Copyright (c) 2003 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: Implementation of customization components |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <coemain.h> |
|
20 |
|
21 #include "UISettingsSrvAppView.h" |
|
22 |
|
23 CUISettingsSrvAppView* CUISettingsSrvAppView::NewL(const TRect& aRect) |
|
24 { |
|
25 CUISettingsSrvAppView* self = CUISettingsSrvAppView::NewLC(aRect); |
|
26 CleanupStack::Pop(self); |
|
27 return self; |
|
28 } |
|
29 |
|
30 CUISettingsSrvAppView* CUISettingsSrvAppView::NewLC(const TRect& aRect) |
|
31 { |
|
32 CUISettingsSrvAppView* self = new (ELeave) CUISettingsSrvAppView; |
|
33 CleanupStack::PushL(self); |
|
34 self->ConstructL(aRect); |
|
35 return self; |
|
36 } |
|
37 |
|
38 CUISettingsSrvAppView::CUISettingsSrvAppView() |
|
39 { |
|
40 // No implementation required |
|
41 } |
|
42 |
|
43 CUISettingsSrvAppView::~CUISettingsSrvAppView() |
|
44 { |
|
45 // No implementation required |
|
46 } |
|
47 |
|
48 void CUISettingsSrvAppView::ConstructL(const TRect& aRect) |
|
49 { |
|
50 // Create a window for this application view |
|
51 CreateWindowL(); |
|
52 |
|
53 // Set the windows size |
|
54 SetRect(aRect); |
|
55 |
|
56 // Activate the window, which makes it ready to be drawn |
|
57 ActivateL(); |
|
58 } |
|
59 |
|
60 // Draw this application's view to the screen |
|
61 void CUISettingsSrvAppView::Draw(const TRect& /*aRect*/) const |
|
62 { |
|
63 // Get the standard graphics context |
|
64 CWindowGc& gc = SystemGc(); |
|
65 |
|
66 // Gets the control's extent |
|
67 TRect rect = Rect(); |
|
68 |
|
69 // Clears the screen |
|
70 gc.Clear(rect); |
|
71 } |
|
72 |
|
73 |