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

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

#include <miral/internal_client.h>

Public Member Functions

 StartupInternalClient (std::string name, std::function< void(toolkit::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 ()
 
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

miral::StartupInternalClient::StartupInternalClient ( std::string  name,
std::function< void(toolkit::Connection connection)>  client_code,
std::function< void(std::weak_ptr< mir::scene::Session > const session)>  connect_notification 
)
explicit
template<typename ClientObject >
miral::StartupInternalClient::StartupInternalClient ( std::string  name,
ClientObject const &  client_object 
)
inlineexplicit
miral::StartupInternalClient::~StartupInternalClient ( )

Member Function Documentation

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

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

Copyright © 2016 Canonical Ltd.
Generated on Fri Sep 30 13:21:55 UTC 2016