Debian Codegraph @

lib/packagekit-glib2/pk-transaction-past.h

raw
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
2 *
3 * Copyright (C) 2009 Richard Hughes <[email protected]>
4 *
5 * Licensed under the GNU Lesser General Public License Version 2.1
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22 #if !defined (__PACKAGEKIT_H_INSIDE__) && !defined (PK_COMPILATION)
23 #error "Only <packagekit.h> can be included directly."
24 #endif
25
26 #ifndef __PK_TRANSACTION_PAST_H
27 #define __PK_TRANSACTION_PAST_H
28
29 #include <glib-object.h>
30
31 #include <packagekit-glib2/pk-enum.h>
32 #include <packagekit-glib2/pk-source.h>
33
34 G_BEGIN_DECLS
35
36 #define PK_TYPE_TRANSACTION_PAST (pk_transaction_past_get_type ())
37 #define PK_TRANSACTION_PAST(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), PK_TYPE_TRANSACTION_PAST, PkTransactionPast))
38 #define PK_TRANSACTION_PAST_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), PK_TYPE_TRANSACTION_PAST, PkTransactionPastClass))
39 #define PK_IS_TRANSACTION_PAST(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), PK_TYPE_TRANSACTION_PAST))
40 #define PK_IS_TRANSACTION_PAST_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PK_TYPE_TRANSACTION_PAST))
41 #define PK_TRANSACTION_PAST_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PK_TYPE_TRANSACTION_PAST, PkTransactionPastClass))
42
43 typedef struct _PkTransactionPastPrivate PkTransactionPastPrivate;
44 typedef struct _PkTransactionPast PkTransactionPast;
45 typedef struct _PkTransactionPastClass PkTransactionPastClass;
46
47 #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
48 G_DEFINE_AUTOPTR_CLEANUP_FUNC(PkTransactionPast, g_object_unref)
49 #endif
50
51 struct _PkTransactionPast
52 {
53 PkSource parent;
54 PkTransactionPastPrivate *priv;
55 };
56
57 struct _PkTransactionPastClass
58 {
59 PkSourceClass parent_class;
60 /* padding for future expansion */
61 void (*_pk_reserved1) (void);
62 void (*_pk_reserved2) (void);
63 void (*_pk_reserved3) (void);
64 void (*_pk_reserved4) (void);
65 void (*_pk_reserved5) (void);
66 };
67
68 GType pk_transaction_past_get_type (void);
69 PkTransactionPast *pk_transaction_past_new (void);
70 const gchar *pk_transaction_past_get_cmdline (PkTransactionPast *past);
71 const gchar *pk_transaction_past_get_data (PkTransactionPast *past);
72 const gchar *pk_transaction_past_get_id (PkTransactionPast *past);
73 const gchar *pk_transaction_past_get_timespec (PkTransactionPast *past);
74 GDateTime *pk_transaction_past_get_datetime (PkTransactionPast *past);
75 gint64 pk_transaction_past_get_timestamp (PkTransactionPast *past);
76 gboolean pk_transaction_past_get_succeeded (PkTransactionPast *past);
77 guint pk_transaction_past_get_duration (PkTransactionPast *past);
78 guint pk_transaction_past_get_uid (PkTransactionPast *past);
79 PkRoleEnum pk_transaction_past_get_role (PkTransactionPast *past);
80
81 G_END_DECLS
82
83 #endif /* __PK_TRANSACTION_PAST_H */
84