CProcessServer Class Reference

List of all members.

Public Types

enum  TDriverState {
  EStateUnknown, EDriverLoaded, ELogicalChannelOpened, ESendingData,
  ELogicalChannelClosed, EDriverUnloaded
}

Public Member Functions

 ~CProcessServer ()
CSession2 * NewSessionL (const TVersion &aVersion, const RMessage2 &aMessage) const
void IncrementRefCount ()
void DecrementRefCount ()
TInt LoadDevice ()
TInt UnloadDevice ()
TInt OpenLogicalChannel ()
void CloseLogicalChannel ()
TInt SendDataToDevice (TRequestStatus &aStatus, const TDesC8 &aData)
void CancelSendData ()
void UpdateDriverState (TDriverState aState)

Static Public Member Functions

static void NewLC ()

Detailed Description

Interface for process server.

Definition at line 44 of file processserver.h.


Member Enumeration Documentation

Enumeration of states of driver.

Definition at line 50 of file processserver.h.


Constructor & Destructor Documentation

CProcessServer::~CProcessServer (  ) 

Destructor, The device driver will be unloaded when the server destructor is called.

Destructor

Definition at line 65 of file processserver.cpp.


Member Function Documentation

void CProcessServer::NewLC (  )  [static]

Two phase constructor.

Definition at line 39 of file processserver.cpp.

CSession2 * CProcessServer::NewSessionL ( const TVersion &  aVersion,
const RMessage2 &  aMessage 
) const

Creates a server-side session object.

See also:
CServer2::NewSessionL().

Creates a new server-side session

Parameters:
aVersion Version argument
aMessage The message to process
Returns:
Server side client session object

Definition at line 82 of file processserver.cpp.

void CProcessServer::IncrementRefCount (  ) 

Increases reference count and cancels shutdown timer. This function is called when a new session is created.

Increment the count for the number of clients connected

Definition at line 101 of file processserver.cpp.

void CProcessServer::DecrementRefCount (  ) 

Decreases reference count and starts shutdown timer. This function is called when a session is destroyed.

Decrement the count for the number of clients connected

Definition at line 110 of file processserver.cpp.

TInt CProcessServer::LoadDevice (  ) 

Loads the device, including sample PDD and LDD.

Load both LDD and PDD

Returns:
KErrNone or standard error code.

Definition at line 122 of file processserver.cpp.

TInt CProcessServer::UnloadDevice (  ) 

Unloads the device, including sample LDD and PDD.

Unload both LDD and PDD

Returns:
KErrNone or standard error code.

Definition at line 147 of file processserver.cpp.

TInt CProcessServer::OpenLogicalChannel (  ) 

Opens device's logical channel.

Open LDD

Returns:
KErrNone or standard error code.

Definition at line 173 of file processserver.cpp.

void CProcessServer::CloseLogicalChannel (  ) 

Closes device's logical channel.

Close LDD

Definition at line 187 of file processserver.cpp.

TInt CProcessServer::SendDataToDevice ( TRequestStatus &  aStatus,
const TDesC8 &  aData 
)

Sends data to device asynchronously.

Send data to LDD device

Parameters:
aStatus A TRequestStatus reference
aData Data to be sent
Returns:
KErrNone or standard error code.

Definition at line 201 of file processserver.cpp.

void CProcessServer::CancelSendData (  ) 

Cancels send data operation.

Cancel sending data

Definition at line 218 of file processserver.cpp.

void CProcessServer::UpdateDriverState ( TDriverState  aState  ) 

Updates device state.

Update the states of the driver

Parameters:
aState State of the driver to be updated

Definition at line 227 of file processserver.cpp.


Generated by  doxygen 1.6.2