mpengine/inc/mpmpxharvesterframeworkwrapper_p.h
changeset 22 ecf06a08d4d9
child 29 8192e5b5c935
equal deleted inserted replaced
20:82baf59ce8dd 22:ecf06a08d4d9
       
     1 /*
       
     2 * Copyright (c) 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: Wrapper for mpx harvester framework utilities - private implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPMPXHARVESTERFRAMEWORKWRAPPER_P_H
       
    19 #define MPMPXHARVESTERFRAMEWORKWRAPPER_P_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <mpxcollectionobserver.h>
       
    23 #include <mpxcollectionuihelperobserver.h>
       
    24 
       
    25 class MMPXCollectionUtility;
       
    26 class MMPXHarvesterUtility;
       
    27 class MpMpxHarvesterFrameworkWrapper;
       
    28 class QStringList;
       
    29 
       
    30 
       
    31 class MpMpxHarvesterFrameworkWrapperPrivate : public MMPXCollectionObserver
       
    32 {
       
    33 public:
       
    34 
       
    35     explicit MpMpxHarvesterFrameworkWrapperPrivate( MpMpxHarvesterFrameworkWrapper *wrapper );
       
    36     virtual ~MpMpxHarvesterFrameworkWrapperPrivate();
       
    37 
       
    38     void init( MpCommon::MpViewMode viewMode, TUid hostUid );
       
    39     void scan();
       
    40     void cancelScan();
       
    41     void checkForSystemEvents();
       
    42 
       
    43 private:
       
    44 
       
    45     void HandleOpenL( const CMPXMedia& aEntries,
       
    46                      TInt aIndex,TBool aComplete,TInt aError );
       
    47     void HandleOpenL( const CMPXCollectionPlaylist& aPlaylist,TInt aError );
       
    48     void HandleCollectionMediaL( const CMPXMedia& aMedia, TInt aError );
       
    49     void HandleCollectionMessage( CMPXMessage* aMsg, TInt aErr );
       
    50 
       
    51     void DoInitL();
       
    52     void DoScanL();
       
    53     void DoCancelScanL();
       
    54     void DoHandleCollectionMessageL( const CMPXMessage& aMsg );
       
    55     TBool BroadcastEventFilter( TInt aMsg );
       
    56     void DoCheckForSystemEventsL();
       
    57 
       
    58 private:
       
    59 
       
    60     MpMpxHarvesterFrameworkWrapper  *q_ptr;
       
    61 
       
    62     MMPXCollectionUtility           *iCollectionUtility;
       
    63     MMPXHarvesterUtility            *iHarvesterUtility;
       
    64     TInt                            iNumItemsAdded;
       
    65     TBool                           iScanning;
       
    66     TInt                            iPreviousBroadCastMsg;
       
    67     MpCommon::MpViewMode            iViewMode;
       
    68     TUid                            mHostUid;
       
    69 
       
    70 };
       
    71 
       
    72 #endif // MPMPXHARVESTERFRAMEWORKWRAPPER_P_H
       
    73