CUpnpArgument Class Reference

class CUpnpArgument : public CBase

Used to make a common body for actions. This class is only used when an action is sent or received. This class makes a common body for actions, which can then be modified by user.

Since
Series60 2.6

Inherits from

Constructor & Destructor Documentation

CUpnpArgument(CUpnpService &)

CUpnpArgument(CUpnpService &aParentService)[private]

C++ default constructor.

Parameters

CUpnpService & aParentServiceParent service.

~CUpnpArgument()

~CUpnpArgument()[virtual]

Destructor.

Member Functions Documentation

CheckErrorL(TInt, const TDesC8 &)

voidCheckErrorL(TIntaError,
const TDesC8 &aValue
)[private]

Checks the error code for the SetValue method and leaves if needed.

Parameters

TInt aError
const TDesC8 & aValue

ConstructL()

voidConstructL()

ConstructL(CUpnpArgument &)

voidConstructL(CUpnpArgument &aArgument)[private]

By default Symbian 2nd phase constructor is private. Adds the arguments and their default values according to the XML node

Parameters

CUpnpArgument & aArgument

DeleteAndNullValue()

voidDeleteAndNullValue()[private]

Delete and null iValue member.

Direction()

IMPORT_C TIntDirection()const
Returns direction of the argument.
Since
Series60 2.6

Name()

IMPORT_C TDesC8 &Name()
Returns the name of the argument.
Since
Series60 2.6

NewL(CUpnpService &)

CUpnpArgument *NewL(CUpnpService &aParentService)[static]

Parameters

CUpnpService & aParentService

NewL(CUpnpArgument &, CUpnpService &)

CUpnpArgument *NewL(CUpnpArgument &aArgument,
CUpnpService &aParentService
)[static]

Two-phased constructor for building from a XML node. Internally uses the function NewL(CSereneElement*)

Parameters

CUpnpArgument & aArgument
CUpnpService & aParentService

RelatedStateVariable()

IMPORT_C TDesC8 &RelatedStateVariable()
Returns related state variable.
Since
Series60 2.6

SetDirectionL(TInt)

voidSetDirectionL(TIntaDirection)

Parameters

TInt aDirection

SetNameL(const TDesC8 &)

voidSetNameL(const TDesC8 &aDirection)

Parameters

const TDesC8 & aDirection

SetRelatedStateVarL(const TDesC8 &)

voidSetRelatedStateVarL(const TDesC8 &aRelatedStateVar)

Parameters

const TDesC8 & aRelatedStateVar

SetType(TInt)

voidSetType(TIntaType)

Parameters

TInt aType

SetValueL(const TDesC8 &)

IMPORT_C voidSetValueL(const TDesC8 &aValue)
Sets the value of argument.
Since
Series60 2.6 (If the value is inproper, the method leaves with EInvalidArgs, which is the internal upnp error code used by UPnP Stack)

Parameters

const TDesC8 & aValueValue that is to be set for this argument.

Type()

IMPORT_C TArgumentTypeType()
Returns type of the argument.
Since
Series60 2.6

Value()

IMPORT_C TDesC8 &Value()
Returns the value of the argument.
Since
Series60 2.6

Member Data Documentation

TInt iDirection

TInt iDirection[private]

HBufC8 * iName

HBufC8 *iName[private]

CUpnpService & iParentService

CUpnpService &iParentService[private]

HBufC8 * iRelatedStateVariable

HBufC8 *iRelatedStateVariable[private]

TInt iType

TInt iType[private]

HBufC8 * iValue

HBufC8 *iValue[private]