[svn r707] Fixed the wrong commentary indentation.
4 * @file gmyth/gmyth_backend_info.h
6 * @brief <p> This component represents all the MythTV backend server
7 * configuration information.
9 * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
10 * @author Hallyson Melo <hallyson.melo@indt.org.br>
11 * @author Rosfran Borges <rosfran.borges@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_BACKEND_INFO_H__
30 #define __GMYTH_BACKEND_INFO_H__
32 #include <glib-object.h>
34 #include "gmyth_uri.h"
37 #define GMYTH_BACKEND_INFO_TYPE (gmyth_backend_info_get_type ())
38 #define GMYTH_BACKEND_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_BACKEND_INFO_TYPE, GMythBackendInfo))
39 #define GMYTH_BACKEND_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_BACKEND_INFO_TYPE, GMythBackendInfoClass))
40 #define IS_GMYTH_BACKEND_INFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GMYTH_BACKEND_INFO_TYPE))
41 #define IS_GMYTH_BACKEND_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_BACKEND_INFO_TYPE))
42 #define GMYTH_BACKEND_INFO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_BACKEND_INFO_TYPE, GMythBackendInfoClass))
43 typedef struct _GMythBackendInfo GMythBackendInfo;
44 typedef struct _GMythBackendInfoClass GMythBackendInfoClass;
46 struct _GMythBackendInfoClass
48 GObjectClass parent_class;
54 struct _GMythBackendInfo
58 /** The backend hostname or ip address. */
60 /** The username to connect to the mysql server. */
62 /** The password to connect to the mysql server. */
64 /** The mythtv's mysql database name. */
66 /** The backend port. */
68 /** The backend status port for http connection */
76 GType gmyth_backend_info_get_type ( void );
77 GMythBackendInfo *gmyth_backend_info_new ( void );
78 GMythBackendInfo *gmyth_backend_info_new_full ( const gchar * hostname,
79 const gchar * username,
80 const gchar * password,
81 const gchar * db_name,
83 GMythBackendInfo *gmyth_backend_info_new_with_uri ( const gchar * uri_str );
84 void gmyth_backend_info_set_hostname ( GMythBackendInfo * backend_info,
85 const gchar * hostname );
86 void gmyth_backend_info_set_username ( GMythBackendInfo * backend_info,
87 const gchar * username );
88 void gmyth_backend_info_set_password ( GMythBackendInfo * backend_info,
89 const gchar * password );
90 void gmyth_backend_info_set_db_name ( GMythBackendInfo * backend_info,
91 const gchar * db_name );
92 void gmyth_backend_info_set_port ( GMythBackendInfo * backend_info, gint port );
93 void gmyth_backend_info_set_status_port ( GMythBackendInfo * backend_info,
96 const gchar *gmyth_backend_info_get_hostname ( GMythBackendInfo *
98 const gchar *gmyth_backend_info_get_username ( GMythBackendInfo *
100 const gchar *gmyth_backend_info_get_password ( GMythBackendInfo *
102 const gchar *gmyth_backend_info_get_db_name ( GMythBackendInfo * backend_info );
103 gint gmyth_backend_info_get_port ( GMythBackendInfo * backend_info );
105 GMythURI *gmyth_backend_info_get_uri ( GMythBackendInfo * backend_info );
107 gboolean gmyth_backend_info_is_local_file ( GMythBackendInfo * backend_info );
110 #endif /* __GMYTH_BACKEND_INFO_H__ */