lafagnosticuifoundation/cone/tef/TCone2Step.h
changeset 0 2f259fa3e83a
child 6 9f56a4e1b8ab
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @test
       
    19  @internalComponent - Internal Symbian test code 
       
    20 */
       
    21 
       
    22 
       
    23 #if !defined(__TCONE2STEP_H__)
       
    24 #define __TCONE2STEP_H__
       
    25 
       
    26 
       
    27 #include <test/testexecutestepbase.h>
       
    28 #include "TConeTestServer.h"
       
    29 #include "appfwk_test_AppUi.h"
       
    30 
       
    31 
       
    32 class CTCone2Step : public CTmsTestStep
       
    33 	{
       
    34 public:
       
    35 	CTCone2Step();
       
    36 	~CTCone2Step();
       
    37 	virtual TVerdict doTestStepL();
       
    38 	void ConstructCone2AppL(CCoeEnv* aCoe);
       
    39 private:
       
    40 	};
       
    41 
       
    42 
       
    43 
       
    44 //! A CCoeControl Derived Class.\n
       
    45 /**  A Simple control.\n */
       
    46 
       
    47 class CTestCone2Control : public CCoeControl
       
    48 	{
       
    49 public:
       
    50 	DECLARE_TYPE_ID(0x10004C77)
       
    51     void ConstructL();
       
    52 private: // from CCoeControl
       
    53 	void MakeVisible(TBool aVisible);
       
    54 public:
       
    55     TBool iDisplayed;
       
    56     };
       
    57 
       
    58 
       
    59 //! A CCoeControl Derived Class.\n
       
    60 /**   A container control. Tests container to component interface.\n */
       
    61 
       
    62 class CTestContainerControl : public CCoeControl
       
    63 	{
       
    64 public:
       
    65     ~CTestContainerControl();
       
    66 	void ConstructL();
       
    67 	TBool IsDialogControlVisible() const;
       
    68 	CTestCone2Control* GetComponentControl();
       
    69 private: // from CCoeControl
       
    70 	TInt CountComponentControls() const;
       
    71 	CCoeControl* ComponentControl(TInt aIndex) const;
       
    72 private:
       
    73 	//! Component control of class CTestCone2Control.\n
       
    74 	CTestCone2Control* iDialogCtrl;
       
    75     };
       
    76 
       
    77 class CTestAppUi;
       
    78 
       
    79 
       
    80 //! A CBase Derived Class.\n
       
    81 /**   The CTestDriver class runs a series of tests on timer callback.\n */
       
    82 
       
    83 class CTestDriver : public CBase
       
    84 	{
       
    85 public:
       
    86 	CTestDriver(CCoeAppUi& aAppUi,CTestStep* aStep);
       
    87 	~CTestDriver();
       
    88 	void ConstructL();
       
    89 public:
       
    90 	void TestIsDisplayingDialogAndRemoveFromStackAPIsL();
       
    91 	void TestMakeVisibleOnChildControlsL();
       
    92 	void TestAppHelpContextAPIL();
       
    93 	void TestSetAndGetSystemDefaultViewAPIsL();
       
    94 	void TestCoeControlAPIsL();
       
    95 	void TestColorUseAPIsL();
       
    96 	void TestConeMiscAPIsL();
       
    97 	void TestConeInputCapabilitiesAPIs();
       
    98 	void TestReadResourceAPIsL();
       
    99 	void TestSetandGetCCoeControlAPIsL();
       
   100 	CTestExecuteLogger& Logger(){return iStep->Logger();};
       
   101 private:
       
   102 	//! Handle to AppUi Class.\n
       
   103 	CCoeAppUi& iAppUi;
       
   104 	//! Resource File Id.\n
       
   105 	TInt iResourceFileFlag;
       
   106 	//! Pointer to CTestStep.\n
       
   107 	CTestStep* iStep;
       
   108 	};
       
   109 
       
   110 
       
   111 //! A CTestCoeAppUi Derived Class.\n
       
   112 
       
   113 /**   App Ui class for the TCone2Step.\n */
       
   114 
       
   115 class CCone2TestAppUi : public CTestCoeAppUi
       
   116     {
       
   117 public:
       
   118 	CCone2TestAppUi(CTmsTestStep* aStep);
       
   119     ~CCone2TestAppUi();
       
   120     void ConstructL(CTmsTestStep* aStep);
       
   121 private:
       
   122 	CTestDriver* iDriver;
       
   123 	void RunTestStepL(TInt aStepNum);
       
   124     };
       
   125 
       
   126 //! TCone 2 Test Step Name.\n
       
   127 _LIT(KTCone2Step,"TCone2");
       
   128 
       
   129 #endif
       
   130 
       
   131