/* * Copyright (C) 2001,2002,2003,2004,2005 Bastien Nocera * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * The Totem project hereby grant permission for non-gpl compatible GStreamer * plugins to be used and distributed together with GStreamer and Totem. This * permission are above and beyond the permissions granted by the GPL license * Totem is covered by. * * Monday 7th February 2005: Christian Schaller: Add excemption clause. * See license_change file for details. * */ #ifndef __TOTEM_H__ #define __TOTEM_H__ #include #include #include "plparse/totem-disc.h" #define TOTEM_GCONF_PREFIX "/apps/totem" G_BEGIN_DECLS #define TOTEM_TYPE_OBJECT (totem_object_get_type ()) #define TOTEM_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), totem_object_get_type (), TotemObject)) #define TOTEM_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), totem_object_get_type (), TotemObjectClass)) #define TOTEM_IS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, totem_object_get_type ())) #define TOTEM_IS_OBJECT_CLASS(klass) (G_CHECK_INSTANCE_GET_CLASS ((klass), totem_object_get_type ())) typedef struct TotemObject Totem; typedef struct TotemObject TotemObject; typedef struct { GObjectClass parent_class; void (*file_opened) (Totem *totem, const char *mrl); void (*file_closed) (Totem *totem, const char *mrl); } TotemObjectClass; GType totem_object_get_type (void); void totem_action_exit (Totem *totem); void totem_action_play (Totem *totem); void totem_action_stop (Totem *totem); void totem_action_play_pause (Totem *totem); void totem_action_pause (Totem *totem); void totem_action_fullscreen_toggle (Totem *totem); void totem_action_fullscreen (Totem *totem, gboolean state); void totem_action_next (Totem *totem); void totem_action_previous (Totem *totem); void totem_action_seek_relative (Totem *totem, int off_sec); void totem_action_volume_relative (Totem *totem, int off_pct); gboolean totem_action_set_mrl (Totem *totem, const char *mrl); void totem_action_set_mrl_and_play (Totem *totem, const char *mrl); gboolean totem_action_set_mrl_with_warning (Totem *totem, const char *mrl, gboolean warn); void totem_action_play_media (Totem *totem, MediaType type, const char *device); void totem_action_toggle_aspect_ratio (Totem *totem); void totem_action_set_aspect_ratio (Totem *totem, int ratio); int totem_action_get_aspect_ratio (Totem *totem); void totem_action_toggle_controls (Totem *totem); void totem_action_set_scale_ratio (Totem *totem, gfloat ratio); void totem_action_error (const char *title, const char *reason, Totem *totem); void totem_action_play_media_device (Totem *totem, const char *device); gboolean totem_is_fullscreen (Totem *totem); gboolean totem_is_playing (Totem *totem); GtkWindow *totem_get_main_window (Totem *totem); #endif /* __TOTEM_H__ */