videocollection/videocollectionwrapper/tsrc/testvideomodel/stub/inc/videocollectionclient.h
changeset 15 cf5481c2bc0b
child 52 e3cecb93e76a
equal deleted inserted replaced
2:dec420019252 15:cf5481c2bc0b
       
     1 
       
     2 
       
     3 /*
       
     4 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     5 * All rights reserved.
       
     6 * This component and the accompanying materials are made available
       
     7 * under the terms of "Eclipse Public License v1.0"
       
     8 * which accompanies this distribution, and is available
       
     9 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    10 *
       
    11 * Initial Contributors:
       
    12 * Nokia Corporation - initial contribution.
       
    13 *
       
    14 * Contributors:
       
    15 *
       
    16 * Description:  stubclass of videocollection for testing VideoListDataModel class methods*
       
    17 */
       
    18 
       
    19 #ifndef __VIDEOCOLLECTIONCLIENT_H
       
    20 #define __VIDEOCOLLECTIONCLIENT_H
       
    21 
       
    22 #include <mpxmedia.h>
       
    23 #include <QList>
       
    24 
       
    25 
       
    26 class VideoDataSignalReceiver;
       
    27 
       
    28 
       
    29 class  VideoCollectionClient 
       
    30 {
       
    31 
       
    32 public: // Constructors and destructor
       
    33 
       
    34     /**
       
    35      * constructor.
       
    36      */
       
    37     VideoCollectionClient();
       
    38 
       
    39     /**
       
    40      * Destructor.
       
    41      */
       
    42     virtual ~VideoCollectionClient();
       
    43 
       
    44     /**
       
    45      * dummy impl
       
    46      */
       
    47     int initialize( VideoDataSignalReceiver* signalReceiver);
       
    48     
       
    49     /**
       
    50      * return 0 always, increases global counter by one
       
    51      * 
       
    52      * @param TMPXItemId not used
       
    53      * 
       
    54      * @return 0
       
    55      */
       
    56     int deleteVideos( QList<TMPXItemId> *ids );
       
    57     
       
    58     /**
       
    59      * returns mRemoveItemsReturn
       
    60      */
       
    61     int removeItemsFromAlbum(TMPXItemId &albumId, const QList<TMPXItemId> &items);
       
    62     
       
    63     /**
       
    64      * if true, initializate fails
       
    65      */
       
    66     static bool mFailInitialize;
       
    67     
       
    68     /**
       
    69      * if true, connectCollectionSignalReceiver fails
       
    70      */
       
    71     static bool mFailConnectSignals ;
       
    72  
       
    73     /**
       
    74      * count of initialize -calls
       
    75      */
       
    76     static int mInitializeCount;
       
    77     
       
    78     /**
       
    79      * returned from removeItemsFromAlbum
       
    80      */
       
    81     static int mRemoveItemsReturn;
       
    82     
       
    83   
       
    84 };
       
    85 
       
    86 #endif // __VIDEOCOLLECTIONCLIENT_H