Back to index

unity  6.0.0
FilterGenreButton.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2011 Canonical Ltd.
00003  *
00004  * This program is free software: you can redistribute it and/or modify it
00005  * under the terms of the GNU Lesser General Public License version 3, as
00006  * published by the  Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful, but
00009  * WITHOUT ANY WARRANTY; without even the implied warranties of
00010  * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
00011  * PURPOSE.  See the applicable version of the GNU Lesser General Public
00012  * License for more details.
00013  *
00014  * You should have received a copy of both the GNU Lesser General Public
00015  * License version 3 along with this program.  If not, see
00016  * <http://www.gnu.org/licenses/>
00017  *
00018  * Authored by: Gordon Allott <gord.allott@canonical.com>
00019  *
00020  */
00021 
00022 #ifndef UNITYSHELL_FILTERGENREBUTTON_H
00023 #define UNITYSHELL_FILTERGENREBUTTON_H
00024 
00025 #include <Nux/Nux.h>
00026 #include <Nux/ToggleButton.h>
00027 #include <UnityCore/Filter.h>
00028 
00029 #include "FilterBasicButton.h"
00030 
00031 namespace unity
00032 {
00033 namespace dash
00034 {
00035 
00036 class FilterGenreButton : public FilterBasicButton
00037 {
00038 public:
00039   FilterGenreButton(std::string const& label, NUX_FILE_LINE_PROTO);
00040   FilterGenreButton(NUX_FILE_LINE_PROTO);
00041 
00042   void SetFilter(FilterOption::Ptr const& filter);
00043   FilterOption::Ptr GetFilter();
00044 
00045 private:
00046   FilterOption::Ptr filter_;
00047 };
00048 
00049 } // namespace dash
00050 } // namespace unity
00051 
00052 #endif // FILTERGENREBUTTON_H
00053