videocollection/videocollectionwrapper/tsrc/testvideocollectionclient/stub/inc/mpxmediaarray.h
changeset 15 cf5481c2bc0b
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 array of media objects for unit testing CVideocollectionClient
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CMPXMEDIAARRAY_H
       
    19 #define CMPXMEDIAARRAY_H
       
    20 
       
    21 #include <s32strm.h>
       
    22 
       
    23 
       
    24 class CMPXMedia;
       
    25 
       
    26 class CMPXMediaArray : public CBase
       
    27     {
       
    28 public:
       
    29 
       
    30     /**
       
    31      * creates new array
       
    32      */
       
    33     static CMPXMediaArray* NewL(){return new CMPXMediaArray();};
       
    34     
       
    35     /**
       
    36      * Constructor 
       
    37      */
       
    38     CMPXMediaArray():itemCount(0){};
       
    39     
       
    40     /**
       
    41      * Destructor 
       
    42      */
       
    43     ~CMPXMediaArray(){};
       
    44 
       
    45     /**
       
    46      * NOP 
       
    47      */
       
    48     void AppendL(const CMPXMedia* /*aMedia*/){itemCount++;};
       
    49     
       
    50     /**
       
    51      * NOP 
       
    52      */
       
    53     void AppendL(const CMPXMedia& /*aMedia*/){itemCount++;};
       
    54     
       
    55     /**
       
    56      * return itemCount
       
    57      */
       
    58     TInt Count() const{ return itemCount;};
       
    59  
       
    60     int itemCount;
       
    61     
       
    62     };
       
    63 
       
    64 #endif // CMPXMEDIAARRAY_H