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 |
* |
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 |
// INCLUDE FILES |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
19 |
#include "clog.h" |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
20 |
#include "directprintappappui.h" |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
21 |
#include "directprintappdocument.h" |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
22 |
#include "directprintmodel.h" |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
23 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
24 |
// ============================ MEMBER FUNCTIONS =============================== |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
25 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
26 |
// ----------------------------------------------------------------------------- |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
27 |
// CDirectPrintAppDocument::NewL() |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
28 |
// Two-phased constructor. |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
29 |
// ----------------------------------------------------------------------------- |
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 |
CDirectPrintAppDocument* CDirectPrintAppDocument::NewL(CEikApplication& aApp) |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
32 |
{ |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
33 |
CDirectPrintAppDocument* self = NewLC(aApp); |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
34 |
CleanupStack::Pop(self); |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
35 |
return self; |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
36 |
} |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
37 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
38 |
// ----------------------------------------------------------------------------- |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
39 |
// CDirectPrintAppDocument::NewLC() |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
40 |
// Two-phased constructor. |
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 |
// |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
43 |
CDirectPrintAppDocument* CDirectPrintAppDocument::NewLC(CEikApplication& aApp) |
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 |
CDirectPrintAppDocument* self = new (ELeave) CDirectPrintAppDocument(aApp); |
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 |
CleanupStack::PushL(self); |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
48 |
self->ConstructL(); |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
49 |
return self; |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
50 |
} |
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 |
// ----------------------------------------------------------------------------- |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
53 |
// CDirectPrintAppDocument::ConstructL() |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
54 |
// Symbian 2nd phase constructor can leave. |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
55 |
// ----------------------------------------------------------------------------- |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
56 |
// |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
57 |
void CDirectPrintAppDocument::ConstructL() |
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 |
LOG("CDirectPrintAppDocument::ConstructL BEGIN"); |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
60 |
// create the model object |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
61 |
iModel = CDirectPrintModel::NewL(); |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
62 |
LOG("CDirectPrintAppDocument::ConstructL END"); |
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 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
65 |
// ----------------------------------------------------------------------------- |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
66 |
// CDirectPrintAppDocument::CDirectPrintAppDocument() |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
67 |
// C++ default constructor can NOT contain any code, that might leave. |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
68 |
// ----------------------------------------------------------------------------- |
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 |
CDirectPrintAppDocument::CDirectPrintAppDocument(CEikApplication& aApp) : |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
71 |
CAknDocument(aApp) |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
72 |
{ |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
73 |
// No implementation required |
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 |
// CDirectPrintAppDocument::~CDirectPrintAppDocument() |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
78 |
// Destructor. |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
79 |
// --------------------------------------------------------------------------- |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
80 |
// |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
81 |
CDirectPrintAppDocument::~CDirectPrintAppDocument() |
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 |
delete iModel; |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
84 |
} |
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 |
// --------------------------------------------------------------------------- |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
87 |
// CDirectPrintAppDocument::CreateAppUiL() |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
88 |
// Constructs CreateAppUi. |
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 |
// |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
91 |
CEikAppUi* CDirectPrintAppDocument::CreateAppUiL() |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
92 |
{ |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
93 |
// Create the application user interface, and return a pointer to it; |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
94 |
// the framework takes ownership of this object |
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
95 |
return new (ELeave) CDirectPrintAppAppUi; |
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 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
98 |
CDirectPrintModel& CDirectPrintAppDocument::Model() |
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 |
return *iModel; |
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 |
|
613a5ff70823
transfer from SFL repo (sfl/FCL/sf/app/printing/DirectPrint)
msekine <m.sekine@kthree.co.jp>
parents:
diff
changeset
|
103 |
// End of File |