|
WSF
|
#include <WsfXIO_Query.hpp>

Public Member Functions | |
| WsfXIO_Query (WsfXIO_Connection *aConnectionPtr) | |
| virtual | ~WsfXIO_Query () |
| void | SetTimeout (double aTimeoutSeconds) |
| const GenUniqueId & | GetQueryId () const |
| virtual void | HandleResolution (WsfXIO_QueryResolutionPkt &aPkt) |
| virtual void | Complete () |
| WsfXIO_Connection * | GetConnection () const |
| Returns the connection to the requested application. | |
| wsf::xio::QueryResult | GetResult () const |
| Returns the result of the query. | |
Public Attributes | |
| UtCallbackListN< void(WsfXIO_Query *)> | OnComplete |
| Callback list invoked when the query is completed. | |
Protected Member Functions | |
| virtual void | HandleDisconnect (WsfXIO_Connection *aConnectionPtr) |
| virtual void | HandleTimeout () |
Protected Attributes | |
| wsf::xio::QueryResult | mResult |
| GenUniqueId | mId |
| WsfXIO_Connection * | mConnectionPtr |
| UtCallbackHolder | mCallbacks |
Represents a request for information from another application. The actual message containing the request parameters must be sent separately.
| WsfXIO_Query::WsfXIO_Query | ( | WsfXIO_Connection * | aConnectionPtr | ) |
Initializes a query to an application
| aConnectionPtr | A reliable connection to the application which is the destination |
References WsfXIO_Connection::IsReliable(), mCallbacks, mConnectionPtr, and mResult.
|
virtual |
References wsf::xio::cQUERY_NOT_COMPLETE, mConnectionPtr, and mResult.
|
virtual |
References mConnectionPtr, and OnComplete.
Referenced by HandleDisconnect(), HandleResolution(), and HandleTimeout().
|
inline |
Returns the connection to the requested application.
References mConnectionPtr.
|
inline |
References mId.
Referenced by WsfXIO_QueryManager::AddQuery(), and WsfXIO_QueryManager::RemoveQuery().
|
inline |
Returns the result of the query.
References mResult.
Referenced by WsfXIO_QuerySet::AddQuery(), and WsfXIO_QuerySet::GetSuccessfulQueries().
|
protectedvirtual |
References Complete(), wsf::xio::cQUERY_DISCONNECTED, wsf::xio::cQUERY_NOT_COMPLETE, mConnectionPtr, and mResult.
|
virtual |
References Complete(), mResult, and WsfXIO_QueryResolutionPkt::mResult.
|
protectedvirtual |
References Complete(), wsf::xio::cQUERY_TIMED_OUT, and mResult.
| void WsfXIO_Query::SetTimeout | ( | double | aTimeoutSeconds | ) |
Sets the query timeout. If they query has not been resolved prior to this time, OnComplete will be invoked
References mCallbacks, and mConnectionPtr.
|
protected |
Referenced by SetTimeout(), and WsfXIO_Query().
|
protected |
Referenced by Complete(), GetConnection(), HandleDisconnect(), SetTimeout(), WsfXIO_Query(), and ~WsfXIO_Query().
|
protected |
Referenced by GetQueryId().
|
protected |
Referenced by GetResult(), HandleDisconnect(), HandleResolution(), HandleTimeout(), WsfXIO_Query(), and ~WsfXIO_Query().
| UtCallbackListN<void(WsfXIO_Query*)> WsfXIO_Query::OnComplete |
Callback list invoked when the query is completed.
Referenced by WsfXIO_QuerySet::AddQuery(), and Complete().