|
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 cdl_api |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_TESTDOMCDLENGINEOBSERVER_H |
|
20 #define C_TESTDOMCDLENGINEOBSERVER_H |
|
21 |
|
22 class MCdlChangeObserver; |
|
23 |
|
24 #include <cdlengine.h> |
|
25 #include <cdlexplorer.h> |
|
26 #include <cdluserpackageexplorer.h> |
|
27 |
|
28 /** |
|
29 * inherited from MCdlChangeObserver, for TestCdlEngineL() function. |
|
30 */ |
|
31 class CTestDomCdlEngineObserver : public CBase, public MCdlChangeObserver |
|
32 { |
|
33 public: |
|
34 /** |
|
35 * Constructor |
|
36 */ |
|
37 CTestDomCdlEngineObserver(); |
|
38 |
|
39 /** |
|
40 * Destructor |
|
41 */ |
|
42 ~CTestDomCdlEngineObserver(); |
|
43 }; |
|
44 |
|
45 /** |
|
46 * for test pure virtual class CCdlInstanceExplorerBase. |
|
47 */ |
|
48 |
|
49 class CDOMTestDomCdlInst : public CCdlInstanceExplorerBase |
|
50 { |
|
51 public: |
|
52 |
|
53 /** |
|
54 * Constructor |
|
55 */ |
|
56 CDOMTestDomCdlInst(); |
|
57 |
|
58 /** |
|
59 * Destructor |
|
60 */ |
|
61 ~CDOMTestDomCdlInst(); |
|
62 |
|
63 /** |
|
64 * implement pure virtual function. |
|
65 */ |
|
66 CCdlInstance* CreateInstanceLC(const TCdlRef& aRef, |
|
67 const CCdlInstance* aSubLayer); |
|
68 |
|
69 /** |
|
70 * implement pure virtual function. |
|
71 */ |
|
72 TCdlInstanceComparison CallCompare(const CCdlInstance& aFirst, |
|
73 const CCdlInstance& aSecond)const; |
|
74 |
|
75 /** |
|
76 * implement pure virtual function. |
|
77 */ |
|
78 TBool CallIsValid(const CCdlInstance& aInstance)const; |
|
79 |
|
80 /** |
|
81 * call CCdlInstanceExplorerBase::FindLC(). |
|
82 */ |
|
83 void DoFindLC(); |
|
84 |
|
85 }; |
|
86 |
|
87 #endif//C_TESTDOMCDLENGINEOBSERVER_H |
|
88 |
|
89 //End Of File |
|
90 |
|
91 |