qtmobility/src/contacts/qcontactchangeset.h
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    42 
    42 
    43 #ifndef QCONTACTCHANGESET_H
    43 #ifndef QCONTACTCHANGESET_H
    44 #define QCONTACTCHANGESET_H
    44 #define QCONTACTCHANGESET_H
    45 
    45 
    46 #include "qtcontactsglobal.h"
    46 #include "qtcontactsglobal.h"
       
    47 #include "qcontactid.h"
    47 
    48 
    48 #include <QSet>
    49 #include <QSet>
    49 #include <QPair>
    50 #include <QPair>
    50 #include <QSharedDataPointer>
    51 #include <QSharedDataPointer>
    51 
    52 
    63     QContactChangeSet& operator=(const QContactChangeSet& other);
    64     QContactChangeSet& operator=(const QContactChangeSet& other);
    64 
    65 
    65     void setDataChanged(bool dataChanged);
    66     void setDataChanged(bool dataChanged);
    66     bool dataChanged();
    67     bool dataChanged();
    67 
    68 
    68     QSet<QContactLocalId>& addedContacts();
    69     QSet<QContactLocalId> addedContacts() const;
    69     QSet<QContactLocalId>& changedContacts();
    70     void insertAddedContact(QContactLocalId addedContactId);
    70     QSet<QContactLocalId>& removedContacts();
    71     void insertAddedContacts(const QList<QContactLocalId>& addedContactIds);
    71     QSet<QContactLocalId>& addedRelationshipsContacts();
    72     void clearAddedContacts();
    72     QSet<QContactLocalId>& removedRelationshipsContacts();
       
    73     QPair<QContactLocalId, QContactLocalId>& oldAndNewSelfContactId();
       
    74 
    73 
    75     void clear();
    74     QSet<QContactLocalId> changedContacts() const;
       
    75     void insertChangedContact(QContactLocalId addedContactId);
       
    76     void insertChangedContacts(const QList<QContactLocalId>& addedContactIds);
       
    77     void clearChangedContacts();
       
    78 
       
    79     QSet<QContactLocalId> removedContacts() const;
       
    80     void insertRemovedContact(QContactLocalId addedContactId);
       
    81     void insertRemovedContacts(const QList<QContactLocalId>& addedContactIds);
       
    82     void clearRemovedContacts();
       
    83 
       
    84     QSet<QContactLocalId> addedRelationshipsContacts() const;
       
    85     void insertAddedRelationshipsContact(QContactLocalId affectedContactId);
       
    86     void insertAddedRelationshipsContacts(const QList<QContactLocalId>& affectedContactIds);
       
    87     void clearAddedRelationshipsContacts();
       
    88 
       
    89     QSet<QContactLocalId> removedRelationshipsContacts() const;
       
    90     void insertRemovedRelationshipsContact(QContactLocalId affectedContactId);
       
    91     void insertRemovedRelationshipsContacts(const QList<QContactLocalId>& affectedContactIds);
       
    92     void clearRemovedRelationshipsContacts();
       
    93 
       
    94     void setOldAndNewSelfContactId(const QPair<QContactLocalId, QContactLocalId>& oldAndNewContactId);
       
    95     QPair<QContactLocalId, QContactLocalId> oldAndNewSelfContactId() const;
       
    96 
       
    97     void clearAll();
    76 
    98 
    77     void emitSignals(QContactManagerEngine *engine);
    99     void emitSignals(QContactManagerEngine *engine);
    78 
   100 
    79 private:
   101 private:
    80     QSharedDataPointer<QContactChangeSetData> d;
   102     QSharedDataPointer<QContactChangeSetData> d;