videocollection/videocollectionwrapper/tsrc/testvideomodel/stub/src/videocollectionclient.cpp
changeset 34 bbb98528c666
child 35 3738fe97f027
equal deleted inserted replaced
33:48e74db5d516 34:bbb98528c666
       
     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:  stubclass of videocollection for testing VideoListDataModel class methods*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "videocollectionclient.h"
       
    21 #include "videodatasignalreceiver.h"
       
    22 
       
    23 bool VideoCollectionClient::mFailInitialize = false;
       
    24     
       
    25 bool VideoCollectionClient::mFailConnectSignals = false; 
       
    26 
       
    27 int VideoCollectionClient::mInitializeCount = 0;
       
    28 
       
    29 
       
    30 
       
    31 // -----------------------------------------------------------------------------
       
    32 // VideoCollectionClient
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 VideoCollectionClient::VideoCollectionClient()
       
    36 {
       
    37 }
       
    38 
       
    39 
       
    40 // -----------------------------------------------------------------------------
       
    41 // ~VideoCollectionClient
       
    42 // -----------------------------------------------------------------------------
       
    43 //
       
    44 VideoCollectionClient::~VideoCollectionClient()
       
    45 {
       
    46 
       
    47 }
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // initialize
       
    51 // -----------------------------------------------------------------------------
       
    52 //
       
    53 int VideoCollectionClient::initialize( VideoDataSignalReceiver* /*signalReceiver*/)
       
    54 {
       
    55     mInitializeCount++;
       
    56     if(mFailInitialize)
       
    57     {
       
    58         return -1;
       
    59     }
       
    60     return 0;
       
    61 }
       
    62 
       
    63 
       
    64