returnmessage.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) 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 <stdint.h>
9 #include <dbus-cxx/message.h>
10 #include <memory>
11 #include <string>
12 
13 #ifndef DBUSCXX_RETURNMESSAGE_H
14 #define DBUSCXX_RETURNMESSAGE_H
15 
16 namespace DBus {
17 
18 class CallMessage;
19 
31 class ReturnMessage : public Message {
32 protected:
33 
34  ReturnMessage( );
35 
36 public:
37  static std::shared_ptr<ReturnMessage> create();
38 
39  static std::shared_ptr<ReturnMessage> create( std::shared_ptr<const CallMessage> callee );
40 
41  bool set_reply_serial( uint32_t );
42 
43  uint32_t reply_serial() const;
44 
45  virtual MessageType type() const;
46 
47 };
48 
49 
50 }
51 
52 #endif
This class represents a basic DBus message and also serves as a base class for the specialized messag...
Definition: message.h:43
Represents a DBus call return message.
Definition: returnmessage.h:31
ReturnMessage()
Definition: returnmessage.cpp:14
bool set_reply_serial(uint32_t)
Definition: returnmessage.cpp:28
virtual MessageType type() const
Definition: returnmessage.cpp:44
static std::shared_ptr< ReturnMessage > create()
Definition: returnmessage.cpp:18
uint32_t reply_serial() const
Definition: returnmessage.cpp:34
Global DBus namespace, where everything happens.
Definition: callmessage.cpp:18
MessageType
Definition: enums.h:81