2
* Copyright 2013 Canonical Ltd.
4
* This file is part of canonical-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_ENGINEDATA_H__
20
#define __QORGANIZER_EDS_ENGINEDATA_H__
22
#include <QSharedData>
25
#include <QtOrganizer/QOrganizerAbstractRequest>
26
#include <QtOrganizer/QOrganizerManagerEngine>
27
#include <QtOrganizer/QOrganizerItemChangeSet>
28
#include <QtOrganizer/QOrganizerCollectionChangeSet>
34
class QOrganizerEDSEngineData : public QSharedData
37
QOrganizerEDSEngineData();
38
QOrganizerEDSEngineData(const QOrganizerEDSEngineData& other);
39
~QOrganizerEDSEngineData();
42
void emitSharedSignals(K* cs)
44
Q_FOREACH(QtOrganizer::QOrganizerManagerEngine* engine, m_sharedEngines) {
45
cs->emitSignals(engine);
49
ViewWatcher* watch(const QString &collectionId);
50
void unWatch(const QString &collectionId);
52
QAtomicInt m_refCount;
53
SourceRegistry *m_sourceRegistry;
54
QSet<QtOrganizer::QOrganizerManagerEngine*> m_sharedEngines;
57
QMap<QString, ViewWatcher*> m_viewWatchers;