/* * Licensed under the GNU Lesser General Public License Version 3 * * 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 3 of the license, or * (at your option) any later version. * * This software 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, see . */ // generated automatically - do not change module gio.DesktopAppInfoLookupT; public import gi.gio; public import gi.giotypes; public import gio.AppInfo; public import gio.AppInfoIF; public import glib.Str; public import gobject.ObjectG; /** * #GDesktopAppInfoLookup is an opaque data structure and can only be accessed * using the following functions. */ public template DesktopAppInfoLookupT(TStruct) { /** Get the main Gtk struct */ public GDesktopAppInfoLookup* getDesktopAppInfoLookupStruct() { return cast(GDesktopAppInfoLookup*)getStruct(); } /** * Gets the default application for launching applications * using this URI scheme for a particular GDesktopAppInfoLookup * implementation. * * The GDesktopAppInfoLookup interface and this function is used * to implement g_app_info_get_default_for_uri_scheme() backends * in a GIO module. There is no reason for applications to use it * directly. Applications should use g_app_info_get_default_for_uri_scheme(). * * Deprecated: The #GDesktopAppInfoLookup interface is deprecated and unused by gio. * * Params: * uriScheme = a string containing a URI scheme. * * Returns: #GAppInfo for given @uri_scheme or %NULL on error. */ public AppInfoIF getDefaultForUriScheme(string uriScheme) { auto p = g_desktop_app_info_lookup_get_default_for_uri_scheme(getDesktopAppInfoLookupStruct(), Str.toStringz(uriScheme)); if(p is null) { return null; } return ObjectG.getDObject!(AppInfo, AppInfoIF)(cast(GAppInfo*) p, true); } }