1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2007 Philip Withnall <philip@tecnocode.co.uk>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program 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 General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA.
18  *
19  * The Totem project hereby grant permission for non-gpl compatible GStreamer
20  * plugins to be used and distributed together with GStreamer and Totem. This
21  * permission are above and beyond the permissions granted by the GPL license
22  * Totem is covered by.
23  *
24  * Monday 7th February 2005: Christian Schaller: Add excemption clause.
25  * See license_change file for details.
26  *
27  * Author: Bastien Nocera <hadess@hadess.net>, Philip Withnall <philip@tecnocode.co.uk>
28  */
29 
30 #ifndef TOTEM_OPEN_LOCATION_H
31 #define TOTEM_OPEN_LOCATION_H
32 
33 #include <gtk/gtk.h>
34 
35 G_BEGIN_DECLS
36 
37 #define TOTEM_TYPE_OPEN_LOCATION		(totem_open_location_get_type ())
38 #define TOTEM_OPEN_LOCATION(obj)		(G_TYPE_CHECK_INSTANCE_CAST ((obj), TOTEM_TYPE_OPEN_LOCATION, TotemOpenLocation))
39 #define TOTEM_OPEN_LOCATION_CLASS(klass)	(G_TYPE_CHECK_CLASS_CAST ((klass), TOTEM_TYPE_OPEN_LOCATION, TotemOpenLocationClass))
40 #define TOTEM_IS_OPEN_LOCATION(obj)		(G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOTEM_TYPE_OPEN_LOCATION))
41 #define TOTEM_IS_OPEN_LOCATION_CLASS(klass)	(G_TYPE_CHECK_CLASS_TYPE ((klass), TOTEM_TYPE_OPEN_LOCATION))
42 
43 typedef struct TotemOpenLocation		TotemOpenLocation;
44 typedef struct TotemOpenLocationClass		TotemOpenLocationClass;
45 typedef struct TotemOpenLocationPrivate		TotemOpenLocationPrivate;
46 
47 struct TotemOpenLocation {
48 	GtkDialog parent;
49 	TotemOpenLocationPrivate *priv;
50 };
51 
52 struct TotemOpenLocationClass {
53 	GtkDialogClass parent_class;
54 };
55 
56 GType totem_open_location_get_type		(void);
57 GtkWidget *totem_open_location_new		(void);
58 char *totem_open_location_get_uri		(TotemOpenLocation *open_location);
59 
60 G_END_DECLS
61 
62 #endif /* TOTEM_OPEN_LOCATION_H */
63