mpengine/tsrc/unittest_mpmpxharvesterframeworkwrapper/stub/inc/mpxcollectionutility.h
changeset 22 ecf06a08d4d9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mpengine/tsrc/unittest_mpmpxharvesterframeworkwrapper/stub/inc/mpxcollectionutility.h	Mon May 03 12:29:20 2010 +0300
@@ -0,0 +1,94 @@
+/*
+* Copyright (c) 2006 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: mpxcollectionutility stub for testing mpmpxframeworkwrapper
+*
+*/
+
+
+#ifndef MMPXCOLLECTIONUTILITY_H
+#define MMPXCOLLECTIONUTILITY_H
+
+#include <mpxcollectionframeworkdefs.h>
+#include <mpxcommonframeworkdefs.h>
+#include <mpxcollectionobserver.h>
+#include <mpxattribute.h>
+#include <mpxsearchcriteria.h>
+#include <mpxattributespecs.h>
+
+#include <badesca.h>
+
+
+//Forward declarations
+class CMPXCollectionPath;
+
+class MMPXCollection
+{
+public:
+    
+    // Stub functions interface
+    virtual void OpenL(TMPXOpenMode aMode=EMPXOpenDefault) = 0;   
+    virtual void OpenL(TInt aIndex,TMPXOpenMode aMode=EMPXOpenDefault) = 0;   
+    virtual void OpenL(const CMPXCollectionPath& aPath,
+                       TMPXOpenMode aMode=EMPXOpenDefault) = 0;
+    virtual CMPXCollectionPath* PathL() = 0;
+    virtual void BackL() = 0;
+    virtual void CancelRequest() = 0;
+    virtual CMPXMedia* FindAllL(const CMPXSearchCriteria& aCriteria,
+                                const TArray<TMPXAttribute>& aAttrs) = 0;
+   
+};
+
+class MMPXCollectionUtility : public MMPXCollection
+{
+public:
+
+    // Test utility functions
+    void setPlaylists( const CMPXMedia& entries );
+
+    // Stub functions
+    static MMPXCollectionUtility* NewL( MMPXCollectionObserver* aObs = NULL,
+                                        const TUid& aModeId = KMcModeDefault);
+    MMPXCollectionUtility();
+    ~MMPXCollectionUtility();
+    MMPXCollection& Collection();
+    TUid CollectionIDL(const TArray<TUid>& aUids);
+    void Close();
+    
+    //From MMPXCollection
+    void OpenL(TMPXOpenMode aMode=EMPXOpenDefault);
+    void OpenL(TInt aIndex,TMPXOpenMode aMode=EMPXOpenDefault);
+    void OpenL(const CMPXCollectionPath& aPath, TMPXOpenMode aMode=EMPXOpenDefault);
+    CMPXCollectionPath* PathL();
+    void BackL();
+    void CancelRequest();
+    CMPXMedia* FindAllL(const CMPXSearchCriteria& aCriteria,
+                                    const TArray<TMPXAttribute>& aAttrs);
+    
+public:
+ 
+    TBool          iBack;
+    TBool          iOpen;
+    TInt           iOpenCount;
+    TInt           iCountPath;
+    int            iIndex;
+    CMPXMedia      *iPlaylists; //Owned
+    CMPXMediaArray *iAlbumSongs; //Owned
+};
+
+
+
+
+
+#endif      // MMPXCOLLECTIONUTILITY_H
+