packagekit/client/pk-task-common.h

60 lines
1.8 KiB
C
Raw Normal View History

2007-08-13 07:15:43 -07:00
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
* Copyright (C) 2007 Richard Hughes <richard@hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
2007-08-13 11:37:31 -07:00
#ifndef __PK_TASK_H
#define __PK_TASK_H
2007-08-13 07:15:43 -07:00
#include <glib-object.h>
#define PK_DBUS_SERVICE "org.freedesktop.PackageKit"
#define PK_DBUS_PATH "/org/freedesktop/PackageKit"
#define PK_DBUS_INTERFACE "org.freedesktop.PackageKit"
G_BEGIN_DECLS
typedef enum {
2007-08-13 11:37:31 -07:00
PK_TASK_STATUS_INVALID,
PK_TASK_STATUS_SETUP,
PK_TASK_STATUS_QUERY,
PK_TASK_STATUS_REMOVE,
PK_TASK_STATUS_DOWNLOAD,
PK_TASK_STATUS_INSTALL,
PK_TASK_STATUS_UPDATE,
PK_TASK_STATUS_EXIT,
PK_TASK_STATUS_UNKNOWN
2007-08-13 07:15:43 -07:00
} PkTaskStatus;
typedef enum {
2007-08-13 11:37:31 -07:00
PK_TASK_EXIT_SUCCESS,
PK_TASK_EXIT_FAILED,
PK_TASK_EXIT_CANCELED,
PK_TASK_EXIT_UNKNOWN
2007-08-13 07:15:43 -07:00
} PkTaskExit;
2007-08-13 11:37:31 -07:00
PkTaskExit pk_task_exit_from_text (const gchar *exit);
const gchar *pk_task_exit_to_text (PkTaskExit exit);
PkTaskStatus pk_task_status_from_text (const gchar *status);
const gchar *pk_task_status_to_text (PkTaskStatus status);
2007-08-13 07:15:43 -07:00
G_END_DECLS
2007-08-13 11:37:31 -07:00
#endif /* __PK_TASK_H */