aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/addressbook-view.h
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2004-04-15 10:14:35 +0800
committerChris Toshok <toshok@src.gnome.org>2004-04-15 10:14:35 +0800
commitc66ce91f684e02545b6d930c228d9239066f4c0f (patch)
tree51afdd6817293ee707f6bf78dd95944cf8815682 /addressbook/gui/component/addressbook-view.h
parent4481a42959da65cca4247184d0bf8ae27a57c0c7 (diff)
downloadgsoc2013-evolution-c66ce91f684e02545b6d930c228d9239066f4c0f.tar
gsoc2013-evolution-c66ce91f684e02545b6d930c228d9239066f4c0f.tar.gz
gsoc2013-evolution-c66ce91f684e02545b6d930c228d9239066f4c0f.tar.bz2
gsoc2013-evolution-c66ce91f684e02545b6d930c228d9239066f4c0f.tar.lz
gsoc2013-evolution-c66ce91f684e02545b6d930c228d9239066f4c0f.tar.xz
gsoc2013-evolution-c66ce91f684e02545b6d930c228d9239066f4c0f.tar.zst
gsoc2013-evolution-c66ce91f684e02545b6d930c228d9239066f4c0f.zip
rip out tons of functions - they all live in addressbook-view.c now. the
2004-04-14 Chris Toshok <toshok@ximian.com> * gui/component/addressbook.c: rip out tons of functions - they all live in addressbook-view.c now. the only thing left in this file is the addressbook_load* calls that do authentication. * gui/component/addressbook.h: remove prototypes for addressbook_new_control and addressbook_load_uri (it was #if 0'ed anyway.) * gui/component/addressbook-component.h: remove prototypes for _peek_activity_handler and _peek_source_list. * gui/component/addressbook-component.c: rip out tons of functions - they all live in addressbook-view.c now. (impl_createControls): simplify this immensely. we just create an AddressbookView and get the various widgets/controls from it. (impl_requestCreateItem): this function loses slightly - it needs per-window info (the selected source) but there's no way to get it. So we load the default book. Also, this uses a synchronous e_book call to load the book, which is not good. (addressbook_component_peek_source_list): nuke, not used by anything anyway. (addressbook_component_peek_activity_handler): nuked, not used by anything - and it's per-window anyway. * gui/component/Makefile.am (libevolution_addressbook_la_SOURCES): add addressbook-view.[ch]. * gui/component/addressbook-view.[ch]: rip out all of the per window stuff from addressbook.[ch] and addressbook-component.[ch] and put it here. svn path=/trunk/; revision=25471
Diffstat (limited to 'addressbook/gui/component/addressbook-view.h')
-rw-r--r--addressbook/gui/component/addressbook-view.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/addressbook/gui/component/addressbook-view.h b/addressbook/gui/component/addressbook-view.h
new file mode 100644
index 0000000000..e2292c4527
--- /dev/null
+++ b/addressbook/gui/component/addressbook-view.h
@@ -0,0 +1,60 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+/* addressbook-view.h
+ *
+ * Copyright (C) 2004 Novell, Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of version 2 of the GNU General Public
+ * License as published by the Free Software Foundation.
+ *
+ * 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.
+ *
+ * Author: Chris Toshok <toshok@ximian.com>
+ */
+
+#ifndef _ADDRESSBOOK_VIEW_H_
+#define _ADDRESSBOOK_VIEW_H_
+
+#include <bonobo/bonobo-control.h>
+
+#define ADDRESSBOOK_TYPE_VIEW (addressbook_view_get_type ())
+#define ADDRESSBOOK_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ADDRESSBOOK_TYPE_VIEW, AddressbookView))
+#define ADDRESSBOOK_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ADDRESSBOOK_TYPE_VIEW, AddressbookViewClass))
+#define ADDRESSBOOK_IS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ADDRESSBOOK_TYPE_VIEW))
+#define ADDRESSBOOK_IS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), ADDRESSBOOK_TYPE_VIEW))
+
+
+typedef struct _AddressbookView AddressbookView;
+typedef struct _AddressbookViewPrivate AddressbookViewPrivate;
+typedef struct _AddressbookViewClass AddressbookViewClass;
+
+struct _AddressbookView {
+ GObject parent;
+
+ AddressbookViewPrivate *priv;
+};
+
+struct _AddressbookViewClass {
+ GObjectClass parent_class;
+};
+
+
+GType addressbook_view_get_type (void);
+
+AddressbookView *addressbook_view_new (void);
+
+EActivityHandler *addressbook_view_peek_activity_handler (AddressbookView *view);
+GtkWidget *addressbook_view_peek_info_label (AddressbookView *view);
+GtkWidget *addressbook_view_peek_sidebar (AddressbookView *view);
+GtkWidget *addressbook_view_peek_statusbar (AddressbookView *view);
+BonoboControl *addressbook_view_peek_folder_view (AddressbookView *view);
+
+#endif /* _ADDRESSBOOK_VIEW_H_ */