3
* Copyright (C) Pierre-Yves Luyten 2012 <py@luyten.fr>
5
* Bijiben is free software: you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License as published by the
7
* Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
10
* WebkitWebView is distributed in the hope that it will be useful, but
11
* WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
* See the GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License along
16
* with this program. If not, see <http://www.gnu.org/licenses/>.
19
/* This serializer is used for developement at first.
20
* It combines XML format for metadata
21
* and HTML format for note body.
23
* This format is NOT compatible with anything as of today.*/
25
#ifndef _BIJI_LAZY_SERIALIZER_H_
26
#define _BIJI_LAZY_SERIALIZER_H_
28
#include "../biji-note-obj.h"
32
#define BIJI_TYPE_LAZY_SERIALIZER (biji_lazy_serializer_get_type ())
33
#define BIJI_LAZY_SERIALIZER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BIJI_TYPE_LAZY_SERIALIZER, BijiLazySerializer))
34
#define BIJI_LAZY_SERIALIZER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BIJI_TYPE_LAZY_SERIALIZER, BijiLazySerializerClass))
35
#define BIJI_IS_LAZY_SERIALIZER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BIJI_TYPE_LAZY_SERIALIZER))
36
#define BIJI_IS_LAZY_SERIALIZER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BIJI_TYPE_LAZY_SERIALIZER))
37
#define BIJI_LAZY_SERIALIZER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BIJI_TYPE_LAZY_SERIALIZER, BijiLazySerializerClass))
39
typedef struct _BijiLazySerializerClass BijiLazySerializerClass;
40
typedef struct _BijiLazySerializer BijiLazySerializer;
42
typedef struct _BijiLazySerializerPrivate BijiLazySerializerPrivate;
44
struct _BijiLazySerializerClass
46
GObjectClass parent_class;
49
struct _BijiLazySerializer
51
GObject parent_instance;
52
BijiLazySerializerPrivate *priv;
55
GType biji_lazy_serializer_get_type (void) G_GNUC_CONST;
57
gboolean biji_lazy_serialize (BijiNoteObj *note);
61
#endif /* _BIJI_LAZY_SERIALIZER_H_ */