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