60
|
1 |
/*
|
|
2 |
* Copyright (c) 2006,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: CUniEditorSendUiOperation, operation for opening messages created by SendUI
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef __UNIEDITORSENDUIOPERATION_H
|
|
21 |
#define __UNIEDITORSENDUIOPERATION_H
|
|
22 |
|
|
23 |
// INCLUDES
|
|
24 |
|
|
25 |
#include <e32base.h>
|
|
26 |
#include <e32std.h>
|
|
27 |
|
|
28 |
#include "UniEditorDocument.h"
|
|
29 |
#include "UniEditorOperation.h"
|
|
30 |
#include "UniEditorProcessImageOperation.h"
|
|
31 |
#include "UniEditorConvertVideoOperation.h"
|
|
32 |
// CONSTANTS
|
|
33 |
|
|
34 |
// MACROS
|
|
35 |
|
|
36 |
// FORWARD DECLARATIONS
|
|
37 |
|
|
38 |
class CMsgEditorView;
|
|
39 |
class CUniEditorProcessTextOperation;
|
|
40 |
|
|
41 |
// DATA TYPES
|
|
42 |
|
|
43 |
// FUNCTION PROTOTYPES
|
|
44 |
|
|
45 |
// CLASS DECLARATION
|
|
46 |
|
|
47 |
/**
|
|
48 |
* CUniEditorSendUiOperation, operation for opening messages created by SendUI
|
|
49 |
*
|
|
50 |
* @since 3.2
|
|
51 |
*/
|
|
52 |
class CUniEditorSendUiOperation : public CUniEditorOperation
|
|
53 |
{
|
|
54 |
public: // New methods
|
|
55 |
|
|
56 |
/**
|
|
57 |
* Factory method that creates this object.
|
|
58 |
*
|
|
59 |
* @param aObserver
|
|
60 |
* @return Pointer to instance in cleanup stack
|
|
61 |
*/
|
|
62 |
static CUniEditorSendUiOperation* NewL(
|
|
63 |
MUniEditorOperationObserver& aObserver,
|
|
64 |
CUniEditorDocument& aDocument,
|
|
65 |
RFs& aFs );
|
|
66 |
|
|
67 |
/**
|
|
68 |
* Destructor
|
|
69 |
*/
|
|
70 |
virtual ~CUniEditorSendUiOperation();
|
|
71 |
|
|
72 |
/**
|
|
73 |
* Starts send ui operation
|
|
74 |
*/
|
|
75 |
void Start();
|
|
76 |
|
|
77 |
/**
|
|
78 |
* check Is optimized flow
|
|
79 |
*/
|
|
80 |
TBool IsOptimizedFlagSet();
|
|
81 |
|
|
82 |
protected:
|
|
83 |
|
|
84 |
/**
|
|
85 |
* From CActive
|
|
86 |
*/
|
|
87 |
void RunL();
|
|
88 |
|
|
89 |
/**
|
|
90 |
* From CUniEditorOperation
|
|
91 |
*/
|
|
92 |
void DoCancelCleanup();
|
|
93 |
|
|
94 |
/**
|
|
95 |
* From CUniEditorOperation
|
|
96 |
*/
|
|
97 |
void HandleOperationEvent( TUniEditorOperationType aOperation,
|
|
98 |
TUniEditorOperationEvent aEvent );
|
|
99 |
|
|
100 |
private:
|
|
101 |
|
|
102 |
/**
|
|
103 |
* C++ constructor.
|
|
104 |
*/
|
|
105 |
CUniEditorSendUiOperation(
|
|
106 |
MUniEditorOperationObserver& aObserver,
|
|
107 |
CUniEditorDocument& aDocument,
|
|
108 |
RFs& aFs );
|
|
109 |
|
|
110 |
/**
|
|
111 |
* 2nd phase constructor.
|
|
112 |
*/
|
|
113 |
void ConstructL();
|
|
114 |
|
|
115 |
/**
|
|
116 |
* Performs single send ui step.
|
|
117 |
*/
|
|
118 |
void DoSendUiStepL();
|
|
119 |
|
|
120 |
/**
|
|
121 |
* Performs send ui checks.
|
|
122 |
*/
|
|
123 |
void DoSendUiCheckL();
|
|
124 |
|
|
125 |
/**
|
|
126 |
* Check files.
|
|
127 |
*/
|
|
128 |
void DoCheckFilesL();
|
|
129 |
|
|
130 |
/**
|
|
131 |
* Prepares objects
|
|
132 |
*/
|
|
133 |
void DoSendUiPrepareObjectL();
|
|
134 |
|
|
135 |
/**
|
|
136 |
* Prepased single object.
|
|
137 |
*/
|
|
138 |
void DoPrepareObjectL( CUniObject* aObject );
|
|
139 |
|
|
140 |
/**
|
|
141 |
* Verifies prepared objects.
|
|
142 |
*/
|
|
143 |
void VerifyPreparedObjectL();
|
|
144 |
|
|
145 |
/**
|
|
146 |
* Prepares attachments.
|
|
147 |
*/
|
|
148 |
void DoSendUiPrepareAttachmentsL();
|
|
149 |
|
|
150 |
protected: // data
|
|
151 |
|
|
152 |
// assigned to iOperationState in base class
|
|
153 |
enum TUniEditorSendUiState
|
|
154 |
{
|
|
155 |
EUniEditorSendUiCheck,
|
|
156 |
EUniEditorSendUiPrepareObject,
|
|
157 |
EUniEditorSendUiPrepareAttachments,
|
|
158 |
EUniEditorSendUiEnd
|
|
159 |
};
|
|
160 |
|
|
161 |
TUint32 iDeleteAllLimit;
|
|
162 |
|
|
163 |
CUniEditorProcessImageOperation* iImageOperation;
|
|
164 |
CUniEditorConvertVideoOperation* iVideoOperation;
|
|
165 |
|
|
166 |
TInt iObjectsSize;
|
|
167 |
TInt iPreviousSize;
|
|
168 |
TInt iObjectNum;
|
|
169 |
TInt iSlideNum;
|
|
170 |
CUniObject* iPreparedObject;
|
|
171 |
TBool iDeleteAll;
|
|
172 |
CUniEditorProcessTextOperation* iTextOperation;
|
|
173 |
// sendui+jepg optimization changes
|
|
174 |
TBool iOptimizedFlow;
|
|
175 |
|
|
176 |
};
|
|
177 |
|
|
178 |
#endif // __UNIEDITORSENDUIOPERATION_H
|