Inherits CServer2.
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 () |
Interface for process server.
Definition at line 29 of file processserver.h.
Enumeration of states of driver.
Definition at line 35 of file processserver.h.
CProcessServer::~CProcessServer | ( | ) |
Destructor, The device driver will be unloaded when the server destructor is called.
Destructor
Definition at line 50 of file processserver.cpp.
void CProcessServer::NewLC | ( | ) | [static] |
Two phase constructor.
Definition at line 24 of file processserver.cpp.
CSession2 * CProcessServer::NewSessionL | ( | const TVersion & | aVersion, | |
const RMessage2 & | aMessage | |||
) | const |
Creates a server-side session object.
Creates a new server-side session
aVersion | Version argument | |
aMessage | The message to process |
Definition at line 67 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 86 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 95 of file processserver.cpp.
TInt CProcessServer::LoadDevice | ( | ) |
Loads the device, including sample PDD and LDD.
Load both LDD and PDD
Definition at line 107 of file processserver.cpp.
TInt CProcessServer::UnloadDevice | ( | ) |
Unloads the device, including sample LDD and PDD.
Unload both LDD and PDD
Definition at line 132 of file processserver.cpp.
TInt CProcessServer::OpenLogicalChannel | ( | ) |
Opens device's logical channel.
Open LDD
Definition at line 158 of file processserver.cpp.
void CProcessServer::CloseLogicalChannel | ( | ) |
TInt CProcessServer::SendDataToDevice | ( | TRequestStatus & | aStatus, | |
const TDesC8 & | aData | |||
) |
Sends data to device asynchronously.
Send data to LDD device
aStatus | A TRequestStatus reference | |
aData | Data to be sent |
Definition at line 186 of file processserver.cpp.
void CProcessServer::CancelSendData | ( | ) |
void CProcessServer::UpdateDriverState | ( | TDriverState | aState | ) |
Updates device state.
Update the states of the driver
aState | State of the driver to be updated |
Definition at line 212 of file processserver.cpp.