Mir
external_client.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2018 Canonical Ltd.
3  *
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.
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 General Public License for more details.
12  *
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/>.
15  *
16  * Authored by: Alan Griffiths <alan@octopull.co.uk>
17  */
18 
19 #ifndef MIRAL_EXTERNAL_CLIENT_H
20 #define MIRAL_EXTERNAL_CLIENT_H
21 
22 #include <sys/types.h>
23 
24 #include <memory>
25 #include <string>
26 #include <vector>
27 
28 namespace mir { class Server; }
29 
30 namespace miral
31 {
33 {
34 public:
37 
38  void operator()(mir::Server& server);
39 
40  void launch(std::vector<std::string> const& command_line) const;
41 
46  auto pid() const -> pid_t;
47 
48 private:
49  struct Self;
50  std::shared_ptr<Self> self;
51 };
52 }
53 
54 #endif //MIRAL_EXTERNAL_CLIENT_H
miral::ExternalClientLauncher
Definition: external_client.h:32
miral
Mir Abstraction Layer.
Definition: floating_window_manager.h:29
miral::ExternalClientLauncher::~ExternalClientLauncher
~ExternalClientLauncher()
miral::ExternalClientLauncher::ExternalClientLauncher
ExternalClientLauncher()
mir
Definition: splash_session.h:24
miral::ExternalClientLauncher::pid
auto pid() const -> pid_t
The pid of the latest process that was launched or -1.
miral::ExternalClientLauncher::operator()
void operator()(mir::Server &server)
miral::ExternalClientLauncher::launch
void launch(std::vector< std::string > const &command_line) const

Copyright © 2012-2020 Canonical Ltd.
Generated on Sun Feb 9 22:37:19 UTC 2020
This documentation is licensed under the GPL version 2 or 3.