blob: f5632d9becbad3575e273181ca334f3d32448255 [file] [log] [blame]
Edric Milaret627500d2015-03-27 16:41:40 -04001/************************************************************************************
2 * Copyright (C) 2014-2015 by Savoir-Faire Linux *
3 * Author : Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com> *
4 * *
5 * This library is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU Lesser General Public *
7 * License as published by the Free Software Foundation; either *
8 * version 2.1 of the License, or (at your option) any later version. *
9 * *
10 * This library 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 GNU *
13 * Lesser General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU Lesser General Public *
16 * License along with this library; if not, write to the Free Software *
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
18 ***********************************************************************************/
19
20#ifndef MINIMALHISTORYBACKEND_H
21#define MINIMALHISTORYBACKEND_H
22
23#include <collectioninterface.h>
24#include <collectioneditor.h>
25
26class Call;
27
28template<typename T> class CollectionMediator;
29
30class LIB_EXPORT MinimalHistoryBackend : public CollectionInterface
31{
32public:
33 explicit MinimalHistoryBackend(CollectionMediator<Call>* mediator);
34 virtual ~MinimalHistoryBackend();
35
36 virtual bool load() override;
37 virtual bool reload() override;
38 virtual bool clear() override;
39 virtual QString name () const override;
40 virtual QString category () const override;
41 virtual QVariant icon () const override;
42 virtual bool isEnabled() const override;
43 virtual QByteArray id () const override;
44 virtual SupportedFeatures supportedFeatures() const override;
45
46private:
47 CollectionMediator<Call>* m_pMediator;
48};
49
50#endif