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
28namespace mir { class Server; }
29
30namespace miral
31{
33{
34public:
37
38 void operator()(mir::Server& server);
39
40 void launch(std::vector<std::string> const& command_line) const;
41
45 void launch_using_x11(std::vector<std::string> const& command_line) const;
46
51 auto pid() const -> pid_t;
52
53private:
54 struct Self;
55 std::shared_ptr<Self> self;
56};
57}
58
59#endif //MIRAL_EXTERNAL_CLIENT_H
Definition: external_client.h:33
auto pid() const -> pid_t
The pid of the latest process that was launched or -1.
void launch_using_x11(std::vector< std::string > const &command_line) const
Launch using only X11 support (if enabled). For the occasions it is desired to coerce applications in...
void operator()(mir::Server &server)
void launch(std::vector< std::string > const &command_line) const
Definition: splash_session.h:24
Mir Abstraction Layer.
Definition: floating_window_manager.h:29
STL namespace.

Copyright © 2012-2022 Canonical Ltd.
Generated on Sat 3 Dec 14:36:51 UTC 2022
This documentation is licensed under the GPL version 2 or 3.