|
1 /* |
|
2 * Copyright (c) 2002 - 2007 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: Test grids_api |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * Include files |
|
20 */ |
|
21 #include <aknviewappui.h> |
|
22 |
|
23 #include "testsdkgridsview.h" |
|
24 #include "testsdkgridscontainer.h" |
|
25 |
|
26 |
|
27 // ======== MEMBER FUNCTIONS ======== |
|
28 |
|
29 // --------------------------------------------------------------------------- |
|
30 // Symbian 2nd static Constructor |
|
31 // --------------------------------------------------------------------------- |
|
32 // |
|
33 CTestSDKGridsView* CTestSDKGridsView::NewL() |
|
34 { |
|
35 CTestSDKGridsView* self = new( ELeave ) CTestSDKGridsView(); |
|
36 CleanupStack::PushL( self ); |
|
37 self->ConstructL(); |
|
38 CleanupStack::Pop( self ); |
|
39 return self; |
|
40 } |
|
41 |
|
42 // --------------------------------------------------------------------------- |
|
43 // C++ default Constructor |
|
44 // --------------------------------------------------------------------------- |
|
45 // |
|
46 CTestSDKGridsView::CTestSDKGridsView() |
|
47 { |
|
48 } |
|
49 |
|
50 // --------------------------------------------------------------------------- |
|
51 // Symbian 2nd Constructor |
|
52 // --------------------------------------------------------------------------- |
|
53 // |
|
54 void CTestSDKGridsView::ConstructL() |
|
55 { |
|
56 |
|
57 iContainer = new( ELeave ) CTestSDKGridsContainer(); |
|
58 iContainer->SetMopParent( this ); |
|
59 iContainer->ConstructL( ClientRect() ); |
|
60 AppUi()->AddToStackL( *this, iContainer ); |
|
61 iContainer->MakeVisible( ETrue ); |
|
62 } |
|
63 |
|
64 // --------------------------------------------------------------------------- |
|
65 // Destructor |
|
66 // --------------------------------------------------------------------------- |
|
67 // |
|
68 CTestSDKGridsView::~CTestSDKGridsView() |
|
69 { |
|
70 if ( iContainer ) |
|
71 { |
|
72 AppUi()->RemoveFromStack( iContainer ); |
|
73 } |
|
74 delete iContainer; |
|
75 } |
|
76 |
|
77 // --------------------------------------------------------------------------- |
|
78 // Ctestsdkgridsview::Id |
|
79 // --------------------------------------------------------------------------- |
|
80 // |
|
81 TUid CTestSDKGridsView::Id() const |
|
82 { |
|
83 return KBCTestGridsViewId; |
|
84 } |
|
85 |
|
86 // --------------------------------------------------------------------------- |
|
87 // Ctestsdkgridsview::DoActivateL |
|
88 // --------------------------------------------------------------------------- |
|
89 // |
|
90 void CTestSDKGridsView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& ) |
|
91 { |
|
92 } |
|
93 |
|
94 // --------------------------------------------------------------------------- |
|
95 // Ctestsdkgridsview::DoDeactivate |
|
96 // --------------------------------------------------------------------------- |
|
97 // |
|
98 void CTestSDKGridsView::DoDeactivate() |
|
99 { |
|
100 } |
|
101 |
|
102 // --------------------------------------------------------------------------- |
|
103 // Ctestsdkgridsview::HandleCommandL |
|
104 // --------------------------------------------------------------------------- |
|
105 // |
|
106 void CTestSDKGridsView::HandleCommandL( TInt aCommand ) |
|
107 { |
|
108 switch ( aCommand ) |
|
109 { |
|
110 default: |
|
111 break; |
|
112 } |
|
113 } |
|
114 |
|
115 /* |
|
116 * End file |
|
117 */ |