25 #include <mpxcollectionplugin.h> |
25 #include <mpxcollectionplugin.h> |
26 #include <mpxcollectionpath.h> |
26 #include <mpxcollectionpath.h> |
27 #include <mpxcollectionmessagedefs.h> |
27 #include <mpxcollectionmessagedefs.h> |
28 #include <vcxmyvideosdefs.h> |
28 #include <vcxmyvideosdefs.h> |
29 |
29 |
30 //#include "mpxdbactivetask.h" // change to <> when moved to s60 dir and remove temp .h-file |
|
31 |
|
32 #include "vcxmyvideosdownloadutil.h" |
|
33 |
|
34 // FORWARD DECLARATIONS |
30 // FORWARD DECLARATIONS |
35 class CVcxMyVideosCollectionPlugin; |
31 class CVcxMyVideosCollectionPlugin; |
36 class CVcxMyVideosAsyncFileCopy; |
32 class CVcxMyVideosAsyncFileCopy; |
37 |
33 |
38 // CONSTANTS |
34 // CONSTANTS |
82 void DeleteVideoL( TUint32 aMdsId, TBool aForce = EFalse ); |
78 void DeleteVideoL( TUint32 aMdsId, TBool aForce = EFalse ); |
83 |
79 |
84 /** |
80 /** |
85 * Performs one Move or Copy operation. Called by HandleStep. |
81 * Performs one Move or Copy operation. Called by HandleStep. |
86 * |
82 * |
87 * @return ETrue if operation was the last one, EFalse othewise. |
83 * @return MVcxMyVideosActiveTaskObserver::EDone if was last operation, |
88 */ |
84 * MVcxMyVideosActiveTaskObserver::EMoreToCome otherwise. |
89 TBool HandleMoveOrCopyStepL(); |
85 */ |
|
86 MVcxMyVideosActiveTaskObserver::TStepResult HandleMoveOrCopyStepL(); |
90 |
87 |
91 /** |
88 /** |
92 * Moves or copies video to another drive. |
89 * Moves or copies video to another drive. |
93 * |
90 * |
94 * @param aMdsId MDS id of the item to be moved. |
91 * @param aMdsId MDS id of the item to be moved. |
95 * @param aTargetDrive Target drive. |
92 * @param aMove If ETrue, the source file is deleted. |
96 */ |
93 */ |
97 void MoveOrCopyVideoL( TUint32 aMdsId, TInt aTargetDrive ); |
94 void MoveOrCopyVideoL( TUint32 aMdsId ); |
98 |
95 |
99 /** |
96 /** |
100 * Generates and sends resp message for Move,Copy and Delete operations. |
97 * Generates and sends resp message for Move,Copy and Delete operations. |
101 * Does nothing if there is some other operation going on. |
98 * Does nothing if there is some other operation going on. |
102 * This function is called when operation is interrupted from a leave or |
99 * This function is called when operation is interrupted from a leave or |
108 void CancelOperationL( TInt aErr ); |
105 void CancelOperationL( TInt aErr ); |
109 |
106 |
110 /** |
107 /** |
111 * Performs one Delete operation. Called by HandleStep. |
108 * Performs one Delete operation. Called by HandleStep. |
112 * |
109 * |
113 * @return ETrue if operation was the last one, EFalse otherwise. |
110 * @return MVcxMyVideosActiveTaskObserver::EDone if was last operation, |
114 */ |
111 * MVcxMyVideosActiveTaskObserver::EMoreToCome otherwise. |
115 TBool HandleDeleteStepL(); |
112 */ |
|
113 MVcxMyVideosActiveTaskObserver::TStepResult HandleDeleteStepL(); |
116 |
114 |
117 private: |
115 private: |
118 |
116 |
119 /** |
117 /** |
120 * Called when file is going to be moved or copied to aDrive. |
118 * Called when file is going to be moved or copied to aDrive. |
160 /** |
158 /** |
161 * Initializes MDS and collection cache before the actual file copy. |
159 * Initializes MDS and collection cache before the actual file copy. |
162 * Does some sanity checks also. |
160 * Does some sanity checks also. |
163 * |
161 * |
164 * @param aMdsId MDS ID of the video being moved/copied. |
162 * @param aMdsId MDS ID of the video being moved/copied. |
165 * @param aTargetDrive Target drive. |
163 */ |
166 */ |
164 void InitSingleMoveOrCopyL( TUint32 aMdsId ); |
167 void InitSingleMoveOrCopyL( TUint32 aMdsId, TInt aTargetDrive ); |
|
168 |
165 |
169 public: |
166 public: |
170 |
167 |
171 /** |
168 /** |
172 * Array containing item ids which are being moved/copied or deleted. |
169 * Array containing item ids which are being moved/copied or deleted. |