blob: 47695be06435e33dfa41211f89cc6dbaa53f0f12 [file] [log] [blame]
Alexandre Lision392ee722015-01-23 16:27:10 -05001/************************************************************************************
Alexandre Lision4a7b95e2015-02-20 10:06:43 -05002 * Copyright (C) 2014-2015 by Savoir-Faire Linux *
Alexandre Lision392ee722015-01-23 16:27:10 -05003 * 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#ifndef MINIMALHISTORYBACKEND_H
20#define MINIMALHISTORYBACKEND_H
21
Alexandre Lision91d11e52015-03-20 17:42:05 -040022#import <collectioninterface.h>
23#import <collectioneditor.h>
Alexandre Lision392ee722015-01-23 16:27:10 -050024
Alexandre Lision4a7b95e2015-02-20 10:06:43 -050025class Call;
26
27template<typename T> class CollectionMediator;
28
29class LIB_EXPORT MinimalHistoryBackend : public CollectionInterface
Alexandre Lision392ee722015-01-23 16:27:10 -050030{
31public:
Alexandre Lision6e817142015-03-13 11:07:53 -040032 explicit MinimalHistoryBackend(CollectionMediator<Call>* mediator);
33 virtual ~MinimalHistoryBackend();
Alexandre Lision4a7b95e2015-02-20 10:06:43 -050034
Alexandre Lision6e817142015-03-13 11:07:53 -040035 virtual bool load() override;
36 virtual bool reload() override;
37 virtual bool clear() override;
38 virtual QString name () const override;
39 virtual QString category () const override;
40 virtual QVariant icon () const override;
41 virtual bool isEnabled() const override;
42 virtual QByteArray id () const override;
43 virtual SupportedFeatures supportedFeatures() const override;
Alexandre Lision4a7b95e2015-02-20 10:06:43 -050044
45private:
Alexandre Lision6e817142015-03-13 11:07:53 -040046 CollectionMediator<Call>* m_pMediator;
Alexandre Lision4a7b95e2015-02-20 10:06:43 -050047};
48
Alexandre Lision392ee722015-01-23 16:27:10 -050049#endif