Statistics
| Revision:

root / libsylph / sylmain.h @ 2164

History | View | Annotate | Download (1.82 KB)

1
/*
2
 * LibSylph -- E-Mail client library
3
 * Copyright (C) 1999-2009 Hiroyuki Yamamoto
4
 *
5
 * This library is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU Lesser General Public
7
 * License as published by the Free Software Foundation; either
8
 * version 2.1 of the License, or (at your option) any later version.
9
 *
10
 * This library is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 * Lesser General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU Lesser General Public
16
 * License along with this library; if not, write to the Free Software
17
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
 */
19

    
20
#ifndef __SYLMAIN_H__
21
#define __SYLMAIN_H__
22

    
23
#include <glib.h>
24
#include <glib-object.h>
25

    
26
/* SylApp object */
27

    
28
#define SYL_TYPE_APP        (syl_app_get_type())
29
#define SYL_APP(obj)         (G_TYPE_CHECK_INSTANCE_CAST((obj), SYL_TYPE_APP, SylApp))
30
#define SYL_IS_APP(obj)      (G_TYPE_CHECK_INSTANCE_CAST((obj), SYL_TYPE_APP))
31
#define SYL_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), SYL_TYPE_APP, SylAppClass))
32
#define SYL_IS_APP_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE((klass), SYL_TYPE_APP))
33
#define SYL_APP_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS((obj), SYL_TYPE_APP, SylAppClass))
34

    
35
typedef struct _SylApp                SylApp;
36
typedef struct _SylAppClass        SylAppClass;
37

    
38
struct _SylApp
39
{
40
        GObject parent_instance;
41
};
42

    
43
struct _SylAppClass
44
{
45
        GObjectClass parent_class;
46
};
47

    
48
GObject *syl_app_create        (void);
49
GObject *syl_app_get        (void);
50

    
51
void syl_init                (void);
52
void syl_init_gettext        (const gchar *package, const gchar *dirname);
53
gint syl_setup_rc_dir        (void);
54
void syl_save_all_state        (void);
55
void syl_cleanup        (void);
56

    
57
#endif /* __SYLMAIN_H__ */