clfwrapper/mediacollectionmanagersrc/mediacollectionmanagerimpl.h
changeset 0 c53acadfccc6
equal deleted inserted replaced
-1:000000000000 0:c53acadfccc6
       
     1 /*
       
     2 * Copyright (c) 2006-2009 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MMEDIACOLLECTIONMANAGERIMPL_H
       
    20 #define MMEDIACOLLECTIONMANAGERIMPL_H
       
    21 
       
    22 #include <mediacollectionmanager.h>
       
    23 
       
    24 /**
       
    25  *  This class implements Media Collection Manager functionality
       
    26  *
       
    27  *  @lib MediaCollectionManager.lib
       
    28  *  @since S60 3.2
       
    29  */
       
    30 NONSHARABLE_CLASS( CMediaCollectionManagerImpl ) :
       
    31                             public CBase,
       
    32                             public MMediaCollectionManager
       
    33     {
       
    34     public:
       
    35     
       
    36         static CMediaCollectionManagerImpl* NewL();
       
    37 
       
    38         virtual ~CMediaCollectionManagerImpl();
       
    39 
       
    40     protected:
       
    41 
       
    42 		/// From MMediaCollectionManager
       
    43         void GetCollectionInfosL(
       
    44                     RPointerArray<MMediaCollectionInfo>& aCollectionInfoArray ) const;
       
    45 
       
    46 		/// From MMediaCollectionManager
       
    47         MMediaCollectionInfo* CollectionInfoByIdLC(
       
    48                     TInt aId ) const;
       
    49 
       
    50 		/// From MMediaCollectionManager
       
    51         TInt CreateCollectionL(
       
    52                     const TDesC& aName,
       
    53                     const TArray<TInt>& aCollectionItemTypes,
       
    54                     TInt32 aCollectionProperties );
       
    55 
       
    56 		/// From MMediaCollectionManager
       
    57         void DeleteCollectionL(
       
    58                     TInt aId );
       
    59 
       
    60 		/// From MMediaCollectionManager
       
    61         void RenameCollectionL(
       
    62                     TInt aId,
       
    63                     const TDesC& aNewName );
       
    64 
       
    65 		/// From MMediaCollectionManager
       
    66         void AddToCollectionL(
       
    67                     TInt aId,
       
    68                     const MDesCArray& aItemArray,
       
    69                     TBool aRemoveFromOtherCollections = ETrue );
       
    70 
       
    71 		/// From MMediaCollectionManager
       
    72         void RemoveFromCollectionL(
       
    73                     TInt aId,
       
    74                     const MDesCArray& aItemArray );
       
    75 
       
    76 		/// From MMediaCollectionManager
       
    77         void RemoveFromAllCollectionsL(
       
    78                     const MDesCArray& aItemArray );
       
    79 
       
    80 		/// From MMediaCollectionManager
       
    81         void GetCollectionItemArrayL(
       
    82                     TInt aId,
       
    83                     CDesCArray& aItemArray ) const;
       
    84 
       
    85 		/// From MMediaCollectionManager
       
    86         void GetCollectionIdByItemL(
       
    87                     const TDesC& aItem,
       
    88                     RArray<TInt>& aIdArray ) const;
       
    89 
       
    90 		/// From MMediaCollectionManager
       
    91         void AddCollectionObserverL(
       
    92                     MMediaCollectionObserver& aObserver );
       
    93 
       
    94 		/// From MMediaCollectionManager
       
    95         void RemoveCollectionObserverL(
       
    96                     MMediaCollectionObserver& aObserver );
       
    97         
       
    98         /// From MMediaCollectionManager            
       
    99         TInt32 GetDriveByIdL( TInt aId );
       
   100     private:
       
   101     
       
   102         CMediaCollectionManagerImpl();
       
   103         void ConstructL();
       
   104 
       
   105     private:
       
   106         /// Ref list to observers
       
   107         RPointerArray<MMediaCollectionObserver> iObserverArray;
       
   108     };
       
   109 
       
   110 
       
   111 #endif // MMEDIACOLLECTIONMANAGER_H