Changes: Consistently rename classes
[qtcontacts-tracker:hasselmms-qtcontacts-tracker.git] / src / engine / relationshipremoveworker.h
1 /*********************************************************************************
2  ** This file is part of QtContacts tracker storage plugin
3  **
4  ** Copyright (c) 2009-2011 Nokia Corporation and/or its subsidiary(-ies).
5  **
6  ** Contact:  Nokia Corporation (info@qt.nokia.com)
7  **
8  ** GNU Lesser General Public License Usage
9  ** This file may be used under the terms of the GNU Lesser General Public License
10  ** version 2.1 as published by the Free Software Foundation and appearing in the
11  ** file LICENSE.LGPL included in the packaging of this file.  Please review the
12  ** following information to ensure the GNU Lesser General Public License version
13  ** 2.1 requirements will be met:
14  ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
15  **
16  ** In addition, as a special exception, Nokia gives you certain additional rights.
17  ** These rights are described in the Nokia Qt LGPL Exception version 1.1, included
18  ** in the file LGPL_EXCEPTION.txt in this package.
19  **
20  ** Other Usage
21  ** Alternatively, this file may be used in accordance with the terms and
22  ** conditions contained in a signed written agreement between you and Nokia.
23  *********************************************************************************/
24
25 #ifndef QCTRELATIONSHIPREMOVEWORKER_H_
26 #define QCTRELATIONSHIPREMOVEWORKER_H_
27
28 #include "baseworker.h"
29
30 ////////////////////////////////////////////////////////////////////////////////////////////////////
31
32 class QctRelationshipRemoveWorker : public QctBaseWorker<QContactRelationshipRemoveRequest>
33 {
34     Q_DISABLE_COPY(QctRelationshipRemoveWorker)
35     Q_OBJECT
36
37 public:
38     QctRelationshipRemoveWorker(QContactAbstractRequest *request,
39                                 QctContactManagerEngine *engine,
40                                 QObject *parent = 0);
41     virtual ~QctRelationshipRemoveWorker();
42
43 protected: // QctAbstractWorker API
44     void run();
45     void updateRequest(QContactManager::Error error);
46
47 private: // methods
48     QString buildQuery();
49
50 private: // fields
51     const QList<QContactRelationship> m_relationships;
52     ErrorMap m_errorMap;
53 };
54
55 #endif /* QCTRELATIONSHIPREMOVEWORKER_H_ */