equal
deleted
inserted
replaced
|
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 the License "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Test AknsDataContext.h |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <aknsdatacontext.h> |
|
20 #include <aknsutils.h> |
|
21 |
|
22 #include "testsdkskins.h" |
|
23 |
|
24 // ============================ MEMBER FUNCTIONS =============================== |
|
25 //------------------------------------------------------------------------------ |
|
26 // CTestSDKSkins::TestDCSupplyMopObjectL |
|
27 // ----------------------------------------------------------------------------- |
|
28 TInt CTestSDKSkins::TestDCSupplyMopObjectL( CStifItemParser& /*aItem*/ ) |
|
29 { |
|
30 MAknsDataContext* context = AknsUtils::CreateDataContextForContainerL(); |
|
31 STIF_ASSERT_NOT_NULL( context ); |
|
32 |
|
33 TTypeUid::Ptr ptr = TTypeUid::Null(); |
|
34 ptr = context->SupplyMopObject( MAknsDataContext::ETypeId, context ); |
|
35 MAknsDataContext* point = static_cast<MAknsDataContext*> ( ptr.Pointer() ); |
|
36 STIF_ASSERT_NOT_NULL( point ); |
|
37 |
|
38 delete context; |
|
39 context = NULL; |
|
40 |
|
41 return KErrNone; |
|
42 |
|
43 } |