This is a megapatch with the following changes:
[platform/upstream/gstreamer.git] / gstplay / gstmediaplay.h
1 /*
2  * Initial main.c file generated by Glade. Edit as required.
3  * Glade will not overwrite this file.
4  */
5
6 #ifndef __GST_MEDIA_PLAY_H__
7 #define __GST_MEDIA_PLAY_H__
8
9
10 #include <glade/glade.h>
11
12 #include "gstplay.h"
13 #include "gststatusarea.h"
14
15 typedef struct _GstMediaPlay GstMediaPlay;
16 typedef struct _GstMediaPlayClass GstMediaPlayClass;
17
18 #define GST_TYPE_MEDIA_PLAY \
19   (gst_media_play_get_type())
20 #define GST_MEDIA_PLAY(obj) \
21   (GTK_CHECK_CAST((obj),GST_TYPE_MEDIA_PLAY,GstMediaPlay))
22 #define GST_MEDIA_PLAY_CLASS(klass) \
23   (GTK_CHECK_CLASS_CAST((klass),GST_TYPE_MEDIA_PLAY,GstMediaPlayClass))
24 #define GST_IS_MEDIA_PLAY(obj) \
25   (GTK_CHECK_TYPE((obj),GST_TYPE_MEDIA_PLAY))
26 #define GST_IS_MEDIA_PLAY_CLASS(obj) \
27   (GTK_CHECK_CLASS_TYPE((klass),GST_TYPE_MEDIA_PLAY))
28
29 struct _GstMediaPlay {
30   GtkObject parent;
31
32   GladeXML *xml;
33   GstPlay *play;
34
35   GtkWidget *play_button;
36   GtkWidget *pause_button;
37   GtkWidget *stop_button;
38   GtkWidget *window;
39
40   GstStatusArea *status;
41
42   // the slider
43   GtkAdjustment *adjustment;
44   GtkWidget *slider;
45
46   gulong last_time;
47 };
48
49 struct _GstMediaPlayClass {
50   GtkObjectClass parent_class;
51
52 };
53
54
55 GtkType         gst_media_play_get_type         (void);
56
57 /* setup the player */
58 GstMediaPlay*   gst_media_play_new              (void);
59
60 void            gst_media_play_start_uri        (GstMediaPlay *play, const guchar *uri);
61
62 #endif /* __GST_MEDIA_PLAY_H__ */