~ubuntu-branches/ubuntu/vivid/webbrowser-app/vivid-proposed

« back to all changes in this revision

Viewing changes to src/app/webbrowser/history-byvisits-model.h

  • Committer: Package Import Robot
  • Author(s): CI Train Bot, Arthur Mello, CI Train Bot
  • Date: 2015-04-16 16:33:37 UTC
  • mfrom: (1.2.88)
  • Revision ID: package-import@ubuntu.com-20150416163337-i08d04t4dg2tp4e0
Tags: 0.23+15.04.20150416-0ubuntu1
[ Arthur Mello ]
* Add model support to control which history entries will be displayed
  based on a blacklist database
* Make Top Sites format equal to Bookmarks on the New Tab view

[ CI Train Bot ]
* New rebuild forced.
* Resync trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright 2014 Canonical Ltd.
3
 
 *
4
 
 * This file is part of webbrowser-app.
5
 
 *
6
 
 * webbrowser-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.
9
 
 *
10
 
 * webbrowser-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.
14
 
 *
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/>.
17
 
 */
18
 
 
19
 
#ifndef __HISTORY_BYVISITS_MODEL_H__
20
 
#define __HISTORY_BYVISITS_MODEL_H__
21
 
 
22
 
// Qt
23
 
#include <QtCore/QSortFilterProxyModel>
24
 
 
25
 
class HistoryTimeframeModel;
26
 
 
27
 
class HistoryByVisitsModel : public QSortFilterProxyModel
28
 
{
29
 
    Q_OBJECT
30
 
 
31
 
    Q_PROPERTY(HistoryTimeframeModel* sourceModel READ sourceModel WRITE setSourceModel NOTIFY sourceModelChanged)
32
 
 
33
 
public:
34
 
    HistoryByVisitsModel(QObject* parent=0);
35
 
 
36
 
    HistoryTimeframeModel* sourceModel() const;
37
 
    void setSourceModel(HistoryTimeframeModel* sourceModel);
38
 
 
39
 
Q_SIGNALS:
40
 
    void sourceModelChanged() const;
41
 
};
42
 
 
43
 
#endif // __HISTORY_BYVISITS_MODEL_H__