2
* Copyright © 2012 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 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: Thomas Voss <thomas.voss@canonical.com>
19
#ifndef MIR_FRONTEND_APPLICATION_SESSION_FACTORY_H_
20
#define MIR_FRONTEND_APPLICATION_SESSION_FACTORY_H_
30
class ApplicationSession;
32
class ApplicationSessionFactory
35
virtual ~ApplicationSessionFactory() {}
37
virtual std::shared_ptr<ApplicationSession> open_session(std::string const& name) = 0;
38
virtual void close_session(std::shared_ptr<ApplicationSession> const& session) = 0;
41
ApplicationSessionFactory() = default;
42
ApplicationSessionFactory(const ApplicationSessionFactory&) = delete;
43
ApplicationSessionFactory& operator=(const ApplicationSessionFactory&) = delete;
49
#endif // MIR_FRONTEND_APPLICATION_SESSION_FACTORY_H_