[svn r421] Added libosso library dependencies.
4 * @file gmyth/gmyth_backend_info.h
7 * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
8 * @author Hallyson Melo <hallyson.melo@indt.org.br>
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU Lesser General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 #ifndef __GMYTH_BACKEND_INFO_H__
28 #define __GMYTH_BACKEND_INFO_H__
30 #include <glib-object.h>
32 #include "gmyth_uri.h"
36 #define GMYTH_BACKEND_INFO_TYPE (gmyth_backend_info_get_type ())
37 #define GMYTH_BACKEND_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_BACKEND_INFO_TYPE, GMythBackendInfo))
38 #define GMYTH_BACKEND_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_BACKEND_INFO_TYPE, GMythBackendInfoClass))
39 #define IS_GMYTH_BACKEND_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_BACKEND_INFO_TYPE))
40 #define IS_GMYTH_BACKEND_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_BACKEND_INFO_TYPE))
41 #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,
84 GMythBackendInfo* gmyth_backend_info_new_with_uri (const gchar *uri_str);
85 void gmyth_backend_info_set_hostname (GMythBackendInfo *backend_info,
86 const gchar *hostname);
87 void gmyth_backend_info_set_username (GMythBackendInfo *backend_info,
88 const gchar *username);
89 void gmyth_backend_info_set_password (GMythBackendInfo *backend_info,
90 const gchar *password);
91 void gmyth_backend_info_set_db_name (GMythBackendInfo *backend_info,
92 const gchar *db_name);
93 void gmyth_backend_info_set_port (GMythBackendInfo *backend_info,
95 void gmyth_backend_info_set_status_port (GMythBackendInfo *backend_info,
97 const gchar* gmyth_backend_info_get_hostname (GMythBackendInfo *backend_info);
98 const gchar* gmyth_backend_info_get_username (GMythBackendInfo *backend_info);
99 const gchar* gmyth_backend_info_get_password (GMythBackendInfo *backend_info);
100 const gchar* gmyth_backend_info_get_db_name (GMythBackendInfo *backend_info);
101 gint gmyth_backend_info_get_port (GMythBackendInfo *backend_info);
103 GMythURI* gmyth_backend_info_get_uri (GMythBackendInfo *backend_info);
107 #endif /* __GMYTH_BACKEND_INFO_H__ */