Mir
Public Member Functions | List of all members
miral::StartupInternalClient Class Reference

Wrapper for running an internal Mir client at startup. More...

#include <internal_client.h>

Public Member Functions

 StartupInternalClient (std::string name, std::function< void(mir::client::Connection connection)> client_code, std::function< void(std::weak_ptr< mir::scene::Session > const session)> connect_notification)
 
template<typename ClientObject >
 StartupInternalClient (std::string name, ClientObject const &client_object)
 
 StartupInternalClient (std::function< void(struct ::wl_display *display)> client_code, std::function< void(std::weak_ptr< mir::scene::Session > const session)> connect_notification)
 
template<typename ClientObject >
 StartupInternalClient (ClientObject const &client_object)
 
 ~StartupInternalClient ()
 
void operator() (mir::Server &server)
 

Detailed Description

Wrapper for running an internal Mir client at startup.

Note
client_code will be executed on its own thread, this must exit
connection_notification will be called on a worker thread and must not block
Parameters
client_codecode implementing the internal client
connection_notificationhandler for registering the server-side application

Constructor & Destructor Documentation

◆ StartupInternalClient() [1/4]

miral::StartupInternalClient::StartupInternalClient ( std::string  name,
std::function< void(mir::client::Connection connection)>  client_code,
std::function< void(std::weak_ptr< mir::scene::Session > const session)>  connect_notification 
)
explicit

◆ StartupInternalClient() [2/4]

template<typename ClientObject >
miral::StartupInternalClient::StartupInternalClient ( std::string  name,
ClientObject const &  client_object 
)
inlineexplicit

◆ StartupInternalClient() [3/4]

miral::StartupInternalClient::StartupInternalClient ( std::function< void(struct ::wl_display *display)>  client_code,
std::function< void(std::weak_ptr< mir::scene::Session > const session)>  connect_notification 
)
explicit

◆ StartupInternalClient() [4/4]

template<typename ClientObject >
miral::StartupInternalClient::StartupInternalClient ( ClientObject const &  client_object)
inlineexplicit

◆ ~StartupInternalClient()

miral::StartupInternalClient::~StartupInternalClient ( )

Member Function Documentation

◆ operator()()

void miral::StartupInternalClient::operator() ( mir::Server &  server)

The documentation for this class was generated from the following file:

Copyright © 2012-2018 Canonical Ltd.
Generated on Thu 12 Jul 10:49:10 UTC 2018