QOrganizerAbstractRequest Class ReferenceThe QOrganizerAbstractRequest class provides a mechanism for asynchronous requests to be made of a manager if it supports them. More... #include <QOrganizerAbstractRequest> Inherits: QObject. Inherited by: QOrganizerCollectionFetchRequest, QOrganizerCollectionRemoveRequest, QOrganizerCollectionSaveRequest, QOrganizerItemDetailDefinitionFetchRequest, QOrganizerItemDetailDefinitionRemoveRequest, QOrganizerItemDetailDefinitionSaveRequest, QOrganizerItemFetchByIdRequest, QOrganizerItemFetchForExportRequest, QOrganizerItemFetchRequest, QOrganizerItemIdFetchRequest, QOrganizerItemOccurrenceFetchRequest, QOrganizerItemRemoveRequest, and QOrganizerItemSaveRequest. This class was introduced in Qt Mobility 1.1. Public Types
Public Functions
Public Slots
Signals
Additional Inherited Members
Detailed DescriptionThe QOrganizerAbstractRequest class provides a mechanism for asynchronous requests to be made of a manager if it supports them. It allows a client to asynchronously request some functionality of a particular QOrganizerManager. Instances of the class will emit signals when the state of the request changes, or when more results become available. Clients should not attempt to create instances of this class directly, but should instead use the use-case-specific classes derived from this class. After creating any sort of request, the client retains ownership and must delete the request to avoid leaking memory. The client may either do this directly (if not within a slot connected to a signal emitted by the request) or by using the deleteLater() slot to schedule the request for deletion when control returns to the event loop. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QOrganizerAbstractRequest::InvalidRequest | 0 | An invalid request |
QOrganizerAbstractRequest::ItemOccurrenceFetchRequest | 1 | A request to fetch a list of occurrences of an organizer item |
QOrganizerAbstractRequest::ItemFetchRequest | 2 | A request to fetch a list of organizer items |
QOrganizerAbstractRequest::ItemFetchForExportRequest | 3 | A request to fetch a list of persisted organizer items and exceptions |
QOrganizerAbstractRequest::ItemIdFetchRequest | 4 | A request to fetch a list of organizer item ids |
QOrganizerAbstractRequest::ItemRemoveRequest | 5 | A request to remove a list of organizer items |
QOrganizerAbstractRequest::ItemSaveRequest | 6 | A request to save a list of organizer items |
QOrganizerAbstractRequest::DetailDefinitionFetchRequest | 7 | A request to fetch a collection of detail definitions |
QOrganizerAbstractRequest::DetailDefinitionRemoveRequest | 8 | A request to remove a list of detail definitions |
QOrganizerAbstractRequest::DetailDefinitionSaveRequest | 9 | A request to save a list of detail definitions |
QOrganizerAbstractRequest::CollectionFetchRequest | 10 | A request to fetch a collection. |
QOrganizerAbstractRequest::CollectionRemoveRequest | 11 | A request to remove a collection. |
QOrganizerAbstractRequest::CollectionSaveRequest | 12 | A request to save a collection. |
Enumerates the various states that a request may be in at any given time
Constant | Value | Description |
---|---|---|
QOrganizerAbstractRequest::InactiveState | 0 | Operation not yet started |
QOrganizerAbstractRequest::ActiveState | 1 | Operation started, not yet finished |
QOrganizerAbstractRequest::CanceledState | 2 | Operation is finished due to cancellation |
QOrganizerAbstractRequest::FinishedState | 3 | Operation successfully completed |
Cleans up the memory used by this request
Attempts to cancel the request. Returns false if the request is not in the QOrganizerAbstractRequest::Active state, or if the request is unable to be cancelled by the manager engine; otherwise returns true.
This function was introduced in Qt Mobility 1.1.
Returns the overall error of the most recent asynchronous operation
This function was introduced in Qt Mobility 1.1.
Returns true if the request is in the QOrganizerAbstractRequest::ActiveState state; otherwise, returns false
This function was introduced in Qt Mobility 1.1.
See also state().
Returns true if the request is in the QOrganizerAbstractRequest::CanceledState; otherwise, returns false
This function was introduced in Qt Mobility 1.1.
See also state().
Returns true if the request is in the QOrganizerAbstractRequest::FinishedState; otherwise, returns false
This function was introduced in Qt Mobility 1.1.
See also state().
Returns true if the request is in the QOrganizerAbstractRequest::InactiveState state; otherwise, returns false
This function was introduced in Qt Mobility 1.1.
See also state().
Returns a pointer to the manager of which this request instance requests operations
This function was introduced in Qt Mobility 1.1.
See also setManager().
This signal is emitted when new results are available. Results can include the operation error which may be accessed via error(), or derived-class-specific results which are accessible through the derived class API.
This function was introduced in Qt Mobility 1.1.
See also error().
Sets the manager of which this request instance requests operations to manager
This function was introduced in Qt Mobility 1.1.
See also manager().
Attempts to start the request. Returns false if the request is not in the QOrganizerAbstractRequest::Inactive, QOrganizerAbstractRequest::Finished or QOrganizerAbstractRequest::Cancelled states, or if the request was unable to be performed by the manager engine; otherwise returns true.
This function was introduced in Qt Mobility 1.1.
Returns the current state of the request.
This function was introduced in Qt Mobility 1.1.
This signal is emitted when the state of the request is changed. The new state of the request will be contained in newState.
This function was introduced in Qt Mobility 1.1.
Returns the type of this asynchronous request
This function was introduced in Qt Mobility 1.1.
Blocks until the request has been completed by the manager engine, or until msecs milliseconds has elapsed. If msecs is zero or negative, this function will block until the request is complete, regardless of how long it takes. Returns true if the request was cancelled or completed successfully within the given period, otherwise false. Some backends are unable to support this operation safely, and will return false immediately.
This function was introduced in Qt Mobility 1.1.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtmobility-1.2 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com