[svn r704] Added gmyth-upnp-search, to search for MythTV UPnP devices.
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>
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser General Public License as published by
17 * the Free Software Foundation; either version 2 of the License, or
18 * (at your option) any later version.
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * You should have received a copy of the GNU Lesser General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 #ifndef __GMYTH_BACKEND_INFO_H__
31 #define __GMYTH_BACKEND_INFO_H__
33 #include <glib-object.h>
35 #include "gmyth_uri.h"
38 #define GMYTH_BACKEND_INFO_TYPE (gmyth_backend_info_get_type ())
39 #define GMYTH_BACKEND_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_BACKEND_INFO_TYPE, GMythBackendInfo))
40 #define GMYTH_BACKEND_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_BACKEND_INFO_TYPE, GMythBackendInfoClass))
41 #define IS_GMYTH_BACKEND_INFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GMYTH_BACKEND_INFO_TYPE))
42 #define IS_GMYTH_BACKEND_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_BACKEND_INFO_TYPE))
43 #define GMYTH_BACKEND_INFO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_BACKEND_INFO_TYPE, GMythBackendInfoClass))
44 typedef struct _GMythBackendInfo GMythBackendInfo;
45 typedef struct _GMythBackendInfoClass GMythBackendInfoClass;
47 struct _GMythBackendInfoClass
49 GObjectClass parent_class;
55 struct _GMythBackendInfo
59 /** The backend hostname or ip address. */
61 /** The username to connect to the mysql server. */
63 /** The password to connect to the mysql server. */
65 /** The mythtv's mysql database name. */
67 /** The backend port. */
69 /** The backend status port for http connection */
77 GType gmyth_backend_info_get_type (void);
78 GMythBackendInfo *gmyth_backend_info_new (void);
79 GMythBackendInfo *gmyth_backend_info_new_full (const gchar * hostname,
80 const gchar * username,
81 const gchar * password, const gchar * db_name, gint port);
82 GMythBackendInfo *gmyth_backend_info_new_with_uri (const gchar * uri_str);
83 void gmyth_backend_info_set_hostname (GMythBackendInfo * backend_info,
84 const gchar * hostname);
85 void gmyth_backend_info_set_username (GMythBackendInfo * backend_info,
86 const gchar * username);
87 void gmyth_backend_info_set_password (GMythBackendInfo * backend_info,
88 const gchar * password);
89 void gmyth_backend_info_set_db_name (GMythBackendInfo * backend_info,
90 const gchar * db_name);
91 void gmyth_backend_info_set_port (GMythBackendInfo * backend_info, gint port);
92 void gmyth_backend_info_set_status_port (GMythBackendInfo * backend_info,
95 const gchar *gmyth_backend_info_get_hostname (GMythBackendInfo * backend_info);
96 const gchar *gmyth_backend_info_get_username (GMythBackendInfo * backend_info);
97 const gchar *gmyth_backend_info_get_password (GMythBackendInfo * backend_info);
98 const gchar *gmyth_backend_info_get_db_name (GMythBackendInfo * backend_info);
99 gint gmyth_backend_info_get_port (GMythBackendInfo * backend_info);
101 GMythURI *gmyth_backend_info_get_uri (GMythBackendInfo * backend_info);
103 gboolean gmyth_backend_info_is_local_file (GMythBackendInfo * backend_info);
106 #endif /* __GMYTH_BACKEND_INFO_H__ */