videocollection/hgmyvideos/inc/vcxhgmyvideoscategorymodelobserver.h
changeset 0 96612d01cf9f
child 10 ce5ada96ab30
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2008 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 the License "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:      Observer interface for category data changes.*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 #ifndef VCXHGMYVIDEOSCATEGORYMODELOBSERVER_H
       
    21 #define VCXHGMYVIDEOSCATEGORYMODELOBSERVER_H
       
    22 
       
    23 // INCLUDES
       
    24 
       
    25 #include <mpxcollectionmessagedefs.h>
       
    26 #include <mpxitemid.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 
       
    30 class CMPXMediaArray;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35  * Observer interface for category data changes.
       
    36  * 
       
    37  * @lib vcxhgmyvideos.lib
       
    38  */
       
    39 NONSHARABLE_CLASS( MVcxHgMyVideosCategoryModelObserver )
       
    40     {
       
    41     public:
       
    42     
       
    43         /**
       
    44          * Called when a list of categories is available.
       
    45          * Ownership of array is transferred.
       
    46          * 
       
    47          * @param aCategoryList List of categories
       
    48          */
       
    49         virtual void NewCategoryListL( CMPXMediaArray* aCategoryList ) = 0;
       
    50 
       
    51         /**
       
    52          * Called when the list of categories has been modified.
       
    53          */
       
    54         virtual void CategoryListModifiedL() = 0;
       
    55 
       
    56         /**
       
    57          * Called when a single category has been modified (add/remove/modify).
       
    58          * 
       
    59          * @param aEventType Type of modification event (add/remove/modify).
       
    60          * @param aMpxItemId MPX Item Id of the modified item.
       
    61          */
       
    62         virtual void CategoryModifiedL( TMPXChangeEventType aEventType, 
       
    63                                         TMPXItemId& aMpxItemId ) = 0;        
       
    64     };
       
    65 
       
    66 #endif // VCXHGMYVIDEOSCATEGORYMODELOBSERVER_H