sbsv2/raptor/test/smoke_suite/test_resources/simple_gui/HelloWorld.h
changeset 3 e1eecf4d390d
child 674 37ee82a83d43
equal deleted inserted replaced
1:be27ed110b50 3:e1eecf4d390d
       
     1 /*
       
     2 * Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __HELLOWORLD_H
       
    19 #define __HELLOWORLD_H
       
    20 
       
    21 #include <coeccntx.h>
       
    22 
       
    23 #include <eikenv.h>
       
    24 #include <eikappui.h>
       
    25 #include <eikapp.h>
       
    26 #include <eikdoc.h>
       
    27 #include <eikmenup.h>
       
    28 
       
    29 #include <eikon.hrh>
       
    30 
       
    31 #include <helloworld.rsg>
       
    32 #include "HelloWorld.hrh"
       
    33 
       
    34 
       
    35 
       
    36 ////////////////////////////////////////////////////////////////////////
       
    37 //
       
    38 // CExampleApplication
       
    39 //
       
    40 ////////////////////////////////////////////////////////////////////////
       
    41 
       
    42 class CExampleApplication : public CEikApplication
       
    43 	{
       
    44 private: 
       
    45 	           // Inherited from class CApaApplication
       
    46 	CApaDocument* CreateDocumentL();
       
    47 	TUid AppDllUid() const;
       
    48 	};
       
    49 
       
    50 ////////////////////////////////////////////////////////////////////////
       
    51 //
       
    52 // CExampleAppView
       
    53 //
       
    54 ////////////////////////////////////////////////////////////////////////
       
    55 class CExampleAppView : public CCoeControl
       
    56     {
       
    57 public:
       
    58 	static CExampleAppView* NewL(const TRect& aRect);
       
    59 	CExampleAppView();
       
    60 	~CExampleAppView();
       
    61     void ConstructL(const TRect& aRect);
       
    62 
       
    63 private:
       
    64 	           // Inherited from CCoeControl
       
    65 	void Draw(const TRect& /*aRect*/) const;
       
    66 
       
    67 private:
       
    68 	HBufC*  iExampleText;
       
    69     };
       
    70 
       
    71 
       
    72 ////////////////////////////////////////////////////////////////////////
       
    73 //
       
    74 // CExampleAppUi
       
    75 //
       
    76 ////////////////////////////////////////////////////////////////////////
       
    77 class CExampleAppUi : public CEikAppUi
       
    78     {
       
    79 public:
       
    80     void ConstructL();
       
    81 	~CExampleAppUi();
       
    82 
       
    83 private:
       
    84               // Inherirted from class CEikAppUi
       
    85 	void HandleCommandL(TInt aCommand);
       
    86 
       
    87 private:
       
    88 	CCoeControl* iAppView;
       
    89 	};
       
    90 
       
    91 
       
    92 ////////////////////////////////////////////////////////////////////////
       
    93 //
       
    94 // CExampleDocument
       
    95 //
       
    96 ////////////////////////////////////////////////////////////////////////
       
    97 class CExampleDocument : public CEikDocument
       
    98 	{
       
    99 public:
       
   100 	static CExampleDocument* NewL(CEikApplication& aApp);
       
   101 	CExampleDocument(CEikApplication& aApp);
       
   102 	void ConstructL();
       
   103 private: 
       
   104 	           // Inherited from CEikDocument
       
   105 	CEikAppUi* CreateAppUiL();
       
   106 	};
       
   107 
       
   108 
       
   109 #endif
       
   110