|
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 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent - Internal Symbian test code |
|
19 */ |
|
20 |
|
21 #include <conarc.h> |
|
22 #include <ecom/ecom.h> |
|
23 #include <ecom/implementationproxy.h> |
|
24 #include "TTestEcomConverter.hrh" |
|
25 |
|
26 const TUid KUidTTestEcomConverter={KTestEcomConvImplementationUid}; |
|
27 |
|
28 #include <e32std.h> |
|
29 #include <e32uid.h> |
|
30 |
|
31 class CTestEcomConverter : public CConverterBase2 |
|
32 { |
|
33 public: // from CConverterBase2 |
|
34 static CConverterBase2* NewL(); |
|
35 CTestEcomConverter(); |
|
36 ~CTestEcomConverter(); |
|
37 void Release(); |
|
38 void ConvertL(const TFileName& aSourceFile, const TFileName& aTargetFile, MConverterUiObserver* aObserver=NULL); |
|
39 void ConvertObjectL(RReadStream& aReadStream, RWriteStream& aWriteStream, MConverterUiObserver* aObserver=NULL); |
|
40 void ConvertAL(const TFileName& , const TFileName&, MConverterUiObserver* ) {} |
|
41 void ConvertObjectAL(RReadStream& , RWriteStream&, MConverterUiObserver* ) {} |
|
42 TBool DoConvertL() { return EFalse; } |
|
43 TUid Uid(); |
|
44 }; |
|
45 |
|
46 |
|
47 CConverterBase2* CTestEcomConverter::NewL() |
|
48 { |
|
49 CConverterBase2* testEcomConverter=new (ELeave) CTestEcomConverter(); |
|
50 return testEcomConverter; |
|
51 } |
|
52 |
|
53 const TImplementationProxy ImplementationTable[] = |
|
54 { |
|
55 IMPLEMENTATION_PROXY_ENTRY(KTestEcomConvImplementationUid,CTestEcomConverter::NewL) |
|
56 }; |
|
57 |
|
58 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) |
|
59 { |
|
60 aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); |
|
61 return ImplementationTable; |
|
62 } |
|
63 |
|
64 // |
|
65 // class CTestEcomConverter |
|
66 // |
|
67 |
|
68 void CTestEcomConverter::ConvertL(const TFileName& , const TFileName& , MConverterUiObserver* ) |
|
69 { |
|
70 User::InfoPrint(_L("TTESTECOMCONVERTER file conversion")); |
|
71 } |
|
72 |
|
73 void CTestEcomConverter::ConvertObjectL(RReadStream& , RWriteStream& , MConverterUiObserver* ) |
|
74 { |
|
75 User::InfoPrint(_L("TTESTECOMCONVERTER byte stream conversion")); |
|
76 } |
|
77 |
|
78 TUid CTestEcomConverter::Uid() |
|
79 { |
|
80 return KUidTTestEcomConverter; |
|
81 } |
|
82 |
|
83 CTestEcomConverter::CTestEcomConverter() |
|
84 {} |
|
85 |
|
86 CTestEcomConverter::~CTestEcomConverter() |
|
87 { |
|
88 } |
|
89 |
|
90 GLDEF_C TInt E32Dll( |
|
91 ) |
|
92 { |
|
93 return(KErrNone); |
|
94 } |
|
95 |
|
96 |