gmyth/src/gmyth_recprofile.h
author morphbr
Sun Mar 04 06:53:50 2007 +0000 (2007-03-04)
branchtrunk
changeset 385 ab93678082df
parent 383 4071ea7f32e6
child 386 4184f56767b8
permissions -rw-r--r--
[svn r390] - Changed all GString* members to gchar* members
     1 /**
     2  * GMyth Library
     3  * 
     4  * @file gmyth/gmyth_recprofile.h
     5  * 
     6  * @brief <p> This file contains the recprofile class.
     7  *
     8  * Copyright (C) 2007 INdT - Instituto Nokia de Tecnologia.
     9  * @author Artur Duque de Souza <artur.souza@indt.org.br>
    10  *
    11  */
    12 /*
    13  * 
    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.
    18  *
    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.
    23  *
    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
    27  */
    28 
    29 #ifndef _GMYTH_RECPROFILE_H
    30 #define _GMYTH_RECPROFILE_H
    31 
    32 #include <glib.h>
    33 #include <glib-object.h>
    34 
    35 #include "gmyth_stringlist.h"
    36 #include "gmyth_backendinfo.h"
    37 #include "gmyth_socket.h"
    38 
    39 G_BEGIN_DECLS
    40 
    41 #define GMYTH_RECPROFILE_TYPE               (gmyth_recprofile_get_type ())
    42 #define GMYTH_RECPROFILE(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_RECPROFILE_TYPE, GMythRecProfile))
    43 #define GMYTH_RECPROFILE_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_RECPROFILE_TYPE, GMythRecProfileClass))
    44 #define IS_GMYTH_RECPROFILE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_RECPROFILE_TYPE))
    45 #define IS_GMYTH_RECPROFILE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_RECPROFILE_TYPE))
    46 #define GMYTH_RECPROFILE_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_RECPROFILE_TYPE, GMythRecProfileClass))
    47 
    48 typedef struct _GMythRecProfile         GMythRecProfile;
    49 typedef struct _GMythRecProfileClass    GMythRecProfileClass;
    50 
    51 struct _GMythRecProfileClass
    52 {
    53   GObjectClass parent_class;
    54   gint teste;
    55   /* callbacks */
    56 };
    57 
    58 struct _GMythRecProfile
    59 {
    60   gint	id;
    61   gchar* name;
    62   gchar* group;
    63   gchar* vcodec;
    64   gchar* acodec;
    65 };
    66 
    67 
    68 
    69 GType gmyth_recprofile_type (void);
    70 
    71 GMythRecProfile* gmyth_recprofile_new (void);
    72 
    73 GSList* gmyth_recprofile_get_profile_list (GMythBackendInfo *backend_info);
    74 
    75 gint gmyth_recprofile_create_profile (GMythBackendInfo *backend_info,\
    76                                       GMythRecProfile* profile);
    77 
    78 gint gmyth_recprofile_del_profile_list (GMythBackendInfo *backend_info,\
    79                                         gint id);
    80 
    81 gint gmyth_recprofile_set_acodec (GMythRecProfile* rec, gchar* acodec);
    82 gint gmyth_recprofile_set_vcodec (GMythRecProfile* rec, gchar* vcodec);
    83 gint gmyth_recprofile_set_group (GMythRecProfile* rec, gchar* group);
    84 gint gmyth_recprofile_set_name (GMythRecProfile* rec, gchar* name);
    85 gint gmyth_recprofile_set_id (GMythRecProfile* rec, gint id);
    86 
    87 G_END_DECLS
    88 
    89 #endif /*_GMYTH_RECPROFILE_H*/