~ps-jenkins/unity-scopes-shell/ubuntu-rtm-14.09-proposed

« back to all changes in this revision

Viewing changes to src/multirangefilter.h

  • Committer: Michal Hruby
  • Date: 2013-11-07 17:48:16 UTC
  • Revision ID: michal.mhr@gmail.com-20131107174816-w1vqq6juarrawx23
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2011, 2013 Canonical, Ltd.
 
3
 *
 
4
 * Authors:
 
5
 *  Florian Boucault <florian.boucault@canonical.com>
 
6
 *  Pawel Stolowski <pawel.stolowski@canonical.com>
 
7
 *
 
8
 * This program is free software; you can redistribute it and/or modify
 
9
 * it under the terms of the GNU General Public License as published by
 
10
 * the Free Software Foundation; version 3.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
19
 */
 
20
 
 
21
#ifndef MULTIRANGEFILTER_H
 
22
#define MULTIRANGEFILTER_H
 
23
 
 
24
// Qt
 
25
#include <QObject>
 
26
#include <QMetaType>
 
27
 
 
28
// libunity-core
 
29
#include <UnityCore/MultiRangeFilter.h>
 
30
 
 
31
// Local
 
32
#include "filter.h"
 
33
#include "signalslist.h"
 
34
 
 
35
class GenericOptionsModel;
 
36
 
 
37
class Q_DECL_EXPORT MultiRangeFilter : public Filter
 
38
{
 
39
    Q_OBJECT
 
40
 
 
41
public:
 
42
    explicit MultiRangeFilter(QObject *parent = nullptr);
 
43
 
 
44
    /* getters */
 
45
    GenericOptionsModel* options() const override;
 
46
 
 
47
protected:
 
48
    void setUnityFilter(unity::dash::Filter::Ptr filter) override;
 
49
 
 
50
private:
 
51
    unity::dash::MultiRangeFilter::Ptr m_unityMultiRangeFilter;
 
52
    SignalsList m_signals;
 
53
    GenericOptionsModel* m_options;
 
54
 
 
55
    void onOptionsChanged(unity::dash::MultiRangeFilter::Options);
 
56
};
 
57
 
 
58
Q_DECLARE_METATYPE(MultiRangeFilter*)
 
59
 
 
60
#endif // MULTIRANGEFILTER_H