Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QContactContext class represents a storage context of contact data. More...
#include <QContactContext>
Inherits QPimContext.
The QContactContext class represents a storage context of contact data.
This includes storage contexts such as SIM Card contacts or contacts stored on the phone in the system PIM database. The class can be used to perform operations that relate to a specific context of PIM data.
Currently there is no way for applications to implement their own contexts. This feature is being considered for future versions of Qtopia.
See also QContactModel and Pim Library.
Constructs a QContactContext with parent parent.
Adds the contact to the PIM data source if it is controlled by this context. If the contact is successfully added, returns the new unique id for this contact, otherwise returns a null id.
Exports a single contact identified by id. If successful sets ok to true, otherwise sets ok to false.
See also exportContacts().
Exports the contacts 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 contacts in the PIM data source. Contacts may be merged or split over multiple contacts to form the list.
Imports a single contact to the PIM data source. If successful returns true, otherwise returns false.
See also importContacts().
Imports the contacts and merges them with the contacts 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 contacts in the PIM data source. Contacts may be merged or split over multiple contacts. Also contacts that match in name will be updated from the list rather than additional contacts created.
Removes the contact with the identifier id if it exists in this context. Returns true upon success; otherwise returns false.
Updates the contact with the same identifier as contact if it exists in this context. Returns true upon success; otherwise returns false.
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |