[svn r550] A lot of GObject fixes (using the GType casting), added inheritance to the GMythFile* modules, locks all the the STOP_RECORDING messages.
4 * @file gmyth/gmyth_transcoder.h
6 * @brief <p> This file contains the transcoder class.
8 * Copyright (C) 2007 INdT - Instituto Nokia de Tecnologia.
9 * @author Artur Duque de Souza <artur.souza@indt.org.br>
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU Lesser General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 #ifndef _GMYTH_TRANSCODER_H
30 #define _GMYTH_TRANSCODER_H
33 #include <glib-object.h>
35 #include "gmyth_stringlist.h"
36 #include "gmyth_backendinfo.h"
37 #include "gmyth_socket.h"
38 #include "gmyth_http.h"
39 #include "gmyth_recprofile.h"
43 #define GMYTH_TRANSCODER_TYPE (gmyth_transcoder_get_type ())
44 #define GMYTH_TRANSCODER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_TRANSCODER_TYPE, GMythTranscoder))
45 #define GMYTH_TRANSCODER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_TRANSCODER_TYPE, GMythTranscoderClass))
46 #define IS_GMYTH_TRANSCODER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GMYTH_TRANSCODER_TYPE))
47 #define IS_GMYTH_TRANSCODER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_TRANSCODER_TYPE))
48 #define GMYTH_TRANSCODER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_TRANSCODER_TYPE, GMythTranscoderClass))
56 typedef struct _GMythTranscoder GMythTranscoder;
57 typedef struct _GMythTranscoderClass GMythTranscoderClass;
59 struct _GMythTranscoderClass
61 GObjectClass parent_class;
67 * The GMythTranscoder structure is a class to implement functions
68 * related to transcoding.
70 struct _GMythTranscoder
79 gchar* output_filename;
88 GMythBackendInfo* backend_info;
91 GType gmyth_transcoder_type (void);
93 GMythTranscoder* gmyth_transcoder_new (GMythBackendInfo* backend_info);
94 void gmyth_transcoder_set_output (GMythTranscoder* transcode,
95 gboolean value, const gchar* outputfile);
96 void gmyth_transcoder_set_filename (GMythTranscoder* transcode, const gchar* file);
97 gint gmyth_transcoder_set_profile (GMythTranscoder* trans, const gchar* value);
98 gboolean gmyth_transcoder_start (GMythTranscoder* trans);
99 gboolean gmyth_transcoder_pause (GMythTranscoder* trans);
100 gboolean gmyth_transcoder_resume (GMythTranscoder* trans);
101 gboolean gmyth_transcoder_cancel (GMythTranscoder* trans);
102 gint gmyth_transcoder_get_progress (GMythTranscoder* trans);
107 #endif /*_GMYTH_TRANSCODER_H*/