Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QPimContext class represents a storage context of PIM data. More...
#include <QPimContext>
Inherits QObject.
Inherited by QAppointmentContext, QContactContext, and QTaskContext.
The QPimContext class represents a storage context of PIM data.
This includes storage such as SIM Card contacts or data stored on the device in the system PIM database. The class can be used to perform operations that relate to a specific context of PIM data.
QPimContext should not be instantiated directly. Instead, one of the data type specific contexts should be used. These are QContactContext, QTaskContext and QAppointmentContext.
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, QContactModel, QTaskModel, and Pim Library.
Constructs a QPimContext with parent parent.
Returns the default PIM data source that is controlled by this context.
If there is no default PIM data source returns a null source.
Returns text describing the PIM context, in a format suitable for displaying to the user.
Returns true if any PIM records stored by the context can be edited. The default implementation returns false.
This is an overloaded member function, provided for convenience.
Returns true if the PIM record identified by id can be edited by this context, otherwise false.
Returns true if the PIM record identified by id exists in a PIM data source controlled by this context. Otherwise returns false.
See also source().
This is an overloaded member function, provided for convenience.
Returns true if the contact identified by id exists in the PIM data source and the source is controlled by this context. Otherwise returns false.
See also source().
Returns an icon associated with the context. The default implementation returns a null icon.
Returns a unique identifier for this context.
Filters the model that created this context to only show records for the sources that are contained in visible. Does not affect data from other contexts.
See also visibleSources().
Returns the PIM data source identified by id where the record is stored, if it exists. Returns a null PIM data source if there is no record for id.
See also exists().
Returns the list of PIM data sources that are controlled by this context.
Returns the title of the PIM context, in a format suitable for displaying to the user.
This is an overloaded member function, provided for convenience.
Returns the title of the PIM data source, in a format suitable for displaying to the user. Returns the title for the context by default.
Returns the set of PIM data sources that are controlled by this context and are visible in the model that created the context.
See also setVisibleSources().
Copyright © 2009 Nokia | Trademarks | Qt Extended 4.4.3 |