localisation/apparchitecture/tef/tssaac/tssaac_tapp.cpp
branchSymbian3
changeset 57 b8d18c84f71c
parent 6 c108117318cb
equal deleted inserted replaced
56:aa99f2208aad 57:b8d18c84f71c
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-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.
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 // This is a Startup State Aware (SSA) test application used to
    14 // This is a Startup State Aware (SSA) test application used to
    15 // test apparc StartApp and StartDocument functionality.
    15 // test apparc StartApp and StartDocument functionality.
    16 // 
    16 // 
    17 //
    17 // tssaac_tapp.cpp
    18 
    18 //
    19 
       
    20 
    19 
    21 /**
    20 /**
    22  @file
    21  @file tssaac_tapp.cpp
    23  @test
    22  @test
    24  @internalComponent  Internal Symbian test code
    23  @internalComponent  Internal Symbian test code
    25 */
    24 */
    26 
    25 
    27 
    26 
    30 #include <apgtask.h>
    29 #include <apgtask.h>
    31 #include <eikenv.h>
    30 #include <eikenv.h>
    32 #include <eikappui.h>
    31 #include <eikappui.h>
    33 #include <eikapp.h>
    32 #include <eikapp.h>
    34 #include <eikdoc.h>
    33 #include <eikdoc.h>
    35 #include <eikmenup.h>
    34 #include <mw/eikmenup.h>
    36 
    35 
    37 #include <eikon.hrh>
    36 #include <mw/eikon.hrh>
    38 
    37 
    39 #include <tssaac_tapp.rsg>
    38 #include <tssaac_tapp.rsg>
    40 
    39 
    41 #include <eikstart.h>
    40 #include <eikstart.h>
    42 #include <s32file.h>
    41 #include <s32file.h>
    43 #include "tssaac.h"
    42 #include "tssaac.h"
    44 #include <apacmdln.h>
    43 #include <apacmdln.h>
    45 #include "appfwk_test_AppUi.h"
    44 #include "appfwk_test_appui.h"
    46 #include "tstapp.h"
    45 #include "tstapp.h"
    47 
    46 
    48 
    47 
    49 
    48 
    50 ////////////////////////////////////////////////////////////////////////
    49 //
    51 //
    50 //
    52 // CExampleAppView
    51 // CExampleAppView
    53 //
    52 //
    54 ////////////////////////////////////////////////////////////////////////
    53 //
    55 class CExampleAppView : public CCoeControl
    54 class CExampleAppView : public CCoeControl
    56     {
    55     {
    57 public:
    56 public:
    58 	static CExampleAppView* NewL(const TRect& aRect);
    57 	static CExampleAppView* NewL(const TRect& aRect);
    59 	CExampleAppView();
    58 	CExampleAppView();
   106 	gc.DrawText(*iExampleText,drawRect,baselineOffset,CGraphicsContext::ECenter, 0);
   105 	gc.DrawText(*iExampleText,drawRect,baselineOffset,CGraphicsContext::ECenter, 0);
   107 	gc.DiscardFont();
   106 	gc.DiscardFont();
   108 	}
   107 	}
   109 
   108 
   110 
   109 
   111 ////////////////////////////////////////////////////////////////////////
   110 //
   112 //
   111 //
   113 // CExampleAppUi
   112 // CExampleAppUi
   114 //
   113 //
   115 ////////////////////////////////////////////////////////////////////////
   114 //
   116 class CExampleAppUi : public CEikAppUi
   115 class CExampleAppUi : public CEikAppUi
   117     {
   116     {
   118 public:
   117 public:
   119     void ConstructL();
   118     void ConstructL();
   120 	~CExampleAppUi();
   119 	~CExampleAppUi();
   146 		}
   145 		}
   147 	}
   146 	}
   148 
   147 
   149 
   148 
   150 
   149 
   151 ////////////////////////////////////////////////////////////////////////
   150 //
   152 //
   151 //
   153 // CExampleDocument
   152 // CExampleDocument
   154 //
   153 //
   155 ////////////////////////////////////////////////////////////////////////
   154 //
   156 class CExampleDocument : public CEikDocument
   155 class CExampleDocument : public CEikDocument
   157 	{
   156 	{
   158 public:
   157 public:
   159 	static CExampleDocument* NewL(CEikApplication& aApp);
   158 	static CExampleDocument* NewL(CEikApplication& aApp);
   160 	CExampleDocument(CEikApplication& aApp);
   159 	CExampleDocument(CEikApplication& aApp);
   172 	{
   171 	{
   173     return new(ELeave) CExampleAppUi;
   172     return new(ELeave) CExampleAppUi;
   174 	}
   173 	}
   175 
   174 
   176 
   175 
   177 ////////////////////////////////////////////////////////////////////////
   176 //
   178 //
   177 //
   179 // CSysatartApparc
   178 // CSysatartApparc
   180 //
   179 //
   181 ////////////////////////////////////////////////////////////////////////
   180 //
   182 
   181 
   183 class CSysatartApparc : public CEikApplication
   182 class CSysatartApparc : public CEikApplication
   184 	{
   183 	{
   185 private:
   184 private:
   186 	// Inherited from class CApaApplication
   185 	// Inherited from class CApaApplication