aboutsummaryrefslogtreecommitdiffstats
path: root/autoarchive/autoar-extract.h
diff options
context:
space:
mode:
Diffstat (limited to 'autoarchive/autoar-extract.h')
-rw-r--r--autoarchive/autoar-extract.h97
1 files changed, 0 insertions, 97 deletions
diff --git a/autoarchive/autoar-extract.h b/autoarchive/autoar-extract.h
deleted file mode 100644
index 8e2df6475..000000000
--- a/autoarchive/autoar-extract.h
+++ /dev/null
@@ -1,97 +0,0 @@
-/* vim: set sw=2 ts=2 sts=2 et: */
-/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/*
- * autoar-extract.h
- * Automatically extract archives in some GNOME programs
- *
- * Copyright (C) 2013 Ting-Wei Lan
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- *
- */
-
-#ifndef AUTOAR_EXTRACT_H
-#define AUTOAR_EXTRACT_H
-
-#include <glib-object.h>
-#include <gio/gio.h>
-
-#include "autoar-pref.h"
-
-G_BEGIN_DECLS
-
-#define AUTOAR_TYPE_EXTRACT autoar_extract_get_type ()
-#define AUTOAR_EXTRACT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AUTOAR_TYPE_EXTRACT, AutoarExtract))
-#define AUTOAR_EXTRACT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), AUTOAR_TYPE_EXTRACT, AutoarExtractClass))
-#define AUTOAR_IS_EXTRACT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AUTOAR_TYPE_EXTRACT))
-#define AUTOAR_IS_EXTRACT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), AUTOAR_TYPE_EXTRACT))
-#define AUTOAR_EXTRACT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), AUTOAR_TYPE_EXTRACT, AutoarExtractClass))
-
-typedef struct _AutoarExtract AutoarExtract;
-typedef struct _AutoarExtractClass AutoarExtractClass;
-typedef struct _AutoarExtractPrivate AutoarExtractPrivate;
-
-struct _AutoarExtract
-{
- GObject parent;
-
- AutoarExtractPrivate *priv;
-};
-
-struct _AutoarExtractClass
-{
- GObjectClass parent_class;
-
- void (* scanned) (AutoarExtract *arextract,
- guint files);
- void (* decide_dest)(AutoarExtract *arextract,
- GFile *destination);
- void (* progress) (AutoarExtract *arextract,
- gdouble fraction_size,
- gdouble fraction_files);
- void (* completed) (AutoarExtract *arextract);
- void (* error) (AutoarExtract *arextract,
- GError *error);
-};
-
-GType autoar_extract_get_type (void) G_GNUC_CONST;
-
-AutoarExtract *autoar_extract_new (const char *source,
- const char *output,
- AutoarPref *arpref);
-
-void autoar_extract_start (AutoarExtract *arextract);
-void autoar_extract_start_async (AutoarExtract *arextract);
-
-char *autoar_extract_get_source (AutoarExtract *arextract);
-char *autoar_extract_get_output (AutoarExtract *arextract);
-guint64 autoar_extract_get_size (AutoarExtract *arextract);
-guint64 autoar_extract_get_completed_size (AutoarExtract *arextract);
-guint autoar_extract_get_files (AutoarExtract *arextract);
-guint autoar_extract_get_completed_files (AutoarExtract *arextract);
-
-void autoar_extract_set_size (AutoarExtract *arextract,
- guint64 size);
-void autoar_extract_set_completed_size (AutoarExtract *arextract,
- guint64 completed_size);
-void autoar_extract_set_files (AutoarExtract *arextract,
- guint files);
-void autoar_extract_set_completed_files (AutoarExtract *arextract,
- guint completed_files);
-
-G_END_DECLS
-
-#endif /* AUTOAR_EXTRACT_H */