<refentry id="GnomeDbProviderSelector">
<refmeta>
<refentrytitle>GnomeDbProviderSelector</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBGNOMEDB-4.0 Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>GnomeDbProviderSelector</refname><refpurpose>A combo box style widget to select a provider</refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>

<synopsis>



struct      <link linkend="GnomeDbProviderSelector-struct">GnomeDbProviderSelector</link>;
struct      <link linkend="GnomeDbProviderSelectorClass">GnomeDbProviderSelectorClass</link>;
struct      <link linkend="GnomeDbProviderSelectorPrivate">GnomeDbProviderSelectorPrivate</link>;
<link linkend="GtkWidget">GtkWidget</link>*  <link linkend="gnome-db-provider-selector-new">gnome_db_provider_selector_new</link>  (void);
const <link linkend="gchar">gchar</link>* <link linkend="gnome-db-provider-selector-get-provider">gnome_db_provider_selector_get_provider</link>
                                            (<link linkend="GnomeDbProviderSelector">GnomeDbProviderSelector</link> *selector);
<link linkend="GdaServerProvider">GdaServerProvider</link>* <link linkend="gnome-db-provider-selector-get-provider-obj">gnome_db_provider_selector_get_provider_obj</link>
                                            (<link linkend="GnomeDbProviderSelector">GnomeDbProviderSelector</link> *selector);
<link linkend="gboolean">gboolean</link>    <link linkend="gnome-db-provider-selector-set-provider">gnome_db_provider_selector_set_provider</link>
                                            (<link linkend="GnomeDbProviderSelector">GnomeDbProviderSelector</link> *selector,
                                             const <link linkend="gchar">gchar</link> *provider);

</synopsis>
</refsynopsisdiv>

<refsect1>
<title>Object Hierarchy</title>
<synopsis>

  <link linkend="GObject">GObject</link>
   +----<link linkend="GInitiallyUnowned">GInitiallyUnowned</link>
         +----<link linkend="GtkObject">GtkObject</link>
               +----<link linkend="GtkWidget">GtkWidget</link>
                     +----<link linkend="GtkContainer">GtkContainer</link>
                           +----<link linkend="GtkBin">GtkBin</link>
                                 +----<link linkend="GtkComboBox">GtkComboBox</link>
                                       +----<link linkend="GnomeDbCombo">GnomeDbCombo</link>
                                             +----GnomeDbProviderSelector
</synopsis>

</refsect1>



<refsect1>
<title>Implemented Interfaces</title>
<para>
GnomeDbProviderSelector implements
 <link linkend="GtkCellLayout">GtkCellLayout</link>,  <link linkend="GtkCellEditable">GtkCellEditable</link>,  <link linkend="AtkImplementorIface">AtkImplementorIface</link> and  <link linkend="GtkBuildable">GtkBuildable</link>.</para>

</refsect1>





<refsect1>
<title>Description</title>
<para>

</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="GnomeDbProviderSelector-struct"/>struct GnomeDbProviderSelector</title>
<indexterm><primary>GnomeDbProviderSelector</primary></indexterm><programlisting>struct GnomeDbProviderSelector;</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GnomeDbProviderSelectorClass"/>struct GnomeDbProviderSelectorClass</title>
<indexterm><primary>GnomeDbProviderSelectorClass</primary></indexterm><programlisting>struct GnomeDbProviderSelectorClass {

	GnomeDbComboClass               parent_class;
};
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="GnomeDbProviderSelectorPrivate"/>struct GnomeDbProviderSelectorPrivate</title>
<indexterm><primary>GnomeDbProviderSelectorPrivate</primary></indexterm><programlisting>struct GnomeDbProviderSelectorPrivate;</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="gnome-db-provider-selector-new"/>gnome_db_provider_selector_new ()</title>
<indexterm><primary>gnome_db_provider_selector_new</primary></indexterm><programlisting><link linkend="GtkWidget">GtkWidget</link>*  gnome_db_provider_selector_new  (void);</programlisting>
<para>
Create a new <link linkend="GnomeDbProviderSelector"><type>GnomeDbProviderSelector</type></link> widget.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the newly created widget.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-db-provider-selector-get-provider"/>gnome_db_provider_selector_get_provider ()</title>
<indexterm><primary>gnome_db_provider_selector_get_provider</primary></indexterm><programlisting>const <link linkend="gchar">gchar</link>* gnome_db_provider_selector_get_provider
                                            (<link linkend="GnomeDbProviderSelector">GnomeDbProviderSelector</link> *selector);</programlisting>
<para>
Get the selected provider.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>selector</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GnomeDbProviderSelector"><type>GnomeDbProviderSelector</type></link> widget
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the selected provider
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-db-provider-selector-get-provider-obj"/>gnome_db_provider_selector_get_provider_obj ()</title>
<indexterm><primary>gnome_db_provider_selector_get_provider_obj</primary></indexterm><programlisting><link linkend="GdaServerProvider">GdaServerProvider</link>* gnome_db_provider_selector_get_provider_obj
                                            (<link linkend="GnomeDbProviderSelector">GnomeDbProviderSelector</link> *selector);</programlisting>
<para>
Get the selected provider as a <link linkend="GdaServerProvider"><type>GdaServerProvider</type></link> object</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>selector</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GnomeDbProviderSelector"><type>GnomeDbProviderSelector</type></link> widget
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new <link linkend="GdaServerProvider"><type>GdaServerProvider</type></link> or <literal>NULL</literal> if an error occurred
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-db-provider-selector-set-provider"/>gnome_db_provider_selector_set_provider ()</title>
<indexterm><primary>gnome_db_provider_selector_set_provider</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>    gnome_db_provider_selector_set_provider
                                            (<link linkend="GnomeDbProviderSelector">GnomeDbProviderSelector</link> *selector,
                                             const <link linkend="gchar">gchar</link> *provider);</programlisting>
<para>
Forces <parameter>selector</parameter> to be set on <parameter>provider</parameter></para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>selector</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GnomeDbProviderSelector"><type>GnomeDbProviderSelector</type></link> widget
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>provider</parameter>&nbsp;:</term>
<listitem><simpara> the provider to be selected, or <literal>NULL</literal> for the default (SQLite)
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> TRUE if <parameter>provider</parameter> has been selected
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
