examples/HelloWorld/HelloWorld.h

00001 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
00002 // All rights reserved.
00003 // This component and the accompanying materials are made available
00004 // under the terms of "Eclipse Public License v1.0"
00005 // which accompanies this distribution, and is available
00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00007 //
00008 // Initial Contributors:
00009 // Nokia Corporation - initial contribution.
00010 //
00011 // Contributors:
00012 //
00013 // Description:
00014 // HelloWorld 
00015 // The class definitions for the simple example application
00016 // containing a single view with the text "Hello World !" drawn
00017 // on it.
00018 // The class definitions are:
00019 // CExampleApplication 
00020 // CExampleAppUi
00021 // CExampleAppView
00022 // CExampleDocument
00023 //
00024 
00025 #ifndef __HELLOWORLD_H
00026 #define __HELLOWORLD_H
00027 
00028 #include <coeccntx.h>
00029 
00030 #include <eikenv.h>
00031 #include <eikappui.h>
00032 #include <eikapp.h>
00033 #include <eikdoc.h>
00034 #include <eikmenup.h>
00035 
00036 #include <eikon.hrh>
00037 
00038 #include <helloworld.rsg>
00039 #include "HelloWorld.hrh"
00040 
00041 
00042 
00044 //
00045 // CExampleApplication
00046 //
00048 
00049 class CExampleApplication : public CEikApplication
00050         {
00051 private: 
00052                    // Inherited from class CApaApplication
00053         CApaDocument* CreateDocumentL();
00054         TUid AppDllUid() const;
00055         };
00056 
00058 //
00059 // CExampleAppView
00060 //
00062 class CExampleAppView : public CCoeControl
00063     {
00064 public:
00065         static CExampleAppView* NewL(const TRect& aRect);
00066         CExampleAppView();
00067         ~CExampleAppView();
00068     void ConstructL(const TRect& aRect);
00069 
00070 private:
00071                    // Inherited from CCoeControl
00072         void Draw(const TRect& /*aRect*/) const;
00073 
00074 private:
00075         HBufC*  iExampleText;
00076     };
00077 
00078 
00080 //
00081 // CExampleAppUi
00082 //
00084 class CExampleAppUi : public CEikAppUi
00085     {
00086 public:
00087     void ConstructL();
00088         ~CExampleAppUi();
00089 
00090 private:
00091               // Inherirted from class CEikAppUi
00092         void HandleCommandL(TInt aCommand);
00093 
00094 private:
00095         CCoeControl* iAppView;
00096         };
00097 
00098 
00100 //
00101 // CExampleDocument
00102 //
00104 class CExampleDocument : public CEikDocument
00105         {
00106 public:
00107         static CExampleDocument* NewL(CEikApplication& aApp);
00108         CExampleDocument(CEikApplication& aApp);
00109         void ConstructL();
00110 private: 
00111                    // Inherited from CEikDocument
00112         CEikAppUi* CreateAppUiL();
00113         };
00114 
00115 
00116 #endif
00117 

Generated by  doxygen 1.6.2