diff -r f345bda72bc4 -r 43e37759235e Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_process_server.html --- a/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_process_server.html Tue Mar 30 11:56:28 2010 +0100 +++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_process_server.html Tue Mar 30 16:16:55 2010 +0100 @@ -1,141 +1,115 @@ - - -TB10.1 Example Applications: CProcessServer Class Reference - - - - -

CProcessServer Class Reference

-

-List of all members. - - - - - - - - + + + + +TB9.2 Example Applications: CProcessServer Class Reference + + + + + +
+

CProcessServer Class Reference

+

Inherits CServer2.

-
- - - - - - - - - - - - +

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)
+ + + + + + + + + + + + + + + + +

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.

-void CancelSendData () - -void UpdateDriverState (TDriverState aState) - -

Static Public Member Functions

-static void NewLC () - - -

Detailed Description

-Interface for process server. -

Definition at line 29 of file processserver.h.

-

Member Enumeration Documentation

- +

Definition at line 29 of file processserver.h.

+

Member Enumeration Documentation

+
- +
enum CProcessServer::TDriverState enum CProcessServer::TDriverState
+

Enumeration of states of driver.

-

-Enumeration of states of driver.

Enumerator:
- - - - - - - -
EStateUnknown  -
EDriverLoaded  -
ELogicalChannelOpened  -
ESendingData  -
ELogicalChannelClosed  -
EDriverUnloaded  -
-
- -

Definition at line 35 of file processserver.h.

+

Definition at line 35 of file processserver.h.

-

-


Constructor & Destructor Documentation

- + +

Constructor & Destructor Documentation

+
- + - + - +
CProcessServer::~CProcessServer CProcessServer::~CProcessServer (  ) 
+

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

+

Destructor

-

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

-Destructor -

Definition at line 50 of file processserver.cpp.

+

Definition at line 50 of file processserver.cpp.

-

-


Member Function Documentation

- + +

Member Function Documentation

+
- + - + - +
void CProcessServer::NewLC void CProcessServer::NewLC (  )  [static] [static]
+

Two phase constructor.

-

-Two phase constructor. -

Definition at line 24 of file processserver.cpp.

+

Definition at line 24 of file processserver.cpp.

-

- + +

- + @@ -149,167 +123,162 @@ - +
CSession2 * CProcessServer::NewSessionL CSession2 * CProcessServer::NewSessionL ( const TVersion &  aVersion,
) const const
- -

-Creates a server-side session object.

See also:
CServer2::NewSessionL().
-Creates a new server-side session
Parameters:
+

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
+
Returns:
Server side client session object
-

Definition at line 67 of file processserver.cpp.

+

Definition at line 67 of file processserver.cpp.

-

- + +

- + - + - +
void CProcessServer::IncrementRefCount 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

-

-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.

+

Definition at line 86 of file processserver.cpp.

-

- + +

- + - + - +
void CProcessServer::DecrementRefCount 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

-

-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.

+

Definition at line 95 of file processserver.cpp.

-

- + +

- + - + - +
TInt CProcessServer::LoadDevice TInt CProcessServer::LoadDevice (  ) 
+

Loads the device, including sample PDD and LDD.

+

Load both LDD and PDD

+
Returns:
KErrNone or standard error code.
-

-Loads the device, including sample PDD and LDD.

-Load both LDD and PDD

Returns:
KErrNone or standard error code.
- -

Definition at line 107 of file processserver.cpp.

+

Definition at line 107 of file processserver.cpp.

-

- + +

- + - + - +
TInt CProcessServer::UnloadDevice TInt CProcessServer::UnloadDevice (  ) 
+

Unloads the device, including sample LDD and PDD.

+

Unload both LDD and PDD

+
Returns:
KErrNone or standard error code.
-

-Unloads the device, including sample LDD and PDD.

-Unload both LDD and PDD

Returns:
KErrNone or standard error code.
- -

Definition at line 132 of file processserver.cpp.

+

Definition at line 132 of file processserver.cpp.

-

- + +

- + - + - +
TInt CProcessServer::OpenLogicalChannel TInt CProcessServer::OpenLogicalChannel (  ) 
+

Opens device's logical channel.

+

Open LDD

+
Returns:
KErrNone or standard error code.
-

-Opens device's logical channel.

-Open LDD

Returns:
KErrNone or standard error code.
- -

Definition at line 158 of file processserver.cpp.

+

Definition at line 158 of file processserver.cpp.

-

- + +

- + - + - +
void CProcessServer::CloseLogicalChannel void CProcessServer::CloseLogicalChannel (  ) 
+

Closes device's logical channel.

+

Close LDD

-

-Closes device's logical channel.

-Close LDD -

Definition at line 172 of file processserver.cpp.

+

Definition at line 172 of file processserver.cpp.

-

- + +

- + @@ -323,78 +292,78 @@ - +
TInt CProcessServer::SendDataToDevice TInt CProcessServer::SendDataToDevice ( TRequestStatus &  aStatus,
)
- -

-Sends data to device asynchronously.

-Send data to LDD device

Parameters:
+

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.
+
Returns:
KErrNone or standard error code.
-

Definition at line 186 of file processserver.cpp.

+

Definition at line 186 of file processserver.cpp.

-

- + +

- + - + - +
void CProcessServer::CancelSendData void CProcessServer::CancelSendData (  ) 
+

Cancels send data operation.

+

Cancel sending data

-

-Cancels send data operation.

-Cancel sending data -

Definition at line 203 of file processserver.cpp.

+

Definition at line 203 of file processserver.cpp.

-

- + +

- + - - + + - +
void CProcessServer::UpdateDriverState void CProcessServer::UpdateDriverState (TDriverState  aState TDriverState  aState  ) 
- -

-Updates device state.

-Update the states of the driver

Parameters:
+

Updates device state.

+

Update the states of the driver

+
Parameters:
aState State of the driver to be updated
+
-

Definition at line 212 of file processserver.cpp.

+

Definition at line 212 of file processserver.cpp.

-

-


Generated on Thu Jan 21 10:33:07 2010 for TB10.1 Example Applications by  + + +
Generated by  -doxygen 1.5.3
+doxygen 1.6.2