gmyth/src/gmyth_recprofile.h
author morphbr
Fri Mar 02 21:25:50 2007 +0000 (2007-03-02)
branchtrunk
changeset 383 4071ea7f32e6
child 385 ab93678082df
permissions -rw-r--r--
[svn r388] - Created gmyth_recprofile class
- Updated gmyth_transcode and gmyth_http to use gmyth_recprofile
morphbr@383
     1
/**
morphbr@383
     2
 * GMyth Library
morphbr@383
     3
 * 
morphbr@383
     4
 * @file gmyth/gmyth_recprofile.h
morphbr@383
     5
 * 
morphbr@383
     6
 * @brief <p> This file contains the recprofile class.
morphbr@383
     7
 *
morphbr@383
     8
 * Copyright (C) 2007 INdT - Instituto Nokia de Tecnologia.
morphbr@383
     9
 * @author Artur Duque de Souza <artur.souza@indt.org.br>
morphbr@383
    10
 *
morphbr@383
    11
 */
morphbr@383
    12
/*
morphbr@383
    13
 * 
morphbr@383
    14
 * This program is free software; you can redistribute it and/or modify
morphbr@383
    15
 * it under the terms of the GNU Lesser General Public License as published by
morphbr@383
    16
 * the Free Software Foundation; either version 2 of the License, or
morphbr@383
    17
 * (at your option) any later version.
morphbr@383
    18
 *
morphbr@383
    19
 * This program is distributed in the hope that it will be useful,
morphbr@383
    20
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
morphbr@383
    21
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
morphbr@383
    22
 * GNU General Public License for more details.
morphbr@383
    23
 *
morphbr@383
    24
 * You should have received a copy of the GNU Lesser General Public License
morphbr@383
    25
 * along with this program; if not, write to the Free Software
morphbr@383
    26
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
morphbr@383
    27
 */
morphbr@383
    28
morphbr@383
    29
#ifndef _GMYTH_RECPROFILE_H
morphbr@383
    30
#define _GMYTH_RECPROFILE_H
morphbr@383
    31
morphbr@383
    32
#include <glib.h>
morphbr@383
    33
#include <glib-object.h>
morphbr@383
    34
morphbr@383
    35
#include "gmyth_stringlist.h"
morphbr@383
    36
#include "gmyth_backendinfo.h"
morphbr@383
    37
#include "gmyth_socket.h"
morphbr@383
    38
morphbr@383
    39
G_BEGIN_DECLS
morphbr@383
    40
morphbr@383
    41
#define GMYTH_RECPROFILE_TYPE               (gmyth_recprofile_get_type ())
morphbr@383
    42
#define GMYTH_RECPROFILE(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_RECPROFILE_TYPE, GMythRecProfile))
morphbr@383
    43
#define GMYTH_RECPROFILE_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_RECPROFILE_TYPE, GMythRecProfileClass))
morphbr@383
    44
#define IS_GMYTH_RECPROFILE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_RECPROFILE_TYPE))
morphbr@383
    45
#define IS_GMYTH_RECPROFILE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_RECPROFILE_TYPE))
morphbr@383
    46
#define GMYTH_RECPROFILE_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_RECPROFILE_TYPE, GMythRecProfileClass))
morphbr@383
    47
morphbr@383
    48
typedef struct _GMythRecProfile         GMythRecProfile;
morphbr@383
    49
typedef struct _GMythRecProfileClass    GMythRecProfileClass;
morphbr@383
    50
morphbr@383
    51
struct _GMythRecProfileClass
morphbr@383
    52
{
morphbr@383
    53
  GObjectClass parent_class;
morphbr@383
    54
morphbr@383
    55
  /* callbacks */
morphbr@383
    56
};
morphbr@383
    57
morphbr@383
    58
struct _GMythRecProfile
morphbr@383
    59
{
morphbr@383
    60
  gint	id;
morphbr@383
    61
  GString* name;
morphbr@383
    62
  GString* group;
morphbr@383
    63
  GString* vcodec;
morphbr@383
    64
  GString* acodec;
morphbr@383
    65
};
morphbr@383
    66
morphbr@383
    67
morphbr@383
    68
morphbr@383
    69
GType gmyth_recprofile_type (void);
morphbr@383
    70
morphbr@383
    71
GMythRecProfile* gmyth_recprofile_new (void);
morphbr@383
    72
morphbr@383
    73
GSList* gmyth_recprofile_get_profile_list (GMythBackendInfo *backend_info);
morphbr@383
    74
morphbr@383
    75
gint gmyth_recprofile_create_profile (GMythBackendInfo *backend_info,\
morphbr@383
    76
                                      GMythRecProfile* profile);
morphbr@383
    77
morphbr@383
    78
gint gmyth_recprofile_del_profile_list (GMythBackendInfo *backend_info,\
morphbr@383
    79
                                        gint id);
morphbr@383
    80
morphbr@383
    81
G_END_DECLS
morphbr@383
    82
morphbr@383
    83
#endif /*_GMYTH_RECPROFILE_H*/