[svn r366] Changes on GMyth API.
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
70 GType gmyth_backend_info_get_type (void);
71 GMythBackendInfo* gmyth_backend_info_new (void);
72 GMythBackendInfo* gmyth_backend_info_new_full (const gchar *hostname,
73 const gchar *username,
74 const gchar *password,
77 GMythBackendInfo* gmyth_backend_info_new_with_uri (const gchar *uri_str);
78 void gmyth_backend_info_set_hostname (GMythBackendInfo *backend_info,
79 const gchar *hostname);
80 void gmyth_backend_info_set_username (GMythBackendInfo *backend_info,
81 const gchar *username);
82 void gmyth_backend_info_set_password (GMythBackendInfo *backend_info,
83 const gchar *password);
84 void gmyth_backend_info_set_db_name (GMythBackendInfo *backend_info,
85 const gchar *db_name);
86 void gmyth_backend_info_set_port (GMythBackendInfo *backend_info,
88 const gchar* gmyth_backend_info_get_hostname (GMythBackendInfo *backend_info);
89 const gchar* gmyth_backend_info_get_username (GMythBackendInfo *backend_info);
90 const gchar* gmyth_backend_info_get_password (GMythBackendInfo *backend_info);
91 const gchar* gmyth_backend_info_get_db_name (GMythBackendInfo *backend_info);
92 gint gmyth_backend_info_get_port (GMythBackendInfo *backend_info);
94 const GMythURI* gmyth_backend_info_get_uri (GMythBackendInfo *backend_info);
96 /*const gchar* gmyth_backend_info_get_full_uri (GMythBackendInfo *backend_info);*/
100 #endif /* __GMYTH_BACKEND_INFO_H__ */