diff -r 000000000000 -r c53acadfccc6 clfwrapper/mediacollectionmanagersrc/mediacollectionmanagerimpl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clfwrapper/mediacollectionmanagersrc/mediacollectionmanagerimpl.h Mon Jan 18 20:34:07 2010 +0200 @@ -0,0 +1,111 @@ +/* +* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +#ifndef MMEDIACOLLECTIONMANAGERIMPL_H +#define MMEDIACOLLECTIONMANAGERIMPL_H + +#include + +/** + * This class implements Media Collection Manager functionality + * + * @lib MediaCollectionManager.lib + * @since S60 3.2 + */ +NONSHARABLE_CLASS( CMediaCollectionManagerImpl ) : + public CBase, + public MMediaCollectionManager + { + public: + + static CMediaCollectionManagerImpl* NewL(); + + virtual ~CMediaCollectionManagerImpl(); + + protected: + + /// From MMediaCollectionManager + void GetCollectionInfosL( + RPointerArray& aCollectionInfoArray ) const; + + /// From MMediaCollectionManager + MMediaCollectionInfo* CollectionInfoByIdLC( + TInt aId ) const; + + /// From MMediaCollectionManager + TInt CreateCollectionL( + const TDesC& aName, + const TArray& aCollectionItemTypes, + TInt32 aCollectionProperties ); + + /// From MMediaCollectionManager + void DeleteCollectionL( + TInt aId ); + + /// From MMediaCollectionManager + void RenameCollectionL( + TInt aId, + const TDesC& aNewName ); + + /// From MMediaCollectionManager + void AddToCollectionL( + TInt aId, + const MDesCArray& aItemArray, + TBool aRemoveFromOtherCollections = ETrue ); + + /// From MMediaCollectionManager + void RemoveFromCollectionL( + TInt aId, + const MDesCArray& aItemArray ); + + /// From MMediaCollectionManager + void RemoveFromAllCollectionsL( + const MDesCArray& aItemArray ); + + /// From MMediaCollectionManager + void GetCollectionItemArrayL( + TInt aId, + CDesCArray& aItemArray ) const; + + /// From MMediaCollectionManager + void GetCollectionIdByItemL( + const TDesC& aItem, + RArray& aIdArray ) const; + + /// From MMediaCollectionManager + void AddCollectionObserverL( + MMediaCollectionObserver& aObserver ); + + /// From MMediaCollectionManager + void RemoveCollectionObserverL( + MMediaCollectionObserver& aObserver ); + + /// From MMediaCollectionManager + TInt32 GetDriveByIdL( TInt aId ); + private: + + CMediaCollectionManagerImpl(); + void ConstructL(); + + private: + /// Ref list to observers + RPointerArray iObserverArray; + }; + + +#endif // MMEDIACOLLECTIONMANAGER_H