|
1 /* |
|
2 * Copyright (c) 2008 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 the License "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: Implementation for MPX My Videos Collection Move, Copy and Delete operations.* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "vcxmyvideoscollectionplugin.h" |
|
22 #include "vcxmyvideosasyncfileoperations_stub.h" |
|
23 |
|
24 // ============================ MEMBER FUNCTIONS ============================== |
|
25 |
|
26 // ---------------------------------------------------------------------------- |
|
27 // Two-phased constructor. |
|
28 // ---------------------------------------------------------------------------- |
|
29 // |
|
30 CVcxMyVideosAsyncFileOperations* CVcxMyVideosAsyncFileOperations::NewL( |
|
31 CVcxMyVideosCollectionPlugin& aCollection ) |
|
32 { |
|
33 CVcxMyVideosAsyncFileOperations* self = new (ELeave) CVcxMyVideosAsyncFileOperations( |
|
34 aCollection ); |
|
35 CleanupStack::PushL(self); |
|
36 self->ConstructL(); |
|
37 CleanupStack::Pop(self); |
|
38 return self; |
|
39 } |
|
40 |
|
41 // ---------------------------------------------------------------------------- |
|
42 // Destructor. |
|
43 // ---------------------------------------------------------------------------- |
|
44 // |
|
45 CVcxMyVideosAsyncFileOperations::~CVcxMyVideosAsyncFileOperations() |
|
46 { |
|
47 } |
|
48 |
|
49 // ---------------------------------------------------------------------------- |
|
50 // Constructor. |
|
51 // ---------------------------------------------------------------------------- |
|
52 // |
|
53 CVcxMyVideosAsyncFileOperations::CVcxMyVideosAsyncFileOperations( CVcxMyVideosCollectionPlugin& aCollection ) |
|
54 : iCollection( aCollection ) |
|
55 { |
|
56 } |
|
57 |
|
58 // ---------------------------------------------------------------------------- |
|
59 // Symbian 2nd phase constructor can leave. |
|
60 // ---------------------------------------------------------------------------- |
|
61 // |
|
62 void CVcxMyVideosAsyncFileOperations::ConstructL () |
|
63 { |
|
64 } |
|
65 |
|
66 // ---------------------------------------------------------------------------- |
|
67 // CVcxMyVideosCollectionPlugin::DeleteVideoL |
|
68 // ---------------------------------------------------------------------------- |
|
69 // |
|
70 void CVcxMyVideosAsyncFileOperations::DeleteVideoL( TUint32 /*aMdsId*/, TBool /*aForce*/ ) |
|
71 { |
|
72 } |
|
73 |
|
74 // ---------------------------------------------------------------------------- |
|
75 // CVcxMyVideosAsyncFileOperations::HandleMoveOrCopyStepL |
|
76 // ---------------------------------------------------------------------------- |
|
77 // |
|
78 MVcxMyVideosActiveTaskObserver::TStepResult |
|
79 CVcxMyVideosAsyncFileOperations::HandleMoveOrCopyStepL() |
|
80 { |
|
81 return MVcxMyVideosActiveTaskObserver::EDone; |
|
82 } |
|
83 |
|
84 // ---------------------------------------------------------------------------- |
|
85 // CVcxMyVideosAsyncFileOperations::InitMoveOrCopyOperationsL |
|
86 // ---------------------------------------------------------------------------- |
|
87 // |
|
88 void CVcxMyVideosAsyncFileOperations::InitMoveOrCopyOperationsL( CMPXMedia& /*aCmd*/ ) |
|
89 { |
|
90 } |
|
91 |
|
92 // ---------------------------------------------------------------------------- |
|
93 // CVcxMyVideosAsyncFileOperations::CancelOperationL |
|
94 // Called when leave or cancel occurs for the operation, generates resp msg. |
|
95 // ---------------------------------------------------------------------------- |
|
96 // |
|
97 void CVcxMyVideosAsyncFileOperations::CancelOperationL( TInt /*aErr*/ ) |
|
98 { |
|
99 } |
|
100 |
|
101 // ---------------------------------------------------------------------------- |
|
102 // CVcxMyVideosAsyncFileOperations::SendOperationRespL |
|
103 // ---------------------------------------------------------------------------- |
|
104 // |
|
105 void CVcxMyVideosAsyncFileOperations::SendOperationRespL( TInt /*aCmdId*/ ) |
|
106 { |
|
107 } |
|
108 |
|
109 // ---------------------------------------------------------------------------- |
|
110 // CVcxMyVideosAsyncFileOperations::MoveOrCopyVideoL |
|
111 // ---------------------------------------------------------------------------- |
|
112 // |
|
113 void CVcxMyVideosAsyncFileOperations::MoveOrCopyVideoL( TUint32 /*aMdsId*/ ) |
|
114 { |
|
115 } |
|
116 |
|
117 // ---------------------------------------------------------------------------- |
|
118 // CVcxMyVideosAsyncFileOperations::InitSingleMoveOrCopyL |
|
119 // ---------------------------------------------------------------------------- |
|
120 // |
|
121 void CVcxMyVideosAsyncFileOperations::InitSingleMoveOrCopyL( TUint32 /*aMdsId*/ ) |
|
122 { |
|
123 } |
|
124 |
|
125 |
|
126 // ---------------------------------------------------------------------------- |
|
127 // CVcxMyVideosAsyncFileOperations::HandleFileCopyCompletedL |
|
128 // ---------------------------------------------------------------------------- |
|
129 // |
|
130 void CVcxMyVideosAsyncFileOperations::HandleFileCopyCompletedL( TInt /*aErr*/ ) |
|
131 { |
|
132 } |
|
133 |
|
134 // ---------------------------------------------------------------------------- |
|
135 // CVcxMyVideosAsyncFileOperations::DriveHasEnoughFreeSpaceL |
|
136 // ---------------------------------------------------------------------------- |
|
137 // |
|
138 TBool CVcxMyVideosAsyncFileOperations::DriveHasEnoughFreeSpaceL( const TDesC& /*aPath*/, TInt /*aDrive*/ ) |
|
139 { |
|
140 return ETrue; |
|
141 } |
|
142 |
|
143 // ---------------------------------------------------------------------------- |
|
144 // CVcxMyVideosAsyncFileOperations::GenerateTargetPathForMoveOrCopyL |
|
145 // ---------------------------------------------------------------------------- |
|
146 // |
|
147 void CVcxMyVideosAsyncFileOperations::GenerateTargetPathForMoveOrCopyL( |
|
148 const TDesC& /*aSourcePath*/, TDes& /*aTargetPath*/, TInt /*aTargetDrive*/ ) |
|
149 { |
|
150 } |
|
151 |
|
152 // ---------------------------------------------------------------------------- |
|
153 // CVcxMyVideosAsyncFileOperations::HandleDeleteStepL |
|
154 // ---------------------------------------------------------------------------- |
|
155 // |
|
156 MVcxMyVideosActiveTaskObserver::TStepResult CVcxMyVideosAsyncFileOperations::HandleDeleteStepL() |
|
157 { |
|
158 return MVcxMyVideosActiveTaskObserver::EDone; |
|
159 } |
|
160 |
|
161 |