localisation/apparchitecture/apstart/apstart.h
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __APSTART_H
       
    17 #define __APSTART_H
       
    18 
       
    19 #include <apgcli.h>
       
    20 #include <apastarter.h>
       
    21 
       
    22 /**
       
    23 Start applications using RApaLsSession.
       
    24 
       
    25 @internalTechnology
       
    26 @prototype
       
    27 */
       
    28 NONSHARABLE_CLASS(CApaAppStart) : public CApaStarter
       
    29 	{
       
    30 public:	
       
    31 	IMPORT_C static CApaAppStart* NewL();
       
    32 	
       
    33 	//from CBase			
       
    34 	~CApaAppStart();
       
    35 	
       
    36 	//from CApaStarter
       
    37 	void WaitForApparcToInitialiseL();
       
    38 	void StartAppL(const TDesC& aFileName, const TDesC& aArgs, TBool aViewLess, TBool aStartInBackground, TThreadId& aThreadId);
       
    39 	void StartAppL(const TDesC& aFileName, const TDesC& aArgs, TBool aViewLess, TBool aStartInBackground, TThreadId& aThreadId, TRequestStatus& aRequestStatusForRendezvous);
       
    40 	
       
    41 private:
       
    42 	CApaAppStart();
       
    43 	void ConstructL();			
       
    44 	static void SetupCommandLineL(CApaCommandLine& aCmdLine, const TDesC& aFileName, const TDesC8& aArgs, TBool aViewLess, TBool aStartInBackground);
       
    45 	void DoStartAppL(const TDesC &aFileName, const TDesC &aArgs, TBool aViewLess, TBool aStartInBackground, TThreadId& aThreadId, TRequestStatus* aRequestStatusForRendezvous);
       
    46 
       
    47 private:
       
    48 	RApaLsSession iApaLsSession;		
       
    49 	};
       
    50 
       
    51 #endif