00001 /********************************************************************\ 00002 * database.h -- manage database connection info. * 00003 * Copyright (C) 2002 Linas Vepstas <linas@linas.org> * 00004 * http://dwi.sourceforge.net * 00005 * * 00006 * This library is free software; you can redistribute it and/or * 00007 * modify it under the terms of the GNU Lesser General Public * 00008 * License as published by the Free Software Foundation; either * 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * * 00011 * This library is distributed in the hope that it will be useful, * 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00014 * GNU Lesser General Public License for more details. * 00015 * * 00016 * You should have received a copy of the GNU Lesser General Public * 00017 * License along with this program; if not, contact: * 00018 * * 00019 * Free Software Foundation Voice: +1-617-542-5942 * 00020 * 59 Temple Place - Suite 330 Fax: +1-617-542-2652 * 00021 * Boston, MA 02111-1307, USA gnu@gnu.org * 00022 \********************************************************************/ 00023 00030 #ifndef DUI_DATABASE_H 00031 #define DUI_DATABASE_H 00032 00048 #include <glib-object.h> 00049 00050 #include "dui-initdb.h" 00051 #include "interface.h" 00052 00053 #define DUI_DATABASE_TYPE (dui_database_get_type()) 00054 #define DUI_DATABASE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), DUI_DATABASE_TYPE, DuiDatabase)) 00055 #define IS_DUI_DATABASE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), DUI_DATABASE_TYPE)) 00056 00057 GType dui_database_get_type (void); 00058 00059 DuiDatabase * dui_database_new (const gchar * name, 00060 const gchar * provider, const gchar * dbname, 00061 const gchar * hostname, const gchar * username, 00062 const gchar * authentication_token); 00063 00064 void dui_database_destroy (DuiDatabase *); 00065 DuiDBConnection * dui_database_do_realize (DuiDatabase *); 00066 const gchar * dui_database_get_name (DuiDatabase *); 00068 #endif /* DUI_DATABASE_H */
1.5.5