1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19  
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 /*
25  * Conversion parameters:
26  * inFile  = GtkAppChooser.html
27  * outPack = gtk
28  * outFile = AppChooserIF
29  * strct   = GtkAppChooser
30  * realStrct=
31  * ctorStrct=
32  * clss    = AppChooserT
33  * interf  = AppChooserIF
34  * class Code: No
35  * interface Code: No
36  * template for:
37  * extend  = 
38  * implements:
39  * prefixes:
40  * 	- gtk_app_chooser_
41  * omit structs:
42  * omit prefixes:
43  * omit code:
44  * omit signals:
45  * imports:
46  * 	- glib.Str
47  * 	- gio.AppInfo
48  * structWrap:
49  * 	- GAppInfo* -> AppInfo
50  * module aliases:
51  * local aliases:
52  * overrides:
53  */
54 
55 module gtk.AppChooserIF;
56 
57 public  import gtkc.gtktypes;
58 
59 private import gtkc.gtk;
60 private import glib.ConstructionException;
61 private import gobject.ObjectG;
62 
63 private import glib.Str;
64 private import gio.AppInfo;
65 
66 
67 
68 /**
69  * GtkAppChooser is an interface that can be implemented by widgets which
70  * allow the user to choose an application (typically for the purpose of
71  * opening a file). The main objects that implement this interface are
72  * GtkAppChooserWidget, GtkAppChooserDialog and GtkAppChooserButton.
73  *
74  * Applications are represented by GIO GAppInfo objects here.
75  * GIO has a concept of recommended and fallback applications for a
76  * given content type. Recommended applications are those that claim
77  * to handle the content type itself, while fallback also includes
78  * applications that handle a more generic content type. GIO also
79  * knows the default and last-used application for a given content
80  * type. The GtkAppChooserWidget provides detailed control over
81  * whether the shown list of applications should include default,
82  * recommended or fallback applications.
83  *
84  * To obtain the application that has been selected in a GtkAppChooser,
85  * use gtk_app_chooser_get_app_info().
86  */
87 public interface AppChooserIF
88 {
89 	
90 	
91 	/** Get the main Gtk struct */
92 	public GtkAppChooser* getAppChooserTStruct();
93 	
94 	/** the main Gtk struct as a void* */
95 	protected void* getStruct();
96 	
97 	
98 	/**
99 	 */
100 	
101 	/**
102 	 * Returns the currently selected application.
103 	 * Returns: a GAppInfo for the currently selected application, or NULL if none is selected. Free with g_object_unref(). [transfer full] Since 3.0
104 	 */
105 	public AppInfo getAppInfo();
106 	
107 	/**
108 	 * Returns the current value of the "content-type" property.
109 	 * Returns: the content type of self. Free with g_free() Since 3.0
110 	 */
111 	public string getContentType();
112 	
113 	/**
114 	 * Reloads the list of applications.
115 	 */
116 	public void refresh();
117 }