diff options
Diffstat (limited to 'plugins/publish-calendar/url-editor-dialog.h')
-rw-r--r-- | plugins/publish-calendar/url-editor-dialog.h | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/plugins/publish-calendar/url-editor-dialog.h b/plugins/publish-calendar/url-editor-dialog.h new file mode 100644 index 0000000000..88f9455d7f --- /dev/null +++ b/plugins/publish-calendar/url-editor-dialog.h @@ -0,0 +1,112 @@ +/* + * Authors: + * David Trowbridge + * + * Copyright (C) 2005 Novell, Inc (www.novell.com) + * + * 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 + * 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 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + */ + +#ifndef URL_EDITOR_DIALOG_H +#define URL_EDITOR_DIALOG_H + +#include <gtk/gtk.h> +#include <glade/glade.h> +#include <libedataserverui/e-source-selector.h> +#include "publish-location.h" + +G_BEGIN_DECLS + +#define URL_EDITOR_DIALOG_TYPE (url_editor_dialog_get_type ()) +#define URL_EDITOR_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), URL_EDITOR_DIALOG_TYPE, UrlEditorDialog)) +#define URL_EDITOR_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), URL_EDITOR_DIALOG_TYPE, UrlEditorDialogClass)) +#define IS_URL_EDITOR_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), URL_EDITOR_DIALOG_TYPE)) +#define IS_URL_EDITOR_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), URL_EDITOR_DIALOG_TYPE)) + +enum { + URL_LIST_ENABLED_COLUMN, + URL_LIST_LOCATION_COLUMN, + URL_LIST_URL_COLUMN, + URL_LIST_N_COLUMNS, +}; + +enum { + TYPE_SSH, + TYPE_ANON_FTP, + TYPE_FTP, + TYPE_SMB, + TYPE_DAV, + TYPE_DAVS, + TYPE_URI, +}; + +typedef struct _UrlEditorDialog UrlEditorDialog; +typedef struct _UrlEditorDialogClass UrlEditorDialogClass; + +struct _UrlEditorDialog { + GtkDialog parent; + + GtkTreeModel *url_list_model; + EPublishUri *uri; + + GladeXML *gui; + + GtkWidget *publish_frequency; + GtkWidget *type_selector; + + GtkWidget *events_swin; + + ESourceList *events_source_list; + GtkWidget *events_selector; + + GtkWidget *publish_service; + GtkWidget *server_entry; + GtkWidget *file_entry; + + GtkWidget *port_entry; + GtkWidget *username_entry; + GtkWidget *password_entry; + GtkWidget *remember_pw; + + GtkWidget *optional_label; + + GtkWidget *port_hbox; + GtkWidget *username_hbox; + GtkWidget *password_hbox; + GtkWidget *server_hbox; + GtkWidget *file_hbox; + + GtkWidget *port_label; + GtkWidget *username_label; + GtkWidget *password_label; + GtkWidget *server_label; + GtkWidget *file_label; + + GtkWidget *ok; + GtkWidget *cancel; +}; + +struct _UrlEditorDialogClass { + GtkDialogClass parent_class; +}; + +GtkWidget *url_editor_dialog_new (GtkTreeModel *url_list_model, EPublishUri *uri); +GType url_editor_dialog_get_type (void); +void url_editor_dialog_run (UrlEditorDialog *dialog); + +G_END_DECLS + +#endif /* _URL_EDITOR_DIALOG_H_ */ |