mpengine/inc/mpmpxharvesterframeworkwrapper_p.h
changeset 22 ecf06a08d4d9
child 29 8192e5b5c935
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mpengine/inc/mpmpxharvesterframeworkwrapper_p.h	Mon May 03 12:29:20 2010 +0300
@@ -0,0 +1,73 @@
+/*
+* Copyright (c) 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: Wrapper for mpx harvester framework utilities - private implementation.
+*
+*/
+
+#ifndef MPMPXHARVESTERFRAMEWORKWRAPPER_P_H
+#define MPMPXHARVESTERFRAMEWORKWRAPPER_P_H
+
+#include <e32base.h>
+#include <mpxcollectionobserver.h>
+#include <mpxcollectionuihelperobserver.h>
+
+class MMPXCollectionUtility;
+class MMPXHarvesterUtility;
+class MpMpxHarvesterFrameworkWrapper;
+class QStringList;
+
+
+class MpMpxHarvesterFrameworkWrapperPrivate : public MMPXCollectionObserver
+{
+public:
+
+    explicit MpMpxHarvesterFrameworkWrapperPrivate( MpMpxHarvesterFrameworkWrapper *wrapper );
+    virtual ~MpMpxHarvesterFrameworkWrapperPrivate();
+
+    void init( MpCommon::MpViewMode viewMode, TUid hostUid );
+    void scan();
+    void cancelScan();
+    void checkForSystemEvents();
+
+private:
+
+    void HandleOpenL( const CMPXMedia& aEntries,
+                     TInt aIndex,TBool aComplete,TInt aError );
+    void HandleOpenL( const CMPXCollectionPlaylist& aPlaylist,TInt aError );
+    void HandleCollectionMediaL( const CMPXMedia& aMedia, TInt aError );
+    void HandleCollectionMessage( CMPXMessage* aMsg, TInt aErr );
+
+    void DoInitL();
+    void DoScanL();
+    void DoCancelScanL();
+    void DoHandleCollectionMessageL( const CMPXMessage& aMsg );
+    TBool BroadcastEventFilter( TInt aMsg );
+    void DoCheckForSystemEventsL();
+
+private:
+
+    MpMpxHarvesterFrameworkWrapper  *q_ptr;
+
+    MMPXCollectionUtility           *iCollectionUtility;
+    MMPXHarvesterUtility            *iHarvesterUtility;
+    TInt                            iNumItemsAdded;
+    TBool                           iScanning;
+    TInt                            iPreviousBroadCastMsg;
+    MpCommon::MpViewMode            iViewMode;
+    TUid                            mHostUid;
+
+};
+
+#endif // MPMPXHARVESTERFRAMEWORKWRAPPER_P_H
+