19 #ifndef MIR_SCENE_APPLICATION_SESSION_H_
20 #define MIR_SCENE_APPLICATION_SESSION_H_
37 class SessionListener;
39 class SurfaceCoordinator;
40 class SnapshotStrategy;
46 std::shared_ptr<SurfaceCoordinator>
const& surface_coordinator,
48 std::string
const& session_name,
49 std::shared_ptr<SnapshotStrategy>
const& snapshot_strategy,
50 std::shared_ptr<SessionListener>
const& session_listener,
51 std::shared_ptr<frontend::EventSink>
const& sink);
62 std::string
name()
const;
82 std::shared_ptr<SurfaceCoordinator>
const surface_coordinator;
84 std::string
const session_name;
85 std::shared_ptr<SnapshotStrategy>
const snapshot_strategy;
86 std::shared_ptr<SessionListener>
const session_listener;
87 std::shared_ptr<frontend::EventSink>
const event_sink;
91 std::atomic<int> next_surface_id;
93 typedef std::map<frontend::SurfaceId, std::shared_ptr<Surface>> Surfaces;
95 std::mutex
mutable surfaces_mutex;
102 #endif // MIR_SCENE_APPLICATION_SESSION_H_
void destroy_surface(frontend::SurfaceId surface)
Definition: application_session.cpp:126
All things Mir.
Definition: aging_buffer.h:24
pid_t process_id() const override
Definition: application_session.cpp:145
frontend::SurfaceId create_surface(SurfaceCreationParameters const ¶ms)
Definition: application_session.cpp:74
void take_snapshot(SnapshotCallback const &snapshot_taken)
Definition: application_session.cpp:108
std::function< void(Snapshot const &)> SnapshotCallback
Definition: snapshot.h:39
Definition: application_session.h:42
std::shared_ptr< Surface > default_surface() const
Definition: application_session.cpp:116
void hide()
Definition: application_session.cpp:159
ApplicationSession & operator=(ApplicationSession const &)=delete
void start_prompt_session() override
Definition: application_session.cpp:187
void send_display_config(graphics::DisplayConfiguration const &info)
Definition: application_session.cpp:177
Definition: int_wrapper.h:27
~ApplicationSession()
Definition: application_session.cpp:59
std::shared_ptr< frontend::Surface > get_surface(frontend::SurfaceId surface) const
Definition: application_session.cpp:101
void force_requests_to_complete()
Definition: application_session.cpp:150
Definition: surface_creation_parameters.h:38
void stop_prompt_session() override
Definition: application_session.cpp:197
void set_lifecycle_state(MirLifecycleState state)
Definition: application_session.cpp:182
ApplicationSession(std::shared_ptr< SurfaceCoordinator > const &surface_coordinator, pid_t pid, std::string const &session_name, std::shared_ptr< SnapshotStrategy > const &snapshot_strategy, std::shared_ptr< SessionListener > const &session_listener, std::shared_ptr< frontend::EventSink > const &sink)
std::string name() const
Definition: application_session.cpp:140
void show()
Definition: application_session.cpp:168
Interface to a configuration of display cards and outputs.
Definition: display_configuration.h:159