2
* Copyright 2013 Canonical Ltd.
4
* This file is part of ubuntu-pim-service.
6
* contact-service-app is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 3.
10
* contact-service-app is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
#ifndef __QORGANIZER_EDS_REMOVEQUESTDATA_H__
20
#define __QORGANIZER_EDS_REMOVEQUESTDATA_H__
22
#include "qorganizer-eds-requestdata.h"
26
class RemoveRequestData : public RequestData
29
RemoveRequestData(QOrganizerEDSEngine *engine, QtOrganizer::QOrganizerAbstractRequest *req);
32
QList<QtOrganizer::QOrganizerCollectionId> pendingCollections() const;
33
QtOrganizer::QOrganizerCollectionId collectionId() const;
35
void finish(QtOrganizer::QOrganizerManager::Error error = QtOrganizer::QOrganizerManager::NoError);
37
GSList *compIds() const;
39
QtOrganizer::QOrganizerCollectionId begin();
41
virtual void cancel();
44
QSet<QtOrganizer::QOrganizerCollectionId> m_pendingCollections;
45
QList<QtOrganizer::QOrganizerItem> m_pendingItems;
47
bool m_sessionStaterd;
48
GSList *m_currentCompIds;
49
QList<QtOrganizer::QOrganizerItemId> m_currentIds;
50
QtOrganizer::QOrganizerCollectionId m_currentCollectionId;
53
GSList* takeItemsIds(QtOrganizer::QOrganizerCollectionId collectionId);