dbus-cxx logo
callmessage.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2009,2010 by Rick L. Vinyard, Jr. *
3  * rvinyard@cs.nmsu.edu *
4  * *
5  * This file is part of the dbus-cxx library. *
6  * *
7  * The dbus-cxx library is free software; you can redistribute it and/or *
8  * modify it under the terms of the GNU General Public License *
9  * version 3 as published by the Free Software Foundation. *
10  * *
11  * The dbus-cxx library is distributed in the hope that it will be *
12  * useful, but WITHOUT ANY WARRANTY; without even the implied warranty *
13  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14  * General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with this software. If not see <http://www.gnu.org/licenses/>. *
18  ***************************************************************************/
19 #include <dbus-cxx/message.h>
20 
21 #ifndef DBUSCXX_CALLMESSAGE_H
22 #define DBUSCXX_CALLMESSAGE_H
23 
24 namespace DBus
25 {
26 
37  class CallMessage : public Message
38  {
39  protected:
40 
41  CallMessage();
42 
43  CallMessage( DBusMessage* cobj );
44 
46 
48 
49  CallMessage( const std::string& dest, const std::string& path, const std::string& iface, const std::string& method );
50 
51  CallMessage( const std::string& path, const std::string& iface, const std::string& method );
52 
53  CallMessage( const std::string& path, const std::string& method );
54 
55  public:
56 
57  typedef DBusCxxPointer<CallMessage> pointer;
58 
59  typedef DBusCxxPointer<const CallMessage> const_pointer;
60 
61  typedef DBusCxxWeakPointer<CallMessage> weak_pointer;
62 
63  static pointer create();
64 
65  static pointer create( DBusMessage* cobj );
66 
67  static pointer create( Message::pointer msg );
68 
69  static const_pointer create(Message::const_pointer msg);
70 
71  static pointer create( const std::string& dest, const std::string& path, const std::string& iface, const std::string& method );
72 
73  static pointer create( const std::string& path, const std::string& iface, const std::string& method );
74 
75  static pointer create( const std::string& path, const std::string& method );
76 
77  bool set_path( const std::string& p );
78 
79  Path path() const;
80 
81  bool has_path( const std::string& p ) const;
82 
83  std::vector<std::string> path_decomposed() const;
84 
85  bool set_interface( const std::string& i );
86 
87  const char* interface() const;
88 
89  bool has_interface( const std::string& i ) const;
90 
91  bool set_member( const std::string& m );
92 
93  const char* member() const;
94 
95  bool has_member( const std::string& m ) const;
96 
97  const char* signature() const;
98 
99  bool has_signature( const std::string& signature ) const;
100 
101  bool operator == ( const CallMessage& ) const;
102 
103  void set_no_reply( bool no_reply=true );
104 
105  bool expects_reply() const;
106 
107  };
108 
109 }
110 
111 #endif
const char * member() const
Definition: callmessage.cpp:183
DBusCxxPointer< CallMessage > pointer
Definition: callmessage.h:57
static pointer create()
Definition: callmessage.cpp:91
DBusMessage * cobj() const
Definition: message.cpp:261
const char * interface() const
Definition: callmessage.cpp:169
DBusCxxPointer< Message > pointer
Definition: message.h:60
Definition: accumulators.h:24
bool has_path(const std::string &p) const
Definition: callmessage.cpp:148
bool has_interface(const std::string &i) const
Definition: callmessage.cpp:173
std::vector< std::string > path_decomposed() const
Definition: callmessage.cpp:153
bool expects_reply() const
Definition: callmessage.cpp:214
bool set_interface(const std::string &i)
Definition: callmessage.cpp:164
CallMessage()
Definition: callmessage.cpp:26
bool has_signature(const std::string &signature) const
Definition: callmessage.cpp:198
bool has_member(const std::string &m) const
Definition: callmessage.cpp:188
DBusCxxWeakPointer< CallMessage > weak_pointer
Definition: callmessage.h:61
const char * signature() const
Definition: callmessage.cpp:193
bool operator==(const CallMessage &) const
Definition: callmessage.cpp:203
This class represents a basic DBus message and also serves as a base class for the specialized messag...
Definition: message.h:56
void set_no_reply(bool no_reply=true)
Definition: callmessage.cpp:208
Represents a DBus call message.
Definition: callmessage.h:37
Path path() const
Definition: callmessage.cpp:143
Definition: path.h:31
bool set_path(const std::string &p)
Definition: callmessage.cpp:138
DBusCxxPointer< const Message > const_pointer
Definition: message.h:62
DBusCxxPointer< const CallMessage > const_pointer
Definition: callmessage.h:59
bool set_member(const std::string &m)
Definition: callmessage.cpp:178

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