videocollection/videocollectionwrapper/tsrc/testvideomodel_p/stub/src/videocollectionutils.cpp
changeset 36 8aed59de29f9
equal deleted inserted replaced
35:3738fe97f027 36:8aed59de29f9
       
     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: CVideoCollectionUtils class implementation
       
    15 * 
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 
       
    20 
       
    21 #include <qobject.h>
       
    22 #include "videocollectionutils.h"
       
    23 
       
    24 QString VideoCollectionUtils::mPrepareLengthStringReturnValue = "test duration";
       
    25 QString VideoCollectionUtils::mPrepareSizeStringReturnValue = "test size";
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // instance
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 VideoCollectionUtils& VideoCollectionUtils::instance()
       
    32 {
       
    33     static VideoCollectionUtils _collectionUtilsInstance;
       
    34     return _collectionUtilsInstance;
       
    35 }
       
    36 	
       
    37 // -----------------------------------------------------------------------------
       
    38 // CVideoCollectionUtils
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 VideoCollectionUtils::VideoCollectionUtils()
       
    42 {
       
    43     
       
    44 }
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // ~CVideoCollectionUtils
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 VideoCollectionUtils::~VideoCollectionUtils()
       
    51 {
       
    52 
       
    53 }
       
    54 
       
    55 // -----------------------------------------------------------------------------
       
    56 // prepareLengthString
       
    57 // -----------------------------------------------------------------------------
       
    58 //
       
    59 QString VideoCollectionUtils::prepareLengthString(quint32 length)
       
    60 {
       
    61     Q_UNUSED(length);
       
    62     return mPrepareLengthStringReturnValue;
       
    63 }
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // prepareSizeString
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 QString VideoCollectionUtils::prepareSizeString(quint32 size)
       
    70 {
       
    71     Q_UNUSED(size);
       
    72     return mPrepareSizeStringReturnValue;    
       
    73 }
       
    74 
       
    75 // End of file