TConnMonId Class Reference

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>

Inherits MDesSerializer< TConnMonId >.


Detailed Description

Class representing an ID number.

MDesSerializer - abstract interface for class serialization.

Since:
S60 3.1

Public Types

enum  FieldsShifts { EId = 0 }
 Defines shifts of fields inside the object. More...

Public Member Functions

IMPORT_C TConnMonId (TUint aId)
 Constructor.
IMPORT_C TUint Id () const
 Obtains the ID number.
IMPORT_C const HBufC * ToBuf () const
 Writes object of class TConnMonId to memory.

Static Public Member Functions

static IMPORT_C TConnMonId FromPtrC (const TPtrC &aPtrC)
 Reads object of class TConnMonId from memory.

Static Public Attributes

static const TUint KMaxSize = ( sizeof( TUint ) ) / sizeof( TChar ) + 1
 Defines the maximum size of the object in TChar's.

Protected Attributes

const TUint iId
 ID number.

Member Enumeration Documentation

enum TConnMonId::FieldsShifts
 

Defines shifts of fields inside the object.

Enumerator:
EId 

Constructor & Destructor Documentation

IMPORT_C TConnMonId::TConnMonId TUint  aId  ) 
 

Constructor.

Since:
S60 3.1
Parameters:
aId ID number.

Member Function Documentation

static IMPORT_C TConnMonId TConnMonId::FromPtrC const TPtrC &  aPtrC  )  [static]
 

Reads object of class TConnMonId from memory.

Since:
S60 3.1
Parameters:
aPtrC Pointer to the beginning of the TConnMonId object in buffer.
Returns:
The newly created TConnMonId object.

Reimplemented from MDesSerializer< TConnMonId >.

IMPORT_C TUint TConnMonId::Id  )  const
 

Obtains the ID number.

Since:
S60 3.1
Returns:
ID number.
IMPORT_C const HBufC* TConnMonId::ToBuf  )  const [virtual]
 

Writes object of class TConnMonId to memory.

Ownership of newly created buffer is transferred to caller.

Since:
S60 3.1
Returns:
Pointer to heap descriptor, NULL if memory allocation failed.

Implements MDesSerializer< TConnMonId >.


Field Documentation

const TUint TConnMonId::iId [protected]
 

ID number.

const TUint TConnMonId::KMaxSize = ( sizeof( TUint ) ) / sizeof( TChar ) + 1 [static]
 

Defines the maximum size of the object in TChar's.

+1 is for rounding to bigger integer.


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

Copyright © Nokia Corporation 2001-2007
Back to top