/usr/include/giomm-2.4/giomm/dbusintrospection.h is in libglibmm-2.4-dev 2.32.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 | // -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GIOMM_DBUSINTROSPECTION_H
#define _GIOMM_DBUSINTROSPECTION_H
#include <glibmm/ustring.h>
#include <sigc++/sigc++.h>
// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* Copyright (C) 2010 The giomm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gio/gio.h>
#include <glibmm/arrayhandle.h>
namespace Gio
{
namespace DBus
{
/** @addtogroup giommEnums giomm Enums and Flags */
/**
* @ingroup giommEnums
* @par Bitwise operators:
* <tt>%PropertyInfoFlags operator|(PropertyInfoFlags, PropertyInfoFlags)</tt><br>
* <tt>%PropertyInfoFlags operator&(PropertyInfoFlags, PropertyInfoFlags)</tt><br>
* <tt>%PropertyInfoFlags operator^(PropertyInfoFlags, PropertyInfoFlags)</tt><br>
* <tt>%PropertyInfoFlags operator~(PropertyInfoFlags)</tt><br>
* <tt>%PropertyInfoFlags& operator|=(PropertyInfoFlags&, PropertyInfoFlags)</tt><br>
* <tt>%PropertyInfoFlags& operator&=(PropertyInfoFlags&, PropertyInfoFlags)</tt><br>
* <tt>%PropertyInfoFlags& operator^=(PropertyInfoFlags&, PropertyInfoFlags)</tt><br>
*/
enum PropertyInfoFlags
{
PROPERTY_INFO_FLAGS_NONE = 0x0,
PROPERTY_INFO_FLAGS_READABLE = (1<<0),
PROPERTY_INFO_FLAGS_WRITABLE = (1<<1)
};
/** @ingroup giommEnums */
inline PropertyInfoFlags operator|(PropertyInfoFlags lhs, PropertyInfoFlags rhs)
{ return static_cast<PropertyInfoFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
/** @ingroup giommEnums */
inline PropertyInfoFlags operator&(PropertyInfoFlags lhs, PropertyInfoFlags rhs)
{ return static_cast<PropertyInfoFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
/** @ingroup giommEnums */
inline PropertyInfoFlags operator^(PropertyInfoFlags lhs, PropertyInfoFlags rhs)
{ return static_cast<PropertyInfoFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
/** @ingroup giommEnums */
inline PropertyInfoFlags operator~(PropertyInfoFlags flags)
{ return static_cast<PropertyInfoFlags>(~static_cast<unsigned>(flags)); }
/** @ingroup giommEnums */
inline PropertyInfoFlags& operator|=(PropertyInfoFlags& lhs, PropertyInfoFlags rhs)
{ return (lhs = static_cast<PropertyInfoFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
/** @ingroup giommEnums */
inline PropertyInfoFlags& operator&=(PropertyInfoFlags& lhs, PropertyInfoFlags rhs)
{ return (lhs = static_cast<PropertyInfoFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
/** @ingroup giommEnums */
inline PropertyInfoFlags& operator^=(PropertyInfoFlags& lhs, PropertyInfoFlags rhs)
{ return (lhs = static_cast<PropertyInfoFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
/** Stores information about an annotation.
*
* @newin{2,28}
* @ingroup DBus
*/
class AnnotationInfo
{
public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef AnnotationInfo CppObjectType;
typedef GDBusAnnotationInfo BaseObjectType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
/** Increment the reference count for this object.
* You should never need to do this manually - use the object via a RefPtr instead.
*/
void reference() const;
/** Decrement the reference count for this object.
* You should never need to do this manually - use the object via a RefPtr instead.
*/
void unreference() const;
///Provides access to the underlying C instance.
GDBusAnnotationInfo* gobj();
///Provides access to the underlying C instance.
const GDBusAnnotationInfo* gobj() const;
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GDBusAnnotationInfo* gobj_copy() const;
protected:
// Do not derive this. Gio::DBus::AnnotationInfo can neither be constructed nor deleted.
AnnotationInfo();
void operator delete(void*, size_t);
private:
// noncopyable
AnnotationInfo(const AnnotationInfo&);
AnnotationInfo& operator=(const AnnotationInfo&);
public:
/** Looks up the value of an annotation.
*
* This cost of this function is O(n) in number of annotations.
*
* @newin{2,26}
* @param annotations A <tt>0</tt>-terminated array of annotations or <tt>0</tt>.
* @param name The name of the annotation to look up.
* @return The value or <tt>0</tt> if not found. Do not free, it is owned by @a annotations.
*/
static Glib::ustring info_lookup(const Glib::ArrayHandle< Glib::RefPtr<AnnotationInfo> >& annotations, const Glib::ustring& name);
};
/** ArgInfo - Stores information about an argument for a method or a
* signal.
*
* @newin{2,28}
* @ingroup DBus
*/
class ArgInfo
{
public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef ArgInfo CppObjectType;
typedef GDBusArgInfo BaseObjectType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
/** Increment the reference count for this object.
* You should never need to do this manually - use the object via a RefPtr instead.
*/
void reference() const;
/** Decrement the reference count for this object.
* You should never need to do this manually - use the object via a RefPtr instead.
*/
void unreference() const;
///Provides access to the underlying C instance.
GDBusArgInfo* gobj();
///Provides access to the underlying C instance.
const GDBusArgInfo* gobj() const;
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GDBusArgInfo* gobj_copy() const;
protected:
// Do not derive this. Gio::DBus::ArgInfo can neither be constructed nor deleted.
ArgInfo();
void operator delete(void*, size_t);
private:
// noncopyable
ArgInfo(const ArgInfo&);
ArgInfo& operator=(const ArgInfo&);
public:
};
/** Stores information about a method on an D-Bus interface.
*
* @newin{2,28}
* @ingroup DBus
*/
class MethodInfo
{
public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef MethodInfo CppObjectType;
typedef GDBusMethodInfo BaseObjectType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
/** Increment the reference count for this object.
* You should never need to do this manually - use the object via a RefPtr instead.
*/
void reference() const;
/** Decrement the reference count for this object.
* You should never need to do this manually - use the object via a RefPtr instead.
*/
void unreference() const;
///Provides access to the underlying C instance.
GDBusMethodInfo* gobj();
///Provides access to the underlying C instance.
const GDBusMethodInfo* gobj() const;
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GDBusMethodInfo* gobj_copy() const;
protected:
// Do not derive this. Gio::DBus::MethodInfo can neither be constructed nor deleted.
MethodInfo();
void operator delete(void*, size_t);
private:
// noncopyable
MethodInfo(const MethodInfo&);
MethodInfo& operator=(const MethodInfo&);
public:
};
/** Stores information about a signal on a D-Bus interface.
*
* @newin{2,28}
* @ingroup DBus
*/
class SignalInfo
{
public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef SignalInfo CppObjectType;
typedef GDBusSignalInfo BaseObjectType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
/** Increment the reference count for this object.
* You should never need to do this manually - use the object via a RefPtr instead.
*/
void reference() const;
/** Decrement the reference count for this object.
* You should never need to do this manually - use the object via a RefPtr instead.
*/
void unreference() const;
///Provides access to the underlying C instance.
GDBusSignalInfo* gobj();
///Provides access to the underlying C instance.
const GDBusSignalInfo* gobj() const;
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GDBusSignalInfo* gobj_copy() const;
protected:
// Do not derive this. Gio::DBus::SignalInfo can neither be constructed nor deleted.
SignalInfo();
void operator delete(void*, size_t);
private:
// noncopyable
SignalInfo(const SignalInfo&);
SignalInfo& operator=(const SignalInfo&);
public:
};
/** Stores information about a property on a D-Bus interface.
*
* @newin{2,28}
* @ingroup DBus
*/
class PropertyInfo
{
public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef PropertyInfo CppObjectType;
typedef GDBusPropertyInfo BaseObjectType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
/** Increment the reference count for this object.
* You should never need to do this manually - use the object via a RefPtr instead.
*/
void reference() const;
/** Decrement the reference count for this object.
* You should never need to do this manually - use the object via a RefPtr instead.
*/
void unreference() const;
///Provides access to the underlying C instance.
GDBusPropertyInfo* gobj();
///Provides access to the underlying C instance.
const GDBusPropertyInfo* gobj() const;
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GDBusPropertyInfo* gobj_copy() const;
protected:
// Do not derive this. Gio::DBus::PropertyInfo can neither be constructed nor deleted.
PropertyInfo();
void operator delete(void*, size_t);
private:
// noncopyable
PropertyInfo(const PropertyInfo&);
PropertyInfo& operator=(const PropertyInfo&);
public:
};
/** Stores information about a D-Bus interface.
*
* @newin{2,28}
* @ingroup DBus
*/
class InterfaceInfo
{
public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef InterfaceInfo CppObjectType;
typedef GDBusInterfaceInfo BaseObjectType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
/** Increment the reference count for this object.
* You should never need to do this manually - use the object via a RefPtr instead.
*/
void reference() const;
/** Decrement the reference count for this object.
* You should never need to do this manually - use the object via a RefPtr instead.
*/
void unreference() const;
///Provides access to the underlying C instance.
GDBusInterfaceInfo* gobj();
///Provides access to the underlying C instance.
const GDBusInterfaceInfo* gobj() const;
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GDBusInterfaceInfo* gobj_copy() const;
protected:
// Do not derive this. Gio::DBus::InterfaceInfo can neither be constructed nor deleted.
InterfaceInfo();
void operator delete(void*, size_t);
private:
// noncopyable
InterfaceInfo(const InterfaceInfo&);
InterfaceInfo& operator=(const InterfaceInfo&);
public:
/** Looks up information about a method.
*
* This cost of this function is O(n) in number of methods unless
* g_dbus_interface_info_cache_build() has been used on @a info.
*
* @newin{2,26}
* @param name A D-Bus method name (typically in CamelCase).
* @return A DBusMethodInfo or <tt>0</tt> if not found. Do not free, it is owned by @a info.
*/
Glib::RefPtr<MethodInfo> lookup_method(const Glib::ustring& name);
/** Looks up information about a method.
*
* This cost of this function is O(n) in number of methods unless
* g_dbus_interface_info_cache_build() has been used on @a info.
*
* @newin{2,26}
* @param name A D-Bus method name (typically in CamelCase).
* @return A DBusMethodInfo or <tt>0</tt> if not found. Do not free, it is owned by @a info.
*/
Glib::RefPtr<const MethodInfo> lookup_method(const Glib::ustring& name) const;
/** Looks up information about a signal.
*
* This cost of this function is O(n) in number of signals unless
* g_dbus_interface_info_cache_build() has been used on @a info.
*
* @newin{2,26}
* @param name A D-Bus signal name (typically in CamelCase).
* @return A DBusSignalInfo or <tt>0</tt> if not found. Do not free, it is owned by @a info.
*/
Glib::RefPtr<SignalInfo> lookup_signal(const Glib::ustring& name);
/** Looks up information about a signal.
*
* This cost of this function is O(n) in number of signals unless
* g_dbus_interface_info_cache_build() has been used on @a info.
*
* @newin{2,26}
* @param name A D-Bus signal name (typically in CamelCase).
* @return A DBusSignalInfo or <tt>0</tt> if not found. Do not free, it is owned by @a info.
*/
Glib::RefPtr<const SignalInfo> lookup_signal(const Glib::ustring& name) const;
/** Looks up information about a property.
*
* This cost of this function is O(n) in number of properties unless
* g_dbus_interface_info_cache_build() has been used on @a info.
*
* @newin{2,26}
* @param name A D-Bus property name (typically in CamelCase).
* @return A DBusPropertyInfo or <tt>0</tt> if not found. Do not free, it is owned by @a info.
*/
Glib::RefPtr<PropertyInfo> lookup_property(const Glib::ustring& name);
/** Looks up information about a property.
*
* This cost of this function is O(n) in number of properties unless
* g_dbus_interface_info_cache_build() has been used on @a info.
*
* @newin{2,26}
* @param name A D-Bus property name (typically in CamelCase).
* @return A DBusPropertyInfo or <tt>0</tt> if not found. Do not free, it is owned by @a info.
*/
Glib::RefPtr<const PropertyInfo> lookup_property(const Glib::ustring& name) const;
//TODO: _WRAP_METHOD(void generate_xml(guint indent, GString* string_builder), g_dbus_interface_info_generate_xml)
};
/** NodeInfo - Stores information about nodes in a remote object
* hierarchy.
*
* @newin{2,28}
* @ingroup DBus
*/
class NodeInfo
{
public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef NodeInfo CppObjectType;
typedef GDBusNodeInfo BaseObjectType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
/** Increment the reference count for this object.
* You should never need to do this manually - use the object via a RefPtr instead.
*/
void reference() const;
/** Decrement the reference count for this object.
* You should never need to do this manually - use the object via a RefPtr instead.
*/
void unreference() const;
///Provides access to the underlying C instance.
GDBusNodeInfo* gobj();
///Provides access to the underlying C instance.
const GDBusNodeInfo* gobj() const;
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
GDBusNodeInfo* gobj_copy() const;
protected:
// Do not derive this. Gio::DBus::NodeInfo can neither be constructed nor deleted.
NodeInfo();
void operator delete(void*, size_t);
private:
// noncopyable
NodeInfo(const NodeInfo&);
NodeInfo& operator=(const NodeInfo&);
public:
/** Parses @a xml_data and returns a DBusNodeInfo representing the data.
*
* Note that this routine is using a
* GMarkup-based
* parser that only accepts a subset of valid XML documents.
*
* @newin{2,26}
* @param xml_data Valid D-Bus introspection XML.
* @return A DBusNodeInfo structure or <tt>0</tt> if @a error is set. Free
* with g_dbus_node_info_unref().
*/
/** @throw Glib::Error.
*/
static Glib::RefPtr<NodeInfo> create_for_xml(const Glib::ustring& xml_data);
/** Looks up information about an interface.
*
* This cost of this function is O(n) in number of interfaces.
*
* @newin{2,26}
* @param name A D-Bus interface name.
* @return A DBusInterfaceInfo or <tt>0</tt> if not found. Do not free, it is owned by @a info.
*/
Glib::RefPtr<InterfaceInfo> lookup_interface(const Glib::ustring& name);
/** Looks up information about an interface.
*
* This cost of this function is O(n) in number of interfaces.
*
* @newin{2,26}
* @param name A D-Bus interface name.
* @return A DBusInterfaceInfo or <tt>0</tt> if not found. Do not free, it is owned by @a info.
*/
Glib::RefPtr<const InterfaceInfo> lookup_interface(const Glib::ustring& name) const;
//TODO: Documentation:
Glib::RefPtr<InterfaceInfo> lookup_interface();
//TODO: Documentation:
Glib::RefPtr<const InterfaceInfo> lookup_interface() const;
//TODO: _WRAP_METHOD(void generate_xml(guint indent, GString* string_builder), g_dbus_node_info_generate_xml)
};
} //namespace DBus
} // namespace Gio
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::DBus::AnnotationInfo
*/
Glib::RefPtr<Gio::DBus::AnnotationInfo> wrap(GDBusAnnotationInfo* object, bool take_copy = false);
} // namespace Glib
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::DBus::ArgInfo
*/
Glib::RefPtr<Gio::DBus::ArgInfo> wrap(GDBusArgInfo* object, bool take_copy = false);
} // namespace Glib
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::DBus::MethodInfo
*/
Glib::RefPtr<Gio::DBus::MethodInfo> wrap(GDBusMethodInfo* object, bool take_copy = false);
} // namespace Glib
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::DBus::SignalInfo
*/
Glib::RefPtr<Gio::DBus::SignalInfo> wrap(GDBusSignalInfo* object, bool take_copy = false);
} // namespace Glib
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::DBus::PropertyInfo
*/
Glib::RefPtr<Gio::DBus::PropertyInfo> wrap(GDBusPropertyInfo* object, bool take_copy = false);
} // namespace Glib
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::DBus::InterfaceInfo
*/
Glib::RefPtr<Gio::DBus::InterfaceInfo> wrap(GDBusInterfaceInfo* object, bool take_copy = false);
} // namespace Glib
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Gio::DBus::NodeInfo
*/
Glib::RefPtr<Gio::DBus::NodeInfo> wrap(GDBusNodeInfo* object, bool take_copy = false);
} // namespace Glib
#endif /* _GIOMM_DBUSINTROSPECTION_H */
|