CDscItem Class Reference
class CDscItem : public CBase |
CDscItem class containing application/process information required by the AMAStarter to launch an AMA. It is inherit from CStartupProperties
When an instance of this class is created it contains default values for all properties.
Constructor & Destructor Documentation
Member Functions Documentation
Args()
IMPORT_C TPtrC | Args | ( | ) | const |
ConstructL()
void | ConstructL | ( | ) | [private] |
DscId()
IMPORT_C TUid | DscId | ( | ) | const |
Accessor function returning the DscId of the DSC this item was retrieved from
FileName()
IMPORT_C TPtrC | FileName | ( | ) | const |
ItemId()
IMPORT_C TInt | ItemId | ( | ) | const |
Accessor function returning ItemId of the item
Monitored()
IMPORT_C TBool | Monitored | ( | ) | const |
NewL()
Used to create an instance of the
CDscItem class
- leave
- One of the system-wide error codes
NewL(const TDesC &, const TDesC &)
NewLC()
Used to create an instance of the
CDscItem class. The returned instance is put on the
CleanupStack.
- leave
- One of the system-wide error codes
NewLC(const TDesC &, const TDesC &)
NoOfRetries()
IMPORT_C TInt | NoOfRetries | ( | ) | const |
Reset()
Reset all variables in this instance back to constructor defaults. This will enable to reuse this instance instead of having to delete it and create a new one.
SetDscId(const TUid &)
IMPORT_C void | SetDscId | ( | const TUid & | aDscId | ) | |
Sets the Id of the Dynamic Startup Configuration list this item resides in. The dscId of a DSC in the database must be set with this method before adding, updating, or deleting this item in this DSC
Parameters
const TUid & aDscId | Id of the DSC this item resides in. |
SetFileParamsL(const TDesC &, const TDesC &)
IMPORT_C void | SetFileParamsL | ( | const TDesC & | aFileName, |
| const TDesC & | aArgs |
| ) | |
Sets the filename and args values of the item
- leave
- KErrArgument - the filename is empty or one of the parameters exceeds KDscStoreMaxStringLength
- leave
- One of the system-wide error codes
CStartupProperties
Parameters
const TDesC & aFileName | filename of the component. |
const TDesC & aArgs | arg list of the component. |
SetItemId(const TInt)
IMPORT_C void | SetItemId | ( | const TInt | aItemId | ) | |
Sets itemId parameter for the item. Can only be set once. Normally the itemId is set by the DBMS, but if you know the itemId for a DscItem in the database you can create an empty
CDscItem, set the itemId+dscId and let the DBMS look it up and fill in the other values.
- panic
- if you try to change the value
Parameters
const TInt aItemId | Id of the item. |
SetMonitored(TBool)
IMPORT_C void | SetMonitored | ( | TBool | aMonitored | ) | |
Parameters
TBool aMonitored | Whether the component is to be monitored once it is started |
SetNoOfRetriesL(TInt)
IMPORT_C void | SetNoOfRetriesL | ( | TInt | aNumRetries | ) | |
Sets the number of retries value of the item
- leave
- KErrArgument - the number of retries must be either 0 or 1
CStartupProperties
Parameters
TInt aNumRetries | number of retries should the start fail |
SetStartInBackground(TBool)
IMPORT_C void | SetStartInBackground | ( | TBool | aStartInBackground | ) | |
Parameters
TBool aStartInBackground | Whether to start the application in the background or not |
SetStartMethodL(TStartMethod)
Sets the start method value of the item
- leave
- KErrArgument - the start method is not either EFireAndForget or EWaitForStart
CStartupProperties
SetStartupTypeL(TStartupType)
SetTimeoutL(TInt)
IMPORT_C void | SetTimeoutL | ( | TInt | aTimeout | ) | |
Sets the timeout value of the item
- leave
- KErrArgument - the timeout must not be negative
CStartupProperties
Parameters
TInt aTimeout | timeout between retries |
SetViewless(TBool)
IMPORT_C void | SetViewless | ( | TBool | aViewless | ) | |
Parameters
TBool aViewless | Whether the application is viewless or not |
StartInBackground()
IMPORT_C TBool | StartInBackground | ( | ) | const |
Timeout()
IMPORT_C TInt | Timeout | ( | ) | const |
Viewless()
IMPORT_C TBool | Viewless | ( | ) | const |
Member Data Documentation
CSsmStartupProperties * iSsmStartupProperties
CStartupProperties * iStartupProperties
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.