1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
2 /* logview-app.h - logview application singleton
4 * Copyright (C) 2008 Cosimo Cecchi <cosimoc@gnome.org>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef __LOGVIEW_APP_H__
22 #define __LOGVIEW_APP_H__
24 #include <glib-object.h>
28 #define LOGVIEW_TYPE_APP logview_app_get_type()
29 #define LOGVIEW_APP(obj) \
30 (G_TYPE_CHECK_INSTANCE_CAST ((obj), LOGVIEW_TYPE_APP, LogviewApp))
31 #define LOGVIEW_APP_CLASS(klass) \
32 (G_TYPE_CHECK_CLASS_CAST ((klass), LOGVIEW_TYPE_APP, LogviewAppClass))
33 #define LOGVIEW_IS_APP(obj) \
34 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LOGVIEW_TYPE_APP))
35 #define LOGVIEW_IS_APP_CLASS(klass) \
36 (G_TYPE_CHECK_CLASS_TYPE ((klass), LOGVIEW_TYPE_APP))
37 #define LOGVIEW_APP_GET_CLASS(obj) \
38 (G_TYPE_INSTANCE_GET_CLASS ((obj), LOGVIEW_TYPE_APP, LogviewAppClass))
40 typedef struct _LogviewApp LogviewApp
;
41 typedef struct _LogviewAppClass LogviewAppClass
;
42 typedef struct _LogviewAppPrivate LogviewAppPrivate
;
47 LogviewAppPrivate
*priv
;
50 struct _LogviewAppClass
{
51 GObjectClass parent_class
;
53 void (* app_quit
) (LogviewApp
*app
);
57 GType
logview_app_get_type (void);
60 LogviewApp
* logview_app_get (void);
61 void logview_app_initialize (LogviewApp
*app
,
63 void logview_app_add_error (LogviewApp
*app
,
64 const char *file_path
,
65 const char *secondary
);
66 void logview_app_add_errors (LogviewApp
*app
,
71 #endif /* __LOGVIEW_APP_H__ */