installationservices/swi/test/testexes/interpretsis_testcase/interpretsis_testcase.h
branchRCL_3
changeset 65 7333d7932ef7
equal deleted inserted replaced
62:5cc91383ab1e 65:7333d7932ef7
       
     1 // Copyright (c) 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 // HelloWorld 
       
    15 // The class definitions for the simple example application
       
    16 // containing a single view with the text "Hello World !" drawn
       
    17 // on it.
       
    18 // The class definitions are:
       
    19 // CExampleApplication 
       
    20 // CExampleAppUi
       
    21 // CExampleAppView
       
    22 // CExampleDocument
       
    23 //
       
    24 
       
    25 #ifndef __HELLOWORLD_H
       
    26 #define __HELLOWORLD_H
       
    27 
       
    28 #include <coeccntx.h>
       
    29 
       
    30 #include <eikenv.h>
       
    31 #include <eikappui.h>
       
    32 #include <eikapp.h>
       
    33 #include <eikdoc.h>
       
    34 #include <eikmenup.h>
       
    35 
       
    36 #include <techview/eikon.hrh>
       
    37 
       
    38 #include <interpretsis_testcase_01.rsg>
       
    39 #include "interpretsis_testcase.hrh"
       
    40 
       
    41 
       
    42 
       
    43 //
       
    44 //
       
    45 // CExampleApplication
       
    46 //
       
    47 //
       
    48 
       
    49 class CExampleApplication : public CEikApplication
       
    50 	{
       
    51 private: 
       
    52 	           // Inherited from class CApaApplication
       
    53 	CApaDocument* CreateDocumentL();
       
    54 	TUid AppDllUid() const;
       
    55 	};
       
    56 
       
    57 //
       
    58 //
       
    59 // CExampleAppView
       
    60 //
       
    61 //
       
    62 class CExampleAppView : public CCoeControl
       
    63     {
       
    64 public:
       
    65 	static CExampleAppView* NewL(const TRect& aRect);
       
    66 	CExampleAppView();
       
    67 	~CExampleAppView();
       
    68     void ConstructL(const TRect& aRect);
       
    69 
       
    70 private:
       
    71 	           // Inherited from CCoeControl
       
    72 	void Draw(const TRect& /*aRect*/) const;
       
    73 
       
    74 private:
       
    75 	HBufC*  iExampleText;
       
    76     };
       
    77 
       
    78 
       
    79 //
       
    80 //
       
    81 // CExampleAppUi
       
    82 //
       
    83 //
       
    84 class CExampleAppUi : public CEikAppUi
       
    85     {
       
    86 public:
       
    87     void ConstructL();
       
    88 	~CExampleAppUi();
       
    89 
       
    90 private:
       
    91               // Inherirted from class CEikAppUi
       
    92 	void HandleCommandL(TInt aCommand);
       
    93 
       
    94 private:
       
    95 	CCoeControl* iAppView;
       
    96 	};
       
    97 
       
    98 
       
    99 //
       
   100 //
       
   101 // CExampleDocument
       
   102 //
       
   103 //
       
   104 class CExampleDocument : public CEikDocument
       
   105 	{
       
   106 public:
       
   107 	static CExampleDocument* NewL(CEikApplication& aApp);
       
   108 	CExampleDocument(CEikApplication& aApp);
       
   109 	void ConstructL();
       
   110 private: 
       
   111 	           // Inherited from CEikDocument
       
   112 	CEikAppUi* CreateAppUiL();
       
   113 	};
       
   114 
       
   115 
       
   116 #endif
       
   117