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 
64 private import glib.Str;
65 private import gio.AppInfo;
66 
67 
68 
69 
70 /**
71  * GtkAppChooser is an interface that can be implemented by widgets which
72  * allow the user to choose an application (typically for the purpose of
73  * opening a file). The main objects that implement this interface are
74  * GtkAppChooserWidget, GtkAppChooserDialog and GtkAppChooserButton.
75  *
76  * Applications are represented by GIO GAppInfo objects here.
77  * GIO has a concept of recommended and fallback applications for a
78  * given content type. Recommended applications are those that claim
79  * to handle the content type itself, while fallback also includes
80  * applications that handle a more generic content type. GIO also
81  * knows the default and last-used application for a given content
82  * type. The GtkAppChooserWidget provides detailed control over
83  * whether the shown list of applications should include default,
84  * recommended or fallback applications.
85  *
86  * To obtain the application that has been selected in a GtkAppChooser,
87  * use gtk_app_chooser_get_app_info().
88  */
89 public interface AppChooserIF
90 {
91 	
92 	
93 	public GtkAppChooser* getAppChooserTStruct();
94 	
95 	/** the main Gtk struct as a void* */
96 	protected void* getStruct();
97 	
98 	
99 	/**
100 	 */
101 	
102 	/**
103 	 * Returns the currently selected application.
104 	 * Returns: a GAppInfo for the currently selected application, or NULL if none is selected. Free with g_object_unref(). [transfer full] Since 3.0
105 	 */
106 	public AppInfo getAppInfo();
107 	
108 	/**
109 	 * Returns the current value of the "content-type" property.
110 	 * Returns: the content type of self. Free with g_free() Since 3.0
111 	 */
112 	public string getContentType();
113 	
114 	/**
115 	 * Reloads the list of applications.
116 	 */
117 	public void refresh();
118 }