<?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="PkProgress">
<refmeta>
<refentrytitle role="top_of_page" id="PkProgress.top_of_page">PkProgress</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>PACKAGEKIT Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>PkProgress</refname>
<refpurpose>Transaction progress information</refpurpose>
</refnamediv>

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

<synopsis>
#define             <link linkend="PK-PROGRESS-ERROR--CAPS">PK_PROGRESS_ERROR</link>
#define             <link linkend="PK-PROGRESS-TYPE-ERROR--CAPS">PK_PROGRESS_TYPE_ERROR</link>
                    <link linkend="PkProgressPrivate">PkProgressPrivate</link>;
                    <link linkend="PkProgress-struct">PkProgress</link>;
<link linkend="GQuark">GQuark</link>              <link linkend="pk-progress-error-quark">pk_progress_error_quark</link>             (void);
<link linkend="PkProgress">PkProgress</link> *        <link linkend="pk-progress-new">pk_progress_new</link>                     (void);
<link linkend="void">void</link>                <link linkend="pk-progress-test">pk_progress_test</link>                    (<link linkend="gpointer">gpointer</link> user_data);
enum                <link linkend="PkProgressType">PkProgressType</link>;
<link linkend="void">void</link>                (<link linkend="PkProgressCallback">*PkProgressCallback</link>)               (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="PkProgressType">PkProgressType</link> type,
                                                         <link linkend="gpointer">gpointer</link> user_data);
<link linkend="gboolean">gboolean</link>            <link linkend="pk-progress-set-package-id">pk_progress_set_package_id</link>          (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         const <link linkend="gchar">gchar</link> *package_id);
<link linkend="gboolean">gboolean</link>            <link linkend="pk-progress-set-transaction-id">pk_progress_set_transaction_id</link>      (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         const <link linkend="gchar">gchar</link> *package_id);
<link linkend="gboolean">gboolean</link>            <link linkend="pk-progress-set-percentage">pk_progress_set_percentage</link>          (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="gint">gint</link> percentage);
<link linkend="gboolean">gboolean</link>            <link linkend="pk-progress-set-subpercentage">pk_progress_set_subpercentage</link>       (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="gint">gint</link> subpercentage);
<link linkend="gboolean">gboolean</link>            <link linkend="pk-progress-set-status">pk_progress_set_status</link>              (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="PkStatusEnum">PkStatusEnum</link> status);
<link linkend="gboolean">gboolean</link>            <link linkend="pk-progress-set-role">pk_progress_set_role</link>                (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="PkRoleEnum">PkRoleEnum</link> role);
<link linkend="gboolean">gboolean</link>            <link linkend="pk-progress-set-allow-cancel">pk_progress_set_allow_cancel</link>        (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="gboolean">gboolean</link> allow_cancel);
<link linkend="gboolean">gboolean</link>            <link linkend="pk-progress-set-caller-active">pk_progress_set_caller_active</link>       (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="gboolean">gboolean</link> caller_active);
<link linkend="gboolean">gboolean</link>            <link linkend="pk-progress-set-elapsed-time">pk_progress_set_elapsed_time</link>        (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="guint">guint</link> elapsed_time);
<link linkend="gboolean">gboolean</link>            <link linkend="pk-progress-set-remaining-time">pk_progress_set_remaining_time</link>      (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="guint">guint</link> remaining_time);
<link linkend="gboolean">gboolean</link>            <link linkend="pk-progress-set-speed">pk_progress_set_speed</link>               (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="guint">guint</link> speed);
<link linkend="gboolean">gboolean</link>            <link linkend="pk-progress-set-uid">pk_progress_set_uid</link>                 (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="guint">guint</link> uid);
<link linkend="gboolean">gboolean</link>            <link linkend="pk-progress-set-package">pk_progress_set_package</link>             (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="PkPackage">PkPackage</link> *package);
</synopsis>
</refsynopsisdiv>

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





<refsect1 id="PkProgress.properties" role="properties">
<title role="properties.title">Properties</title>
<synopsis>
  &quot;<link linkend="PkProgress--allow-cancel">allow-cancel</link>&quot;             <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="PkProgress--caller-active">caller-active</link>&quot;            <link linkend="gboolean">gboolean</link>              : Read / Write
  &quot;<link linkend="PkProgress--elapsed-time">elapsed-time</link>&quot;             <link linkend="guint">guint</link>                 : Read / Write
  &quot;<link linkend="PkProgress--package">package</link>&quot;                  <link linkend="PkPackage">PkPackage</link>*            : Read / Write
  &quot;<link linkend="PkProgress--package-id">package-id</link>&quot;               <link linkend="gchar">gchar</link>*                : Read / Write
  &quot;<link linkend="PkProgress--percentage">percentage</link>&quot;               <link linkend="gint">gint</link>                  : Read / Write
  &quot;<link linkend="PkProgress--remaining-time">remaining-time</link>&quot;           <link linkend="guint">guint</link>                 : Read / Write
  &quot;<link linkend="PkProgress--role">role</link>&quot;                     <link linkend="guint">guint</link>                 : Read / Write
  &quot;<link linkend="PkProgress--speed">speed</link>&quot;                    <link linkend="guint">guint</link>                 : Read / Write
  &quot;<link linkend="PkProgress--status">status</link>&quot;                   <link linkend="guint">guint</link>                 : Read / Write
  &quot;<link linkend="PkProgress--subpercentage">subpercentage</link>&quot;            <link linkend="gint">gint</link>                  : Read / Write
  &quot;<link linkend="PkProgress--transaction-id">transaction-id</link>&quot;           <link linkend="gchar">gchar</link>*                : Read / Write
  &quot;<link linkend="PkProgress--uid">uid</link>&quot;                      <link linkend="guint">guint</link>                 : Read / Write
</synopsis>
</refsect1>



<refsect1 id="PkProgress.description" role="desc">
<title role="desc.title">Description</title>
<para>
This GObject is available to clients to be able to query details about
the transaction. All of the details on this object are stored as properties.</para>
<para>
</para>
</refsect1>

<refsect1 id="PkProgress.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="PK-PROGRESS-ERROR--CAPS" role="macro">
<title>PK_PROGRESS_ERROR</title>
<indexterm zone="PK-PROGRESS-ERROR--CAPS"><primary sortas="PK_PROGRESS_ERROR">PK_PROGRESS_ERROR</primary></indexterm><programlisting>#define PK_PROGRESS_ERROR		(pk_progress_error_quark ())
</programlisting>
<para>
</para></refsect2>
<refsect2 id="PK-PROGRESS-TYPE-ERROR--CAPS" role="macro">
<title>PK_PROGRESS_TYPE_ERROR</title>
<indexterm zone="PK-PROGRESS-TYPE-ERROR--CAPS"><primary sortas="PK_PROGRESS_TYPE_ERROR">PK_PROGRESS_TYPE_ERROR</primary></indexterm><programlisting>#define PK_PROGRESS_TYPE_ERROR		(pk_progress_error_get_type ())
</programlisting>
<para>
</para></refsect2>
<refsect2 id="PkProgressPrivate" role="struct">
<title>PkProgressPrivate</title>
<indexterm zone="PkProgressPrivate"><primary sortas="PkProgressPrivate">PkProgressPrivate</primary></indexterm><programlisting>typedef struct _PkProgressPrivate PkProgressPrivate;</programlisting>
<para>
Private <link linkend="PkProgress"><type>PkProgress</type></link> data</para>
<para>
</para></refsect2>
<refsect2 id="PkProgress-struct" role="struct">
<title>PkProgress</title>
<indexterm zone="PkProgress-struct"><primary sortas="PkProgress">PkProgress</primary></indexterm><programlisting>typedef struct _PkProgress PkProgress;</programlisting>
<para>
</para></refsect2>
<refsect2 id="pk-progress-error-quark" role="function">
<title>pk_progress_error_quark ()</title>
<indexterm zone="pk-progress-error-quark"><primary sortas="pk_progress_error_quark">pk_progress_error_quark</primary></indexterm><programlisting><link linkend="GQuark">GQuark</link>              pk_progress_error_quark             (void);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-progress-new" role="function">
<title>pk_progress_new ()</title>
<indexterm zone="pk-progress-new"><primary sortas="pk_progress_new">pk_progress_new</primary></indexterm><programlisting><link linkend="PkProgress">PkProgress</link> *        pk_progress_new                     (void);</programlisting>
<para>
PkProgress is a nice GObject wrapper for PackageKit and makes writing
frontends easy.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> A new <link linkend="PkProgress"><literal>PkProgress</literal></link> instance
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-progress-test" role="function">
<title>pk_progress_test ()</title>
<indexterm zone="pk-progress-test"><primary sortas="pk_progress_test">pk_progress_test</primary></indexterm><programlisting><link linkend="void">void</link>                pk_progress_test                    (<link linkend="gpointer">gpointer</link> user_data);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="PkProgressType" role="enum">
<title>enum PkProgressType</title>
<indexterm zone="PkProgressType"><primary sortas="PkProgressType">PkProgressType</primary></indexterm><programlisting>typedef enum {
	PK_PROGRESS_TYPE_PACKAGE_ID,
	PK_PROGRESS_TYPE_TRANSACTION_ID,
	PK_PROGRESS_TYPE_PERCENTAGE,
	PK_PROGRESS_TYPE_SUBPERCENTAGE,
	PK_PROGRESS_TYPE_ALLOW_CANCEL,
	PK_PROGRESS_TYPE_STATUS,
	PK_PROGRESS_TYPE_ROLE,
	PK_PROGRESS_TYPE_CALLER_ACTIVE,
	PK_PROGRESS_TYPE_ELAPSED_TIME,
	PK_PROGRESS_TYPE_REMAINING_TIME,
	PK_PROGRESS_TYPE_SPEED,
	PK_PROGRESS_TYPE_UID,
	PK_PROGRESS_TYPE_PACKAGE,
	PK_PROGRESS_TYPE_INVALID
} PkProgressType;
</programlisting>
<para>
</para></refsect2>
<refsect2 id="PkProgressCallback" role="function">
<title>PkProgressCallback ()</title>
<indexterm zone="PkProgressCallback"><primary sortas="PkProgressCallback">PkProgressCallback</primary></indexterm><programlisting><link linkend="void">void</link>                (*PkProgressCallback)               (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="PkProgressType">PkProgressType</link> type,
                                                         <link linkend="gpointer">gpointer</link> user_data);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>progress</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>type</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-progress-set-package-id" role="function">
<title>pk_progress_set_package_id ()</title>
<indexterm zone="pk-progress-set-package-id"><primary sortas="pk_progress_set_package_id">pk_progress_set_package_id</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            pk_progress_set_package_id          (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         const <link linkend="gchar">gchar</link> *package_id);</programlisting>
<para>
</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>progress</parameter>&#160;:</term>
<listitem><simpara> a valid <link linkend="PkProgress"><type>PkProgress</type></link> instance
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>package_id</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-progress-set-transaction-id" role="function">
<title>pk_progress_set_transaction_id ()</title>
<indexterm zone="pk-progress-set-transaction-id"><primary sortas="pk_progress_set_transaction_id">pk_progress_set_transaction_id</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            pk_progress_set_transaction_id      (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         const <link linkend="gchar">gchar</link> *package_id);</programlisting>
<para>
</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>progress</parameter>&#160;:</term>
<listitem><simpara> a valid <link linkend="PkProgress"><type>PkProgress</type></link> instance
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>package_id</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-progress-set-percentage" role="function">
<title>pk_progress_set_percentage ()</title>
<indexterm zone="pk-progress-set-percentage"><primary sortas="pk_progress_set_percentage">pk_progress_set_percentage</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            pk_progress_set_percentage          (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="gint">gint</link> percentage);</programlisting>
<para>
</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>progress</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>percentage</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-progress-set-subpercentage" role="function">
<title>pk_progress_set_subpercentage ()</title>
<indexterm zone="pk-progress-set-subpercentage"><primary sortas="pk_progress_set_subpercentage">pk_progress_set_subpercentage</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            pk_progress_set_subpercentage       (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="gint">gint</link> subpercentage);</programlisting>
<para>
</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>progress</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>subpercentage</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-progress-set-status" role="function">
<title>pk_progress_set_status ()</title>
<indexterm zone="pk-progress-set-status"><primary sortas="pk_progress_set_status">pk_progress_set_status</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            pk_progress_set_status              (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="PkStatusEnum">PkStatusEnum</link> status);</programlisting>
<para>
</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>progress</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>status</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-progress-set-role" role="function">
<title>pk_progress_set_role ()</title>
<indexterm zone="pk-progress-set-role"><primary sortas="pk_progress_set_role">pk_progress_set_role</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            pk_progress_set_role                (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="PkRoleEnum">PkRoleEnum</link> role);</programlisting>
<para>
</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>progress</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>role</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-progress-set-allow-cancel" role="function">
<title>pk_progress_set_allow_cancel ()</title>
<indexterm zone="pk-progress-set-allow-cancel"><primary sortas="pk_progress_set_allow_cancel">pk_progress_set_allow_cancel</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            pk_progress_set_allow_cancel        (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="gboolean">gboolean</link> allow_cancel);</programlisting>
<para>
</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>progress</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>allow_cancel</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-progress-set-caller-active" role="function">
<title>pk_progress_set_caller_active ()</title>
<indexterm zone="pk-progress-set-caller-active"><primary sortas="pk_progress_set_caller_active">pk_progress_set_caller_active</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            pk_progress_set_caller_active       (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="gboolean">gboolean</link> caller_active);</programlisting>
<para>
</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>progress</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>caller_active</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-progress-set-elapsed-time" role="function">
<title>pk_progress_set_elapsed_time ()</title>
<indexterm zone="pk-progress-set-elapsed-time"><primary sortas="pk_progress_set_elapsed_time">pk_progress_set_elapsed_time</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            pk_progress_set_elapsed_time        (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="guint">guint</link> elapsed_time);</programlisting>
<para>
</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>progress</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>elapsed_time</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-progress-set-remaining-time" role="function">
<title>pk_progress_set_remaining_time ()</title>
<indexterm zone="pk-progress-set-remaining-time"><primary sortas="pk_progress_set_remaining_time">pk_progress_set_remaining_time</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            pk_progress_set_remaining_time      (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="guint">guint</link> remaining_time);</programlisting>
<para>
</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>progress</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>remaining_time</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-progress-set-speed" role="function">
<title>pk_progress_set_speed ()</title>
<indexterm zone="pk-progress-set-speed"><primary sortas="pk_progress_set_speed">pk_progress_set_speed</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            pk_progress_set_speed               (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="guint">guint</link> speed);</programlisting>
<para>
</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>progress</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>speed</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-progress-set-uid" role="function">
<title>pk_progress_set_uid ()</title>
<indexterm zone="pk-progress-set-uid"><primary sortas="pk_progress_set_uid">pk_progress_set_uid</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            pk_progress_set_uid                 (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="guint">guint</link> uid);</programlisting>
<para>
</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>progress</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>uid</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-progress-set-package" role="function">
<title>pk_progress_set_package ()</title>
<indexterm zone="pk-progress-set-package"><primary sortas="pk_progress_set_package">pk_progress_set_package</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            pk_progress_set_package             (<link linkend="PkProgress">PkProgress</link> *progress,
                                                         <link linkend="PkPackage">PkPackage</link> *package);</programlisting>
<para>
</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>progress</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>package</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>
<refsect1 id="PkProgress.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="PkProgress--allow-cancel" role="property"><title>The <literal>&quot;allow-cancel&quot;</literal> property</title>
<indexterm zone="PkProgress--allow-cancel"><primary sortas="PkProgress:allow-cancel">PkProgress:allow-cancel</primary></indexterm><programlisting>  &quot;allow-cancel&quot;             <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para></para><para>Default value: FALSE</para>
</refsect2>
<refsect2 id="PkProgress--caller-active" role="property"><title>The <literal>&quot;caller-active&quot;</literal> property</title>
<indexterm zone="PkProgress--caller-active"><primary sortas="PkProgress:caller-active">PkProgress:caller-active</primary></indexterm><programlisting>  &quot;caller-active&quot;            <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para></para><para>Default value: FALSE</para>
</refsect2>
<refsect2 id="PkProgress--elapsed-time" role="property"><title>The <literal>&quot;elapsed-time&quot;</literal> property</title>
<indexterm zone="PkProgress--elapsed-time"><primary sortas="PkProgress:elapsed-time">PkProgress:elapsed-time</primary></indexterm><programlisting>  &quot;elapsed-time&quot;             <link linkend="guint">guint</link>                 : Read / Write</programlisting>
<para>
</para>
<para>
</para><para>Default value: 0</para>
</refsect2>
<refsect2 id="PkProgress--package" role="property"><title>The <literal>&quot;package&quot;</literal> property</title>
<indexterm zone="PkProgress--package"><primary sortas="PkProgress:package">PkProgress:package</primary></indexterm><programlisting>  &quot;package&quot;                  <link linkend="PkPackage">PkPackage</link>*            : Read / Write</programlisting>
<para>
</para>
<para>
</para></refsect2>
<refsect2 id="PkProgress--package-id" role="property"><title>The <literal>&quot;package-id&quot;</literal> property</title>
<indexterm zone="PkProgress--package-id"><primary sortas="PkProgress:package-id">PkProgress:package-id</primary></indexterm><programlisting>  &quot;package-id&quot;               <link linkend="gchar">gchar</link>*                : Read / Write</programlisting>
<para>The full package_id, e.g. 'gnome-power-manager;0.1.2;i386;fedora'.</para><para>Default value: NULL</para>
</refsect2>
<refsect2 id="PkProgress--percentage" role="property"><title>The <literal>&quot;percentage&quot;</literal> property</title>
<indexterm zone="PkProgress--percentage"><primary sortas="PkProgress:percentage">PkProgress:percentage</primary></indexterm><programlisting>  &quot;percentage&quot;               <link linkend="gint">gint</link>                  : Read / Write</programlisting>
<para>
</para>
<para>
</para><para>Allowed values: &gt;= -1</para>
<para>Default value: -1</para>
</refsect2>
<refsect2 id="PkProgress--remaining-time" role="property"><title>The <literal>&quot;remaining-time&quot;</literal> property</title>
<indexterm zone="PkProgress--remaining-time"><primary sortas="PkProgress:remaining-time">PkProgress:remaining-time</primary></indexterm><programlisting>  &quot;remaining-time&quot;           <link linkend="guint">guint</link>                 : Read / Write</programlisting>
<para>
</para>
<para>
</para><para>Default value: 0</para>
</refsect2>
<refsect2 id="PkProgress--role" role="property"><title>The <literal>&quot;role&quot;</literal> property</title>
<indexterm zone="PkProgress--role"><primary sortas="PkProgress:role">PkProgress:role</primary></indexterm><programlisting>  &quot;role&quot;                     <link linkend="guint">guint</link>                 : Read / Write</programlisting>
<para>
</para>
<para>
</para><para>Allowed values: &lt;= 35</para>
<para>Default value: 0</para>
</refsect2>
<refsect2 id="PkProgress--speed" role="property"><title>The <literal>&quot;speed&quot;</literal> property</title>
<indexterm zone="PkProgress--speed"><primary sortas="PkProgress:speed">PkProgress:speed</primary></indexterm><programlisting>  &quot;speed&quot;                    <link linkend="guint">guint</link>                 : Read / Write</programlisting>
<para>
</para>
<para>
</para><para>Default value: 0</para>
</refsect2>
<refsect2 id="PkProgress--status" role="property"><title>The <literal>&quot;status&quot;</literal> property</title>
<indexterm zone="PkProgress--status"><primary sortas="PkProgress:status">PkProgress:status</primary></indexterm><programlisting>  &quot;status&quot;                   <link linkend="guint">guint</link>                 : Read / Write</programlisting>
<para>
</para>
<para>
</para><para>Allowed values: &lt;= 37</para>
<para>Default value: 0</para>
</refsect2>
<refsect2 id="PkProgress--subpercentage" role="property"><title>The <literal>&quot;subpercentage&quot;</literal> property</title>
<indexterm zone="PkProgress--subpercentage"><primary sortas="PkProgress:subpercentage">PkProgress:subpercentage</primary></indexterm><programlisting>  &quot;subpercentage&quot;            <link linkend="gint">gint</link>                  : Read / Write</programlisting>
<para>
</para>
<para>
</para><para>Allowed values: &gt;= -1</para>
<para>Default value: -1</para>
</refsect2>
<refsect2 id="PkProgress--transaction-id" role="property"><title>The <literal>&quot;transaction-id&quot;</literal> property</title>
<indexterm zone="PkProgress--transaction-id"><primary sortas="PkProgress:transaction-id">PkProgress:transaction-id</primary></indexterm><programlisting>  &quot;transaction-id&quot;           <link linkend="gchar">gchar</link>*                : Read / Write</programlisting>
<para>The transaction_id, e.g. '/892_deabbbdb_data'.</para><para>Default value: NULL</para>
</refsect2>
<refsect2 id="PkProgress--uid" role="property"><title>The <literal>&quot;uid&quot;</literal> property</title>
<indexterm zone="PkProgress--uid"><primary sortas="PkProgress:uid">PkProgress:uid</primary></indexterm><programlisting>  &quot;uid&quot;                      <link linkend="guint">guint</link>                 : Read / Write</programlisting>
<para>
</para>
<para>
</para><para>Default value: 0</para>
</refsect2>
</refsect1>




</refentry>
