QPlaceReply Class
The QPlaceReply class manages an operation started by an instance of QPlaceManager and serves as a base class for more specialized replies. More...
| Header: | #include <QPlaceReply> |
| qmake: | QT += location |
| Since: | Qt 5.6 |
| Inherits: | QObject |
| Inherited By: | QPlaceContentReply, QPlaceDetailsReply, QPlaceIdReply, QPlaceMatchReply, QPlaceSearchReply, and QPlaceSearchSuggestionReply |
This class was introduced in Qt 5.6.
Public Types
| enum | Error { NoError, PlaceDoesNotExistError, CategoryDoesNotExistError, CommunicationError, ParseError, …, UnknownError } |
| enum | Type { Reply, DetailsReply, SearchReply, SearchSuggestionReply, ContentReply, …, MatchReply } |
Detailed Description
The QPlaceReply and each of its specialized subclasses manage the state and results of their corresponding operations. The QPlaceReply itself is used for operations that have no results, that is, it only necessary to know if the operation succeeded or failed.
The finished() signal can be used to monitor the progress of an operation. Once an operation is complete, the error() and errorString() methods provide information on whether the operation completed successfully. If successful, the reply will contain the results for that operation, that is, each subclass will have appropriate functions to retrieve the results of an operation.
See also QPlaceManager.
Member Type Documentation
enum QPlaceReply::Error
Describes an error which occurred during an operation.
| Constant | Value | Description |
|---|---|---|
QPlaceReply::NoError | 0 | No error has occurred |
QPlaceReply::PlaceDoesNotExistError | 1 | A specified place could not be found |
QPlaceReply::CategoryDoesNotExistError | 2 | A specified category could not be found |
QPlaceReply::CommunicationError | 3 | An error occurred communicating with the service provider. |
QPlaceReply::ParseError | 4 | The response from the service provider or an import file was in an unrecognizable format |
QPlaceReply::PermissionsError | 5 | The operation failed because of insufficient permissions. |
QPlaceReply::UnsupportedError | 6 | The operation was not supported by the service provider. |
QPlaceReply::BadArgumentError | 7 | . A parameter that was provided was invalid. |
QPlaceReply::CancelError | 8 | The operation was canceled. |
QPlaceReply::UnknownError | 9 | An error occurred which does not fit into any of the other categories. |
enum QPlaceReply::Type
Describes the reply's type.
| Constant | Value | Description |
|---|---|---|
QPlaceReply::Reply | 0 | This is a generic reply. |
QPlaceReply::DetailsReply | 1 | This is a reply for the retrieval of place details |
QPlaceReply::SearchReply | 2 | This is a reply for the place search operation. |
QPlaceReply::SearchSuggestionReply | 3 | This is a reply for a search suggestion operation. |
QPlaceReply::ContentReply | 4 | This is a reply for content associated with a place. |
QPlaceReply::IdReply | 5 | This is a reply that returns an identifier of a place or category. Typically used for place or category save and remove operations. |
QPlaceReply::MatchReply | 6 | This is a reply that returns places that match those from another provider. |