Home | History | Annotate | Download | only in dbus

Lines Matching defs:string

7 #include <string>
26 void AppendStringHeader(const std::string& header_name,
27 const std::string& header_value,
28 std::string* output) {
36 void AppendUint32Header(const std::string& header_name,
38 std::string* output) {
76 std::string Message::GetMessageTypeAsString() {
90 return std::string();
93 std::string Message::ToStringInternal(const std::string& indent,
96 std::string output;
165 case STRING: {
166 std::string value;
169 // Truncate if the string is longer than the limit.
172 output += indent + "string \"" + value + "\"\n";
174 std::string truncated;
178 output += indent + "string \"" + truncated + "\"\n";
241 // The returned string consists of message headers such as
250 // string \"payload\"
252 std::string Message::ToString() {
254 return std::string();
257 std::string headers;
271 return headers + "\n" + ToStringInternal(std::string(), &reader);
274 bool Message::SetDestination(const std::string& destination) {
282 bool Message::SetInterface(const std::string& interface) {
286 bool Message::SetMember(const std::string& member) {
290 bool Message::SetErrorName(const std::string& error_name) {
294 bool Message::SetSender(const std::string& sender) {
306 std::string Message::GetDestination() {
316 std::string Message::GetInterface() {
321 std::string Message::GetMember() {
326 std::string Message::GetErrorName() {
331 std::string Message::GetSender() {
336 std::string Message::GetSignature() {
353 MethodCall::MethodCall(const std::string& interface_name,
354 const std::string& method_name)
376 Signal::Signal(const std::string& interface_name,
377 const std::string& method_name)
442 const std::string& error_name,
443 const std::string& error_message) {
508 void MessageWriter::AppendString(const std::string& value) {
509 // D-Bus Specification (0.19) says a string "must be valid UTF-8".
514 // input string can be large. If needed, we could add something like
524 // Ideally, client shouldn't need to supply the signature string, but
532 void MessageWriter::OpenArray(const std::string& signature,
545 void MessageWriter::OpenVariant(const std::string& signature,
605 const std::vector<std::string>& strings) {
628 std::string serialized_proto;
676 void MessageWriter::AppendVariantOfString(const std::string& value) {
698 const std::string signature = base::StringPrintf("%c", dbus_type);
778 bool MessageReader::PopString(std::string* value) {
831 std::vector<std::string> *strings) {
836 std::string string;
837 if (!array_reader.PopString(&string))
839 strings->push_back(string);
914 bool MessageReader::PopVariantOfString(std::string* value) {