* Removed an invalid g_object_unref in a mail operation
[modest] / src / modest-mime-part-search-stream.h
1 #ifndef MODEST_MIME_PART_SEARCH_STREAM_H
2 #define MODEST_MIME_PART_SEARCH_STREAM_H
3
4 #include <glib.h>
5 #include <glib-object.h>
6
7 #include <fcntl.h>
8 #include <stdio.h>
9 #include <stdlib.h>
10
11 #include <tny-stream.h>
12
13 G_BEGIN_DECLS
14
15 #define MODEST_TYPE_MIME_PART_SEARCH_STREAM             (modest_mime_part_search_stream_get_type ())
16 #define MODEST_MIME_PART_SEARCH_STREAM(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), MODEST_TYPE_MIME_PART_SEARCH_STREAM, ModestMimePartSearchStream))
17 #define MODEST_MIME_PART_SEARCH_STREAM_CLASS(vtable)    (G_TYPE_CHECK_CLASS_CAST ((vtable), MODEST_TYPE_MIME_PART_SEARCH_STREAM, ModestMimePartSearchStreamClass))
18 #define MODEST_IS_MIME_PART_SEARCH_STREAM(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MODEST_TYPE_MIME_PART_SEARCH_STREAM))
19 #define MODEST_IS_MIME_PART_SEARCH_STREAM_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), MODEST_TYPE_MIME_PART_SEARCH_STREAM))
20 #define MODEST_MIME_PART_SEARCH_STREAM_GET_CLASS(inst)  (G_TYPE_INSTANCE_GET_CLASS ((inst), MODEST_TYPE_MIME_PART_SEARCH_STREAM, ModestMimePartSearchStreamClass))
21
22 typedef struct _ModestMimePartSearchStream ModestMimePartSearchStream;
23 typedef struct _ModestMimePartSearchStreamClass ModestMimePartSearchStreamClass;
24
25 struct _ModestMimePartSearchStream
26 {
27         GObject parent;
28         gboolean found;
29         gchar *search_for;
30 };
31
32 struct _ModestMimePartSearchStreamClass 
33 {
34         GObjectClass parent;
35 };
36
37 GType  modest_mime_part_search_stream_get_type (void);
38 TnyStream* modest_mime_part_search_stream_new (const char *search_for);
39
40 G_END_DECLS
41
42 #endif
43