examples/AppFramework/Apparc/Minimal/Minimal.h

00001 // Copyright (c) 2005-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 //
00015 
00016 #ifndef __MINIMAL_H__
00017 #define __MINIMAL_H__
00018 
00019 #include <eikenv.h>
00020 #include <eikappui.h>
00021 #include <eikapp.h>
00022 #include <eikdoc.h>
00023 #include <eikmenup.h>
00024 
00025 
00026 // Minimal application class
00027 class CExampleApplication : public CEikApplication
00028         {
00029 private:
00030         CApaDocument* CreateDocumentL();
00031         TUid AppDllUid() const;
00032         TFileName ResourceFileName() const;
00033         };
00034 
00035 // Minimal view class
00036 class CExampleAppView : public CCoeControl
00037     {
00038 public:
00039         static CExampleAppView* NewL(const TRect& aRect);
00040         CExampleAppView();
00041         ~CExampleAppView();
00042     void ConstructL(const TRect& aRect);
00043 
00044 private:
00045         void Draw(const TRect& /*aRect*/) const;
00046     };
00047 
00048 // Minimal application UI class
00049 class CExampleAppUi : public CEikAppUi
00050     {
00051 public:
00052     void ConstructL();
00053         ~CExampleAppUi();
00054 
00055 private:
00056         void HandleCommandL(TInt aCommand);
00057 
00058 private:
00059         CCoeControl* iAppView;
00060         };
00061 
00062 // Minimal document class
00063 class CExampleDocument : public CEikDocument
00064         {
00065 public:
00066         static CExampleDocument* NewL(CEikApplication& aApp);
00067         CExampleDocument(CEikApplication& aApp);
00068         void ConstructL();
00069 private:
00070         CEikAppUi* CreateAppUiL();
00071         };
00072 
00073 
00074 #endif //__MINIMAL_H__
00075 

Generated by  doxygen 1.6.2