Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
session.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2012 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 3,
6  * as 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: Robert Carr <racarr@canonical.com>
17  */
18 
19 #ifndef MIR_FRONTEND_SESSION_H_
20 #define MIR_FRONTEND_SESSION_H_
21 
22 #include "mir_toolkit/common.h"
24 
25 #include <memory>
26 #include <string>
27 
28 namespace mir
29 {
30 namespace scene
31 {
32 struct SurfaceCreationParameters;
33 }
34 
35 namespace graphics
36 {
37 class DisplayConfiguration;
38 }
39 
40 namespace frontend
41 {
42 class Surface;
43 
44 class Session
45 {
46 public:
47  virtual ~Session() = default;
48 
50  virtual void destroy_surface(SurfaceId surface) = 0;
51  virtual std::shared_ptr<Surface> get_surface(SurfaceId surface) const = 0;
52 
53  virtual std::string name() const = 0;
54 
55  virtual void hide() = 0;
56  virtual void show() = 0;
57 
58 protected:
59  Session() = default;
60  Session(Session const&) = delete;
61  Session& operator=(Session const&) = delete;
62 };
63 
64 }
65 }
66 
67 #endif // MIR_FRONTEND_SESSION_H_
Definition: session.h:44
All things Mir.
Definition: aging_buffer.h:24
virtual void destroy_surface(SurfaceId surface)=0
virtual void hide()=0
virtual std::shared_ptr< Surface > get_surface(SurfaceId surface) const =0
Session & operator=(Session const &)=delete
virtual ~Session()=default
virtual SurfaceId create_surface(scene::SurfaceCreationParameters const &params)=0
Definition: int_wrapper.h:27
virtual void show()=0
Definition: surface_creation_parameters.h:38
virtual std::string name() const =0

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Oct 10 14:07:14 UTC 2014