~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to kde/src/lib/legacyhistorybackend.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-07 14:51:16 UTC
  • mfrom: (4.3.5 sid)
  • Revision ID: package-import@ubuntu.com-20150107145116-yxnafinf4lrdvrmx
Tags: 1.4.1-0.1ubuntu1
* Merge with Debian, remaining changes:
 - Drop soprano, nepomuk build-dep
* Drop ubuntu patches, now upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/************************************************************************************
 
2
 *   Copyright (C) 2014 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
#ifndef LEGACYHISTORYBACKEND_H
 
20
#define LEGACYHISTORYBACKEND_H
 
21
 
 
22
#include "abstractitembackend.h"
 
23
 
 
24
class LIB_EXPORT LegacyHistoryBackend : public AbstractHistoryBackend
 
25
{
 
26
public:
 
27
   explicit LegacyHistoryBackend(QObject* parent = nullptr);
 
28
   virtual ~LegacyHistoryBackend();
 
29
 
 
30
   virtual bool load();
 
31
   virtual bool reload();
 
32
   virtual bool save(const Call* call);
 
33
   virtual bool append(const Call* item);
 
34
 
 
35
   virtual QString name () const;
 
36
   virtual QVariant icon() const;
 
37
   virtual bool isEnabled() const;
 
38
   virtual QByteArray  id() const;
 
39
 
 
40
   virtual SupportedFeatures  supportedFeatures() const;
 
41
 
 
42
   virtual QList<Call*> items() const override;
 
43
 
 
44
   ///Edit 'item', the implementation may be a GUI or somehting else
 
45
   virtual bool edit( Call* call);
 
46
   ///Add a new item to the backend
 
47
   virtual bool addNew( Call* call);
 
48
 
 
49
   ///Add a new phone number to an existing item
 
50
   virtual bool addPhoneNumber( Call* call , PhoneNumber* number );
 
51
};
 
52
 
 
53
#endif