videocollection/videocollectionwrapper/inc/videodatasignalreceiver.h
branchRCL_3
changeset 22 839377eedc2b
equal deleted inserted replaced
21:315810614048 22:839377eedc2b
       
     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:   Signal receiver interface for video data changes.*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 #ifndef __VIDEOMODELOBSERVER_H
       
    20 #define __VIDEOMODELOBSERVER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <QObject>
       
    24 #include <mpxcollectionmessagedefs.h>
       
    25 #include <mpxitemid.h>
       
    26 #include <QList>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CMPXMediaArray;
       
    30 class CMPXMedia;
       
    31 
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36  * Observer interface for video data changes.
       
    37  *
       
    38  * @lib vcxnsmyvideos.lib
       
    39  */
       
    40 class  VideoDataSignalReceiver : public QObject
       
    41 {
       
    42     Q_OBJECT
       
    43     
       
    44 public slots:
       
    45 
       
    46     /**
       
    47      * Signaled when a list of videos is available.
       
    48      * Ownership of array is not transferred.
       
    49      * 
       
    50      * @param aVideoList List of videos
       
    51      */
       
    52     virtual void newVideoListSlot( CMPXMediaArray* aVideoList ) = 0;
       
    53     
       
    54     /**
       
    55      * Signaled when a list of videos is appended from collection.
       
    56      * Ownership of array is not transferred.
       
    57      * 
       
    58      * @param videoList List of videos
       
    59      */
       
    60     virtual void appendVideoListSlot( CMPXMediaArray* videoList ) = 0;
       
    61           
       
    62     
       
    63     /**
       
    64      * Signaled when a single video item has fetched.
       
    65      * Ownership of video is transferred.
       
    66      * 
       
    67      * @param aVideo Video item.
       
    68      */
       
    69     virtual void newVideoAvailableSlot( CMPXMedia* aVideo ) = 0;
       
    70     
       
    71     /**
       
    72      * Signaled when received an avent about externally removed item.
       
    73      * 
       
    74      * @param itemId item id
       
    75      */
       
    76     virtual void itemDeletedSlot( TMPXItemId &itemId ) = 0;
       
    77            
       
    78     /**
       
    79      * Signaled when multiple video deletion command is completed.
       
    80      * 
       
    81      * @param overallCount count of ALL videos in this delete procedure 
       
    82      * @param failedMediaIds media-array containing possible failed medias
       
    83      */
       
    84     virtual void videoDeleteCompletedSlot( int overallCount, QList<TMPXItemId> *failedMediaIds ) = 0;
       
    85     
       
    86     /**
       
    87      * Signaled when album remove command is completed and some albums were not removed.
       
    88      * 
       
    89      * @param failedMediaIds media-array containing failed medias
       
    90      */
       
    91     virtual void albumRemoveFailureSlot( QList<TMPXItemId> *failedMediaIds ) = 0;
       
    92     
       
    93     /**
       
    94      * Signaled when all details for a video have been fetched.
       
    95      * 
       
    96      * @param media MPX Media that contains all details.
       
    97      */
       
    98     virtual void videoDetailsCompletedSlot( CMPXMedia* media ) = 0;
       
    99     
       
   100     /**
       
   101      * Signalled when album items are recieved.
       
   102      * 
       
   103      * @param albumId, Album which items are received.
       
   104      * @param albumItems, Items belonging to the current album.
       
   105      */
       
   106     virtual void albumListAvailableSlot(TMPXItemId &albumId,
       
   107         CMPXMediaArray *albumItems) = 0;
       
   108     
       
   109     /**
       
   110      * Signalled when item has been mofidied.
       
   111      * 
       
   112      * @param itemId, item that has been modified.
       
   113      */
       
   114     virtual void itemModifiedSlot(const TMPXItemId &itemId) = 0;
       
   115     
       
   116     /**
       
   117      * Signalled when video list is complete.
       
   118      */
       
   119     virtual void videoListCompleteSlot() = 0;
       
   120     
       
   121     /**
       
   122      * Signalled when album list is complete.
       
   123      */
       
   124     virtual void albumListCompleteSlot() = 0;
       
   125 };
       
   126 
       
   127 #endif // __VIDEOMODELOBSERVER_H