|
Packit |
15f964 |
/*
|
|
Packit |
15f964 |
* e-shell-content.h
|
|
Packit |
15f964 |
*
|
|
Packit |
15f964 |
* This program is free software; you can redistribute it and/or modify it
|
|
Packit |
15f964 |
* under the terms of the GNU Lesser General Public License as published by
|
|
Packit |
15f964 |
* the Free Software Foundation.
|
|
Packit |
15f964 |
*
|
|
Packit |
15f964 |
* This program is distributed in the hope that it will be useful, but
|
|
Packit |
15f964 |
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
Packit |
15f964 |
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
Packit |
15f964 |
* for more details.
|
|
Packit |
15f964 |
*
|
|
Packit |
15f964 |
* You should have received a copy of the GNU Lesser General Public License
|
|
Packit |
15f964 |
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
15f964 |
*
|
|
Packit |
15f964 |
*
|
|
Packit |
15f964 |
* Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
|
|
Packit |
15f964 |
*
|
|
Packit |
15f964 |
*/
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
#ifndef E_SHELL_CONTENT_H
|
|
Packit |
15f964 |
#define E_SHELL_CONTENT_H
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
#include <shell/e-shell-common.h>
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
/* Standard GObject macros */
|
|
Packit |
15f964 |
#define E_TYPE_SHELL_CONTENT \
|
|
Packit |
15f964 |
(e_shell_content_get_type ())
|
|
Packit |
15f964 |
#define E_SHELL_CONTENT(obj) \
|
|
Packit |
15f964 |
(G_TYPE_CHECK_INSTANCE_CAST \
|
|
Packit |
15f964 |
((obj), E_TYPE_SHELL_CONTENT, EShellContent))
|
|
Packit |
15f964 |
#define E_SHELL_CONTENT_CLASS(cls) \
|
|
Packit |
15f964 |
(G_TYPE_CHECK_CLASS_CAST \
|
|
Packit |
15f964 |
((cls), E_TYPE_SHELL_CONTENT, EShellContentClass))
|
|
Packit |
15f964 |
#define E_IS_SHELL_CONTENT(obj) \
|
|
Packit |
15f964 |
(G_TYPE_CHECK_INSTANCE_TYPE \
|
|
Packit |
15f964 |
((obj), E_TYPE_SHELL_CONTENT))
|
|
Packit |
15f964 |
#define E_IS_SHELL_CONTENT_CLASS(cls) \
|
|
Packit |
15f964 |
(G_TYPE_CHECK_CLASS_TYPE \
|
|
Packit |
15f964 |
((obj), E_TYPE_SHELL_CONTENT))
|
|
Packit |
15f964 |
#define E_SHELL_CONTENT_GET_CLASS(obj) \
|
|
Packit |
15f964 |
(G_TYPE_INSTANCE_GET_CLASS \
|
|
Packit |
15f964 |
((obj), E_TYPE_SHELL_CONTENT, EShellContentClass))
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
G_BEGIN_DECLS
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
/* Avoid including <e-shell-view.h>, because it includes us! */
|
|
Packit |
15f964 |
struct _EShellView;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
typedef struct _EShellContent EShellContent;
|
|
Packit |
15f964 |
typedef struct _EShellContentClass EShellContentClass;
|
|
Packit |
15f964 |
typedef struct _EShellContentPrivate EShellContentPrivate;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
/**
|
|
Packit |
15f964 |
* EShellContent:
|
|
Packit |
15f964 |
*
|
|
Packit |
15f964 |
* Contains only private data that should be read and manipulated using the
|
|
Packit |
15f964 |
* functions below.
|
|
Packit |
15f964 |
**/
|
|
Packit |
15f964 |
struct _EShellContent {
|
|
Packit |
15f964 |
GtkBin parent;
|
|
Packit |
15f964 |
EShellContentPrivate *priv;
|
|
Packit |
15f964 |
};
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
struct _EShellContentClass {
|
|
Packit |
15f964 |
GtkBinClass parent_class;
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
/* Methods */
|
|
Packit |
15f964 |
guint32 (*check_state) (EShellContent *shell_content);
|
|
Packit |
15f964 |
void (*focus_search_results) (EShellContent *shell_content);
|
|
Packit |
15f964 |
};
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
GType e_shell_content_get_type (void);
|
|
Packit |
15f964 |
GtkWidget * e_shell_content_new (struct _EShellView *shell_view);
|
|
Packit |
15f964 |
void e_shell_content_set_searchbar (EShellContent *shell_content,
|
|
Packit |
15f964 |
GtkWidget *searchbar);
|
|
Packit |
15f964 |
guint32 e_shell_content_check_state (EShellContent *shell_content);
|
|
Packit |
15f964 |
void e_shell_content_focus_search_results
|
|
Packit |
15f964 |
(EShellContent *shell_content);
|
|
Packit |
15f964 |
GtkWidget * e_shell_content_get_alert_bar (EShellContent *shell_content);
|
|
Packit |
15f964 |
struct _EShellView *
|
|
Packit |
15f964 |
e_shell_content_get_shell_view (EShellContent *shell_content);
|
|
Packit |
15f964 |
void e_shell_content_run_advanced_search_dialog
|
|
Packit |
15f964 |
(EShellContent *shell_content);
|
|
Packit |
15f964 |
void e_shell_content_run_edit_searches_dialog
|
|
Packit |
15f964 |
(EShellContent *shell_content);
|
|
Packit |
15f964 |
void e_shell_content_run_save_search_dialog
|
|
Packit |
15f964 |
(EShellContent *shell_content);
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
G_END_DECLS
|
|
Packit |
15f964 |
|
|
Packit |
15f964 |
#endif /* E_SHELL_CONTENT_H */
|