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

<refnamediv>
<refname>PkTask</refname>
<refpurpose>An abstract package task GObject, dealing with unsigned
transactions, GPG keys and EULA requests.</refpurpose>
</refnamediv>

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

<synopsis>
#define             <link linkend="PK-TASK-ERROR--CAPS">PK_TASK_ERROR</link>
#define             <link linkend="PK-TASK-TYPE-ERROR--CAPS">PK_TASK_TYPE_ERROR</link>
                    <link linkend="PkTaskPrivate">PkTaskPrivate</link>;
                    <link linkend="PkTask-struct">PkTask</link>;
<link linkend="GQuark">GQuark</link>              <link linkend="pk-task-error-quark">pk_task_error_quark</link>                 (void);
<link linkend="PkTask">PkTask</link> *            <link linkend="pk-task-new">pk_task_new</link>                         (void);
<link linkend="void">void</link>                <link linkend="pk-task-test">pk_task_test</link>                        (<link linkend="gpointer">gpointer</link> user_data);
<link linkend="PkResults">PkResults</link> *         <link linkend="pk-task-generic-finish">pk_task_generic_finish</link>              (<link linkend="PkTask">PkTask</link> *task,
                                                         <link linkend="GAsyncResult">GAsyncResult</link> *res,
                                                         <link linkend="GError">GError</link> **error);
<link linkend="void">void</link>                <link linkend="pk-task-install-packages-async">pk_task_install_packages_async</link>      (<link linkend="PkTask">PkTask</link> *task,
                                                         <link linkend="gchar">gchar</link> **package_ids,
                                                         <link linkend="GCancellable">GCancellable</link> *cancellable,
                                                         <link linkend="PkProgressCallback">PkProgressCallback</link> progress_callback,
                                                         <link linkend="gpointer">gpointer</link> progress_user_data,
                                                         <link linkend="GAsyncReadyCallback">GAsyncReadyCallback</link> callback,
                                                         <link linkend="gpointer">gpointer</link> user_data);
<link linkend="void">void</link>                <link linkend="pk-task-update-packages-async">pk_task_update_packages_async</link>       (<link linkend="PkTask">PkTask</link> *task,
                                                         <link linkend="gchar">gchar</link> **package_ids,
                                                         <link linkend="GCancellable">GCancellable</link> *cancellable,
                                                         <link linkend="PkProgressCallback">PkProgressCallback</link> progress_callback,
                                                         <link linkend="gpointer">gpointer</link> progress_user_data,
                                                         <link linkend="GAsyncReadyCallback">GAsyncReadyCallback</link> callback_ready,
                                                         <link linkend="gpointer">gpointer</link> user_data);
<link linkend="void">void</link>                <link linkend="pk-task-remove-packages-async">pk_task_remove_packages_async</link>       (<link linkend="PkTask">PkTask</link> *task,
                                                         <link linkend="gchar">gchar</link> **package_ids,
                                                         <link linkend="gboolean">gboolean</link> allow_deps,
                                                         <link linkend="gboolean">gboolean</link> autoremove,
                                                         <link linkend="GCancellable">GCancellable</link> *cancellable,
                                                         <link linkend="PkProgressCallback">PkProgressCallback</link> progress_callback,
                                                         <link linkend="gpointer">gpointer</link> progress_user_data,
                                                         <link linkend="GAsyncReadyCallback">GAsyncReadyCallback</link> callback_ready,
                                                         <link linkend="gpointer">gpointer</link> user_data);
<link linkend="void">void</link>                <link linkend="pk-task-install-files-async">pk_task_install_files_async</link>         (<link linkend="PkTask">PkTask</link> *task,
                                                         <link linkend="gchar">gchar</link> **files,
                                                         <link linkend="GCancellable">GCancellable</link> *cancellable,
                                                         <link linkend="PkProgressCallback">PkProgressCallback</link> progress_callback,
                                                         <link linkend="gpointer">gpointer</link> progress_user_data,
                                                         <link linkend="GAsyncReadyCallback">GAsyncReadyCallback</link> callback_ready,
                                                         <link linkend="gpointer">gpointer</link> user_data);
<link linkend="void">void</link>                <link linkend="pk-task-update-system-async">pk_task_update_system_async</link>         (<link linkend="PkTask">PkTask</link> *task,
                                                         <link linkend="GCancellable">GCancellable</link> *cancellable,
                                                         <link linkend="PkProgressCallback">PkProgressCallback</link> progress_callback,
                                                         <link linkend="gpointer">gpointer</link> progress_user_data,
                                                         <link linkend="GAsyncReadyCallback">GAsyncReadyCallback</link> callback_ready,
                                                         <link linkend="gpointer">gpointer</link> user_data);
<link linkend="gboolean">gboolean</link>            <link linkend="pk-task-user-accepted">pk_task_user_accepted</link>               (<link linkend="PkTask">PkTask</link> *task,
                                                         <link linkend="guint">guint</link> request);
<link linkend="gboolean">gboolean</link>            <link linkend="pk-task-user-declined">pk_task_user_declined</link>               (<link linkend="PkTask">PkTask</link> *task,
                                                         <link linkend="guint">guint</link> request);
</synopsis>
</refsynopsisdiv>

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





<refsect1 id="PkTask.properties" role="properties">
<title role="properties.title">Properties</title>
<synopsis>
  &quot;<link linkend="PkTask--simulate">simulate</link>&quot;                 <link linkend="gboolean">gboolean</link>              : Read / Write
</synopsis>
</refsect1>



<refsect1 id="PkTask.description" role="desc">
<title role="desc.title">Description</title>
<para>
</para>
<para>
</para>
</refsect1>

<refsect1 id="PkTask.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="PK-TASK-ERROR--CAPS" role="macro">
<title>PK_TASK_ERROR</title>
<indexterm zone="PK-TASK-ERROR--CAPS"><primary sortas="PK_TASK_ERROR">PK_TASK_ERROR</primary></indexterm><programlisting>#define PK_TASK_ERROR		(pk_task_error_quark ())
</programlisting>
<para>
</para></refsect2>
<refsect2 id="PK-TASK-TYPE-ERROR--CAPS" role="macro">
<title>PK_TASK_TYPE_ERROR</title>
<indexterm zone="PK-TASK-TYPE-ERROR--CAPS"><primary sortas="PK_TASK_TYPE_ERROR">PK_TASK_TYPE_ERROR</primary></indexterm><programlisting>#define PK_TASK_TYPE_ERROR	(pk_task_error_get_type ())
</programlisting>
<para>
</para></refsect2>
<refsect2 id="PkTaskPrivate" role="struct">
<title>PkTaskPrivate</title>
<indexterm zone="PkTaskPrivate"><primary sortas="PkTaskPrivate">PkTaskPrivate</primary></indexterm><programlisting>typedef struct _PkTaskPrivate PkTaskPrivate;</programlisting>
<para>
Private <link linkend="PkTask"><type>PkTask</type></link> data</para>
<para>
</para></refsect2>
<refsect2 id="PkTask-struct" role="struct">
<title>PkTask</title>
<indexterm zone="PkTask-struct"><primary sortas="PkTask">PkTask</primary></indexterm><programlisting>typedef struct _PkTask PkTask;</programlisting>
<para>
</para></refsect2>
<refsect2 id="pk-task-error-quark" role="function">
<title>pk_task_error_quark ()</title>
<indexterm zone="pk-task-error-quark"><primary sortas="pk_task_error_quark">pk_task_error_quark</primary></indexterm><programlisting><link linkend="GQuark">GQuark</link>              pk_task_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-task-new" role="function">
<title>pk_task_new ()</title>
<indexterm zone="pk-task-new"><primary sortas="pk_task_new">pk_task_new</primary></indexterm><programlisting><link linkend="PkTask">PkTask</link> *            pk_task_new                         (void);</programlisting>
<para>
</para>
<para>
</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> a new PkTask object.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-task-test" role="function">
<title>pk_task_test ()</title>
<indexterm zone="pk-task-test"><primary sortas="pk_task_test">pk_task_test</primary></indexterm><programlisting><link linkend="void">void</link>                pk_task_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="pk-task-generic-finish" role="function">
<title>pk_task_generic_finish ()</title>
<indexterm zone="pk-task-generic-finish"><primary sortas="pk_task_generic_finish">pk_task_generic_finish</primary></indexterm><programlisting><link linkend="PkResults">PkResults</link> *         pk_task_generic_finish              (<link linkend="PkTask">PkTask</link> *task,
                                                         <link linkend="GAsyncResult">GAsyncResult</link> *res,
                                                         <link linkend="GError">GError</link> **error);</programlisting>
<para>
Gets the result from the asynchronous function.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>task</parameter>&#160;:</term>
<listitem><simpara> a valid <link linkend="PkTask"><type>PkTask</type></link> instance
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>res</parameter>&#160;:</term>
<listitem><simpara> the <link linkend="GAsyncResult"><type>GAsyncResult</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>error</parameter>&#160;:</term>
<listitem><simpara> A <link linkend="GError"><type>GError</type></link> or <link linkend="NULL--CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> <link linkend="TRUE--CAPS"><literal>TRUE</literal></link> for success
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-task-install-packages-async" role="function">
<title>pk_task_install_packages_async ()</title>
<indexterm zone="pk-task-install-packages-async"><primary sortas="pk_task_install_packages_async">pk_task_install_packages_async</primary></indexterm><programlisting><link linkend="void">void</link>                pk_task_install_packages_async      (<link linkend="PkTask">PkTask</link> *task,
                                                         <link linkend="gchar">gchar</link> **package_ids,
                                                         <link linkend="GCancellable">GCancellable</link> *cancellable,
                                                         <link linkend="PkProgressCallback">PkProgressCallback</link> progress_callback,
                                                         <link linkend="gpointer">gpointer</link> progress_user_data,
                                                         <link linkend="GAsyncReadyCallback">GAsyncReadyCallback</link> callback,
                                                         <link linkend="gpointer">gpointer</link> user_data);</programlisting>
<para>
Merges in details about packages using resolve.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>task</parameter>&#160;:</term>
<listitem><simpara> a valid <link linkend="PkTask"><type>PkTask</type></link> instance
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>package_ids</parameter>&#160;:</term>
<listitem><simpara> a null terminated array of package_id structures such as "hal;0.0.1;i386;fedora"
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cancellable</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GCancellable"><type>GCancellable</type></link> or <link linkend="NULL--CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>progress_callback</parameter>&#160;:</term>
<listitem><simpara> the function to run when the progress changes
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>progress_user_data</parameter>&#160;:</term>
<listitem><simpara> data to pass to <parameter>progress_callback</parameter>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>callback</parameter>&#160;:</term>
<listitem><simpara> the function to run on completion
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara> the data to pass to <parameter>callback</parameter>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-task-update-packages-async" role="function">
<title>pk_task_update_packages_async ()</title>
<indexterm zone="pk-task-update-packages-async"><primary sortas="pk_task_update_packages_async">pk_task_update_packages_async</primary></indexterm><programlisting><link linkend="void">void</link>                pk_task_update_packages_async       (<link linkend="PkTask">PkTask</link> *task,
                                                         <link linkend="gchar">gchar</link> **package_ids,
                                                         <link linkend="GCancellable">GCancellable</link> *cancellable,
                                                         <link linkend="PkProgressCallback">PkProgressCallback</link> progress_callback,
                                                         <link linkend="gpointer">gpointer</link> progress_user_data,
                                                         <link linkend="GAsyncReadyCallback">GAsyncReadyCallback</link> callback_ready,
                                                         <link linkend="gpointer">gpointer</link> user_data);</programlisting>
<para>
Update specific packages to the newest available versions.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>task</parameter>&#160;:</term>
<listitem><simpara> a valid <link linkend="PkTask"><type>PkTask</type></link> instance
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>package_ids</parameter>&#160;:</term>
<listitem><simpara> a null terminated array of package_id structures such as "hal;0.0.1;i386;fedora"
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cancellable</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GCancellable"><type>GCancellable</type></link> or <link linkend="NULL--CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>progress_callback</parameter>&#160;:</term>
<listitem><simpara> the function to run when the progress changes
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>progress_user_data</parameter>&#160;:</term>
<listitem><simpara> data to pass to <parameter>progress_callback</parameter>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>callback_ready</parameter>&#160;:</term>
<listitem><simpara> the function to run on completion
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara> the data to pass to <parameter>callback_ready</parameter>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-task-remove-packages-async" role="function">
<title>pk_task_remove_packages_async ()</title>
<indexterm zone="pk-task-remove-packages-async"><primary sortas="pk_task_remove_packages_async">pk_task_remove_packages_async</primary></indexterm><programlisting><link linkend="void">void</link>                pk_task_remove_packages_async       (<link linkend="PkTask">PkTask</link> *task,
                                                         <link linkend="gchar">gchar</link> **package_ids,
                                                         <link linkend="gboolean">gboolean</link> allow_deps,
                                                         <link linkend="gboolean">gboolean</link> autoremove,
                                                         <link linkend="GCancellable">GCancellable</link> *cancellable,
                                                         <link linkend="PkProgressCallback">PkProgressCallback</link> progress_callback,
                                                         <link linkend="gpointer">gpointer</link> progress_user_data,
                                                         <link linkend="GAsyncReadyCallback">GAsyncReadyCallback</link> callback_ready,
                                                         <link linkend="gpointer">gpointer</link> user_data);</programlisting>
<para>
Remove a package (optionally with dependancies) from the system.
If <link linkend="allow-deps"><literal>allow_deps</literal></link> is set to <link linkend="FALSE--CAPS"><literal>FALSE</literal></link>, and other packages would have to be removed,
then the transaction would fail.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>task</parameter>&#160;:</term>
<listitem><simpara> a valid <link linkend="PkTask"><type>PkTask</type></link> instance
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>package_ids</parameter>&#160;:</term>
<listitem><simpara> a null terminated array of package_id structures such as "hal;0.0.1;i386;fedora"
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>allow_deps</parameter>&#160;:</term>
<listitem><simpara> if other dependant packages are allowed to be removed from the computer
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>autoremove</parameter>&#160;:</term>
<listitem><simpara> if other packages installed at the same time should be tried to remove
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cancellable</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GCancellable"><type>GCancellable</type></link> or <link linkend="NULL--CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>progress_callback</parameter>&#160;:</term>
<listitem><simpara> the function to run when the progress changes
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>progress_user_data</parameter>&#160;:</term>
<listitem><simpara> data to pass to <parameter>progress_callback</parameter>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>callback_ready</parameter>&#160;:</term>
<listitem><simpara> the function to run on completion
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara> the data to pass to <parameter>callback_ready</parameter>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-task-install-files-async" role="function">
<title>pk_task_install_files_async ()</title>
<indexterm zone="pk-task-install-files-async"><primary sortas="pk_task_install_files_async">pk_task_install_files_async</primary></indexterm><programlisting><link linkend="void">void</link>                pk_task_install_files_async         (<link linkend="PkTask">PkTask</link> *task,
                                                         <link linkend="gchar">gchar</link> **files,
                                                         <link linkend="GCancellable">GCancellable</link> *cancellable,
                                                         <link linkend="PkProgressCallback">PkProgressCallback</link> progress_callback,
                                                         <link linkend="gpointer">gpointer</link> progress_user_data,
                                                         <link linkend="GAsyncReadyCallback">GAsyncReadyCallback</link> callback_ready,
                                                         <link linkend="gpointer">gpointer</link> user_data);</programlisting>
<para>
Install a file locally, and get the deps from the repositories.
This is useful for double clicking on a .rpm or .deb file.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>task</parameter>&#160;:</term>
<listitem><simpara> a valid <link linkend="PkTask"><type>PkTask</type></link> instance
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>files</parameter>&#160;:</term>
<listitem><simpara> a file such as "/home/hughsie/Desktop/hal-devel-0.10.0.rpm"
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cancellable</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GCancellable"><type>GCancellable</type></link> or <link linkend="NULL--CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>progress_callback</parameter>&#160;:</term>
<listitem><simpara> the function to run when the progress changes
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>progress_user_data</parameter>&#160;:</term>
<listitem><simpara> data to pass to <parameter>progress_callback</parameter>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>callback_ready</parameter>&#160;:</term>
<listitem><simpara> the function to run on completion
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara> the data to pass to <parameter>callback_ready</parameter>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-task-update-system-async" role="function">
<title>pk_task_update_system_async ()</title>
<indexterm zone="pk-task-update-system-async"><primary sortas="pk_task_update_system_async">pk_task_update_system_async</primary></indexterm><programlisting><link linkend="void">void</link>                pk_task_update_system_async         (<link linkend="PkTask">PkTask</link> *task,
                                                         <link linkend="GCancellable">GCancellable</link> *cancellable,
                                                         <link linkend="PkProgressCallback">PkProgressCallback</link> progress_callback,
                                                         <link linkend="gpointer">gpointer</link> progress_user_data,
                                                         <link linkend="GAsyncReadyCallback">GAsyncReadyCallback</link> callback_ready,
                                                         <link linkend="gpointer">gpointer</link> user_data);</programlisting>
<para>
Update all the packages on the system with the highest versions found in all
repositories.
NOTE: you can't choose what repositories to update from, but you can do:
- <link linkend="pk-task-repo-disable"><function>pk_task_repo_disable()</function></link>
- <link linkend="pk-task-update-system"><function>pk_task_update_system()</function></link>
- <link linkend="pk-task-repo-enable"><function>pk_task_repo_enable()</function></link></para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>task</parameter>&#160;:</term>
<listitem><simpara> a valid <link linkend="PkTask"><type>PkTask</type></link> instance
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>cancellable</parameter>&#160;:</term>
<listitem><simpara> a <link linkend="GCancellable"><type>GCancellable</type></link> or <link linkend="NULL--CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>progress_callback</parameter>&#160;:</term>
<listitem><simpara> the function to run when the progress changes
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>progress_user_data</parameter>&#160;:</term>
<listitem><simpara> data to pass to <parameter>progress_callback</parameter>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>callback_ready</parameter>&#160;:</term>
<listitem><simpara> the function to run on completion
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&#160;:</term>
<listitem><simpara> the data to pass to <parameter>callback_ready</parameter>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="pk-task-user-accepted" role="function">
<title>pk_task_user_accepted ()</title>
<indexterm zone="pk-task-user-accepted"><primary sortas="pk_task_user_accepted">pk_task_user_accepted</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            pk_task_user_accepted               (<link linkend="PkTask">PkTask</link> *task,
                                                         <link linkend="guint">guint</link> request);</programlisting>
<para>
</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>task</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>request</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-task-user-declined" role="function">
<title>pk_task_user_declined ()</title>
<indexterm zone="pk-task-user-declined"><primary sortas="pk_task_user_declined">pk_task_user_declined</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            pk_task_user_declined               (<link linkend="PkTask">PkTask</link> *task,
                                                         <link linkend="guint">guint</link> request);</programlisting>
<para>
</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>task</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>request</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="PkTask.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="PkTask--simulate" role="property"><title>The <literal>&quot;simulate&quot;</literal> property</title>
<indexterm zone="PkTask--simulate"><primary sortas="PkTask:simulate">PkTask:simulate</primary></indexterm><programlisting>  &quot;simulate&quot;                 <link linkend="gboolean">gboolean</link>              : Read / Write</programlisting>
<para>
</para>
<para>
</para><para>Default value: TRUE</para>
</refsect2>
</refsect1>




</refentry>
