1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
/* Eye Of Mate - Application Facade
*
* Copyright (C) 2006 The Free Software Foundation
*
* Author: Lucas Rocha <lucasr@gnome.org>
*
* Based on evince code (shell/ev-application.h) by:
* - Martin Kretzschmar <martink@gnome.org>
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef __EOM_APPLICATION_H__
#define __EOM_APPLICATION_H__
#include "eom-window.h"
#include "eom-plugin-engine.h"
#include "egg-toolbars-model.h"
#include "totem-scrsaver.h"
#include <glib.h>
#include <glib-object.h>
G_BEGIN_DECLS
typedef struct _EomApplication EomApplication;
typedef struct _EomApplicationClass EomApplicationClass;
typedef struct _EomApplicationPrivate EomApplicationPrivate;
#define EOM_TYPE_APPLICATION (eom_application_get_type ())
#define EOM_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), EOM_TYPE_APPLICATION, EomApplication))
#define EOM_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), EOM_TYPE_APPLICATION, EomApplicationClass))
#define EOM_IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), EOM_TYPE_APPLICATION))
#define EOM_IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), EOM_TYPE_APPLICATION))
#define EOM_APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), EOM_TYPE_APPLICATION, EomApplicationClass))
#define EOM_APP (eom_application_get_instance ())
struct _EomApplication {
GtkApplication base_instance;
EggToolbarsModel *toolbars_model;
gchar *toolbars_file;
EomPluginEngine *plugin_engine;
TotemScrsaver *scr_saver;
EomStartupFlags flags;
};
struct _EomApplicationClass {
GtkApplicationClass parent_class;
};
GType eom_application_get_type (void) G_GNUC_CONST;
EomApplication *eom_application_get_instance (void);
gboolean eom_application_open_window (EomApplication *application,
guint timestamp,
EomStartupFlags flags,
GError **error);
gboolean eom_application_open_uri_list (EomApplication *application,
GSList *uri_list,
guint timestamp,
EomStartupFlags flags,
GError **error);
gboolean eom_application_open_file_list (EomApplication *application,
GSList *file_list,
guint timestamp,
EomStartupFlags flags,
GError **error);
gboolean eom_application_open_uris (EomApplication *application,
gchar **uris,
guint timestamp,
EomStartupFlags flags,
GError **error);
EggToolbarsModel *eom_application_get_toolbars_model (EomApplication *application);
void eom_application_save_toolbars_model (EomApplication *application);
void eom_application_reset_toolbars_model (EomApplication *app);
void eom_application_screensaver_enable (EomApplication *application);
void eom_application_screensaver_disable (EomApplication *application);
G_END_DECLS
#endif /* __EOM_APPLICATION_H__ */
|