videocollection/videocollectionwrapper/tsrc/testvideocollectionclient/stub/inc/stubcollectionsignalreceiver.h
changeset 15 cf5481c2bc0b
child 17 69946d1824c4
equal deleted inserted replaced
2:dec420019252 15:cf5481c2bc0b
       
     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:  stub classes for testing CVideoCollectionClient
       
    15 * 
       
    16 */
       
    17 
       
    18 #ifndef __STUBCOLLECTIONSIGNALRECEIVER_H
       
    19 #define __STUBCOLLECTIONSIGNALRECEIVER_H
       
    20 
       
    21 #include <QObject>
       
    22 // INCLUDES
       
    23 #include "videodatasignalreceiver.h"
       
    24 
       
    25 /**
       
    26  * implementation class for slots to be connected
       
    27  */
       
    28 class  StubSignalReceiver  : public VideoDataSignalReceiver
       
    29 {
       
    30 
       
    31     Q_OBJECT
       
    32     
       
    33     Q_DISABLE_COPY(StubSignalReceiver)
       
    34     
       
    35 public:
       
    36     
       
    37     /**
       
    38      * contructor
       
    39      */
       
    40     StubSignalReceiver(){};
       
    41     
       
    42     /**
       
    43      * destructor
       
    44      */
       
    45     virtual ~StubSignalReceiver(){};
       
    46     
       
    47 public slots:   
       
    48     
       
    49     /**
       
    50      * No implementation needed for these tests
       
    51      */
       
    52     void newVideoListSlot(CMPXMediaArray *array)
       
    53     {
       
    54         Q_UNUSED(array);
       
    55     }
       
    56    
       
    57     /**
       
    58      * No implementation needed for these tests
       
    59      */
       
    60     void appendVideoListSlot( CMPXMediaArray* array )
       
    61     {
       
    62         Q_UNUSED(array);
       
    63     }
       
    64           
       
    65     /**
       
    66      * No implementation needed for these tests
       
    67      */
       
    68     void newVideoAvailableSlot(CMPXMedia *media)
       
    69     {
       
    70         Q_UNUSED(media);
       
    71     }
       
    72     
       
    73     /**
       
    74      * No implementation needed for these tests
       
    75      */
       
    76     void itemDeletedSlot(TMPXItemId id)
       
    77     {
       
    78         Q_UNUSED(id);
       
    79     }
       
    80     
       
    81     /**
       
    82      * No implementation needed for these tests
       
    83      */
       
    84     void albumRemoveFailureSlot(QList<TMPXItemId> *items)
       
    85     {
       
    86         Q_UNUSED(items);
       
    87     }
       
    88     
       
    89     /**
       
    90      * No implementation needed for these tests
       
    91      */
       
    92     void videoDeletedSlot(TMPXItemId id)
       
    93     {
       
    94         Q_UNUSED(id);
       
    95     }
       
    96            
       
    97     /**
       
    98      * No implementation needed for these tests
       
    99      */
       
   100     void videoDeleteCompletedSlot(int count, QList<TMPXItemId> *failedIds)
       
   101     {
       
   102         Q_UNUSED(count);
       
   103         Q_UNUSED(failedIds);
       
   104     }
       
   105     
       
   106     /**
       
   107      * No implementation needed for these tests
       
   108      */
       
   109     void videoDetailsCompletedSlot(TMPXItemId id)
       
   110     {
       
   111         Q_UNUSED(id);
       
   112     }
       
   113     
       
   114     /**
       
   115      * No implementation needed for these tests
       
   116      */
       
   117     void albumListAvailableSlot(TMPXItemId albumId, CMPXMediaArray *albumItems)
       
   118     {
       
   119         Q_UNUSED(albumId);
       
   120         Q_UNUSED(albumItems);
       
   121     }
       
   122  
       
   123 };
       
   124 
       
   125 
       
   126 #endif