lafagnosticuifoundation/clockanim/tef/TCLCK1STEP.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 // Copyright (c) 2005-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  @internalComponent - Internal Symbian test code 
       
    19 */
       
    20 
       
    21 
       
    22 #if !defined(__TCLCK1STEP_H__)
       
    23 #define __TCLCK1STEP_H__
       
    24 
       
    25 
       
    26 #include <test/testexecutestepbase.h>
       
    27 #include "TClockTestServer.h"
       
    28 #include "appfwk_test_AppUi.h"
       
    29 
       
    30 class CTClck1Step : public CTmsTestStep
       
    31 	{
       
    32 public:
       
    33 	CTClck1Step();
       
    34 	~CTClck1Step();
       
    35 //	virtual TVerdict doTestStepPreambleL();
       
    36 //	virtual TVerdict doTestStepPostambleL();
       
    37 	virtual TVerdict doTestStepL();
       
    38 	void ConstructAppL(CCoeEnv* aCoeEnv);
       
    39 
       
    40 private:
       
    41 	};
       
    42 
       
    43 
       
    44 class CClck1DestructableFont : public CBase
       
    45 	{
       
    46 public:
       
    47 	CClck1DestructableFont(CWsScreenDevice* aScreenDevice);
       
    48 	void ConstructL(const TFontSpec& aFontSpec);
       
    49 	virtual ~CClck1DestructableFont();
       
    50 	TInt Handle() const;
       
    51 private:
       
    52 	CWsScreenDevice* iScreenDevice; // not owned by this pointer
       
    53 	CFbsFont* iFont;
       
    54 	};
       
    55 
       
    56 //
       
    57 class CTestClck1Ui;
       
    58 class CClk1Control : public CCoeControl
       
    59 	{
       
    60 friend class CTestClck1Ui;
       
    61 public:
       
    62 	CClk1Control();
       
    63 	void ConstructL();
       
    64 	virtual ~CClk1Control();
       
    65 private:
       
    66 	// functions overriding those in CCoeControl
       
    67 	virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
       
    68 	virtual void Draw(const TRect& aRect) const;
       
    69 	// miscellaneous functions
       
    70 	void CreateDigitalClocksL();
       
    71 	void CreateAnalogClocksL();
       
    72 private:
       
    73 	TRgb iBackgroundColor;
       
    74 	RAnimDll iAnimDll;
       
    75 	RDigitalClock* iDigitalClock0;
       
    76 	TPoint iDigitalClock0Position;
       
    77 	TSize iDigitalClock0Size;
       
    78 	RAnalogClock* iAnalogClock0;
       
    79 	TPoint iAnalogClock0Position;
       
    80 	TSize iAnalogClock0Size;
       
    81 	TInt iUniversalTimeOffset;
       
    82 	};
       
    83 
       
    84 class CTestClck1Ui  : public CTestCoeAppUi
       
    85 	{
       
    86 public:
       
    87 	CTestClck1Ui(CTmsTestStep* aStep);
       
    88 	void ConstructL();
       
    89 protected:
       
    90 	CClk1Control* iControl;
       
    91 protected:
       
    92 	virtual void RunTestStepL(TInt aStep);
       
    93 	};
       
    94 
       
    95 _LIT(KTClck1Step,"TClck1");
       
    96 
       
    97 #endif