~renatofilho/qtorganizer5-eds/fix-1240505

« back to all changes in this revision

Viewing changes to qorganizer/qorganizer-eds-fetchrequestdata.h

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2013-08-14 21:23:01 UTC
  • Revision ID: renato.filho@canonical.com-20130814212301-cmqs3nv48cvzy9qq
Initial commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2013 Canonical Ltd.
 
3
 *
 
4
 * This file is part of ubuntu-pim-service.
 
5
 *
 
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.
 
9
 *
 
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.
 
14
 *
 
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/>.
 
17
 */
 
18
 
 
19
#ifndef __QORGANIZER_EDS_FETCHREQUESTDATA_H__
 
20
#define __QORGANIZER_EDS_FETCHREQUESTDATA_H__
 
21
 
 
22
#include "qorganizer-eds-requestdata.h"
 
23
 
 
24
class FetchRequestData : public RequestData
 
25
{
 
26
public:
 
27
    FetchRequestData(QOrganizerEDSEngine *engine, QtOrganizer::QOrganizerAbstractRequest *req);
 
28
    ~FetchRequestData();
 
29
 
 
30
    QOrganizerEDSCollectionEngineId* nextCollection();
 
31
    QOrganizerEDSCollectionEngineId* collection() const;
 
32
 
 
33
    void finish(QtOrganizer::QOrganizerManager::Error error = QtOrganizer::QOrganizerManager::NoError);
 
34
    void appendResults(QList<QtOrganizer::QOrganizerItem> results);
 
35
    QString dateFilter();
 
36
 
 
37
private:
 
38
    QList<QOrganizerEDSCollectionEngineId*> m_collections;
 
39
    QOrganizerEDSCollectionEngineId *m_current;
 
40
    QList<QtOrganizer::QOrganizerItem> m_results;
 
41
};
 
42
 
 
43
#endif