author | msekine <m.sekine@kthree.co.jp> |
Wed, 31 Mar 2010 00:04:55 +0900 | |
branch | RCL_3 |
changeset 12 | 613a5ff70823 |
child 15 | 2275db202402 |
permissions | -rw-r--r-- |
12
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
1 |
/* |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
2 |
* Copyright (c) 2010 Kanrikogaku Kenkyusho, Ltd. |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
3 |
* All rights reserved. |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
5 |
* under the terms of the License "Eclipse Public License v1.0" |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
8 |
* |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
10 |
* Kanrikogaku Kenkyusho, Ltd. - Initial contribution |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
11 |
* |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
12 |
* Contributors: |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
13 |
* |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
14 |
* Description: |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
15 |
* {Description of the file} |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
16 |
* |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
17 |
*/ |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
18 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
19 |
// Protection against nested includes |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
20 |
#ifndef _DIRECTPRINTUIPLUGIN_H_ |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
21 |
#define _DIRECTPRINTUIPLUGIN_H_ |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
22 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
23 |
// System includes |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
24 |
#include <e32base.h> |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
25 |
#include <coecntrl.h> |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
26 |
#include <ecom.h> |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
27 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
28 |
// User includes |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
29 |
#include "directprintpropertydata.h" |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
30 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
31 |
// Forward declarations |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
32 |
class CAknSettingItemArray; |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
33 |
class RReadStream; |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
34 |
class RWriteStream; |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
35 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
36 |
//Constants |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
37 |
/** Interface UID */ |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
38 |
const TUid KUidDirectPrintUiPluginInterface = { 0x2002BB33 }; |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
39 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
40 |
// Class declaration |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
41 |
/** |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
42 |
* Ui plugin class |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
43 |
* more_complete_description |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
44 |
*/ |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
45 |
class CDirectPrintUiPlugin : public CBase |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
46 |
{ |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
47 |
public: |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
48 |
inline static CDirectPrintUiPlugin* NewL(TUid aUid); |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
49 |
inline static CDirectPrintUiPlugin* NewL(const TDesC8& aKey); |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
50 |
virtual ~CDirectPrintUiPlugin(); |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
51 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
52 |
public: |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
53 |
inline static void GetPluginListL(RImplInfoPtrArray& aArray); |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
54 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
55 |
public: |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
56 |
virtual void InternalizePropertiesL(RReadStream& aStream) = 0; |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
57 |
virtual void ExternalizePropertiesL(RWriteStream& aStream) = 0; |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
58 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
59 |
virtual void LoadExtendItemsL(CAknSettingItemArray& aArray, TInt aId) = 0; |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
60 |
virtual void ReadDataL(TDirectPrintPropertyData& aData) = 0; |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
61 |
virtual void WriteDataL(RDPPropertyDataArray& aArray) = 0; |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
62 |
virtual void NewDataL() = 0; |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
63 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
64 |
protected: |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
65 |
inline CDirectPrintUiPlugin(); |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
66 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
67 |
private: |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
68 |
TUid iDtor_ID_Key; |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
69 |
}; |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
70 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
71 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
72 |
// Inline codepart |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
73 |
inline CDirectPrintUiPlugin::CDirectPrintUiPlugin() |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
74 |
{ |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
75 |
} |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
76 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
77 |
inline CDirectPrintUiPlugin* CDirectPrintUiPlugin::NewL(TUid aUid) |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
78 |
{ |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
79 |
TAny* any = REComSession::CreateImplementationL(aUid, _FOFF(CDirectPrintUiPlugin, iDtor_ID_Key)); |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
80 |
CDirectPrintUiPlugin* plugin = reinterpret_cast<CDirectPrintUiPlugin*>(any); |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
81 |
return plugin; |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
82 |
} |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
83 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
84 |
inline CDirectPrintUiPlugin* CDirectPrintUiPlugin::NewL(const TDesC8& aKey) |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
85 |
{ |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
86 |
TEComResolverParams params; |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
87 |
params.SetDataType(aKey); |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
88 |
params.SetWildcardMatch(ETrue); |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
89 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
90 |
TAny* any = REComSession::CreateImplementationL(KUidDirectPrintUiPluginInterface, _FOFF(CDirectPrintUiPlugin, iDtor_ID_Key), NULL, params); |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
91 |
CDirectPrintUiPlugin* plugin = reinterpret_cast<CDirectPrintUiPlugin*>(any); |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
92 |
return plugin; |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
93 |
} |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
94 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
95 |
inline CDirectPrintUiPlugin::~CDirectPrintUiPlugin() |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
96 |
{ |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
97 |
REComSession::DestroyedImplementation(iDtor_ID_Key); |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
98 |
} |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
99 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
100 |
inline void CDirectPrintUiPlugin::GetPluginListL(RImplInfoPtrArray& aArray) |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
101 |
{ |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
102 |
REComSession::ListImplementationsL(KUidDirectPrintUiPluginInterface, aArray); |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
103 |
} |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
104 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
105 |
#endif // _DIRECTPRINTUIPLUGIN_H_ |