00001 /********************************************************************************* 00002 ** This file is part of QtContacts tracker storage plugin 00003 ** 00004 ** Copyright (c) 2010-2011 Nokia Corporation and/or its subsidiary(-ies). 00005 ** 00006 ** Contact: Nokia Corporation (info@qt.nokia.com) 00007 ** 00008 ** GNU Lesser General Public License Usage 00009 ** This file may be used under the terms of the GNU Lesser General Public License 00010 ** version 2.1 as published by the Free Software Foundation and appearing in the 00011 ** file LICENSE.LGPL included in the packaging of this file. Please review the 00012 ** following information to ensure the GNU Lesser General Public License version 00013 ** 2.1 requirements will be met: 00014 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 00015 ** 00016 ** In addition, as a special exception, Nokia gives you certain additional rights. 00017 ** These rights are described in the Nokia Qt LGPL Exception version 1.1, included 00018 ** in the file LGPL_EXCEPTION.txt in this package. 00019 ** 00020 ** Other Usage 00021 ** Alternatively, this file may be used in accordance with the terms and 00022 ** conditions contained in a signed written agreement between you and Nokia. 00023 *********************************************************************************/ 00024 00025 #ifndef QCTCONTACTMERGEREQUEST_H 00026 #define QCTCONTACTMERGEREQUEST_H 00027 00028 #include "qtcontactsglobal.h" 00029 #include "qcontactremoverequest.h" 00030 00031 #include "libqtcontacts_extensions_tracker_global.h" 00032 00033 QTM_USE_NAMESPACE 00034 00056 class LIBQTCONTACTS_EXTENSIONS_TRACKER_EXPORT QctContactMergeRequestData; 00057 class LIBQTCONTACTS_EXTENSIONS_TRACKER_EXPORT QctContactMergeRequest : public QContactRemoveRequest 00058 { 00059 Q_OBJECT 00060 00061 public: 00063 QctContactMergeRequest(QObject *parent = 0); 00064 00066 void setMergeIds(const QMultiMap<QContactLocalId, QContactLocalId> ids); 00068 QMultiMap<QContactLocalId, QContactLocalId> mergeIds() const; 00069 00070 protected: 00071 const QctContactMergeRequestData * data() const; 00072 QctContactMergeRequestData * data(); 00073 00074 private: 00075 Q_DISABLE_COPY(QctContactMergeRequest) 00076 friend class QContactManagerEngine; 00077 }; 00078 00079 #endif // QCTCONTACTMERGEREQUEST_H