CVCRunnable Class Reference
class CVCRunnable : public CBase
|
Container for the information on how the command should be executed: 1) app uid OR exe filename; 2) optional command line arguments
Constructor & Destructor Documentation
~CVCRunnable()
IMPORT_C
|
~CVCRunnable
|
(
|
)
|
|
Member Functions Documentation
Arguments()
IMPORT_C const
TDesC8
&
|
Arguments
|
(
|
)
|
const
|
The arguments to be passed to the application. This object keeps the ownership of the returned value
The arguments to be passed to the application
ConstructL(TUid, const TDesC8 &)
void
|
ConstructL
|
(
|
TUid
|
aAppUid,
|
|
const
TDesC8
&
|
aArguments
|
|
)
|
[private]
|
ConstructL(const TDesC &, const TDesC8 &)
void
|
ConstructL
|
(
|
const
TDesC
&
|
aExeName,
|
|
const
TDesC8
&
|
aArguments
|
|
)
|
[private]
|
ConstructL(RReadStream &)
ExeName()
IMPORT_C const
TDesC
&
|
ExeName
|
(
|
)
|
const
|
ExecuteL()
IMPORT_C void
|
ExecuteL
|
(
|
)
|
const
|
Run the command. In case of aAppUid specified during the construction application is started via the
RApaLsSession::StartApp
, otherwise via the
RProcess::Create
-
leave
-
System-wide error code. In particular KErrNotFound if there is no such app in the system
ExternalizeL(RWriteStream &)
Saves the object to stream
Saves the object to stream. The current format is as follows: <protocol version: int32><uid: int32; KNullUidValue if no><argument length: int32> <argument descriptor="" streamed="" by="" the="" default="" descriptor="" externalizel>=""> <exe filename="" length>=""><exe filename descriptor only if filename length is not 0>
NewL(TUid, const TDesC8 &)
Factory function
-
leave
-
KErrOverflow if aArguments is longer, than KMaxVCArgumentLength
-
leave
-
KErrArgument if aAppUid is KNullUidValue
-
leave
-
KErrOverflow if aArguments is longer, than KMaxVCArgumentLength
-
leave
-
KErrArgument if aAppUid is KNullUidValue
Parameters
TUid
aAppUid
|
UID of the application to start. Cannot be KNullUidValue
|
const
TDesC8
& aArguments =
KNullDesC8
|
Command line to pass to the application. This object makes a copy of the passed string
|
NewL(const TDesC &, const TDesC8 &)
Factory function
-
leave
-
KErrOverflow if aArguments is longer, than KMaxVCArgumentLength or aExeName is longer, than KMaxFileName
-
leave
-
KErrUndeflow if aExeName is empty
Factory function
-
leave
-
KErrOverflow if aArguments is longer, than KMaxVCArgumentLength or aExeName is longer, than KMaxOsName
-
leave
-
KErrUndeflow if aExeName is empty
Parameters
const
TDesC
& aExeName
|
Exe-file to start. Can be full or partical name according to the RProcess::Create rules. Cannot be KNullDesC
|
const
TDesC8
& aArguments =
KNullDesC8
|
Command line to pass to the application. This object makes a copy of the passed string
|
NewL(RReadStream &)
Internalizes the object from stream
-
leave
-
KErrNotSupported if the stream data format is unsupported e.g. if it has been written by newer implementation of CVCommandUi
Internalizes from stream values are read in the same order as ExternalizeL wrote them
NewL(const CVCRunnable &)
Copy the existing CVRunnable
Uid()
IMPORT_C const
TUid
|
Uid
|
(
|
)
|
const
|
operator==(const CVCRunnable &)
Member Data Documentation
HBufC * iExeName
HBufC
*
|
iExeName
|
[private]
|
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.