00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef QCTUNMERGEIMCONTACTSREQUEST_H
00026 #define QCTUNMERGEIMCONTACTSREQUEST_H
00027
00028 #include "qtcontactsglobal.h"
00029 #include <QContactSaveRequest>
00030 #include <QContactOnlineAccount>
00031
00032 #include "libqtcontacts_extensions_tracker_global.h"
00033
00034 QTM_USE_NAMESPACE
00035
00049 class LIBQTCONTACTS_EXTENSIONS_TRACKER_EXPORT QctUnmergeIMContactsRequestData;
00050 class LIBQTCONTACTS_EXTENSIONS_TRACKER_EXPORT QctUnmergeIMContactsRequest : public QContactSaveRequest
00051 {
00052 Q_OBJECT
00053
00054 public:
00056 QctUnmergeIMContactsRequest(QObject *parent = 0);
00057
00059 void setUnmergeOnlineAccounts(const QList<QContactOnlineAccount> &onlineAccounts);
00060
00062 QList<QContactOnlineAccount> unmergeOnlineAccounts() const;
00063
00065 void setSourceContact(const QContact &contact);
00066
00068 QContact sourceContact() const;
00069
00071 QList<QContactLocalId> unmergedContactIds() const;
00072
00073 protected:
00074 void setUnmergedContactIds(const QList<QContactLocalId> &ids);
00075
00076 const QctUnmergeIMContactsRequestData *data() const;
00077 QctUnmergeIMContactsRequestData *data();
00078
00079 private:
00080 Q_DISABLE_COPY(QctUnmergeIMContactsRequest)
00081
00082 friend class QContactManagerEngine;
00083 friend class QTrackerContactSaveOrUnmergeRequest;
00084 };
00085
00086 #endif // QCTUNMERGEIMCONTACTSREQUEST_H