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

« back to all changes in this revision

Viewing changes to src/import-dialog.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 2009 <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_IMPORT_DIALOG_H
21
 
#define ALMANAH_IMPORT_DIALOG_H
22
 
 
23
 
#include <glib.h>
24
 
#include <glib-object.h>
25
 
#include <gtk/gtk.h>
26
 
 
27
 
G_BEGIN_DECLS
28
 
 
29
 
/* These must be kept in synchrony with the rows in almanah_ird_view_store in almanah.ui */
30
 
typedef enum {
31
 
        ALMANAH_IMPORT_STATUS_IMPORTED = 0,
32
 
        ALMANAH_IMPORT_STATUS_MERGED = 1,
33
 
        ALMANAH_IMPORT_STATUS_FAILED = 2
34
 
} AlmanahImportStatus;
35
 
 
36
 
#define ALMANAH_TYPE_IMPORT_DIALOG              (almanah_import_dialog_get_type ())
37
 
#define ALMANAH_IMPORT_DIALOG(o)                (G_TYPE_CHECK_INSTANCE_CAST ((o), ALMANAH_TYPE_IMPORT_DIALOG, AlmanahImportDialog))
38
 
#define ALMANAH_IMPORT_DIALOG_CLASS(k)          (G_TYPE_CHECK_CLASS_CAST((k), ALMANAH_TYPE_IMPORT_DIALOG, AlmanahImportDialogClass))
39
 
#define ALMANAH_IS_IMPORT_DIALOG(o)             (G_TYPE_CHECK_INSTANCE_TYPE ((o), ALMANAH_TYPE_IMPORT_DIALOG))
40
 
#define ALMANAH_IS_IMPORT_DIALOG_CLASS(k)       (G_TYPE_CHECK_CLASS_TYPE ((k), ALMANAH_TYPE_IMPORT_DIALOG))
41
 
#define ALMANAH_IMPORT_DIALOG_GET_CLASS(o)      (G_TYPE_INSTANCE_GET_CLASS ((o), ALMANAH_TYPE_IMPORT_DIALOG, AlmanahImportDialogClass))
42
 
 
43
 
typedef struct _AlmanahImportDialogPrivate      AlmanahImportDialogPrivate;
44
 
 
45
 
typedef struct {
46
 
        GtkDialog parent;
47
 
        AlmanahImportDialogPrivate *priv;
48
 
} AlmanahImportDialog;
49
 
 
50
 
typedef struct {
51
 
        GtkDialogClass parent;
52
 
} AlmanahImportDialogClass;
53
 
 
54
 
GType almanah_import_dialog_get_type (void) G_GNUC_CONST;
55
 
 
56
 
AlmanahImportDialog *almanah_import_dialog_new (void) G_GNUC_WARN_UNUSED_RESULT;
57
 
 
58
 
#define ALMANAH_TYPE_IMPORT_RESULTS_DIALOG              (almanah_import_results_dialog_get_type ())
59
 
#define ALMANAH_IMPORT_RESULTS_DIALOG(o)                (G_TYPE_CHECK_INSTANCE_CAST ((o), ALMANAH_TYPE_IMPORT_RESULTS_DIALOG, AlmanahImportResultsDialog))
60
 
#define ALMANAH_IMPORT_RESULTS_DIALOG_CLASS(k)          (G_TYPE_CHECK_CLASS_CAST((k), ALMANAH_TYPE_IMPORT_RESULTS_DIALOG, AlmanahImportResultsDialogClass))
61
 
#define ALMANAH_IS_IMPORT_RESULTS_DIALOG(o)             (G_TYPE_CHECK_INSTANCE_TYPE ((o), ALMANAH_TYPE_IMPORT_RESULTS_DIALOG))
62
 
#define ALMANAH_IS_IMPORT_RESULTS_DIALOG_CLASS(k)       (G_TYPE_CHECK_CLASS_TYPE ((k), ALMANAH_TYPE_IMPORT_RESULTS_DIALOG))
63
 
#define ALMANAH_IMPORT_RESULTS_DIALOG_GET_CLASS(o)      (G_TYPE_INSTANCE_GET_CLASS ((o), ALMANAH_TYPE_IMPORT_RESULTS_DIALOG, AlmanahImportResultsDialogClass))
64
 
 
65
 
typedef struct _AlmanahImportResultsDialogPrivate       AlmanahImportResultsDialogPrivate;
66
 
 
67
 
typedef struct {
68
 
        GtkDialog parent;
69
 
        AlmanahImportResultsDialogPrivate *priv;
70
 
} AlmanahImportResultsDialog;
71
 
 
72
 
typedef struct {
73
 
        GtkDialogClass parent;
74
 
} AlmanahImportResultsDialogClass;
75
 
 
76
 
GType almanah_import_results_dialog_get_type (void) G_GNUC_CONST;
77
 
 
78
 
AlmanahImportResultsDialog *almanah_import_results_dialog_new (void) G_GNUC_WARN_UNUSED_RESULT;
79
 
void almanah_import_results_dialog_add_result (AlmanahImportResultsDialog *self, GDate *date, AlmanahImportStatus status, const gchar *message);
80
 
 
81
 
G_END_DECLS
82
 
 
83
 
#endif /* !ALMANAH_IMPORT_DIALOG_H */