diff -r 000000000000 -r 2f259fa3e83a lafagnosticuifoundation/clockanim/tef/TCLCK2STEP.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lafagnosticuifoundation/clockanim/tef/TCLCK2STEP.h Tue Feb 02 01:00:49 2010 +0200 @@ -0,0 +1,93 @@ +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +/** + @file + @internalComponent - Internal Symbian test code +*/ + +#if !defined(__TCLCK2STEP_H__) +#define __TCLCK2STEP_H__ + + +#include +#include "TClockTestServer.h" +#include "appfwk_test_AppUi.h" + +class CTClck2Step : public CTmsTestStep + { +public: + CTClck2Step(); + ~CTClck2Step(); + virtual TVerdict doTestStepL(); + void ConstructAppL(CCoeEnv* aCoeEnv); +private: + }; + + +class CClck2DestructableFont : public CBase + { +public: + CClck2DestructableFont(CWsScreenDevice* aScreenDevice); + void ConstructL(const TFontSpec& aFontSpec); + virtual ~CClck2DestructableFont(); + TInt Handle() const; +private: + CWsScreenDevice* iScreenDevice; // not owned by this pointer + CFbsFont* iFont; + }; + +// +class CTestClck2Ui; +class CClk2Control : public CCoeControl + { +friend class CTestClck2Ui; +public: + CClk2Control(); + void ConstructL(); + virtual ~CClk2Control(); +private: + // functions overriding those in CCoeControl + virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); + virtual void Draw(const TRect& aRect) const; + // miscellaneous functions + void CreateDigitalClocksL(); + void CreateAnalogClocksL(); +private: + TRgb iBackgroundColor; + RAnimDll iAnimDll; + RDigitalClock* iDigitalClock0; + TPoint iDigitalClock0Position; + TSize iDigitalClock0Size; + RAnalogClock* iAnalogClock0; + TPoint iAnalogClock0Position; + TSize iAnalogClock0Size; + TInt iUniversalTimeOffset; + }; + +class CTestClck2Ui : public CTestCoeAppUi + { +public: + CTestClck2Ui(CTmsTestStep* aStep); + void ConstructL(); +protected: + CClk2Control* iControl; +protected: + virtual void RunTestStepL(TInt aStep); + }; + +_LIT(KTClck2Step,"TClck2"); + +#endif