commonuisupport/uikon/test/teiksrv/tnotdial/tnotdial.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  @test
       
    19  @internalComponent - Internal Symbian test code
       
    20 */
       
    21 
       
    22 #if !defined(__TNOTDIAL_H__)
       
    23 #define __TNOTDIAL_H__
       
    24 
       
    25 #include "uiktestserver.h"
       
    26 
       
    27 #include <coecntrl.h>
       
    28 #include <techview/eikdialg.h>
       
    29 #include <eikdoc.h>
       
    30 #include <eikapp.h>
       
    31 #include "TNOTDIAL.HRH"
       
    32 #include <tnotdial.rsg>
       
    33 #include "eiksrvc.h"
       
    34 #include <techview/eikconso.h>
       
    35 #include <e32base.h>
       
    36 #include <e32base.h>
       
    37 #include "appfwk_test_AppUi.h"
       
    38 
       
    39 //!  CEmptyControl
       
    40 /**
       
    41  An empty background control.
       
    42 */
       
    43 class CEmptyControl : public CCoeControl
       
    44 	{
       
    45 public:
       
    46 	void ConstructL(const TRect& aRect);
       
    47 	};
       
    48 
       
    49 //!  CTNotdialAppUi
       
    50 /**
       
    51  UI class for test class CTNotdialStep.
       
    52 */
       
    53 class CTNotdialAppUi : public CTestAppUi
       
    54 	{
       
    55 public:
       
    56 	CTNotdialAppUi(CTmsTestStep* aTestStep);
       
    57 	void ConstructL();
       
    58 	~CTNotdialAppUi();
       
    59 	void RunTestStepL(TInt aNextStep);
       
    60 	TUid iMyPhoneNotifierUid ;
       
    61 	TUid iMySmsNotifierUid ;
       
    62 	TUid iMyEmailNotifierUid ;
       
    63 	TUid iMyLowBatteryNotifierUid ;
       
    64 	TUid iMyAgendaAlarmUid ;
       
    65 private: // framework
       
    66 	void HandleCommandL(TInt aCommand);
       
    67 	TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
       
    68 	void TestStep01L();
       
    69 	void TestStep02L();
       
    70 	void TestStep03L();
       
    71 	void TestStep04L();
       
    72 	void TestStep05L();
       
    73 	void TestStep06L();
       
    74 	void TestStep07L();
       
    75 	void TestStep08L();
       
    76 	void TestStep09L();
       
    77 	void TestStep10L();
       
    78 	void TestStep11L();
       
    79 	void TestStep12L();
       
    80 	void TestStep13L();
       
    81 	void TestStep14L();
       
    82 	void TestStep15L();
       
    83 	void TestStep16L();
       
    84 	void TestStep17L();
       
    85 	void TestStep18L();
       
    86 	void TestStep19L();
       
    87 	void TestStep20L();
       
    88 	void TestStep21L();
       
    89 	void TestStep22L();
       
    90 	void TestStep23L();
       
    91 	void TestStep24L();
       
    92 	void TestStep25L();
       
    93 	void TestStep26L();
       
    94 	void TestStep27L();
       
    95 	void TestStep28L();
       
    96 	void TestStep29L();
       
    97 	void TestStep30L();
       
    98 	void TestStep31L();
       
    99 	void TestStep32L();
       
   100 private:
       
   101 	void AppUpdate(TUid aNotifierUID,const TDesC8& aMessage, CEikonEnv* aEikEnv, TDes8& aResponse);
       
   102 	static TInt KickOffBatteryNotifierL(TAny* aSimpleAppUi);
       
   103 	static TInt NotifyFunc(TAny *aPtr);
       
   104 
       
   105 private:
       
   106 	CEmptyControl* iEmptyControl;
       
   107 	RNotifier iNotifier;
       
   108 	TRgb iColor[2];
       
   109 	CPeriodic* iBattTimer;
       
   110 	TInt iNotifierCounter;
       
   111 	TPtrC iNotifierMessage[5];
       
   112 	TInt iMessageCounter;
       
   113 	};
       
   114 	
       
   115 _LIT(KTNotdialStep, "TNotdial");
       
   116 
       
   117 //! A CTNotdialStep test step class
       
   118 /**
       
   119  Test step class for the extended notifier framework.
       
   120 */
       
   121 class CTNotdialStep : public CTmsTestStep
       
   122 	{
       
   123 public:
       
   124 	CTNotdialStep();
       
   125 	~CTNotdialStep();
       
   126 	virtual TVerdict doTestStepPreambleL();
       
   127 	virtual TVerdict doTestStepPostambleL();
       
   128 	virtual TVerdict doTestStepL();
       
   129 	void ConstructAppL(CEikonEnv* aEikEnv);
       
   130 	};
       
   131 
       
   132 #endif