|
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 queries_api |
|
15 * |
|
16 */ |
|
17 |
|
18 //INCLUDE |
|
19 #include "testsdkqueriescontainer.h" |
|
20 #include "testsdkqueries.hrh" |
|
21 #include "testsdkqueriesview.h" |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // CTestSDKQueriesView::CTestSDKQueriesView |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 CTestSDKQueriesView::CTestSDKQueriesView( ) |
|
28 { |
|
29 // No implementation required |
|
30 } |
|
31 |
|
32 // ----------------------------------------------------------------------------- |
|
33 // CTestSDKQueriesView::~CTestSDKQueriesView |
|
34 // ----------------------------------------------------------------------------- |
|
35 // |
|
36 CTestSDKQueriesView::~CTestSDKQueriesView( ) |
|
37 { |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // CTestSDKQueriesView::NewLC |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 CTestSDKQueriesView* CTestSDKQueriesView::NewLC( ) |
|
45 { |
|
46 CTestSDKQueriesView* self = new (ELeave)CTestSDKQueriesView(); |
|
47 CleanupStack::PushL( self ); |
|
48 self->ConstructL( ); |
|
49 return self; |
|
50 } |
|
51 |
|
52 // ----------------------------------------------------------------------------- |
|
53 // CTestSDKQueriesView::NewL |
|
54 // ----------------------------------------------------------------------------- |
|
55 // |
|
56 CTestSDKQueriesView* CTestSDKQueriesView::NewL( ) |
|
57 { |
|
58 CTestSDKQueriesView* self=CTestSDKQueriesView::NewLC( ); |
|
59 CleanupStack::Pop( ); // self; |
|
60 return self; |
|
61 } |
|
62 |
|
63 // ----------------------------------------------------------------------------- |
|
64 // CTestSDKQueriesView::ConstructL |
|
65 // ----------------------------------------------------------------------------- |
|
66 // |
|
67 void CTestSDKQueriesView::ConstructL( ) |
|
68 { |
|
69 BaseConstructL(); |
|
70 } |
|
71 |
|
72 // ----------------------------------------------------------------------------- |
|
73 // CTestSDKQueriesView::Container |
|
74 // ----------------------------------------------------------------------------- |
|
75 // |
|
76 CTestSDKQueriesContainer* CTestSDKQueriesView::Container() |
|
77 { |
|
78 return iContainer; |
|
79 } |
|
80 |
|
81 // ----------------------------------------------------------------------------- |
|
82 // CTestSDKQueriesView::Id |
|
83 // ----------------------------------------------------------------------------- |
|
84 // |
|
85 TUid CTestSDKQueriesView::Id() const |
|
86 { |
|
87 return TUid::Uid(ETestSDKQueryViewId); |
|
88 } |
|
89 |
|
90 // ----------------------------------------------------------------------------- |
|
91 // CTestSDKQueriesView::HandldCommandL |
|
92 // ----------------------------------------------------------------------------- |
|
93 // |
|
94 void CTestSDKQueriesView::HandldCommandL(TInt /*aCommand*/) |
|
95 { |
|
96 |
|
97 } |
|
98 |
|
99 // ----------------------------------------------------------------------------- |
|
100 // CTestSDKQueriesView::DoActivateL |
|
101 // ----------------------------------------------------------------------------- |
|
102 // |
|
103 void CTestSDKQueriesView::DoActivateL( |
|
104 const TVwsViewId& /*aPrevViewId*/, |
|
105 TUid /*aCustomMessageId*/, |
|
106 const TDesC8& /*aCustomMessage*/ ) |
|
107 { |
|
108 iContainer = CTestSDKQueriesContainer::NewL(ClientRect(), NULL); |
|
109 iContainer->SetMopParent( this ); |
|
110 } |
|
111 |
|
112 // ----------------------------------------------------------------------------- |
|
113 // CTestSDKQueriesView::DoDeactivate |
|
114 // ----------------------------------------------------------------------------- |
|
115 // |
|
116 void CTestSDKQueriesView::DoDeactivate() |
|
117 { |
|
118 if(iContainer) |
|
119 { |
|
120 delete iContainer; |
|
121 iContainer = NULL; |
|
122 } |
|
123 } |
|
124 |
|
125 //End file |
|
126 |
|
127 |