1 /* |
|
2 * Copyright (c) 2005-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: Implements a (minimal) GS Plugin |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "gs_das_emptycontainer.h" |
|
20 |
|
21 CCEmptyContainer::CCEmptyContainer() |
|
22 { |
|
23 // No implementation required |
|
24 } |
|
25 |
|
26 CCEmptyContainer::~CCEmptyContainer() |
|
27 { |
|
28 } |
|
29 |
|
30 CCEmptyContainer* CCEmptyContainer::NewLC ( const TRect& aRect, |
|
31 const CCoeControl* aParent ) |
|
32 { |
|
33 CCEmptyContainer* self = new (ELeave) CCEmptyContainer(); |
|
34 CleanupStack::PushL ( self ); |
|
35 self->ConstructL( aRect, aParent ); |
|
36 return self; |
|
37 } |
|
38 |
|
39 CCEmptyContainer* CCEmptyContainer::NewL ( const TRect& aRect, |
|
40 const CCoeControl* aParent ) |
|
41 { |
|
42 CCEmptyContainer* self = CCEmptyContainer::NewLC ( aRect, aParent ); |
|
43 CleanupStack::Pop(); // self; |
|
44 return self; |
|
45 } |
|
46 |
|
47 void CCEmptyContainer::ConstructL( const TRect& aRect,const CCoeControl* aParent ) |
|
48 { |
|
49 if ( aParent == NULL ) |
|
50 { |
|
51 CreateWindowL(); |
|
52 } |
|
53 else |
|
54 { |
|
55 SetContainerWindowL( *aParent ); |
|
56 } |
|
57 SetRect( aRect ); |
|
58 ActivateL(); |
|
59 } |
|
60 |
|
61 TInt CCEmptyContainer::CountComponentControls() const |
|
62 { |
|
63 return 0; |
|
64 } |
|
65 |
|
66 CCoeControl* CCEmptyContainer::ComponentControl ( TInt aIndex ) const |
|
67 { |
|
68 switch( aIndex ) |
|
69 { |
|
70 |
|
71 } |
|
72 return NULL; |
|
73 } |
|