localisation/apparchitecture/tef/TAppEmbeddableUiNotStandAlone.cpp
branchSymbian3
changeset 57 b8d18c84f71c
parent 6 c108117318cb
equal deleted inserted replaced
56:aa99f2208aad 57:b8d18c84f71c
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
    15 // to query the apparc server for applications which define
    15 // to query the apparc server for applications which define
    16 // different embeddability values in their AIF files.
    16 // different embeddability values in their AIF files.
    17 // 
    17 // 
    18 //
    18 //
    19 
    19 
    20 
       
    21 
       
    22 /**
    20 /**
    23  @file
    21  @file
    24  @internalComponent - Internal Symbian test code
    22  @internalComponent - Internal Symbian test code
    25 */
    23 */
    26 
    24 
    29 #include <apgtask.h>
    27 #include <apgtask.h>
    30 #include <eikenv.h>
    28 #include <eikenv.h>
    31 #include <eikappui.h>
    29 #include <eikappui.h>
    32 #include <eikapp.h>
    30 #include <eikapp.h>
    33 #include <eikdoc.h>
    31 #include <eikdoc.h>
    34 #include <eikmenup.h>
    32 #include <mw/eikmenup.h>
    35 
    33 
    36 #include "TAppEmbedUids.h"
    34 #include "TAppEmbedUids.h"
    37 
    35 
    38 #include <ecom.h>
    36 #include <ecom/ecom.h>
    39 #include <implementationproxy.h>
    37 #include <ecom/implementationproxy.h>
    40 
    38 
    41 _LIT(KExampleText, "This test application defines KAppEmbeddableUiNotStandAlone in it's AIF file");
    39 _LIT(KExampleText, "This test application defines KAppEmbeddableUiNotStandAlone in it's AIF file");
    42 
    40 
    43 
    41 
    44 ////////////////////////////////////////////////////////////////////////
    42 //
    45 //
    43 //
    46 // CExampleAppView
    44 // CExampleAppView
    47 //
    45 //
    48 ////////////////////////////////////////////////////////////////////////
    46 //
    49 class CExampleAppView : public CCoeControl
    47 class CExampleAppView : public CCoeControl
    50     {
    48     {
    51 public:
    49 public:
    52 	static CExampleAppView* NewL(const TRect& aRect);
    50 	static CExampleAppView* NewL(const TRect& aRect);
    53 	CExampleAppView();
    51 	CExampleAppView();
   101 	gc.DrawText(*iExampleText,drawRect,baselineOffset,CGraphicsContext::ECenter, 0);
    99 	gc.DrawText(*iExampleText,drawRect,baselineOffset,CGraphicsContext::ECenter, 0);
   102 	gc.DiscardFont();
   100 	gc.DiscardFont();
   103 	}
   101 	}
   104 
   102 
   105 
   103 
   106 ////////////////////////////////////////////////////////////////////////
   104 //
   107 //
   105 //
   108 // CExampleAppUi
   106 // CExampleAppUi
   109 //
   107 //
   110 ////////////////////////////////////////////////////////////////////////
   108 //
   111 class CExampleAppUi : public CEikAppUi
   109 class CExampleAppUi : public CEikAppUi
   112     {
   110     {
   113 public:
   111 public:
   114     void ConstructL();
   112     void ConstructL();
   115 	~CExampleAppUi();
   113 	~CExampleAppUi();
   142 		break;
   140 		break;
   143 		}
   141 		}
   144 	}
   142 	}
   145 
   143 
   146 
   144 
   147 ////////////////////////////////////////////////////////////////////////
   145 //
   148 //
   146 //
   149 // CExampleDocument
   147 // CExampleDocument
   150 //
   148 //
   151 ////////////////////////////////////////////////////////////////////////
   149 //
   152 class CExampleDocument : public CEikDocument
   150 class CExampleDocument : public CEikDocument
   153 	{
   151 	{
   154 public:
   152 public:
   155 	static CExampleDocument* NewL(CEikApplication& aApp);
   153 	static CExampleDocument* NewL(CEikApplication& aApp);
   156 	CExampleDocument(CEikApplication& aApp);
   154 	CExampleDocument(CEikApplication& aApp);
   170     return new(ELeave) CExampleAppUi;
   168     return new(ELeave) CExampleAppUi;
   171 	}
   169 	}
   172 
   170 
   173 
   171 
   174 
   172 
   175 ////////////////////////////////////////////////////////////////////////
   173 //
   176 //
   174 //
   177 // CExampleApplication
   175 // CExampleApplication
   178 //
   176 //
   179 ////////////////////////////////////////////////////////////////////////
   177 //
   180 
   178 
   181 class CExampleApplication : public CEikApplication
   179 class CExampleApplication : public CEikApplication
   182 	{
   180 	{
   183 private: 
   181 private: 
   184 	// from CApaApplication
   182 	// from CApaApplication
   226 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
   224 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
   227 	{
   225 	{
   228 	aTableCount=sizeof(ImplementationTable)/sizeof(ImplementationTable[0]);
   226 	aTableCount=sizeof(ImplementationTable)/sizeof(ImplementationTable[0]);
   229 	return ImplementationTable;
   227 	return ImplementationTable;
   230 	}
   228 	}
       
   229