1 // Generated by gmmproc 2.64.2 -- DO NOT MODIFY! 2 3 4 #include <glibmm.h> 5 6 #include <giomm/dbuserrorutils.h> 7 #include <giomm/private/dbuserrorutils_p.h> 8 9 10 /* Copyright (C) 2010 The giomm Development Team 11 * 12 * This library is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU Lesser General Public 14 * License as published by the Free Software Foundation; either 15 * version 2.1 of the License, or (at your option) any later version. 16 * 17 * This library is distributed in the hope that it will be useful, 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20 * Lesser General Public License for more details. 21 * 22 * You should have received a copy of the GNU Lesser General Public 23 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 24 */ 25 26 #include <gio/gio.h> 27 #include <glibmm/error.h> 28 #include <glibmm/utility.h> 29 30 namespace Gio 31 { 32 33 namespace DBus 34 { 35 36 namespace ErrorUtils 37 { 38 39 bool is_remote_error(const Glib::Error & error)40is_remote_error(const Glib::Error& error) 41 { 42 return static_cast<bool>(g_dbus_error_is_remote_error(error.gobj())); 43 } 44 45 Glib::ustring get_remote_error(const Glib::Error & error)46get_remote_error(const Glib::Error& error) 47 { 48 return Glib::convert_const_gchar_ptr_to_ustring(g_dbus_error_get_remote_error(error.gobj())); 49 } 50 51 bool strip_remote_error(Glib::Error & error)52strip_remote_error(Glib::Error& error) 53 { 54 return static_cast<bool>(g_dbus_error_strip_remote_error(error.gobj())); 55 } 56 57 } // namespace ErrorUtils 58 59 } // namespace DBus 60 61 } // namespace Gio 62 63 namespace 64 { 65 } // anonymous namespace 66 67 68