~ubuntu-branches/ubuntu/raring/almanah/raring-proposed

« back to all changes in this revision

Viewing changes to src/export-operation.h

  • Committer: Bazaar Package Importer
  • Author(s): Angel Abad
  • Date: 2011-04-18 16:21:36 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110418162136-l0ik4snrl420srer
Tags: 0.8.0-1
* New upstream release
* Temporarily remove evolution support in unstable
* Disable AM_GCONF_SOURCE_2 macro to fix ftbfs in unstable
  - debian/patches/disable_am_gconf_source_2
  - Build-Depends on dh-autoreconf
  - Use --with autoreconf in rules
* debian/control:
  - Build-Depends on libgtk-3-dev
* debian/rules:
  - Remove unnecessary override_dh_auto_install
* debian/copyright:
  - Update copyright years
  - Update license stanza
* Bump Standards-Version to 3.9.1 (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
 
2
/*
 
3
 * Almanah
 
4
 * Copyright (C) Philip Withnall 2010 <philip@tecnocode.co.uk>
 
5
 *
 
6
 * Almanah is free software: you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation, either version 3 of the License, or
 
9
 * (at your option) any later version.
 
10
 *
 
11
 * Almanah is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with Almanah.  If not, see <http://www.gnu.org/licenses/>.
 
18
 */
 
19
 
 
20
#ifndef ALMANAH_EXPORT_OPERATION_H
 
21
#define ALMANAH_EXPORT_OPERATION_H
 
22
 
 
23
#include <glib.h>
 
24
#include <glib-object.h>
 
25
 
 
26
G_BEGIN_DECLS
 
27
 
 
28
typedef guint AlmanahExportOperationType;
 
29
 
 
30
typedef void (*AlmanahExportProgressCallback) (const GDate *date, gpointer user_data);
 
31
 
 
32
#define ALMANAH_TYPE_EXPORT_OPERATION           (almanah_export_operation_get_type ())
 
33
#define ALMANAH_EXPORT_OPERATION(o)             (G_TYPE_CHECK_INSTANCE_CAST ((o), ALMANAH_TYPE_EXPORT_OPERATION, AlmanahExportOperation))
 
34
#define ALMANAH_EXPORT_OPERATION_CLASS(k)       (G_TYPE_CHECK_CLASS_CAST((k), ALMANAH_TYPE_EXPORT_OPERATION, AlmanahExportOperationClass))
 
35
#define ALMANAH_IS_EXPORT_OPERATION(o)          (G_TYPE_CHECK_INSTANCE_TYPE ((o), ALMANAH_TYPE_EXPORT_OPERATION))
 
36
#define ALMANAH_IS_EXPORT_OPERATION_CLASS(k)    (G_TYPE_CHECK_CLASS_TYPE ((k), ALMANAH_TYPE_EXPORT_OPERATION))
 
37
#define ALMANAH_EXPORT_OPERATION_GET_CLASS(o)   (G_TYPE_INSTANCE_GET_CLASS ((o), ALMANAH_TYPE_EXPORT_OPERATION, AlmanahExportOperationClass))
 
38
 
 
39
typedef struct _AlmanahExportOperationPrivate   AlmanahExportOperationPrivate;
 
40
 
 
41
typedef struct {
 
42
        GObject parent;
 
43
        AlmanahExportOperationPrivate *priv;
 
44
} AlmanahExportOperation;
 
45
 
 
46
typedef struct {
 
47
        GObjectClass parent;
 
48
} AlmanahExportOperationClass;
 
49
 
 
50
GType almanah_export_operation_get_type (void) G_GNUC_CONST;
 
51
 
 
52
AlmanahExportOperation *almanah_export_operation_new (AlmanahExportOperationType type_id, GFile *destination) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
53
 
 
54
void almanah_export_operation_run (AlmanahExportOperation *self, GCancellable *cancellable,
 
55
                                   AlmanahExportProgressCallback progress_callback, gpointer progress_user_data,
 
56
                                   GAsyncReadyCallback callback, gpointer user_data);
 
57
gboolean almanah_export_operation_finish (AlmanahExportOperation *self, GAsyncResult *async_result, GError **error);
 
58
 
 
59
void almanah_export_operation_populate_model (GtkListStore *list_store, guint type_id_column, guint name_column, guint description_column,
 
60
                                              guint action_column);
 
61
 
 
62
G_END_DECLS
 
63
 
 
64
#endif /* !ALMANAH_EXPORT_OPERATION_H */