glibmm  2.41.0
New API in glibmm 2.30
Member Gio::Action::change_state (const Glib::VariantBase& value)
Member Gio::Action::change_state_variant (const Glib::VariantBase& value)
Parameters
valueThe new state.
Member Gio::APPLICATION_NON_UNIQUE
Member Gio::DataInputStream::read_line_finish_utf8 (const Glib::RefPtr< AsyncResult >& result, std::string& data, gsize& length)
Parameters
resultThe AsyncResult that was provided to the callback.
lengthA #gsize to get the length of the data read in.
Returns
A string with the line that was read in (without the newlines). Set length to a #gsize to get the length of the read line. On an error, it will return 0 and error will be set. For UTF-8 conversion errors, the set error domain is CONVERT_ERROR. If there's no content to read, it will still return 0, but error won't be set.
Member Gio::DataInputStream::read_line_utf8 (std::string& line, const Glib::RefPtr< Cancellable >& cancellable, gsize& length)
Parameters
lengthA #gsize to get the length of the data read in.
cancellableOptional Cancellable object, 0 to ignore.
Returns
A NUL terminated UTF-8 string with the line that was read in (without the newlines). Set length to a #gsize to get the length of the read line. On an error, it will return 0 and error will be set. For UTF-8 conversion errors, the set error domain is CONVERT_ERROR. If there's no content to read, it will still return 0, but error won't be set.
Member Gio::DBus::Connection::call_sync (const Glib::ustring& object_path, const Glib::ustring& interface_name, const Glib::ustring& method_name, const Glib::VariantContainerBase& parameters, const Glib::RefPtr< Cancellable >& cancellable, const Glib::RefPtr< UnixFDList >& fd_list, Glib::RefPtr< UnixFDList >& out_fd_list, const Glib::ustring& bus_name=Glib::ustring(), int timeout_msec=-1, CallFlags flags=Gio::DBus::CALL_FLAGS_NONE, const Glib::VariantType& reply_type=Glib::VariantType())
Parameters
bus_nameA unique or well-known bus name or 0 if connection is not a message bus connection.
object_pathPath of remote object.
interface_nameD-Bus interface to invoke method on.
method_nameThe name of the method to invoke.
parametersA Variant tuple with parameters for the method or 0 if not passing parameters.
reply_typeThe expected type of the reply, or 0.
flagsFlags from the DBusCallFlags enumeration.
timeout_msecThe timeout in milliseconds, -1 to use the default timeout or MAXINT for no timeout.
fd_listA UnixFDList or 0.
out_fd_listReturn location for a UnixFDList or 0.
cancellableA Cancellable or 0.
Returns
0 if error is set. Otherwise a Variant tuple with return values. Free with Glib::variant_unref().
Member Gio::DBus::Interface::get_info ()
Returns
A DBusInterfaceInfo. Do not free.
Member Gio::DBus::Interface::get_info () const
Returns
A DBusInterfaceInfo. Do not free.
Member Gio::DBus::Interface::get_object ()
Returns
A DBusObject or 0. The returned reference belongs to interface and should not be freed.
Member Gio::DBus::Interface::get_object () const
Returns
A DBusObject or 0. The returned reference belongs to interface and should not be freed.
Member Gio::DBus::Interface::set_object (const Glib::RefPtr< Gio::DBus::Object >& object)
Parameters
objectA DBusObject or 0.
Member Gio::DBus::InterfaceSkeleton::export_interface_skeleton (const Glib::RefPtr< Connection >& connection, const Glib::ustring& object_path)
Parameters
connectionA DBusConnection to export interface on.
object_pathThe path to export the interface at.
Returns
true if the interface was exported on connection, otherwise false with error set.
Member Gio::DBus::InterfaceSkeleton::flush ()
Member Gio::DBus::InterfaceSkeleton::get_connection ()
Returns
A DBusConnection or 0 if interface is not exported anywhere. Do not free, the object belongs to interface.
Member Gio::DBus::InterfaceSkeleton::get_connection () const
Returns
A DBusConnection or 0 if interface is not exported anywhere. Do not free, the object belongs to interface.
Member Gio::DBus::InterfaceSkeleton::get_flags () const
Returns
One or more flags from the DBusInterfaceSkeletonFlags enumeration.
Member Gio::DBus::InterfaceSkeleton::get_info ()
Returns
A DBusInterfaceInfo (never 0). Do not free.
Member Gio::DBus::InterfaceSkeleton::get_info () const
Returns
A DBusInterfaceInfo (never 0). Do not free.
Member Gio::DBus::InterfaceSkeleton::get_object_path () const
Returns
A string owned by interface or 0 if interface is not exported anywhere. Do not free, the string belongs to interface.
Member Gio::DBus::InterfaceSkeleton::get_properties () const
Returns
A Variant of type ['a{sv}'][G-VARIANT-TYPE-VARDICT:CAPS]. Free with Glib::variant_unref().
Member Gio::DBus::InterfaceSkeleton::set_flags (InterfaceSkeletonFlags flags)
Parameters
flagsFlags from the DBusInterfaceSkeletonFlags enumeration.
Member Gio::DBus::InterfaceSkeleton::signal_authorize_method ()
Parameters
invocationA DBusMethodInvocation.
Returns
true if the call is authorized, false otherwise.
Member Gio::DBus::InterfaceSkeleton::unexport ()
Member Gio::DBus::MethodInvocation::return_value (const Glib::VariantContainerBase& parameters, const Glib::RefPtr< UnixFDList >& fd_list)
Parameters
parametersA Variant tuple with out parameters for the method or 0 if not passing any parameters.
fd_listA UnixFDList or 0.
Member Gio::DBus::Object::get_interface (const Glib::ustring& interface_name)
Parameters
interface_nameA D-Bus interface name.
Returns
0 if not found, otherwise a DBusInterface that must be freed with Glib::object_unref().
Member Gio::DBus::Object::get_interface (const Glib::ustring& interface_name) const
Parameters
interface_nameA D-Bus interface name.
Returns
0 if not found, otherwise a DBusInterface that must be freed with Glib::object_unref().
Member Gio::DBus::Object::get_interfaces ()
Returns
A list of DBusInterface instances. The returned list must be freed by Glib::list_free() after each element has been freed with Glib::object_unref().
Member Gio::DBus::Object::get_interfaces () const
Returns
A list of DBusInterface instances. The returned list must be freed by Glib::list_free() after each element has been freed with Glib::object_unref().
Member Gio::DBus::Object::get_object_path () const
Returns
A string owned by object. Do not free.
Member Gio::DBus::Object::signal_interface_added ()
Parameters
interfaceThe DBusInterface that was added.
Member Gio::DBus::Object::signal_interface_removed ()
Parameters
interfaceThe DBusInterface that was removed.
Member Gio::DBus::Proxy::call_sync (const Glib::ustring& method_name, const Glib::VariantContainerBase& parameters, const Glib::RefPtr< Cancellable >& cancellable, const Glib::RefPtr< UnixFDList >& fd_list, Glib::RefPtr< UnixFDList >& out_fd_list, int timeout_msec=-1, CallFlags flags=Gio::DBus::CALL_FLAGS_NONE)
Parameters
method_nameName of method to invoke.
parametersA Variant tuple with parameters for the signal or 0 if not passing parameters.
flagsFlags from the DBusCallFlags enumeration.
timeout_msecThe timeout in milliseconds (with MAXINT meaning "infinite") or -1 to use the proxy default timeout.
fd_listA UnixFDList or 0.
out_fd_listReturn location for a UnixFDList or 0.
cancellableA Cancellable or 0.
Returns
0 if error is set. Otherwise a Variant tuple with return values. Free with Glib::variant_unref().
Member Gio::DesktopAppInfo::get_nodisplay () const
Returns
The value of the NoDisplay key.
Member Gio::DesktopAppInfo::get_show_in (const std::string& desktop_env) const
Parameters
desktop_envA string specifying a desktop name.
Returns
true if the info should be shown in desktop_env according to the OnlyShowIn and NotShowIn keys, false otherwise.
Member Gio::InetAddress::address_equal (const Glib::RefPtr< const InetAddress >& other_address) const
Parameters
other_addressAnother InetAddress.
Returns
true if address and other_address are equal, false otherwise.
Member Gio::Settings::get_uint (const Glib::ustring& key) const
Parameters
keyThe key to get the value for.
Returns
An unsigned integer.
Member Gio::Settings::set_uiint (const Glib::ustring& key, guint value)
Parameters
keyThe name of the key to set.
valueThe value to set it to.
Returns
true if setting the key succeeded, false if the key was not writable.
Member Gio::SimpleAction::set_state (const Glib::VariantBase& value)
Parameters
valueThe new Variant for the state.
Member Gio::SimpleAction::signal_change_state ()
Parameters
valueThe requested value for the state.
Member Gio::TlsConnection::get_database ()
Returns
The certificate database that conn uses or 0.
Member Gio::TlsConnection::get_database () const
Returns
The certificate database that conn uses or 0.
Member Gio::TlsConnection::get_interaction ()
Returns
The interaction object.
Member Gio::TlsConnection::get_interaction () const
Returns
The interaction object.
Member Gio::TlsConnection::set_database (const Glib::RefPtr< TlsDatabase >& database)
Parameters
databaseA TlsDatabase.
Member Gio::TlsConnection::set_interaction (const Glib::RefPtr< TlsInteraction >& interaction)
Parameters
interactionAn interaction object, or 0.
Member Gio::TlsDatabase::create_certificate_handle (const Glib::RefPtr< const TlsCertificate >& certificate) const
Parameters
certificateCertificate for which to create a handle.
Returns
A newly allocated string containing the handle.
Member Gio::TlsDatabase::lookup_certificate_for_handle (const Glib::ustring& handle, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, TlsDatabaseLookupFlags flags=TLS_DATABASE_LOOKUP_NONE)
Parameters
handleA certificate handle.
interactionUsed to interact with the user if necessary.
flagsFlags which affect the lookup.
cancellableA Cancellable, or 0.
Returns
A newly allocated TlsCertificate, or 0. Use Glib::object_unref() to release the certificate.
Member Gio::TlsDatabase::lookup_certificate_for_handle (const Glib::ustring& handle, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, TlsDatabaseLookupFlags flags=TLS_DATABASE_LOOKUP_NONE) const
Parameters
handleA certificate handle.
interactionUsed to interact with the user if necessary.
flagsFlags which affect the lookup.
cancellableA Cancellable, or 0.
Returns
A newly allocated TlsCertificate, or 0. Use Glib::object_unref() to release the certificate.
Member Gio::TlsDatabase::lookup_certificate_for_handle_async (const Glib::ustring& handle, const Glib::RefPtr< TlsInteraction >& interaction, const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable, TlsDatabaseLookupFlags flags=TLS_DATABASE_LOOKUP_NONE)
Parameters
handleA certificate handle.
interactionUsed to interact with the user if necessary.
flagsFlags which affect the lookup.
cancellableA Cancellable, or 0.
slotCallback to call when the operation completes.
Member Gio::TlsDatabase::lookup_certificate_for_handle_finish (const Glib::RefPtr< AsyncResult >& result)
Parameters
resultA AsyncResult.
Returns
A newly allocated TlsCertificate object. Use Glib::object_unref() to release the certificate.
Member Gio::TlsDatabase::lookup_certificate_issuer (const Glib::RefPtr< const TlsCertificate >& certificate, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, TlsDatabaseLookupFlags flags=TLS_DATABASE_LOOKUP_NONE) const
Parameters
certificateA TlsCertificate.
interactionUsed to interact with the user if necessary.
flagsFlags which affect the lookup operation.
cancellableA Cancellable, or 0.
Returns
A newly allocated issuer TlsCertificate, or 0. Use Glib::object_unref() to release the certificate.
Member Gio::TlsDatabase::lookup_certificate_issuer (const Glib::RefPtr< const TlsCertificate >& certificate, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, TlsDatabaseLookupFlags flags=TLS_DATABASE_LOOKUP_NONE)
Parameters
certificateA TlsCertificate.
interactionUsed to interact with the user if necessary.
flagsFlags which affect the lookup operation.
cancellableA Cancellable, or 0.
Returns
A newly allocated issuer TlsCertificate, or 0. Use Glib::object_unref() to release the certificate.
Member Gio::TlsDatabase::lookup_certificate_issuer_async (const Glib::RefPtr< const TlsCertificate >& certificate, const Glib::RefPtr< TlsInteraction >& interaction, const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable, TlsDatabaseLookupFlags flags=TLS_DATABASE_LOOKUP_NONE)
Parameters
certificateA TlsCertificate.
interactionUsed to interact with the user if necessary.
flagsFlags which affect the lookup operation.
cancellableA Cancellable, or 0.
slotCallback to call when the operation completes.
Member Gio::TlsDatabase::lookup_certificate_issuer_finish (const Glib::RefPtr< AsyncResult >& result)
Parameters
resultA AsyncResult.
Returns
A newly allocated issuer TlsCertificate, or 0. Use Glib::object_unref() to release the certificate.
Member Gio::TlsDatabase::lookup_certificates_issued_by (const Glib::RefPtr< Glib::ByteArray >& issuer_raw_dn, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, TlsDatabaseLookupFlags flags=Gio::TLS_DATABASE_LOOKUP_NONE) const
Parameters
issuer_raw_dnA ByteArray which holds the DER encoded issuer DN.
interactionUsed to interact with the user if necessary.
flagsFlags which affect the lookup operation.
cancellableA Cancellable, or 0.
Returns
A newly allocated list of TlsCertificate objects. Use Glib::object_unref() on each certificate, and Glib::list_free() on the release the list.
Member Gio::TlsDatabase::lookup_certificates_issued_by (const Glib::RefPtr< Glib::ByteArray >& issuer_raw_dn, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, TlsDatabaseLookupFlags flags=Gio::TLS_DATABASE_LOOKUP_NONE)
Parameters
issuer_raw_dnA ByteArray which holds the DER encoded issuer DN.
interactionUsed to interact with the user if necessary.
flagsFlags which affect the lookup operation.
cancellableA Cancellable, or 0.
Returns
A newly allocated list of TlsCertificate objects. Use Glib::object_unref() on each certificate, and Glib::list_free() on the release the list.
Member Gio::TlsDatabase::lookup_certificates_issued_by_async (const Glib::RefPtr< Glib::ByteArray >& issuer_raw_dn, const Glib::RefPtr< TlsInteraction >& interaction, const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable, TlsDatabaseLookupFlags flags=Gio::TLS_DATABASE_LOOKUP_NONE)
Parameters
issuer_raw_dnA ByteArray which holds the DER encoded issuer DN.
interactionUsed to interact with the user if necessary.
flagsFlags which affect the lookup operation.
cancellableA Cancellable, or 0.
slotCallback to call when the operation completes.
Member Gio::TlsDatabase::lookup_certificates_issued_by_finish (const Glib::RefPtr< AsyncResult >& result)
Parameters
resultA AsyncResult.
Returns
A newly allocated list of TlsCertificate objects. Use Glib::object_unref() on each certificate, and Glib::list_free() on the release the list.
Member Gio::TlsDatabase::verify_chain (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< const SocketConnectable >& identity, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, TlsDatabaseVerifyFlags flags=TLS_DATABASE_VERIFY_NONE) const
Parameters
chainA TlsCertificate chain.
purposeThe purpose that this certificate chain will be used for.
identityThe expected peer identity.
interactionUsed to interact with the user if necessary.
flagsAdditional verify flags.
cancellableA Cancellable, or 0.
Returns
The appropriate TlsCertificateFlags which represents the result of verification.
Member Gio::TlsDatabase::verify_chain_async (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< const SocketConnectable >& identity, const Glib::RefPtr< TlsInteraction >& interaction, const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable, TlsDatabaseVerifyFlags flags=TLS_DATABASE_VERIFY_NONE) const
Parameters
chainA TlsCertificate chain.
purposeThe purpose that this certificate chain will be used for.
identityThe expected peer identity.
interactionUsed to interact with the user if necessary.
flagsAdditional verify flags.
cancellableA Cancellable, or 0.
slotCallback to call when the operation completes.
Member Gio::TlsDatabase::verify_chain_finish (const Glib::RefPtr< AsyncResult >& result)
Parameters
resultA AsyncResult.
Returns
The appropriate TlsCertificateFlags which represents the result of verification.
Member Gio::TlsInteraction::ask_password (const Glib::RefPtr< TlsPassword >& password, const Glib::RefPtr< Cancellable >& cancellable)
Parameters
passwordA TlsPassword object.
cancellableAn optional Cancellable cancellation object.
Returns
The status of the ask password interaction.
Member Gio::TlsInteraction::ask_password_async (const Glib::RefPtr< TlsPassword >& password, const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable)
Parameters
passwordA TlsPassword object.
cancellableAn optional Cancellable cancellation object.
slotWill be called when the interaction completes.
Member Gio::TlsInteraction::ask_password_finish (const Glib::RefPtr< AsyncResult >& result)
Parameters
resultThe result passed to the callback.
Returns
The status of the ask password interaction.
Member Gio::TlsInteraction::invoke_ask_password (const Glib::RefPtr< TlsPassword >& password, const Glib::RefPtr< Cancellable >& cancellable)
Parameters
passwordA TlsPassword object.
cancellableAn optional Cancellable cancellation object.
Returns
The status of the ask password interaction.
Member Gio::TlsPassword::get_description () const
Returns
The description of the password.
Member Gio::TlsPassword::get_flags () const
Returns
The flags about the password.
Member Gio::TlsPassword::get_value (gsize& length) const
Parameters
lengthLocation to place the length of the password.
Returns
The password value (owned by the password object).
Member Gio::TlsPassword::get_warning () const
Returns
The warning.
Member Gio::TlsPassword::set_description (const Glib::ustring& description)
Parameters
descriptionThe description of the password.
Member Gio::TlsPassword::set_flags (TlsPasswordFlags flags)
Parameters
flagsThe flags about the password.
Member Gio::TlsPassword::set_value (const guchar* value, gssize length=-1)
Parameters
valueThe new password value.
lengthThe length of the password, or -1.
Member Gio::TlsPassword::set_warning (const Glib::ustring& warning)
Parameters
warningThe user readable warning.
Class Glib::DateTime
Class Glib::TimeZone