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