dbus-cxx logo
methodproxybase.h
Go to the documentation of this file.
1 
2 // -*- c++ -*-
3 /* Do not edit! -- generated file */
4 
5 /***************************************************************************
6  * Copyright (C) 2009,2010 by Rick L. Vinyard, Jr. *
7  * rvinyard@cs.nmsu.edu *
8  * *
9  * This file is part of the dbus-cxx library. *
10  * *
11  * The dbus-cxx library is free software; you can redistribute it and/or *
12  * modify it under the terms of the GNU General Public License *
13  * version 3 as published by the Free Software Foundation. *
14  * *
15  * The dbus-cxx library is distributed in the hope that it will be *
16  * useful, but WITHOUT ANY WARRANTY; without even the implied warranty *
17  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
18  * General Public License for more details. *
19  * *
20  * You should have received a copy of the GNU General Public License *
21  * along with this software. If not see <http://www.gnu.org/licenses/>. *
22  ***************************************************************************/
23 #include <string>
24 
25 #include <sigc++/sigc++.h>
26 
27 #include <dbus-cxx/enums.h>
28 #include <dbus-cxx/pointer.h>
29 #include <dbus-cxx/forward_decls.h>
30 #include <dbus-cxx/accumulators.h>
31 #include <dbus-cxx/callmessage.h>
32 #include <dbus-cxx/returnmessage.h>
33 #include <dbus-cxx/pendingcall.h>
34 
35 #ifndef DBUSCXX_METHODPROXYBASE_H
36 #define DBUSCXX_METHODPROXYBASE_H
37 
38 namespace DBus
39 {
47  {
48  protected:
49 
50  MethodProxyBase( const std::string& name );
51 
52  MethodProxyBase(const MethodProxyBase& other);
53 
54  public:
55 
56  typedef DBusCxxPointer<MethodProxyBase> pointer;
57 
58  static pointer create( const std::string& name );
59 
61 
62  InterfaceProxy* interface() const;
63 
64  const std::string& name() const;
65 
66  void set_name( const std::string& name );
67 
69 
70  ReturnMessage::const_pointer call( CallMessage::const_pointer, int timeout_milliseconds=-1 ) const;
71 
72 
73 
74  PendingCall::pointer call_async( CallMessage::const_pointer, int timeout_milliseconds=-1 ) const;
75 
76  sigc::signal<void,const std::string&/*old name*/, const std::string&/*new name*/> signal_name_changed();
77 
78  protected:
79 
80  // Declare InterfaceProxy as a friend so that it can set the interface
81  friend class InterfaceProxy;
82 
84 
85  std::string m_name;
86 
88  pthread_mutex_t m_name_mutex;
89 
90  sigc::signal<void,const std::string&, const std::string&> m_signal_name_changed;
91 
92  };
93 
94 }
95 
96 #endif
sigc::signal< void, const std::string &, const std::string & > signal_name_changed()
Definition: methodproxybase.cpp:90
CallMessage::pointer create_call_message() const
Definition: methodproxybase.cpp:70
DBusCxxPointer< CallMessage > pointer
Definition: callmessage.h:57
pthread_mutex_t m_name_mutex
Ensures that the name doesn't change while the name changed signal is emitting.
Definition: methodproxybase.h:88
static pointer create(const std::string &name)
Definition: methodproxybase.cpp:41
Definition: accumulators.h:24
PendingCall::pointer call_async(CallMessage::const_pointer, int timeout_milliseconds=-1) const
Definition: methodproxybase.cpp:84
ReturnMessage::const_pointer call(CallMessage::const_pointer, int timeout_milliseconds=-1) const
Definition: methodproxybase.cpp:78
MethodProxyBase(const std::string &name)
Definition: methodproxybase.cpp:27
~MethodProxyBase()
Definition: methodproxybase.cpp:46
sigc::signal< void, const std::string &, const std::string & > m_signal_name_changed
Definition: methodproxybase.h:90
std::string m_name
Definition: methodproxybase.h:85
Definition: interfaceproxy.h:45
DBusCxxPointer< PendingCall > pointer
Definition: pendingcall.h:47
InterfaceProxy * interface() const
Definition: methodproxybase.cpp:51
DBusCxxPointer< MethodProxyBase > pointer
Definition: methodproxybase.h:56
void set_name(const std::string &name)
Definition: methodproxybase.cpp:61
Definition: methodproxybase.h:46
const std::string & name() const
Definition: methodproxybase.cpp:56
InterfaceProxy * m_interface
Definition: methodproxybase.h:83
DBusCxxPointer< const ReturnMessage > const_pointer
Definition: returnmessage.h:54
DBusCxxPointer< const CallMessage > const_pointer
Definition: callmessage.h:59

Generated on Sun Mar 19 2017 14:54:27 for dbus-cxx by doxygen 1.8.8