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

<refnamediv>
<refname>GnomeDbSqlConsole</refname><refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>

<synopsis>



struct      <link linkend="GnomeDbSqlConsole-struct">GnomeDbSqlConsole</link>;
struct      <link linkend="GnomeDbSqlConsoleClass">GnomeDbSqlConsoleClass</link>;
struct      <link linkend="GnomeDbSqlConsolePriv">GnomeDbSqlConsolePriv</link>;
<link linkend="GtkWidget">GtkWidget</link>*  <link linkend="gnome-db-sql-console-new">gnome_db_sql_console_new</link>        (<link linkend="GdaConnection">GdaConnection</link> *cnc,
                                             const <link linkend="gchar">gchar</link> *message);
<link linkend="void">void</link>        <link linkend="gnome-db-sql-console-clear">gnome_db_sql_console_clear</link>      (<link linkend="GnomeDbSqlConsole">GnomeDbSqlConsole</link> *console);
<link linkend="void">void</link>        <link linkend="gnome-db-sql-console-clear-history">gnome_db_sql_console_clear_history</link>
                                            (<link linkend="GnomeDbSqlConsole">GnomeDbSqlConsole</link> *console);

</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="GtkTextView">GtkTextView</link>
                                 +----GnomeDbSqlConsole
</synopsis>

</refsect1>



<refsect1>
<title>Implemented Interfaces</title>
<para>
GnomeDbSqlConsole implements
 <link linkend="AtkImplementorIface">AtkImplementorIface</link> and  <link linkend="GtkBuildable">GtkBuildable</link>.</para>

</refsect1>


<refsect1>
<title>Properties</title>
<synopsis>

  &quot;<link linkend="GnomeDbSqlConsole--cnc">cnc</link>&quot;                  <link linkend="GdaConnection">GdaConnection</link>        : Read / Write
  &quot;<link linkend="GnomeDbSqlConsole--message">message</link>&quot;              <link linkend="gchararray">gchararray</link>           : Write / Construct Only
</synopsis>
</refsect1>

<refsect1>
<title>Signal Prototypes</title>
<synopsis>

&quot;<link linkend="GnomeDbSqlConsole-sql-entered">sql-entered</link>&quot;
            <link linkend="gchar">gchar</link>*      user_function      (<link linkend="GnomeDbSqlConsole">GnomeDbSqlConsole</link> *dbsqlconsole,
                                            <link linkend="gchar">gchar</link> *arg1,
                                            <link linkend="gpointer">gpointer</link> user_data);
</synopsis>
</refsect1>


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

</para>
</refsect1>

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

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

	GtkTextViewClass       parent_class;

	/* signals */
	gchar                *(*sql_entered) (GnomeDbSqlConsole *console, const gchar *sql);
};
</programlisting>
<para>

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

</para></refsect2>
<refsect2>
<title><anchor id="gnome-db-sql-console-new"/>gnome_db_sql_console_new ()</title>
<indexterm><primary>gnome_db_sql_console_new</primary></indexterm><programlisting><link linkend="GtkWidget">GtkWidget</link>*  gnome_db_sql_console_new        (<link linkend="GdaConnection">GdaConnection</link> *cnc,
                                             const <link linkend="gchar">gchar</link> *message);</programlisting>
<para>
Creates a new <link linkend="GnomeDbSqlConsole"><type>GnomeDbSqlConsole</type></link> widget</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>cnc</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GdaConnection"><type>GdaConnection</type></link> connection, or <literal>NULL</literal>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>message</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the new widget
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-db-sql-console-clear"/>gnome_db_sql_console_clear ()</title>
<indexterm><primary>gnome_db_sql_console_clear</primary></indexterm><programlisting><link linkend="void">void</link>        gnome_db_sql_console_clear      (<link linkend="GnomeDbSqlConsole">GnomeDbSqlConsole</link> *console);</programlisting>
<para>
Clears the contents of the <parameter>console</parameter> widget</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>console</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GnomeDbSqlConsole"><type>GnomeDbSqlConsole</type></link> widget
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-db-sql-console-clear-history"/>gnome_db_sql_console_clear_history ()</title>
<indexterm><primary>gnome_db_sql_console_clear_history</primary></indexterm><programlisting><link linkend="void">void</link>        gnome_db_sql_console_clear_history
                                            (<link linkend="GnomeDbSqlConsole">GnomeDbSqlConsole</link> *console);</programlisting>
<para>
Clears the queries history of the <parameter>console</parameter> widget</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>console</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="GnomeDbSqlConsole"><type>GnomeDbSqlConsole</type></link> widget
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>
<refsect1>
<title>Properties</title>
<variablelist>
<varlistentry><term><anchor id="GnomeDbSqlConsole--cnc"/>&quot;<literal>cnc</literal>&quot; (<link linkend="GdaConnection">GdaConnection</link> : Read / Write)</term>
<listitem>
<para></para>
</listitem></varlistentry>
<varlistentry><term><anchor id="GnomeDbSqlConsole--message"/>&quot;<literal>message</literal>&quot; (<link linkend="gchararray">gchararray</link> : Write / Construct Only)</term>
<listitem>
<para></para>
</listitem></varlistentry>

</variablelist>
</refsect1>

<refsect1>
<title>Signals</title>
<refsect2><title><anchor id="GnomeDbSqlConsole-sql-entered"/>The &quot;sql-entered&quot; signal</title>
<programlisting><link linkend="gchar">gchar</link>*      user_function                  (<link linkend="GnomeDbSqlConsole">GnomeDbSqlConsole</link> *dbsqlconsole,
                                            <link linkend="gchar">gchar</link> *arg1,
                                            <link linkend="gpointer">gpointer</link> user_data);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>dbsqlconsole</parameter>&nbsp;:</term>
<listitem><simpara>the object which received the signal.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>arg1</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>

</simpara></listitem></varlistentry>
</variablelist></refsect2>
</refsect1>



</refentry>
