blob: de1b0b3487d50e7c902f2a803a89ba1b3373f3a1 (
plain) (
tree)
|
|
/*
* 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 <gtk/gtk.h>
#include <libsoup/soup.h>
#include <libedataserver/e-source.h>
#include <libedataserver/e-source-group.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 */
|