CSCPParamObject Class Reference
class CSCPParamObject : public CBase
|
The definition for the parameter object class
Constructor & Destructor Documentation
CSCPParamObject()
CSCPParamObject
|
(
|
)
|
[private]
|
~CSCPParamObject()
IMPORT_C
|
~CSCPParamObject
|
(
|
)
|
[virtual]
|
Member Functions Documentation
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
Symbian second-phase constructor
Get(TInt, TDes &)
Get the value of an identified parameter stored in the object
Parameters
TInt
aParamID
|
The ID of the requested parameter.
|
TDes
& aValue
|
Will contain a pointer to a descriptor containing the value after a successful call. The client owns this pointer after the call.
|
Get(TInt, TInt &)
Get the value of an identified parameter stored in the object
Parameters
TInt
aParamID
|
The ID of the requested parameter.
|
TInt
& aValue
|
Will contain the requested value converted to an integer after a successful call. If the value cannot be converted, an error will be returned.
|
GetBuffer(HBufC8 *&)
Pack the stored parameters into a buffer.
GetParamLength(TInt)
IMPORT_C
TInt
|
GetParamLength
|
(
|
TInt
|
aParamID
|
)
|
|
Get the value of an identified parameter stored in the object
Parameters
TInt
aParamID
|
The ID of the requested parameter.
|
NewLC()
Static constructor, that leaves the pointer to the cleanup stack.
Parse(TDes8 &)
Parse the given buffer, and add its contents to the object.
Parameters
TDes8
& aBuffer
|
The buffer that will be parsed.
|
ReadFromFileL(TDesC &, RFs *)
IMPORT_C void
|
ReadFromFileL
|
(
|
TDesC
&
|
aFilename,
|
|
RFs
*
|
aRfs = NULL
|
|
)
|
|
Reset the content of this object and load new content from a file. Leaves with a generic status code on error.
Parameters
TDesC
& aFilename
|
The file name to read the content from. This filename must contain a buffer returned by GetBuffer.
|
RFs
* aRfs = NULL
|
An optional pointer to a connected file server session. If this pointer is not supplied a new RFs will be connected.
|
Reset()
Reset the object and remove all parameters.
Set(TInt, TDes &)
Set the value of a parameter. Will replace an existing value, or add a new one.
Parameters
TInt
aParamID
|
The ID of the parameter.
|
TDes
& aValue
|
The value to set.
|
Set(TInt, TInt)
Set the value of a parameter. Will replace an existing value, or add a new one.
Parameters
TInt
aParamID
|
The ID of the parameter.
|
TInt
aValue
|
The value to set, will be converted to a descriptor.
|
Unset(TInt)
Remove the identified parameter from the storage.
Parameters
TInt
aParamID
|
The ID of the parameter to remove.
|
WriteToFileL(TDesC &, RFs *)
IMPORT_C void
|
WriteToFileL
|
(
|
TDesC
&
|
aFilename,
|
|
RFs
*
|
aRfs = NULL
|
|
)
|
|
Write the content to disk in the format returned by GetBuffer. Leaves with a generic status code on error.
Parameters
TDesC
& aFilename
|
The name of the file to be written. An existing file will be overwritten, or a new file will be created.
|
RFs
* aRfs = NULL
|
An optional pointer to a connected file server session. If this pointer is not supplied a new RFs will be connected.
|
Member Data Documentation
RArray< TInt > iParamIDs
An array containing the IDs for the stored parameters
RPointerArray< HBufC > iParamValues
An array containing the pointers to the parameter values
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.