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_FETCHREQUESTDATA_H__
20
#define __QORGANIZER_EDS_FETCHREQUESTDATA_H__
22
#include "qorganizer-eds-requestdata.h"
24
class FetchRequestData : public RequestData
27
FetchRequestData(QOrganizerEDSEngine *engine, QtOrganizer::QOrganizerAbstractRequest *req);
30
QOrganizerEDSCollectionEngineId* nextCollection();
31
QOrganizerEDSCollectionEngineId* collection() const;
33
void finish(QtOrganizer::QOrganizerManager::Error error = QtOrganizer::QOrganizerManager::NoError);
34
void appendResults(QList<QtOrganizer::QOrganizerItem> results);
38
QList<QOrganizerEDSCollectionEngineId*> m_collections;
39
QOrganizerEDSCollectionEngineId *m_current;
40
QList<QtOrganizer::QOrganizerItem> m_results;