| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DBUS_MESSAGE_H_ | 5 #ifndef DBUS_MESSAGE_H_ |
| 6 #define DBUS_MESSAGE_H_ | 6 #define DBUS_MESSAGE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include <dbus/dbus.h> | 10 #include <dbus/dbus.h> |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // SetSignature() does not exist as we cannot do it. | 104 // SetSignature() does not exist as we cannot do it. |
| 105 | 105 |
| 106 // Gets the destination, the path, the interface, the member, etc. | 106 // Gets the destination, the path, the interface, the member, etc. |
| 107 // If not set, an empty string is returned. | 107 // If not set, an empty string is returned. |
| 108 std::string GetDestination(); | 108 std::string GetDestination(); |
| 109 ObjectPath GetPath(); | 109 ObjectPath GetPath(); |
| 110 std::string GetInterface(); | 110 std::string GetInterface(); |
| 111 std::string GetMember(); | 111 std::string GetMember(); |
| 112 std::string GetErrorName(); | 112 std::string GetErrorName(); |
| 113 std::string GetSender(); | 113 std::string GetSender(); |
| 114 std::string GetDataSignature(); | 114 std::string GetSignature(); |
| 115 // Gets the serial and reply serial numbers. Returns 0 if not set. | 115 // Gets the serial and reply serial numbers. Returns 0 if not set. |
| 116 uint32 GetSerial(); | 116 uint32 GetSerial(); |
| 117 uint32 GetReplySerial(); | 117 uint32 GetReplySerial(); |
| 118 | 118 |
| 119 // Returns the string representation of this message. Useful for | 119 // Returns the string representation of this message. Useful for |
| 120 // debugging. The output is truncated as needed (ex. strings are truncated | 120 // debugging. The output is truncated as needed (ex. strings are truncated |
| 121 // if longer than a certain limit defined in the .cc file). | 121 // if longer than a certain limit defined in the .cc file). |
| 122 std::string ToString(); | 122 std::string ToString(); |
| 123 | 123 |
| 124 protected: | 124 protected: |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 | 484 |
| 485 Message* message_; | 485 Message* message_; |
| 486 DBusMessageIter raw_message_iter_; | 486 DBusMessageIter raw_message_iter_; |
| 487 | 487 |
| 488 DISALLOW_COPY_AND_ASSIGN(MessageReader); | 488 DISALLOW_COPY_AND_ASSIGN(MessageReader); |
| 489 }; | 489 }; |
| 490 | 490 |
| 491 } // namespace dbus | 491 } // namespace dbus |
| 492 | 492 |
| 493 #endif // DBUS_MESSAGE_H_ | 493 #endif // DBUS_MESSAGE_H_ |
| OLD | NEW |