|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // A converter module used for testing the version 2 CNF format |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent - Internal Symbian test code |
|
21 */ |
|
22 |
|
23 #include <conarc.h> |
|
24 |
|
25 #include <ecom/ecom.h> |
|
26 #include <ecom/implementationproxy.h> |
|
27 #include "T_ConV2.hrh" |
|
28 |
|
29 //const TUid KUidTConV2 = {0x10004c42}; |
|
30 const TUid KUidTConV2={KTConV2ImplementationUid}; |
|
31 |
|
32 #include <e32std.h> |
|
33 #include <e32uid.h> |
|
34 |
|
35 // CTestConverterV2 |
|
36 class CTestConverterV2 : public CConverterBase2 |
|
37 { |
|
38 public: |
|
39 static CConverterBase2* NewL(); |
|
40 ~CTestConverterV2(); |
|
41 void Release(); |
|
42 |
|
43 CTestConverterV2(); |
|
44 // from CConverterBase2 |
|
45 public: |
|
46 void ConvertL(const TFileName& aSourceFile, const TFileName& aTargetFile, MConverterUiObserver* aObserver=NULL); |
|
47 void ConvertObjectL(RReadStream& aReadStream, RWriteStream& aWriteStream, MConverterUiObserver* aObserver=NULL); |
|
48 TUid Uid(); |
|
49 }; |
|
50 |
|
51 |
|
52 |
|
53 CConverterBase2* CTestConverterV2::NewL() |
|
54 { |
|
55 CConverterBase2* ttestconV2=new (ELeave) CTestConverterV2(); |
|
56 return ttestconV2; |
|
57 } |
|
58 |
|
59 const TImplementationProxy ImplementationTable[] = |
|
60 { |
|
61 IMPLEMENTATION_PROXY_ENTRY(KTConV2ImplementationUid,CTestConverterV2::NewL) |
|
62 }; |
|
63 |
|
64 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) |
|
65 { |
|
66 aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); |
|
67 return ImplementationTable; |
|
68 } |
|
69 |
|
70 // |
|
71 // class CTestConverterV2 |
|
72 // |
|
73 void CTestConverterV2::ConvertL(const TFileName& , const TFileName& , MConverterUiObserver* ) |
|
74 { |
|
75 User::InfoPrint(_L("CTestConverterV2 file conversion")); |
|
76 } |
|
77 |
|
78 void CTestConverterV2::ConvertObjectL(RReadStream& , RWriteStream& , MConverterUiObserver* ) |
|
79 { |
|
80 User::InfoPrint(_L("CTestConverterV2 byte stream conversion")); |
|
81 } |
|
82 |
|
83 TUid CTestConverterV2::Uid() |
|
84 { |
|
85 return KUidTConV2; |
|
86 } |
|
87 |
|
88 CTestConverterV2::CTestConverterV2() |
|
89 { |
|
90 } |
|
91 |
|
92 CTestConverterV2::~CTestConverterV2() |
|
93 {} |
|
94 |
|
95 // Entry point |
|
96 GLDEF_C TInt E32Dll( |
|
97 ) |
|
98 { |
|
99 return KErrNone; |
|
100 } |
|
101 |