2
* Copyright © 2015-2016 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License version 2 or 3 as
6
* published by the Free Software Foundation.
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 General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Authored by: Alan Griffiths <alan@octopull.co.uk>
19
#ifndef MIRAL_APPLICATION_INFO_H
20
#define MIRAL_APPLICATION_INFO_H
22
#include "miral/application.h"
31
struct ApplicationInfo
34
explicit ApplicationInfo(Application const& app);
36
ApplicationInfo(ApplicationInfo const& that);
37
auto operator=(ApplicationInfo const& that) -> miral::ApplicationInfo&;
39
auto name() const -> std::string;
40
auto application() const -> Application;
41
auto windows() const -> std::vector <Window>&;
42
void add_window(Window const& window);
43
void remove_window(Window const& window);
45
/// This can be used by client code to store window manager specific information
46
auto userdata() const -> std::shared_ptr<void>;
47
void userdata(std::shared_ptr<void> userdata);
51
std::unique_ptr<Self> const self;
55
#endif //MIRAL_APPLICATION_INFO_H