photosgallery/slideshow/engine/tsrc/t_cshwsettingsmodel/t_cshwsettingsmodel.h
branchRCL_3
changeset 24 ea65f74e6de4
parent 23 b023a8d2866a
child 25 8e5f6eea9c9f
equal deleted inserted replaced
23:b023a8d2866a 24:ea65f74e6de4
     1 /*
       
     2 * Copyright (c) 2007-2007 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:   Test for settings model for the slideshow
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef __T_CSHWSETTINGSMODEL_H__
       
    23 #define __T_CSHWSETTINGSMODEL_H__
       
    24 
       
    25 //  EXTERNAL INCLUDES
       
    26 #include <digia/eunit/CEUnitTestSuiteClass.h>
       
    27 
       
    28 //  INTERNAL INCLUDES
       
    29 
       
    30 
       
    31 //  FORWARD DECLARATIONS
       
    32 class CShwSettingsModel;
       
    33 
       
    34 //  CLASS DEFINITION
       
    35 /**
       
    36  *
       
    37  * Test class for CShwSettingsModel
       
    38  *
       
    39  */
       
    40 NONSHARABLE_CLASS( T_CShwSettingsModel )
       
    41      : public CEUnitTestSuiteClass
       
    42     {
       
    43     public:     // Constructors and destructors
       
    44 
       
    45         /**
       
    46          * Two phase construction
       
    47          */
       
    48         static T_CShwSettingsModel* NewL();
       
    49         static T_CShwSettingsModel* NewLC();
       
    50         /**
       
    51          * Destructor
       
    52          */
       
    53         ~T_CShwSettingsModel();
       
    54 
       
    55     private:    // Constructors and destructors
       
    56 
       
    57         T_CShwSettingsModel();
       
    58         void ConstructL();
       
    59 
       
    60     public:     // From observer interface
       
    61 
       
    62         
       
    63 
       
    64     private:    // New methods
       
    65 
       
    66          void SetupL();
       
    67         
       
    68          void Teardown();
       
    69         
       
    70          void TestGetDefaultValues();
       
    71         
       
    72          void TestSetAndGetMusicPathL();
       
    73          
       
    74          void TestSetAndGetMusicOnOffL();
       
    75          
       
    76          void TestSetAndGetTransDelayL();
       
    77          
       
    78          void TestSetAndGetTransitionTypeL();
       
    79         
       
    80 
       
    81     private:    // Data
       
    82 
       
    83 		CShwSettingsModel* iShwSettingsModel;
       
    84 
       
    85         EUNIT_DECLARE_TEST_TABLE; 
       
    86 
       
    87     };
       
    88 
       
    89 #endif // __T_CSHWSETTINGSMODEL_H__
       
    90 
       
    91 // End of file