mpviewplugins/mpplaybackviewplugin/tsrc/unittest_mpmpxpbframeworkwrapper/stub/src/mpxcollectionutility.cpp
changeset 43 0f32e550d9d8
parent 38 b93f525c9244
child 45 612c4815aebe
equal deleted inserted replaced
38:b93f525c9244 43:0f32e550d9d8
     1 /*
       
     2 * Copyright (c) 2006 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: mpxcollectionutility stub for testing mpmpxframeworkwrapper
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <mpxmedia.h>
       
    20 #include <mpxmessage.h>
       
    21 #include <mpxmessagegeneraldefs.h>
       
    22 #include <mpxcollectionmessage.h>
       
    23 #include <mpxcollectionmessagedefs.h>
       
    24 #include <mpxmediageneraldefs.h>
       
    25 #include <mpxmediacollectiondetaildefs.h>
       
    26 #include <mpxcollectionplugin.hrh>
       
    27 #include <mpxcollectionpath.h>
       
    28 #include "mptrace.h"
       
    29 #include <e32debug.h>
       
    30 
       
    31 #include "stub/inc/mpxcollectionutility.h"
       
    32 const TInt KMPXAllSongsViewIndex = 0;
       
    33 const TInt KMPXPlaylistViewIndex = 1;
       
    34 
       
    35 /*!
       
    36  Stub function.
       
    37 */
       
    38 MMPXCollectionUtility::MMPXCollectionUtility():iCmd(0)
       
    39 {   
       
    40 }
       
    41 
       
    42 /*!
       
    43  Stub function.
       
    44 */
       
    45 MMPXCollectionUtility::~MMPXCollectionUtility()
       
    46 {    
       
    47 }
       
    48 
       
    49 /*!
       
    50  Stub function.
       
    51 */
       
    52 MMPXCollectionUtility* MMPXCollectionUtility::NewL(MMPXCollectionObserver* aObs, const TUid& aModeId)
       
    53 {
       
    54     Q_UNUSED(aObs);
       
    55     Q_UNUSED(aModeId);
       
    56     MMPXCollectionUtility* temp = new MMPXCollectionUtility();
       
    57     return temp;
       
    58 }
       
    59 
       
    60 /*!
       
    61  Stub function.
       
    62 */
       
    63 MMPXCollection& MMPXCollectionUtility::Collection()
       
    64 { 
       
    65     return *this;
       
    66 }
       
    67 
       
    68 /*!
       
    69  Stub function.
       
    70 */
       
    71 void MMPXCollectionUtility::Close()
       
    72 {
       
    73     delete this;
       
    74 }
       
    75 
       
    76 /*!
       
    77  Stub function.
       
    78 */
       
    79 TUid MMPXCollectionUtility::CollectionIDL(const TArray<TUid>& aUids)
       
    80 { 
       
    81     Q_UNUSED(aUids);
       
    82     TX_ENTRY
       
    83     return TUid::Uid(EMPXCollectionPluginMusic);
       
    84 }
       
    85 
       
    86 /*!
       
    87  Stub function.
       
    88 */
       
    89 void MMPXCollectionUtility::CommandL(CMPXCommand& aCmd)
       
    90 {
       
    91     delete iCmd;
       
    92     iCmd = 0;
       
    93     iCmd = CMPXCommand::NewL(aCmd);
       
    94 }
       
    95 
       
    96 //end of file