/* * Copyright (C) 2011, 2013 Canonical, Ltd. * * Authors: * Florian Boucault * Pawel Stolowski * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef RADIOOPTIONFILTER_H #define RADIOOPTIONFILTER_H // Qt #include #include // libunity-core #include // Local #include "filter.h" #include "filteroption.h" #include "signalslist.h" class Q_DECL_EXPORT RadioOptionFilter : public Filter { Q_OBJECT public: explicit RadioOptionFilter(QObject *parent = nullptr); /* getters */ GenericOptionsModel* options() const override; protected: void setUnityFilter(unity::dash::Filter::Ptr filter) override; private: unity::dash::RadioOptionFilter::Ptr m_unityRadioOptionFilter; GenericOptionsModel* m_options; SignalsList m_signals; void onOptionsChanged(unity::dash::RadioOptionFilter::RadioOptions); }; Q_DECLARE_METATYPE(RadioOptionFilter*) #endif // RADIOOPTIONFILTER_H