applaunchservices/aftermarketappstarter/inc/dscitem.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 __DSCITEM_H__
       
    17 #define __DSCITEM_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <startupproperties.h>
       
    21 #include <ssm/ssmstartupproperties.h>
       
    22 
       
    23 /** CDscItem class containing application/process information required by the AMAStarter to launch an AMA. 
       
    24 It is inherit from CStartupProperties
       
    25 
       
    26 When an instance of this class is created it contains default values for all properties. 
       
    27 
       
    28 @publishedPartner
       
    29 @released
       
    30 */
       
    31 NONSHARABLE_CLASS (CDscItem) : public CBase
       
    32 	{
       
    33 public:
       
    34 	IMPORT_C static CDscItem* NewL();
       
    35 	IMPORT_C static CDscItem* NewLC();
       
    36 	IMPORT_C static CDscItem* NewL(const TDesC& aFileName, const TDesC& aArgs);
       
    37 	IMPORT_C static CDscItem* NewLC(const TDesC& aFileName, const TDesC& aArgs);
       
    38 	IMPORT_C ~CDscItem();
       
    39 
       
    40 	IMPORT_C TUid DscId() const;
       
    41 	IMPORT_C TInt ItemId() const;
       
    42 	IMPORT_C TPtrC FileName() const;
       
    43 	IMPORT_C TPtrC Args() const;
       
    44 	IMPORT_C TStartupType StartupType() const;
       
    45 	IMPORT_C TStartMethod StartMethod() const;
       
    46 	IMPORT_C TInt NoOfRetries() const;
       
    47 	IMPORT_C TInt Timeout() const;
       
    48 	IMPORT_C TBool Monitored() const;
       
    49 	IMPORT_C TBool Viewless() const;
       
    50 	IMPORT_C TBool StartInBackground() const;
       
    51 	IMPORT_C const CStartupProperties& StartupProperties() const;
       
    52 
       
    53 	IMPORT_C void SetDscId(const TUid& aDscId);
       
    54 	IMPORT_C void SetItemId(const TInt aItemId); // @internalComponent
       
    55 	IMPORT_C void SetFileParamsL(const TDesC& aFileName, const TDesC& aArgs);
       
    56 	IMPORT_C void SetStartMethodL(TStartMethod aStartMethod);
       
    57 	IMPORT_C void SetNoOfRetriesL(TInt aNumRetries);
       
    58 	IMPORT_C void SetTimeoutL(TInt aTimeout);
       
    59 	IMPORT_C void SetMonitored(TBool aMonitored);
       
    60 	IMPORT_C void SetStartupTypeL(TStartupType aType);
       
    61 	IMPORT_C void SetViewless(TBool aViewless);
       
    62     IMPORT_C void SetStartInBackground(TBool aStartInBackground);
       
    63 
       
    64     IMPORT_C void Reset();
       
    65     IMPORT_C const CSsmStartupProperties& SsmStartupProperties() const;
       
    66 private:
       
    67 	CDscItem();
       
    68 	void ConstructL();
       
    69 
       
    70 private:
       
    71 	TUid iDscId;
       
    72 	TInt iItemId;
       
    73 	CStartupProperties* iStartupProperties;
       
    74 	CSsmStartupProperties* iSsmStartupProperties;
       
    75 	};
       
    76 
       
    77 #endif   	
       
    78 	
       
    79 
       
    80