1
/****************************************************************************
3
** Copyright (C) 2015 Canonical Ltd.
5
** Contact: Renato Araujo Oliveira Filho <renato.filho@canonical.com>
7
** This program/library is free software; you can redistribute it and/or
8
** modify it under the terms of the GNU Lesser General Public License
9
** version 2.1 as published by the Free Software Foundation.
11
** This program/library is distributed in the hope that it will be useful,
12
** but WITHOUT ANY WARRANTY; without even the implied warranty of
13
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
** Lesser General Public License for more details.
16
** You should have received a copy of the GNU Lesser General Public
17
** License along with this program/library; if not, write to the Free
18
** Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21
****************************************************************************/
23
#ifndef CONTACTSCHANGENOTIFIERPLUGIN_H
24
#define CONTACTSCHANGENOTIFIERPLUGIN_H
26
#include "StorageChangeNotifierPlugin.h"
28
class ContactsChangeNotifier;
30
class ContactsChangeNotifierPlugin : public Buteo::StorageChangeNotifierPlugin
35
/*! \brief constructor
36
* see StorageChangeNotifierPlugin
38
ContactsChangeNotifierPlugin(const QString& aStorageName);
42
~ContactsChangeNotifierPlugin();
44
/*! \brief see StorageChangeNotifierPlugin::name
48
/*! \brief see StorageChangeNotifierPlugin::hasChanges
50
bool hasChanges() const;
52
/*! \brief see StorageChangeNotifierPlugin::changesReceived
54
void changesReceived();
56
/*! \brief see StorageChangeNotifierPlugin::enable
60
/*! \brief see StorageChangeNotifierPlugin::disable
62
void disable(bool disableAfterNextChange = false);
65
/*! \brief handles a change notification from contacts notifier
70
ContactsChangeNotifier* icontactsChangeNotifier;