Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QAppointmentContext class represents a storage context of appointment data. More...
#include <QAppointmentContext>
Inherits QPimContext.
Inherited by QDependentEventsContext.
The QAppointmentContext class represents a storage context of appointment data.
The class can be used to perform operations that relate to a specific context of PIM data, such as appointments stored on a device in the native Qt Extended format, or appointments stored in an on-line calendaring service.
Currently there is no way for applications to implement their own contexts. This feature is being considered for future versions of Qtopia.
See also QAppointmentModel and Pim Library.
Constructs a QAppointmentContext with parent parent.
Adds the appointment to the PIM data source if it is controlled by this context. If the appointment is successfully added, returns the new unique id for this appointment, otherwise returns a null id.
Exports a single appointment identified by id. If successful sets ok to true, otherwise sets ok to false.
See also exportAppointments().
Exports the appointments stored in the PIM data source and returns them as a list. The source must be controlled by this context. If successful sets ok to true, otherwise sets ok to false.
There isn't necessarily going to be a one to one match to appointments in the PIM data source. Appointments may be merged or split over multiple appointments to form the list.
Imports a single appointment to the PIM data source. If successful returns true, otherwise returns false.
See also importAppointments().
Imports the appointments and merges them with the appointments listed in the PIM data source. The source must be controlled by this context. If successful returns true, otherwise returns false.
There isn't necessarily going to be a one to one match to appointments in the PIM data source. Appointments may be merged or split over multiple appointments. Also appointments that match in name will be updated from the list rather than additional appointments created.
Removes the appointment with the identifier id if it exists in this context. Returns true upon success; otherwise returns false.
Mark the repeating appointment identified by id in this context so as not to occur on date. Returns true if the appointment was successfully updated, otherwise returns false.
Replaces an occurrence that occurs on date of the appointment identified by id with occurrence. If date is null, the date of the supplied occurrence will be used. Returns true if the appointment was successfully updated, otherwise returns false.
Modifies the appointment identified by id to not repeat after date and adds appointment to the PIM data source that stores the appointment identified by id. If date is null, the date of the first occurrence of appointment will be used. Returns the unique id for the new appointment if successful, otherwise returns a null id.
If an recurring appointment with the specified identifier has an exception listed for the given date, restores the original occurrence for that date. If the exception included a replacement appointment will also remove the replacement.
Returns true if the appointment was successfully updated.
Updates the appointment with the same identifier as appointment if it exists in this context. Returns true upon success; otherwise returns false.
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |