aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-plugin-util.h
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-02-04 19:55:42 +0800
committerMilan Crha <mcrha@redhat.com>2010-02-04 19:55:42 +0800
commit9a8fa88b6a3fe12409ff0358bed45187c9c743a5 (patch)
tree2686e65a6fa77973efac264c3ce14c388906f650 /e-util/e-plugin-util.h
parentcaee31bac657c69b3dd8ec2d9ebfebd4510a6608 (diff)
downloadgsoc2013-evolution-9a8fa88b6a3fe12409ff0358bed45187c9c743a5.tar
gsoc2013-evolution-9a8fa88b6a3fe12409ff0358bed45187c9c743a5.tar.gz
gsoc2013-evolution-9a8fa88b6a3fe12409ff0358bed45187c9c743a5.tar.bz2
gsoc2013-evolution-9a8fa88b6a3fe12409ff0358bed45187c9c743a5.tar.lz
gsoc2013-evolution-9a8fa88b6a3fe12409ff0358bed45187c9c743a5.tar.xz
gsoc2013-evolution-9a8fa88b6a3fe12409ff0358bed45187c9c743a5.tar.zst
gsoc2013-evolution-9a8fa88b6a3fe12409ff0358bed45187c9c743a5.zip
Move some ESource-plugin common code to e-plugin-util.h/.c
Diffstat (limited to 'e-util/e-plugin-util.h')
-rw-r--r--e-util/e-plugin-util.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/e-util/e-plugin-util.h b/e-util/e-plugin-util.h
new file mode 100644
index 0000000000..6bee4d0413
--- /dev/null
+++ b/e-util/e-plugin-util.h
@@ -0,0 +1,46 @@
+/*
+ * 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) version 3.
+ *
+ * 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 the program; if not, see <http://www.gnu.org/licenses/>
+ *
+ *
+ * Authors:
+ *
+ * Copyright (C) 1999-2010 Novell, Inc. (www.novell.com)
+ *
+ */
+
+#ifndef _E_PLUGIN_UTIL_H
+#define _E_PLUGIN_UTIL_H
+
+#include <glib.h>
+#include <gtk/gtk.h>
+
+#include <libsoup/soup.h>
+
+#include <libedataserver/e-source.h>
+#include <libedataserver/e-source.h>
+
+gboolean e_plugin_util_is_source_proto (ESource *source, const gchar *protocol);
+gboolean e_plugin_util_is_group_proto (ESourceGroup *group, const gchar *protocol);
+
+gchar *e_plugin_util_replace_at_sign (const gchar *str);
+gchar *e_plugin_util_uri_no_proto (SoupURI *uri);
+
+/* common widgets used in plugin setup */
+GtkWidget *e_plugin_util_add_entry (GtkWidget *parent, const gchar *label, ESource *source, const gchar *source_property);
+GtkWidget *e_plugin_util_add_check (GtkWidget *parent, const gchar *label, ESource *source, const gchar *source_property, const gchar *true_value, const gchar *false_value);
+
+/* multipack widgets */
+GtkWidget *e_plugin_util_add_refresh (GtkWidget *parent, const gchar *label, ESource *source, const gchar *source_property);
+
+#endif /* _E_PLUGIN_UTIL_H */