A class that represents one ongoing content query that is sent to the content provider. More...
#include <content_query.hpp>
Public Types | |
| typedef vector< ContentQuerySharedPtr > | ContentQueryContainer |
| Container for content queries. More... | |
| typedef function< void(ContentQuery *)> | QueryCompleteCallbackFunction |
| Callback function that is invoked when query is completed. More... | |
Public Member Functions | |
| void | addQuery (ContentQuerySharedPtr query) |
| Add child query to this content query. More... | |
| ContentQueryContainer::iterator | beginQueries () |
| Iterator to the beginning of the child queries container. More... | |
| ContentQuery (const string &uri, QueryCompleteCallbackFunction function) | |
| Constructor. More... | |
| ContentQueryContainer::iterator | endQueries () |
| Iterator to the end of the child queries container. More... | |
| ContentDataSharedPtr | getData () |
| Access to result data for the query. More... | |
| const string & | getUri () const |
| Returns the content URI for this query. More... | |
| void | notifyCompleted () |
| Notifies the content system that this query has been completed. More... | |
| void | removeQuery (ContentQuerySharedPtr query) |
| Remove child query from this content query. More... | |
| void | setData (ContentDataSharedPtr data) |
| Sets result data for the query. More... | |
| virtual | ~ContentQuery () |
| Destructor. More... | |
A class that represents one ongoing content query that is sent to the content provider.
Container for content queries.
| typedef function<void(ContentQuery*)> kanzi::connect::ContentQuery::QueryCompleteCallbackFunction |
Callback function that is invoked when query is completed.
| kanzi::connect::ContentQuery::ContentQuery | ( | const string & | uri, |
| QueryCompleteCallbackFunction | function | ||
| ) |
Constructor.
| uri | Content URI for this query. |
| function | Callback function to invoke when the query is completed. |
|
virtual |
Destructor.
| void kanzi::connect::ContentQuery::addQuery | ( | ContentQuerySharedPtr | query | ) |
Add child query to this content query.
| query | Query to add. |
| ContentQueryContainer::iterator kanzi::connect::ContentQuery::beginQueries | ( | ) |
Iterator to the beginning of the child queries container.
| ContentQueryContainer::iterator kanzi::connect::ContentQuery::endQueries | ( | ) |
Iterator to the end of the child queries container.
| ContentDataSharedPtr kanzi::connect::ContentQuery::getData | ( | ) |
Access to result data for the query.
| const string& kanzi::connect::ContentQuery::getUri | ( | ) | const |
Returns the content URI for this query.
| void kanzi::connect::ContentQuery::notifyCompleted | ( | ) |
Notifies the content system that this query has been completed.
| void kanzi::connect::ContentQuery::removeQuery | ( | ContentQuerySharedPtr | query | ) |
Remove child query from this content query.
| query | Query to remove. |
| void kanzi::connect::ContentQuery::setData | ( | ContentDataSharedPtr | data | ) |
Sets result data for the query.
| data | New result data. |