videocollection/hgmyvideos/inc/vcxhgmyvideoscategorymodelobserver.h
branchRCL_3
changeset 10 ce5ada96ab30
parent 0 96612d01cf9f
child 23 8f0df5c82986
equal deleted inserted replaced
6:7d91903f795f 10:ce5ada96ab30
    26 #include <mpxitemid.h>
    26 #include <mpxitemid.h>
    27 
    27 
    28 // FORWARD DECLARATIONS
    28 // FORWARD DECLARATIONS
    29 
    29 
    30 class CMPXMediaArray;
    30 class CMPXMediaArray;
       
    31 class CMPXMedia;
    31 
    32 
    32 // CLASS DECLARATION
    33 // CLASS DECLARATION
    33 
    34 
    34 /**
    35 /**
    35  * Observer interface for category data changes.
    36  * Observer interface for category data changes.
    43         /**
    44         /**
    44          * Called when a list of categories is available.
    45          * Called when a list of categories is available.
    45          * Ownership of array is transferred.
    46          * Ownership of array is transferred.
    46          * 
    47          * 
    47          * @param aCategoryList List of categories
    48          * @param aCategoryList List of categories
       
    49          * @param aIsPartial    ETrue if list fetching continues, and KVcxMessageMyVideosListComplete 
       
    50          *                      message will arrive. EFalse if this is last event of list fetching.
    48          */
    51          */
    49         virtual void NewCategoryListL( CMPXMediaArray* aCategoryList ) = 0;
    52         virtual void NewCategoryListL( CMPXMediaArray* aCategoryList, TBool aIsPartial ) = 0;
    50 
    53 
    51         /**
    54         /**
    52          * Called when the list of categories has been modified.
    55          * Called when the list of categories has been modified.
    53          */
    56          */
    54         virtual void CategoryListModifiedL() = 0;
    57         virtual void CategoryListModifiedL() = 0;
    58          * 
    61          * 
    59          * @param aEventType Type of modification event (add/remove/modify).
    62          * @param aEventType Type of modification event (add/remove/modify).
    60          * @param aMpxItemId MPX Item Id of the modified item.
    63          * @param aMpxItemId MPX Item Id of the modified item.
    61          */
    64          */
    62         virtual void CategoryModifiedL( TMPXChangeEventType aEventType, 
    65         virtual void CategoryModifiedL( TMPXChangeEventType aEventType, 
    63                                         TMPXItemId& aMpxItemId ) = 0;        
    66                                         TMPXItemId& aMpxItemId ) = 0;
       
    67         
       
    68         /*
       
    69          * Called when a single video item has been fetched.
       
    70          * Ownership of video is transferred.
       
    71          * 
       
    72          * @param aVideo Video item.
       
    73          */
       
    74         virtual void VideoFetchingCompletedL( CMPXMedia* aVideo ) = 0;
       
    75         
       
    76         /**
       
    77          * Called when category list items have been fetched.
       
    78          */
       
    79         virtual void CategoryListFetchingCompletedL() = 0;
       
    80 
    64     };
    81     };
    65 
    82 
    66 #endif // VCXHGMYVIDEOSCATEGORYMODELOBSERVER_H
    83 #endif // VCXHGMYVIDEOSCATEGORYMODELOBSERVER_H