Mir
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
src
server
frontend
protobuf_ipc_factory.h
Go to the documentation of this file.
1
/*
2
* Copyright © 2012-2014 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: Alan Griffiths <alan@octopull.co.uk>
17
*/
18
19
#ifndef MIR_FRONTEND_PROTOBUF_IPC_FACTORY_H_
20
#define MIR_FRONTEND_PROTOBUF_IPC_FACTORY_H_
21
22
#include <sys/types.h>
23
24
#include <memory>
25
26
namespace
mir
27
{
28
namespace
frontend
29
{
30
namespace
detail
31
{
32
class
DisplayServer;
33
}
34
class
ConnectionContext;
35
class
EventSink;
36
class
ResourceCache;
37
class
SessionCredentials;
38
39
class
ProtobufIpcFactory
40
{
41
public
:
42
virtual
std::shared_ptr<detail::DisplayServer>
make_ipc_server
(
43
SessionCredentials
const
& creds,
44
std::shared_ptr<EventSink>
const
& sink,
45
ConnectionContext
const
& connection_context) = 0;
46
47
virtual
std::shared_ptr<ResourceCache>
resource_cache
() = 0;
48
49
protected
:
50
ProtobufIpcFactory
() {}
51
virtual
~ProtobufIpcFactory
() {}
52
ProtobufIpcFactory
(
ProtobufIpcFactory
const
&) =
delete
;
53
ProtobufIpcFactory
&
operator =
(
ProtobufIpcFactory
const
&) =
delete
;
54
};
55
56
}
57
}
58
59
#endif // MIR_FRONTEND_PROTOBUF_IPC_FACTORY_H_
mir::frontend::ProtobufIpcFactory::make_ipc_server
virtual std::shared_ptr< detail::DisplayServer > make_ipc_server(SessionCredentials const &creds, std::shared_ptr< EventSink > const &sink, ConnectionContext const &connection_context)=0
mir
All things Mir.
Definition:
buffer_stream.h:37
mir::frontend::ProtobufIpcFactory::operator=
ProtobufIpcFactory & operator=(ProtobufIpcFactory const &)=delete
mir::frontend::SessionCredentials
Definition:
session_credentials.h:27
mir::frontend::ProtobufIpcFactory::ProtobufIpcFactory
ProtobufIpcFactory()
Definition:
protobuf_ipc_factory.h:50
mir::frontend::ConnectionContext
Definition:
connection_context.h:32
mir::frontend::ProtobufIpcFactory
Definition:
protobuf_ipc_factory.h:39
mir::frontend::ProtobufIpcFactory::resource_cache
virtual std::shared_ptr< ResourceCache > resource_cache()=0
mir::frontend::ProtobufIpcFactory::~ProtobufIpcFactory
virtual ~ProtobufIpcFactory()
Definition:
protobuf_ipc_factory.h:51
Copyright © 2012,2013 Canonical Ltd.
Generated on Tue Mar 24 16:15:19 UTC 2015