videocollection/videocollectionwrapper/tsrc/testvideomodel/stub/inc/videocollectionclient.h
changeset 34 bbb98528c666
child 35 3738fe97f027
equal deleted inserted replaced
33:48e74db5d516 34:bbb98528c666
       
     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      * if true, initializate fails
       
    60      */
       
    61     static bool mFailInitialize;
       
    62     
       
    63     /**
       
    64      * if true, connectCollectionSignalReceiver fails
       
    65      */
       
    66     static bool mFailConnectSignals ;
       
    67  
       
    68     /**
       
    69      * count of initialize -calls
       
    70      */
       
    71     static int mInitializeCount;
       
    72     
       
    73   
       
    74 };
       
    75 
       
    76 #endif // __VIDEOCOLLECTIONCLIENT_H