Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QPimRecord Class Reference
[QtMessagingModule, QtPimModule, QtTelephonyModule, QtUiModule]

The QPimRecord class is the base class for PIM data recorded in the Qt Extended database. More...

    #include <QPimRecord>

Inherited by QAppointment, QContact, and QTask.

Public Functions

Protected Functions


Detailed Description

The QPimRecord class is the base class for PIM data recorded in the Qt Extended database.

The QPimRecord class contains data that is common to the differing kinds of PIM records such as contacts, tasks and appointments. It is an also abstract and as such should not be created explicitly. Instead use one of the subclasses, QContact, QAppointment or QTask.

See also Pim Library.


Member Function Documentation

QPimRecord::~QPimRecord ()   [virtual]

Destroys the record.

QList<QString> QPimRecord::categories () const

Returns the set of categories the record belongs to.

See also setCategories() and categoriesRef().

QList<QString> & QPimRecord::categoriesRef ()   [pure virtual protected]

Subclasses should re-implement this function to return a reference to the categories for this object.

See also categories().

const QList<QString> & QPimRecord::categoriesRef () const   [pure virtual protected]

This is an overloaded member function, provided for convenience.

Subclasses should re-implement this function to return a reference to the categories for this object.

See also categories().

QString QPimRecord::customField ( const QString & key ) const   [virtual]

Returns the string stored for the custom field key. Returns a null string if the field does not exist.

See also setCustomField() and customFields().

QMap<QString, QString> QPimRecord::customFields () const

Returns a map of custom field key and value pairs for the record.

See also setCustomFields(), customField(), and customFieldsRef().

QMap<QString, QString> & QPimRecord::customFieldsRef ()   [pure virtual protected]

Subclasses should re-implement this function to return a reference to the custom fields for this object.

See also customFields().

const QMap<QString, QString> & QPimRecord::customFieldsRef () const   [pure virtual protected]

This is an overloaded member function, provided for convenience.

Subclasses should re-implement this function to return a reference to the custom fields for this object.

See also customFields().

QMap<QString, QUniqueId> QPimRecord::dependentChildren () const

Returns the identifiers and type of dependency for any records that depend on this record.

See also dependentChildrenOfType().

QList<QUniqueId> QPimRecord::dependentChildrenOfType ( const QString & type ) const

Returns the record identifiers for any records that have the specified type of dependency on this record.

For example, if this record is a QContact, there may be QAppointment objects that have a "birthday" or "anniversary" dependency on this record.

See also dependentChildren().

QString QPimRecord::notes () const   [pure virtual]

Returns the notes for the record.

See also setNotes().

QUniqueId QPimRecord::parentDependency () const

If this record is a dependant of another record (for example, this record is the appointment that represents a contact's birthday), this function returns the identifier for the original record.

Otherwise, returns a null identifier.

See also parentDependencyType().

QString QPimRecord::parentDependencyType () const

If this record is a dependant of another record (for example, this record is the appointment that represents a contact's birthday), this function returns the type of the dependency. The types are defined by the PIM library, and include:

  • "birthday" - the parent record is a QContact, and the dependent record is the QAppointment representing that contact's birthday
  • "anniversary" - the parent record is a QContact, and the dependent record is the QAppointment representing that contact's anniversary
  • "duedate" - the parent record is a QTask, and the dependent record is the QAppointment representing that task's due date.

If there is no dependency, this will return a null string.

See also parentDependency().

bool QPimRecord::pruneDeadCategories ( const QList<QString> & categories )

Removes categories from record that do not appear in the given set of valid categories. Returns true if the record was modified.

void QPimRecord::reassignCategoryId ( const QString & oldId, const QString & newId )

Renames category oldId in record to category newId.

void QPimRecord::removeCustomField ( const QString & key )   [virtual]

Removes the custom field for the given key.

void QPimRecord::setCategories ( const QList<QString> & categories )

Sets the record to belong to the given set of categories.

See also categories() and Categories.

void QPimRecord::setCategories ( const QString & identifier )

This is an overloaded member function, provided for convenience.

Sets the record to belong only to the given category identifier.

See also categories() and Categories.

void QPimRecord::setCustomField ( const QString & key, const QString & value )   [virtual]

Sets the string stored for the custom field key to the given value.

Keys with empty values will not be stored, and is equivalent to calling removeCustomField().

See also customField().

void QPimRecord::setCustomFields ( const QMap<QString, QString> & fields )

Sets the custom fields for the record to the given fields.

Custom fields allow storing data that doesn't fit into the existing fields for a given PIM record.

Keys with empty values will not be stored.

See also customFields() and setCustomField().

void QPimRecord::setNotes ( const QString & text )   [pure virtual]

Sets the notes for the record to the given text.

See also notes().

void QPimRecord::setUid ( const QUniqueId & identifier )

Sets the record to have given unique identifier.

See also uid().

QUniqueId QPimRecord::uid () const

Returns the unique identifier for this record.

See also setUid() and uidRef().

QUniqueId & QPimRecord::uidRef ()   [pure virtual protected]

Subclasses should re-implement this function to return a reference to the identifier for this object.

See also uid().

const QUniqueId & QPimRecord::uidRef () const   [pure virtual protected]

This is an overloaded member function, provided for convenience.

Subclasses should re-implement this function to return a reference to the identifier for this object.

See also uid().

bool QPimRecord::operator!= ( const QPimRecord & other ) const

Returns true if this record and the other record are not equal according to the contract specified by operator==().

See also operator==().

bool QPimRecord::operator== ( const QPimRecord & other ) const

Returns true if this record and the other record have all the same:

  • identifier as returned by uid()
  • categories
  • parentDependency and parentDependencyType
  • custom fields
  • notes

and otherwise returns false.

See also operator!=().

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 94
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 43
  4. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  5. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  6. Qt Commercial : Digia organise un webinar gratuit le 27 mars sur la conception d'interfaces utilisateur et d'applications avec le framework 0
  7. 2017 : un quinquennat pour une nouvelle version du C++ ? Possible, selon Herb Sutter 9
Page suivante

Le Qt Quarterly au hasard

Logo

Des apparences personnalisées utilisant les feuilles de style

Qt Quarterly est la revue trimestrielle proposée par Nokia et à destination des développeurs Qt. Ces articles d'une grande qualité technique sont rédigés par des experts Qt. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

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 qtextended4.4
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 !
 
 
 
 
Partenaires

Hébergement Web