RAcmServer Class Reference

class RAcmServer

Client interface to the ACM server to create new ACM functions. This class is intended to be used both inside and outside Symbian to bring up and tear down ACM functions.

Public Member Functions
RAcmServer()
~RAcmServer()
IMPORT_C voidClose()
IMPORT_C TIntConnect()
IMPORT_C TIntCreateFunctions(const TUint)
IMPORT_C TIntCreateFunctions(const TUint, const TUint8)
IMPORT_C TIntCreateFunctions(const TUint, const TUint8, const TDesC &, const TDesC &)
IMPORT_C TIntDestroyFunctions(const TUint)
Private Member Functions
RAcmServer(const RAcmServer &)
Private Attributes
CAcmServerImpl *iImpl

Constructor & Destructor Documentation

RAcmServer()

IMPORT_CRAcmServer()

Standard constructor. Does not connect the handle to the service provider.

RAcmServer(const RAcmServer &)

RAcmServer(const RAcmServer &aObjectToCopy)[private]

Private copy constructor to avoid problems with multiple ownership of RAcmServerImpls.

Parameters

const RAcmServer & aObjectToCopy

~RAcmServer()

IMPORT_C~RAcmServer()

Standard destructor. Does not disconnect the handle from the service provider.

Member Functions Documentation

Close()

IMPORT_C voidClose()

Closes this handle to the service provider. If the handle has been successfully Connected, it must eventually be Closed.

Connect()

IMPORT_C TIntConnect()

Connects this handle to the service provider.

CreateFunctions(const TUint)

IMPORT_C TIntCreateFunctions(const TUintaNoAcms)

Creates aNoAcms ACM functions using the default settings. The default setting includes KDefaultAcmProtocolNum- protocol code 0x01 (Hayes compatible, from USBCDC 1.1 Table 17).

Parameters

const TUint aNoAcmsNumber of ACM functions to be created.

CreateFunctions(const TUint, const TUint8)

IMPORT_C TIntCreateFunctions(const TUintaNoAcms,
const TUint8aProtocolNum
)

Creates aNoAcms ACM functions using the protocol number given (as defined in USBCDC 1.1 - Table 17).

Parameters

const TUint aNoAcmsNumber of ACM functions to be created.
const TUint8 aProtocolNumProtocol setting for the ACM functions to be created.

CreateFunctions(const TUint, const TUint8, const TDesC &, const TDesC &)

IMPORT_C TIntCreateFunctions(const TUintaNoAcms,
const TUint8aProtocolNum,
const TDesC &aAcmControlIfcName,
const TDesC &aAcmDataIfcName
)

Creates aNoAcms ACM functions using the protocol number given (as defined in USBCDC 1.1 - Table 17).

Parameters

const TUint aNoAcmsNumber of ACM functions to be created.
const TUint8 aProtocolNumProtocol setting for the ACM function to be created.
const TDesC & aAcmControlIfcNameControl Interface Name for the ACM function to be created.
const TDesC & aAcmDataIfcNameData Interface Name for the ACM function to be created.

DestroyFunctions(const TUint)

IMPORT_C TIntDestroyFunctions(const TUintaNoAcms)

Destroys aNoAcms ACM functions. Class Controllers MUST NOT destroy more ACM functions than they have successfully created.

Parameters

const TUint aNoAcmsNumber of ACM interfaces to destroy.

Member Data Documentation

CAcmServerImpl * iImpl

CAcmServerImpl *iImpl[private]