Unity Scopes API
FilterGroup.h
1 /*
2  * Copyright (C) 2016 Canonical Ltd
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License version 3 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Pawel Stolowski <pawel.stolowski@canonical.com>
17  */
18 
19 #pragma once
20 
21 #include <unity/util/NonCopyable.h>
22 #include <unity/util/DefinesPtrs.h>
23 #include <string>
24 #include <memory>
25 
26 namespace unity
27 {
28 
29 namespace scopes
30 {
31 
32 namespace internal
33 {
34  class FilterGroupImpl;
35 }
36 
41 {
42 public:
44  NONCOPYABLE(FilterGroup);
45  UNITY_DEFINES_PTRS(FilterGroup);
46 
47  virtual ~FilterGroup();
49 
55  static FilterGroup::SCPtr create(std::string const& id, std::string const& label);
56 
62  std::string id() const;
63 
69  std::string label() const;
70 
71 private:
73  FilterGroup();
74  FilterGroup(internal::FilterGroupImpl *pimpl);
75  std::unique_ptr<internal::FilterGroupImpl> p;
76 
77  friend class internal::FilterGroupImpl;
79 };
80 
81 } // namespace scopes
82 
83 } // namespace unity
Groups several filters into an expandable widget in the UI.
Definition: FilterGroup.h:40
Top-level namespace for all things Unity-related.
Definition: Version.h:49
Definition: ActionMetadata.h:31