mpx/collectionframework/inc/mpxcollectionengineobserver.h
changeset 0 a2952bb97e68
equal deleted inserted replaced
-1:000000000000 0:a2952bb97e68
       
     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:  Collection engine observer
       
    15 *
       
    16 */
       
    17 
       
    18  
       
    19 
       
    20 #ifndef MMPXCOLLECTIONENGINEOBSERVER_H
       
    21 #define MMPXCOLLECTIONENGINEOBSERVER_H
       
    22 
       
    23 #include <badesca.h>
       
    24 #include <mpxcollectionenginecommonobserver.h>
       
    25 
       
    26 /**
       
    27 *  Interface for receiving data asynchronously 
       
    28 */
       
    29 NONSHARABLE_CLASS(MMPXCollectionEngineObserver) : public MMPXCollectionEngineCommonObserver
       
    30     {
       
    31 public:
       
    32     /**
       
    33     *  Handles the collection entries being opened. Typically called
       
    34     *  when client has Open()'d a folder
       
    35     *  Or Handles the item being opened. Typically called
       
    36     *  when client has Open()'d an item. Client typically responds by
       
    37     *  'playing' the item via the playlist
       
    38     *
       
    39     *  @param aMedia media to hold collection entries
       
    40     *  @param aIndex focused entry
       
    41     *  @param aComplete ETrue no more entries. EFalse more entries expected
       
    42     *  @param aError error code   
       
    43     */
       
    44     virtual void HandleOpen(CMPXMedia* aMedia,
       
    45                             TInt aIndex,TBool aComplete,TInt aError) = 0;
       
    46     
       
    47     /**
       
    48     * Handles a generic Async Op completion ( nothing to return )
       
    49     * @param aError, error to complete
       
    50     */
       
    51     virtual void HandleOpComplete( TInt aError ) = 0;
       
    52     };    
       
    53     
       
    54 #endif // MMPXCOLLECTIONENGINEOBSERVER_H