localisation/apparchitecture/tef/TRApaLsSessionStartAppTestApp.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 <eikstart.h>
    34 #include <eikstart.h>
    37 
    35 
    38 #include "TRApaLsSessionTestUids.h"
    36 #include "TRApaLsSessionTestUids.h"
    39 #include "TRApaLsSessionStartAppTest.h"
    37 #include "TRApaLsSessionStartAppTest.h"
    40 _LIT(KExampleText, "This test application is for TRApaLsSession start app tests");
    38 _LIT(KExampleText, "This test application is for TRApaLsSession start app tests");
    41 
    39 
    42 
    40 
    43 ////////////////////////////////////////////////////////////////////////
    41 //
    44 //
    42 //
    45 // CExampleAppView
    43 // CExampleAppView
    46 //
    44 //
    47 ////////////////////////////////////////////////////////////////////////
    45 //
    48 class CExampleAppView : public CCoeControl
    46 class CExampleAppView : public CCoeControl
    49     {
    47     {
    50 public:
    48 public:
    51 	static CExampleAppView* NewL(const TRect& aRect);
    49 	static CExampleAppView* NewL(const TRect& aRect);
    52 	CExampleAppView();
    50 	CExampleAppView();
   100 	gc.DrawText(*iExampleText,drawRect,baselineOffset,CGraphicsContext::ECenter, 0);
    98 	gc.DrawText(*iExampleText,drawRect,baselineOffset,CGraphicsContext::ECenter, 0);
   101 	gc.DiscardFont();
    99 	gc.DiscardFont();
   102 	}
   100 	}
   103 
   101 
   104 
   102 
   105 ////////////////////////////////////////////////////////////////////////
   103 //
   106 //
   104 //
   107 // CExampleAppUi
   105 // CExampleAppUi
   108 //
   106 //
   109 ////////////////////////////////////////////////////////////////////////
   107 //
   110 class CExampleAppUi : public CEikAppUi
   108 class CExampleAppUi : public CEikAppUi
   111     {
   109     {
   112 public:
   110 public:
   113     void ConstructL();
   111     void ConstructL();
   114 	~CExampleAppUi();
   112 	~CExampleAppUi();
   141 		break;
   139 		break;
   142 		}
   140 		}
   143 	}
   141 	}
   144 
   142 
   145 
   143 
   146 ////////////////////////////////////////////////////////////////////////
   144 //
   147 //
   145 //
   148 // CExampleDocument
   146 // CExampleDocument
   149 //
   147 //
   150 ////////////////////////////////////////////////////////////////////////
   148 //
   151 class CExampleDocument : public CEikDocument
   149 class CExampleDocument : public CEikDocument
   152 	{
   150 	{
   153 public:
   151 public:
   154 	static CExampleDocument* NewL(CEikApplication& aApp);
   152 	static CExampleDocument* NewL(CEikApplication& aApp);
   155 	CExampleDocument(CEikApplication& aApp);
   153 	CExampleDocument(CEikApplication& aApp);
   169     return new(ELeave) CExampleAppUi;
   167     return new(ELeave) CExampleAppUi;
   170 	}
   168 	}
   171 
   169 
   172 
   170 
   173 
   171 
   174 ////////////////////////////////////////////////////////////////////////
   172 //
   175 //
   173 //
   176 // CExampleApplication
   174 // CExampleApplication
   177 //
   175 //
   178 ////////////////////////////////////////////////////////////////////////
   176 //
   179 
   177 
   180 class CExampleApplication : public CEikApplication
   178 class CExampleApplication : public CEikApplication
   181 	{
   179 	{
   182 private: 
   180 private: 
   183 	// from CApaApplication
   181 	// from CApaApplication
   213 
   211 
   214 GLDEF_C TInt E32Main()
   212 GLDEF_C TInt E32Main()
   215 	{
   213 	{
   216 	return EikStart::RunApplication(NewApplication);
   214 	return EikStart::RunApplication(NewApplication);
   217 	}
   215 	}
       
   216 
       
   217