Location:
apacmdln.h
Link against: apparc.lib
CApaCommandLine
Supported from 5.0
Information for launching an application.
This is often referred to as a command line and contains:
the name of an application DLL to be launched
a document name
a command code that defines the way the application is launched
trailing data; the structure of this depends on the application to be launched.
The information is held in a buffer implemented by a heap descriptor.
|
Defined in CApaCommandLine
:
Command()
, DocumentName()
, FullCommandLine()
, LibraryName()
, New()
, NewL()
, NewLC()
, SetCommandL()
, SetDocumentNameL()
, SetFullCommandLine()
, SetFullCommandLineL()
, SetLibraryNameL()
, SetReserveLengthL()
, SetTailEndL()
, TailEnd()
, ~CApaCommandLine()
Inherited from CBase
:
operator new()
static CApaCommandLine* New(HBufC* aCmdLine);
Creates a command line object, taking ownership of the heap descriptor containing the launch information.
The function cannot leave.
|
|
static CApaCommandLine* NewL();
Creates an empty command line object.
|
static CApaCommandLine* NewLC();
Creates an empty command line object, and puts a pointer to it onto the cleanup stack.
|
static CApaCommandLine* NewL(const TDesC& aCmdLine);
Creates a command line object taking launch information from the specified descriptor.
|
|
static CApaCommandLine* NewLC(const TDesC& aCmdLine);
Creates a command line object taking launch information from the specified descriptor, and puts a pointer to the new object onto the cleanup stack .
|
|
TPtrC FullCommandLine() const;
Gets the full launch information.
|
TApaCommand Command() const;
Gets the command code from the launch information.
|
TPtrC DocumentName() const;
Gets the document name from the launch information.
|
TPtrC LibraryName() const;
Gets the name of the DLL from the launch information.
|
TPtrC8 TailEnd() const;
Gets the trailing data from the launch information.
|
void SetFullCommandLineL(const TDesC& aCmdLine);
Sets full launch information from the specified descriptor.
|
void SetFullCommandLine(HBufC* aCmdLine);
Sets full launch information from the specified heap descriptor, taking ownership of that heap descriptor.
|
void SetCommandL(TApaCommand aCommand);
Sets the command code.
|
void SetDocumentNameL(const TDesC& aDocName);
Sets the document name from the specified descriptor.
If the document name has embedded spaces, then it must be enclosed within quotation marks.
|
void SetLibraryNameL(const TDesC& aLibName);
Sets the DLL name from the specified descriptor.
If the DLL name has embedded spaces, then it must be enclosed within quotation marks.
|
void SetTailEndL(const TDesC8& aTailEnd);
Sets the trailing data.
|
void SetReserveLengthL(TInt aMaxLength);
Sets the length of the internal buffer that holds the launch information.
Use of this function allows a potential out of memory problem to be dealt with separately from the code that sets the launch information.
|