dbus-cxx
dispatcher.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later OR BSD-3-Clause
2/***************************************************************************
3 * Copyright (C) 2007,2008,2009,2010 by Rick L. Vinyard, Jr. *
4 * rvinyard@cs.nmsu.edu *
5 * *
6 * This file is part of the dbus-cxx library. *
7 ***************************************************************************/
8#include <dbus-cxx/dbus-cxx-config.h>
9#include <string>
10#include <memory>
11#include "enums.h"
12
13#ifndef DBUSCXX_DISPATCHER_H
14#define DBUSCXX_DISPATCHER_H
15
16namespace DBus {
17class Connection;
18
25public:
26 virtual ~Dispatcher();
27
30 virtual std::shared_ptr<Connection> create_connection( BusType type ) = 0;
31
32 virtual std::shared_ptr<Connection> create_connection( std::string address ) = 0;
33
34 virtual bool add_connection( std::shared_ptr<Connection> connection ) = 0;
35
37};
38
39}
40
41#endif
A Dispatcher handles all of the reading/writing that a Connection needs in order to work correctly.
Definition: dispatcher.h:24
virtual ~Dispatcher()
Definition: dispatcher.cpp:11
virtual bool add_connection(std::shared_ptr< Connection > connection)=0
virtual std::shared_ptr< Connection > create_connection(std::string address)=0
virtual std::shared_ptr< Connection > create_connection(BusType type)=0
Global DBus namespace, where everything happens.
Definition: callmessage.cpp:18
BusType
Definition: enums.h:16
DataType type(const uint8_t &)
Definition: types.h:139