photosgallery/slideshow/engine/tsrc/t_cshwviewcontrol/t_cshwviewcontrol.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2006-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 view control for the slideshow
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __T_CSHWVIEWCONTROL_H__
       
    22 #define __T_CSHWVIEWCONTROL_H__
       
    23 
       
    24 //  EXTERNAL INCLUDES
       
    25 #include <digia/eunit/CEUnitTestSuiteClass.h>
       
    26 #include <digia/eunit/EUnitDecorators.h>
       
    27 
       
    28 //  INTERNAL INCLUDES
       
    29 #include "shwviewcontrol.h"
       
    30 #include "shweventqueue.h"
       
    31 
       
    32 #include "tmglxmedialist_stub.h"
       
    33 
       
    34 //  FORWARD DECLARATIONS
       
    35 
       
    36 //  CLASS DEFINITION
       
    37 /**
       
    38  * Unit tests for the view control
       
    39  */
       
    40 NONSHARABLE_CLASS( T_CShwViewControl )
       
    41 	: public CEUnitTestSuiteClass,
       
    42 	public MGlxMediaList_Stub_Observer,
       
    43 	public MShwEventQueue
       
    44     {
       
    45     public:     // Constructors and destructors
       
    46 
       
    47         /**
       
    48          * Two phase construction
       
    49          */
       
    50         static T_CShwViewControl* NewL();
       
    51         static T_CShwViewControl* NewLC();
       
    52         /**
       
    53          * Destructor
       
    54          */
       
    55         ~T_CShwViewControl();
       
    56 
       
    57     private:    // Constructors and destructors
       
    58 
       
    59         T_CShwViewControl();
       
    60         void ConstructL();
       
    61 
       
    62 	public:	// from MGlxMediaList_Stub_Observer, MShwEventQueue
       
    63 
       
    64 		void MGlxMediaList_MethodCalled( TMGlxMediaListMethodId aMethodId );
       
    65 		void SendEventL( MShwEvent* aEvent );
       
    66 
       
    67     private:    // New methods
       
    68 
       
    69          void SetupL();
       
    70          void Teardown();
       
    71          void TestNewlL();
       
    72          void TestNotifyL1L();
       
    73          void TestNotifyL2L();
       
    74          void TestNotifyL3L();
       
    75          void TestNotifyL4L();
       
    76          void TestNotifyL5L();
       
    77          void TestNotifyL6L();
       
    78          void TestNotifyL7L();
       
    79          void TestNotifyL8L();
       
    80          void TestNotifyL9L();
       
    81          void TestNotifyL10L();
       
    82          void TestNotifyL11L();
       
    83          void TestNotifyL12L();
       
    84          void TestNotifyL13L();
       
    85          void TestNotifyL14L();
       
    86 
       
    87     private:    // Data
       
    88 		
       
    89         CShwViewControl* iCShwViewControl;
       
    90         
       
    91 		TMGlxMediaList_Stub* iStubMediaList;
       
    92         
       
    93         MShwEvent* iEvent;
       
    94 
       
    95         EUNIT_DECLARE_TEST_TABLE; 
       
    96 
       
    97     };
       
    98 
       
    99 #endif      //  __T_CSHWVIEWCONTROL_H__
       
   100 
       
   101 // End of file