|
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 api in eikbgfty.h |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // [INCLUDE FILES] |
|
21 #include <e32svr.h> |
|
22 #include <stifparser.h> |
|
23 #include <stiftestinterface.h> |
|
24 #include <eikcolib.h> |
|
25 |
|
26 #include "testsdkbuttons.h" |
|
27 |
|
28 |
|
29 // ============================ MEMBER FUNCTIONS =============================== |
|
30 |
|
31 // ----------------------------------------------------------------------------- |
|
32 // CTestSDKButtons::TestCEikBtGroupFactoryCbaTCreationDataL |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 TInt CTestSDKButtons::TestCEikBtGroupFactoryCbaTCreationDataL( CStifItemParser& /*aItem*/ ) |
|
36 { |
|
37 EikButtonGroupFactory::TCreationData* data = new ( ELeave ) |
|
38 EikButtonGroupFactory::TCreationData |
|
39 ( |
|
40 CEikButtonGroupContainer::ECba, |
|
41 iContainer, |
|
42 0, |
|
43 &( CCoeEnv::Static()->RootWin() ), |
|
44 0, |
|
45 CEikButtonGroupContainer::EHorizontal ); |
|
46 CleanupStack::PushL( data ); |
|
47 STIF_ASSERT_NOT_NULL( data ); |
|
48 CleanupStack::PopAndDestroy( data ); |
|
49 return KErrNone; |
|
50 } |
|
51 |
|
52 // ----------------------------------------------------------------------------- |
|
53 // CTestSDKButtons::TestCEikBtGroupFactoryArrayAddAndRemoveFuncL |
|
54 // ----------------------------------------------------------------------------- |
|
55 // |
|
56 TInt CTestSDKButtons::TestCEikBtGroupFactoryArrayAddAndRemoveFuncL( CStifItemParser& /*aItem*/ ) |
|
57 { |
|
58 CEikButtonGroupFactoryArray::AppendFactoryFunctionL( CEikCoCtlLibrary::ButtonGroupFactory() ); |
|
59 CEikButtonGroupFactoryArray::RemoveFactoryFunction( CEikCoCtlLibrary::ButtonGroupFactory() ); |
|
60 return KErrNone; |
|
61 } |
|
62 |
|
63 // End of file |