photosgallery/collectionframework/datasource/plugins/glxdatasourcemde2.5/src/glxdatasourcetaskmdscommand.cpp
equal
deleted
inserted
replaced
271 |
271 |
272 // ---------------------------------------------------------------------------- |
272 // ---------------------------------------------------------------------------- |
273 // Copy files to another drive. |
273 // Copy files to another drive. |
274 // ---------------------------------------------------------------------------- |
274 // ---------------------------------------------------------------------------- |
275 // |
275 // |
276 /// @todo minor: Rowland Cook 12/06/2007 Has this method been tested? If so remove comments |
|
277 void CGlxDataSourceTaskMdeCommand::CopyL(const RArray<TGlxMediaId>& aSourceIds, |
276 void CGlxDataSourceTaskMdeCommand::CopyL(const RArray<TGlxMediaId>& aSourceIds, |
278 const TDesC& aDrive) |
277 const TDesC& aDrive) |
279 { |
278 { |
280 TRACER("CGlxDataSourceTaskMdeCommand::CopyL()"); |
279 TRACER("CGlxDataSourceTaskMdeCommand::CopyL()"); |
281 FileOperationL(aSourceIds.Array(), aDrive, ECopy); |
280 FileOperationL(aSourceIds.Array(), aDrive, ECopy); |
283 |
282 |
284 // ---------------------------------------------------------------------------- |
283 // ---------------------------------------------------------------------------- |
285 // Move files to another drive. |
284 // Move files to another drive. |
286 // ---------------------------------------------------------------------------- |
285 // ---------------------------------------------------------------------------- |
287 // |
286 // |
288 /// @todo minor: Rowland Cook 12/06/2007 Has this method been tested? If so remove comments |
|
289 void CGlxDataSourceTaskMdeCommand::MoveL(const RArray<TGlxMediaId>& aSourceIds, |
287 void CGlxDataSourceTaskMdeCommand::MoveL(const RArray<TGlxMediaId>& aSourceIds, |
290 const TDesC& aDrive) |
288 const TDesC& aDrive) |
291 { |
289 { |
292 TRACER("CGlxDataSourceTaskMdeCommand::MoveL()"); |
290 TRACER("CGlxDataSourceTaskMdeCommand::MoveL()"); |
293 FileOperationL(aSourceIds.Array(), aDrive, EMove); |
291 FileOperationL(aSourceIds.Array(), aDrive, EMove); |
371 // |
369 // |
372 /// @todo test this method. |
370 /// @todo test this method. |
373 // |
371 // |
374 // ---------------------------------------------------------------------------- |
372 // ---------------------------------------------------------------------------- |
375 // |
373 // |
376 /// @todo minor: Rowland Cook 12/06/2007 Has this method been tested? If so remove comments |
|
377 void CGlxDataSourceTaskMdeCommand::RenameL(const TGlxMediaId& aSourceItemId, |
374 void CGlxDataSourceTaskMdeCommand::RenameL(const TGlxMediaId& aSourceItemId, |
378 const TDesC& aTitle) |
375 const TDesC& aTitle) |
379 { |
376 { |
380 TRACER("CGlxDataSourceTaskMdeCommand::RenameL()"); |
377 TRACER("CGlxDataSourceTaskMdeCommand::RenameL()"); |
381 delete iTitle; |
378 delete iTitle; |
689 // ---------------------------------------------------------------------------- |
686 // ---------------------------------------------------------------------------- |
690 // |
687 // |
691 TItemId CGlxDataSourceTaskMdeCommand::ContainerItemId(const TGlxMediaId& aMediaId) |
688 TItemId CGlxDataSourceTaskMdeCommand::ContainerItemId(const TGlxMediaId& aMediaId) |
692 { |
689 { |
693 TRACER("TMdEItemId CGlxDataSourceTaskMdeCommand::ContainerItemId()"); |
690 TRACER("TMdEItemId CGlxDataSourceTaskMdeCommand::ContainerItemId()"); |
694 TItemId containerId = aMediaId.Value(); |
691 return aMediaId.Value(); |
695 if (aMediaId == KGlxCollectionRootId) |
|
696 { |
|
697 // Check the collection plugin uid |
|
698 if (iCollectionUid == TUid::Uid(KGlxCollectionPluginCameraImplementationUid)) |
|
699 { |
|
700 // containerId = DataSource()->CameraAlbumId().Value(); |
|
701 } |
|
702 } |
|
703 return containerId; |
|
704 } |
692 } |
705 |
693 |
706 // ---------------------------------------------------------------------------- |
694 // ---------------------------------------------------------------------------- |
707 // CGlxDataSourceTaskMdeCommand::ContainerItemId |
695 // CGlxDataSourceTaskMdeCommand::ContainerItemId |
708 // ---------------------------------------------------------------------------- |
696 // ---------------------------------------------------------------------------- |