MDesSerializer< T > Class Template Reference

API published in: S60 2nd Ed FP 2

Link against: connmon.lib

Capability Information

Required Capabilities

None

Exceptions

ReadDeviceData to call

IMPORT_C void GetIntAttribute( const TUint aConnectionId, const TUint aSubConnectionId, const TUint aAttribute, TInt& aValue, TRequestStatus& aStatus );

IMPORT_C TInt SetIntAttribute( const TUint aConnectionId, const TUint aSubConnectionId, const TUint aAttribute, const TInt aValue ) const;

with aAttribute set to KProtocolType.

NetworkServices and NetworkControl to call

IMPORT_C void GetBoolAttribute( const TUint aConnectionId, const TUint aSubConnectionId, const TUint aAttribute, TBool& aValue, TRequestStatus& aStatus );

IMPORT_C TInt SetBoolAttribute( const TUint aConnectionId, const TUint aSubConnectionId, const TUint aAttribute, const TBool aValue ) const;

with aAttribute KConnectionStop or KConnectionStopAll.

ReadDeviceData to call

IMPORT_C void GetStringAttribute( const TUint aConnectionId, const TUint aSubConnectionId, const TUint aAttribute, TDes& aValue, TRequestStatus& aStatus ) const;

IMPORT_C TInt SetStringAttribute( const TUint aConnectionId, const TUint aSubConnectionId, const TUint aAttribute, const TDes& aValue ) const;

with aAttribute set to KAccessPointName or KNetworkName.

ReadUserData to call

IMPORT_C void GetStringAttribute( const TUint aConnectionId, const TUint aSubConnectionId, const TUint aAttribute, TDes& aValue, TRequestStatus& aStatus ) const;

IMPORT_C TInt SetStringAttribute( const TUint aConnectionId, const TUint aSubConnectionId, const TUint aAttribute, const TDes& aValue ) const;

with aAttribute set to KTelNumber.

NetworkControl to call

IMPORT_C void GetPckgAttribute( const TUint aConnectionId, const TUint aSubConnectionId, const TUint aAttribute, TDes8& aValue, TRequestStatus& aStatus ) const;

IMPORT_C TInt SetPckgAttribute( const TUint aConnectionId, const TUint aSubConnectionId, const TUint aAttribute, const TDes8& aValue ) const;

with aAttribute set to KClientInfo.


#include <rconnmon.h>

Detailed Description

template<class T>
class MDesSerializer< T >

Interface template for the class T serialization to/from HBuf/TPtr Class T could be any type of class (T, C, etc).

Public Member Functions

virtual const HBufC *  ToBuf () const =0
  Have to pack the object of class T to HBufC Ownership of newly cleated pointer is transferred to caller.

Static Public Member Functions

static T  FromPtrC (const TPtrC &aPtrC)
  Have to unpack object of class T from aPtrC.

Member Function Documentation

template<class T>
static T MDesSerializer< T >::FromPtrC const TPtrC &  aPtrC  )  [static]
 

Have to unpack object of class T from aPtrC.

Returns:
const pointer to heap descriptor

Reimplemented in TConnMonId.

template<class T>
virtual const HBufC* MDesSerializer< T >::ToBuf  )  const [pure virtual]
 

Have to pack the object of class T to HBufC Ownership of newly cleated pointer is transferred to caller.

Returns:
pointer to heap descriptor

Implemented in TConnMonId.


The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top