// 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 <test/testexecutestepbase.h>
#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