S60 3rd Edition API Reference: CConnMonConnectionActivityChange Class Reference

CConnMonConnectionActivityChange Class Reference

API published in: S60 2nd Ed FP 2

Link against: connmon.lib

Capability Information

Required Capabilities

NetworkServices ReadDeviceData ReadUserData

Exceptions

NetworkServices to call

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

With aAttribute parameter set to KConnectionStop or KConnectionStopAll

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

With aAttribute parameter set to KConnectionStop or KConnectionStopAll

NetworkControl to call

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

With aAttribute parameter set to KConnectionStop or KConnectionStopAll

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

With aAttribute parameter set to KConnectionStop or KConnectionStopAll

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

With aAttribute parameter set to KClientInfo

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

With aAttribute parameter set to KClientInfo


#include <rconnmon.h>

Inherits CConnMonEventBase.


Detailed Description

CConnMonConnectionActivityChange Event is triggered when some connection changes from active to idle or vice versa.

If KActivityTimeThreshold=0 (=default) events will not be sent for that connection. KActivityTimeThreshold defines the period (in seconds) for checking whether the connection is active or not.


Public Member Functions

 CConnMonConnectionActivityChange (const TUint aConnectionId, const TUint aSubConnectionId, const TBool aActivity)
 ~CConnMonConnectionActivityChange ()
IMPORT_C TUint SubConnectionId () const
 Gets the subconnection id.
IMPORT_C TBool ConnectionActivity () const
 Gets the connection activity.

Constructor & Destructor Documentation

CConnMonConnectionActivityChange::CConnMonConnectionActivityChange const TUint  aConnectionId,
const TUint  aSubConnectionId,
const TBool  aActivity
 
CConnMonConnectionActivityChange::~CConnMonConnectionActivityChange  ) 
 

Member Function Documentation

IMPORT_C TBool CConnMonConnectionActivityChange::ConnectionActivity  )  const
 

Gets the connection activity.

Returns:
ETrue if the connection is active, EFalse if not.
IMPORT_C TUint CConnMonConnectionActivityChange::SubConnectionId  )  const
 

Gets the subconnection id.

Returns:
Subconnection id.

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

Copyright © Nokia Corporation 2001-2007
Back to top