aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-file-monitor.h
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-06-27 18:47:18 +0800
committerXan Lopez <xan@igalia.com>2012-06-27 18:47:18 +0800
commit8118e5fb00fc3514940ce629ca6e1a7aeb5a3b1d (patch)
tree86d05c3baba077d4106125ccb13f63610f0722fb /embed/ephy-file-monitor.h
parent46f5f85b4a6bccfd8260935142660b4b324e94c7 (diff)
downloadgsoc2013-epiphany-8118e5fb00fc3514940ce629ca6e1a7aeb5a3b1d.tar.gz
gsoc2013-epiphany-8118e5fb00fc3514940ce629ca6e1a7aeb5a3b1d.tar.zst
gsoc2013-epiphany-8118e5fb00fc3514940ce629ca6e1a7aeb5a3b1d.zip
ephy-web-view: move the file monitoring code to its own class, EphyFileMonitor.
Since the vast majority of the code was really independent from EphyWebView.
Diffstat (limited to 'embed/ephy-file-monitor.h')
-rw-r--r--embed/ephy-file-monitor.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/embed/ephy-file-monitor.h b/embed/ephy-file-monitor.h
new file mode 100644
index 000000000..1187649bf
--- /dev/null
+++ b/embed/ephy-file-monitor.h
@@ -0,0 +1,64 @@
+/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set sw=2 ts=2 sts=2 et: */
+/*
+ * Copyright © 2012 Igalia S.L.
+ *
+ * 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, 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION)
+#error "Only <epiphany/epiphany.h> can be included directly."
+#endif
+
+#ifndef EPHY_FILE_MONITOR_H
+#define EPHY_FILE_MONITOR_H
+
+#include "ephy-web-view.h"
+
+G_BEGIN_DECLS
+
+#define EPHY_TYPE_FILE_MONITOR (ephy_file_monitor_get_type ())
+#define EPHY_FILE_MONITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_FILE_MONITOR, EphyFileMonitor))
+#define EPHY_FILE_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_FILE_MONITOR, EphyFileMonitorClass))
+#define EPHY_IS_FILE_MONITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_FILE_MONITOR))
+#define EPHY_IS_FILE_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_FILE_MONITOR))
+#define EPHY_FILE_MONITOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_FILE_MONITOR, EphyFileMonitorClass))
+
+typedef struct _EphyFileMonitorClass EphyFileMonitorClass;
+typedef struct _EphyFileMonitor EphyFileMonitor;
+typedef struct _EphyFileMonitorPrivate EphyFileMonitorPrivate;
+
+struct _EphyFileMonitor
+{
+ GObject parent;
+
+ /*< private >*/
+ EphyFileMonitorPrivate *priv;
+};
+
+struct _EphyFileMonitorClass
+{
+ GObjectClass parent_class;
+};
+
+GType ephy_file_monitor_get_type (void);
+EphyFileMonitor * ephy_file_monitor_new (EphyWebView *view);
+void ephy_file_monitor_update_location (EphyFileMonitor *monitor,
+ const char *address);
+
+G_END_DECLS
+
+#endif