renatofilho@320: /** renatofilho@320: * GMyth Library renatofilho@320: * renatofilho@320: * @file gmyth/gmyth_backend_info.h renatofilho@320: * renatofilho@320: * renatofilho@320: * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia. renatofilho@320: * @author Hallyson Melo renatofilho@320: * renatofilho@320: *//* renatofilho@320: * renatofilho@320: * This program is free software; you can redistribute it and/or modify renatofilho@320: * it under the terms of the GNU Lesser General Public License as published by renatofilho@320: * the Free Software Foundation; either version 2 of the License, or renatofilho@320: * (at your option) any later version. renatofilho@320: * renatofilho@320: * This program is distributed in the hope that it will be useful, renatofilho@320: * but WITHOUT ANY WARRANTY; without even the implied warranty of renatofilho@320: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the renatofilho@320: * GNU General Public License for more details. renatofilho@320: * renatofilho@320: * You should have received a copy of the GNU Lesser General Public License renatofilho@320: * along with this program; if not, write to the Free Software renatofilho@320: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA renatofilho@320: */ renatofilho@320: renatofilho@320: #ifndef __GMYTH_BACKEND_INFO_H__ renatofilho@320: #define __GMYTH_BACKEND_INFO_H__ renatofilho@320: renatofilho@320: #include renatofilho@320: renatofilho@320: #include "gmyth_uri.h" renatofilho@320: renatofilho@320: G_BEGIN_DECLS renatofilho@320: renatofilho@320: #define GMYTH_BACKEND_INFO_TYPE (gmyth_backend_info_get_type ()) renatofilho@320: #define GMYTH_BACKEND_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_BACKEND_INFO_TYPE, GMythBackendInfo)) renatofilho@320: #define GMYTH_BACKEND_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_BACKEND_INFO_TYPE, GMythBackendInfoClass)) renatofilho@320: #define IS_GMYTH_BACKEND_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_BACKEND_INFO_TYPE)) renatofilho@320: #define IS_GMYTH_BACKEND_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_BACKEND_INFO_TYPE)) renatofilho@320: #define GMYTH_BACKEND_INFO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_BACKEND_INFO_TYPE, GMythBackendInfoClass)) renatofilho@320: renatofilho@320: renatofilho@320: typedef struct _GMythBackendInfo GMythBackendInfo; renatofilho@320: typedef struct _GMythBackendInfoClass GMythBackendInfoClass; renatofilho@320: renatofilho@320: struct _GMythBackendInfoClass renatofilho@320: { renatofilho@320: GObjectClass parent_class; renatofilho@320: renatofilho@320: /* callbacks */ renatofilho@320: /* no one for now */ renatofilho@320: }; renatofilho@320: renatofilho@320: struct _GMythBackendInfo renatofilho@320: { renatofilho@320: GObject parent; renatofilho@320: renatofilho@320: gchar *hostname; renatofilho@320: gchar *username; renatofilho@320: gchar *password; renatofilho@320: gchar *db_name; renatofilho@320: gint port; renatofilho@320: gchar *path; renatofilho@320: renatofilho@320: GMythURI* uri; renatofilho@320: }; renatofilho@320: renatofilho@320: renatofilho@320: GType gmyth_backend_info_get_type (void); renatofilho@320: GMythBackendInfo* gmyth_backend_info_new (void); renatofilho@320: GMythBackendInfo* gmyth_backend_info_new_full (const gchar *hostname, renatofilho@320: const gchar *username, renatofilho@320: const gchar *password, renatofilho@320: const gchar *db_name, renatofilho@320: gint port); renatofilho@320: GMythBackendInfo* gmyth_backend_info_new_with_uri (const gchar *uri_str); renatofilho@320: void gmyth_backend_info_set_hostname (GMythBackendInfo *backend_info, renatofilho@320: const gchar *hostname); renatofilho@320: void gmyth_backend_info_set_username (GMythBackendInfo *backend_info, renatofilho@320: const gchar *username); renatofilho@320: void gmyth_backend_info_set_password (GMythBackendInfo *backend_info, renatofilho@320: const gchar *password); renatofilho@320: void gmyth_backend_info_set_db_name (GMythBackendInfo *backend_info, renatofilho@320: const gchar *db_name); renatofilho@320: void gmyth_backend_info_set_port (GMythBackendInfo *backend_info, renatofilho@320: gint port); renatofilho@320: const gchar* gmyth_backend_info_get_hostname (GMythBackendInfo *backend_info); renatofilho@320: const gchar* gmyth_backend_info_get_username (GMythBackendInfo *backend_info); renatofilho@320: const gchar* gmyth_backend_info_get_password (GMythBackendInfo *backend_info); renatofilho@320: const gchar* gmyth_backend_info_get_db_name (GMythBackendInfo *backend_info); renatofilho@320: gint gmyth_backend_info_get_port (GMythBackendInfo *backend_info); renatofilho@320: renatofilho@320: const GMythURI* gmyth_backend_info_get_uri (GMythBackendInfo *backend_info); renatofilho@320: renatofilho@320: /*const gchar* gmyth_backend_info_get_full_uri (GMythBackendInfo *backend_info);*/ renatofilho@320: renatofilho@320: G_END_DECLS renatofilho@320: renatofilho@320: #endif /* __GMYTH_BACKEND_INFO_H__ */ renatofilho@320: