<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY version SYSTEM "version.xml">
]>
<refentry id="PkConnection">
<refmeta>
<refentrytitle role="top_of_page" id="PkConnection.top_of_page">PkConnection</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>PACKAGEKIT Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>PkConnection</refname>
<refpurpose>Functionality to see when packagekid starts and stops</refpurpose>
</refnamediv>

<refsynopsisdiv id="PkConnection.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>
                    <link linkend="PkConnectionPrivate">PkConnectionPrivate</link>;
                    <link linkend="PkConnection-struct">PkConnection</link>;
<link linkend="PkConnection">PkConnection</link> *      <link linkend="pk-connection-new">pk_connection_new</link>                   (void);
<link linkend="gboolean">gboolean</link>            <link linkend="pk-connection-valid">pk_connection_valid</link>                 (<link linkend="PkConnection">PkConnection</link> *connection);
</synopsis>
</refsynopsisdiv>

<refsect1 id="PkConnection.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<synopsis>
  <link linkend="GObject">GObject</link>
   +----PkConnection
</synopsis>
</refsect1>






<refsect1 id="PkConnection.signals" role="signal_proto">
<title role="signal_proto.title">Signals</title>
<synopsis>
  &quot;<link linkend="PkConnection-connection-changed">connection-changed</link>&quot;                             : Run Last
</synopsis>
</refsect1>


<refsect1 id="PkConnection.description" role="desc">
<title role="desc.title">Description</title>
<para>
This file contains functions that can be used to see when packagekitd starts
and stops.</para>
<para>
</para>
</refsect1>

<refsect1 id="PkConnection.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="PkConnectionPrivate" role="struct">
<title>PkConnectionPrivate</title>
<indexterm zone="PkConnectionPrivate"><primary sortas="PkConnectionPrivate">PkConnectionPrivate</primary></indexterm><programlisting>typedef struct _PkConnectionPrivate PkConnectionPrivate;</programlisting>
<para>
Private <link linkend="PkConnection"><type>PkConnection</type></link> data</para>
<para>
</para></refsect2>
<refsect2 id="PkConnection-struct" role="struct">
<title>PkConnection</title>
<indexterm zone="PkConnection-struct"><primary sortas="PkConnection">PkConnection</primary></indexterm><programlisting>typedef struct _PkConnection PkConnection;</programlisting>
<para>
</para></refsect2>
<refsect2 id="pk-connection-new" role="function">
<title>pk_connection_new ()</title>
<indexterm zone="pk-connection-new"><primary sortas="pk_connection_new">pk_connection_new</primary></indexterm><programlisting><link linkend="PkConnection">PkConnection</link> *      pk_connection_new                   (void);</programlisting>
<para>
</para>
<para>
</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> A new <link linkend="PkConnection"><type>PkConnection</type></link> instance
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-connection-valid" role="function">
<title>pk_connection_valid ()</title>
<indexterm zone="pk-connection-valid"><primary sortas="pk_connection_valid">pk_connection_valid</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            pk_connection_valid                 (<link linkend="PkConnection">PkConnection</link> *connection);</programlisting>
<para>
</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>connection</parameter>&#160;:</term>
<listitem><simpara> a valid <link linkend="PkConnection"><type>PkConnection</type></link> instance
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> if packagekitd is running
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>

<refsect1 id="PkConnection.signal-details" role="signals">
<title role="signals.title">Signal Details</title>
<refsect2 id="PkConnection-connection-changed" role="signal"><title>The <literal>&quot;connection-changed&quot;</literal> signal</title>
<indexterm zone="PkConnection-connection-changed"><primary sortas="PkConnection::connection-changed">PkConnection::connection-changed</primary></indexterm><programlisting><link linkend="void">void</link>                user_function                      (<link linkend="PkConnection">PkConnection</link> *pkconnection,
                                                        <link linkend="gboolean">gboolean</link>      arg1,
                                                        <link linkend="gpointer">gpointer</link>      user_data)         : Run Last</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>pkconnection</parameter>&#160;:</term>
<listitem><simpara>the object which received the signal.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>arg1</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
</variablelist></refsect2>
</refsect1>



</refentry>
