applaunchservices/applaunchplugins/inc/apstart.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 // Copyright (c) 2008-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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-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 	void InitApparcServer(TRequestStatus& aStatus);
       
    41 	void InitApparcServerCancel();
       
    42 
       
    43 private:
       
    44 	CApaAppStart();
       
    45 	void ConstructL();			
       
    46 	static void SetupCommandLineL(CApaCommandLine& aCmdLine, const TDesC& aFileName, const TDesC8& aArgs, TBool aViewLess, TBool aStartInBackground);
       
    47 	void DoStartAppL(const TDesC &aFileName, const TDesC &aArgs, TBool aViewLess, TBool aStartInBackground, TThreadId& aThreadId, TRequestStatus* aRequestStatusForRendezvous);
       
    48 
       
    49 private:
       
    50 	RApaLsSession iApaLsSession;
       
    51 	};
       
    52 
       
    53 #endif