#include <server_p.h>

Inheritance diagram for DBus::Server:
Inheritance graph

Public Member Functions

 Private (DBusServer *)
 
 ~Private ()
 
 Server (const char *address)
 
Dispatchersetup (Dispatcher *)
 
virtual ~Server ()
 
bool listening () const
 
bool operator== (const Server &) const
 
void disconnect ()
 
void enable_auth (bool)
 
void enable_anon (bool)
 

Static Public Member Functions

static void on_new_conn_cb (DBusServer *server, DBusConnection *conn, void *data)
 
static dbus_bool_t on_unix_auth_cb (DBusConnection *conn, unsigned long uid, void *data)
 

Public Attributes

DBusServer * server
 
Dispatcherdispatcher
 
ConnectionList connections
 
bool auth_enabled
 
bool anon_enabled
 

Protected Member Functions

 Server (const Server &s)
 
virtual void on_new_connection (Connection &c)=0
 
virtual bool on_user_auth (unsigned long uid)
 

Private Attributes

RefPtrI< Private_pvt
 

Detailed Description

Definition at line 41 of file server_p.h.

Constructor & Destructor Documentation

◆ ~Private()

DBus::Server::~Private ( )

◆ Server() [1/2]

Server::Server ( const char *  address)

Definition at line 74 of file server.cpp.

References _pvt, DBus::debug_log, DBus::default_dispatcher, Private(), server, and setup().

◆ ~Server()

Server::~Server ( )
virtual

Definition at line 96 of file server.cpp.

References _pvt.

◆ Server() [2/2]

DBus::Server::Server ( const Server s)
inlineprotected

Definition at line 67 of file server.h.

Member Function Documentation

◆ disconnect()

void Server::disconnect ( )

Definition at line 139 of file server.cpp.

References _pvt.

◆ enable_anon()

void Server::enable_anon ( bool  enable)

Definition at line 154 of file server.cpp.

References _pvt.

◆ enable_auth()

void Server::enable_auth ( bool  enable)

Definition at line 149 of file server.cpp.

References _pvt.

◆ listening()

bool Server::listening ( ) const

Definition at line 135 of file server.cpp.

References _pvt.

◆ on_new_conn_cb()

static void DBus::Server::on_new_conn_cb ( DBusServer *  server,
DBusConnection *  conn,
void *  data 
)
static

◆ on_new_connection()

virtual void DBus::Server::on_new_connection ( Connection c)
protectedpure virtual

◆ on_unix_auth_cb()

static dbus_bool_t DBus::Server::on_unix_auth_cb ( DBusConnection *  conn,
unsigned long  uid,
void *  data 
)
static

◆ on_user_auth()

bool Server::on_user_auth ( unsigned long  uid)
protectedvirtual

Definition at line 144 of file server.cpp.

◆ operator==()

bool Server::operator== ( const Server s) const

Definition at line 130 of file server.cpp.

References _pvt.

◆ Private()

DBus::Server::Private ( DBusServer *  )

Referenced by Server().

◆ setup()

Dispatcher * Server::setup ( Dispatcher dispatcher)

Definition at line 101 of file server.cpp.

References _pvt, DBus::debug_log, and dispatcher.

Referenced by Server().

Member Data Documentation

◆ _pvt

RefPtrI<Private> DBus::Server::_pvt
private

Definition at line 76 of file server.h.

Referenced by disconnect(), enable_anon(), enable_auth(), listening(), operator==(), Server(), setup(), and ~Server().

◆ anon_enabled

bool DBus::Server::anon_enabled

Definition at line 51 of file server_p.h.

◆ auth_enabled

bool DBus::Server::auth_enabled

Definition at line 49 of file server_p.h.

◆ connections

ConnectionList DBus::Server::connections

Definition at line 47 of file server_p.h.

◆ dispatcher

Dispatcher* DBus::Server::dispatcher

Definition at line 45 of file server_p.h.

Referenced by setup().

◆ server

DBusServer* DBus::Server::server

Definition at line 43 of file server_p.h.

Referenced by Server().


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