25 #include "xqserviceipcserversession.h" |
25 #include "xqserviceipcserversession.h" |
26 |
26 |
27 namespace QtService |
27 namespace QtService |
28 { |
28 { |
29 /*! |
29 /*! |
30 \class ServiceIPCSession |
30 \class ServiceIPCSession |
31 Session class to hold the state of each connected client |
31 \brief Session class to hold the state of each connected client |
32 */ |
32 */ |
33 |
33 |
34 /*! |
34 /*! |
35 Constructor |
35 Constructor. |
36 @param aObserver observer to the session |
36 \param aObserver Observer to the session. |
37 */ |
37 */ |
38 ServiceIPCSession::ServiceIPCSession(MServiceIPCObserver* aObserver) : |
38 ServiceIPCSession::ServiceIPCSession(MServiceIPCObserver* aObserver) : |
39 iPendingRequest(false), iObserver(aObserver), iCurRequest(NULL) |
39 iPendingRequest(false), iObserver(aObserver), iCurRequest(NULL) |
40 { |
40 { |
41 XQSERVICE_DEBUG_PRINT("ServiceIPCSession::ServiceIPCSession"); |
41 XQSERVICE_DEBUG_PRINT("ServiceIPCSession::ServiceIPCSession"); |
42 } |
42 } |
43 |
43 |
44 /*! |
44 /*! |
45 Destructor |
45 Destructor. |
46 */ |
46 */ |
47 ServiceIPCSession::~ServiceIPCSession() |
47 ServiceIPCSession::~ServiceIPCSession() |
48 { |
48 { |
49 XQSERVICE_DEBUG_PRINT("ServiceIPCSession::~ServiceIPCSession"); |
49 XQSERVICE_DEBUG_PRINT("ServiceIPCSession::~ServiceIPCSession"); |
50 } |
50 } |
51 |
51 |
52 /*! |
52 /*! |
53 \fn QtService::ServiceIPCSession::write( const QByteArray& aData ) |
53 \fn QtService::ServiceIPCSession::write( const QByteArray& aData ) |
54 |
54 |
55 Write some data in response to a request |
55 Write some data in response to a request. |
56 @param aData some data to write as response |
56 \param aData Some data to write as response. |
57 @return bool if write was successful |
57 \return bool If write was successful. |
58 */ |
58 */ |
59 |
59 |
60 /*! |
60 /*! |
61 \fn QtService::ServiceIPCSession::completeRequest() |
61 \fn QtService::ServiceIPCSession::completeRequest() |
62 |
62 |
63 Complete a Request |
63 Complete a request. |
64 @return bool if request completed |
64 \return bool if request completed . |
65 */ |
65 */ |
66 |
66 |
67 /*! |
67 /*! |
68 \fn QtService::ServiceIPCSession::close() |
68 \fn QtService::ServiceIPCSession::close() |
69 |
69 |
70 Close a session and gracefully shutdown |
70 Close a session and gracefully shutdown. |
71 */ |
71 */ |
72 } |
72 } |
73 // END OF FILE |
73 // END OF FILE |