dbus-cxx logo
returnmessage.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/callmessage.h>
20 
21 #ifndef DBUSCXX_RETURNMESSAGE_H
22 #define DBUSCXX_RETURNMESSAGE_H
23 
24 namespace DBus
25 {
26 
38  class ReturnMessage : public Message
39  {
40  protected:
41 
42  ReturnMessage( );
43 
44  ReturnMessage( DBusMessage* callee );
45 
47 
49 
50  public:
51 
52  typedef DBusCxxPointer<ReturnMessage> pointer;
53 
54  typedef DBusCxxPointer<const ReturnMessage> const_pointer;
55 
56  typedef DBusCxxWeakPointer<ReturnMessage> weak_pointer;
57 
58  static pointer create( );
59 
60  static pointer create( DBusMessage* callee );
61 
62  static pointer create( Message::pointer callee );
63 
64  static pointer create( Message::const_pointer callee );
65 
66  const char* signature() const;
67 
68  bool has_signature( const std::string& signature ) const;
69 
70  ReturnMessage& operator=( const Message& other );
71 
72  bool set_reply_serial( uint32_t );
73 
74  uint32_t reply_serial() const;
75 
76  };
77 
78 
79 }
80 
81 #endif
DBusCxxPointer< Message > pointer
Definition: message.h:60
Definition: accumulators.h:24
const char * signature() const
Definition: returnmessage.cpp:69
ReturnMessage()
Definition: returnmessage.cpp:24
Represents a DBus call return message.
Definition: returnmessage.h:38
uint32_t reply_serial() const
Definition: returnmessage.cpp:92
bool set_reply_serial(uint32_t)
Definition: returnmessage.cpp:86
This class represents a basic DBus message and also serves as a base class for the specialized messag...
Definition: message.h:56
static pointer create()
Definition: returnmessage.cpp:49
bool has_signature(const std::string &signature) const
Definition: returnmessage.cpp:74
DBusCxxPointer< ReturnMessage > pointer
Definition: returnmessage.h:52
ReturnMessage & operator=(const Message &other)
Definition: returnmessage.cpp:79
DBusCxxPointer< const ReturnMessage > const_pointer
Definition: returnmessage.h:54
DBusCxxPointer< const Message > const_pointer
Definition: message.h:62
DBusCxxWeakPointer< ReturnMessage > weak_pointer
Definition: returnmessage.h:56

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