Dont add null mimetypes. Fixes bgo# 337431. The patch hasnt been officially accepted...
[beagle.git] / libbeagle / beagle / beagle-query-part-property.h
blob4a475e29e1d48de5ceb063bd199334e8ee4654c7
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; -*- */
3 /*
4 * beagle-query-part-property.h
6 * Copyright (C) 2005 Novell, Inc.
8 */
11 * Permission is hereby granted, free of charge, to any person obtaining a
12 * copy of this software and associated documentation files (the "Software"),
13 * to deal in the Software without restriction, including without limitation
14 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15 * and/or sell copies of the Software, and to permit persons to whom the
16 * Software is furnished to do so, subject to the following conditions:
18 * The above copyright notice and this permission notice shall be included in
19 * all copies or substantial portions of the Software.
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27 * DEALINGS IN THE SOFTWARE.
30 #ifndef __BEAGLE_QUERY_PART_PROPERTY_H
31 #define __BEAGLE_QUERY_PART_PROPERTY_H
33 #include <glib.h>
35 #include "beagle-query-part.h"
37 #define BEAGLE_TYPE_QUERY_PART_PROPERTY (beagle_query_part_property_get_type ())
38 #define BEAGLE_QUERY_PART_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BEAGLE_TYPE_QUERY_PART_PROPERTY, BeagleQueryPartProperty))
39 #define BEAGLE_QUERY_PART_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BEAGLE_TYPE_QUERY_PART_PROPERTY, BeagleQueryPartPropertyClass))
40 #define BEAGLE_IS_QUERY_PART_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BEAGLE_TYPE_QUERY_PART_PROPERTY))
41 #define BEAGLE_IS_QUERY_PART_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BEAGLE_TYPE_QUERY_PART_PROPERTY))
42 #define BEAGLE_QUERY_PART_PROPERTY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BEAGLE_TYPE_QUERY_PART_PROPERTY, BeagleQueryPartPropertyClass))
44 typedef struct _BeagleQueryPartProperty BeagleQueryPartProperty;
45 typedef struct _BeagleQueryPartPropertyClass BeagleQueryPartPropertyClass;
47 struct _BeagleQueryPartProperty {
48 BeagleQueryPart parent;
51 struct _BeagleQueryPartPropertyClass {
52 BeagleQueryPartClass parent_class;
55 GType beagle_query_part_property_get_type (void);
56 BeagleQueryPartProperty *beagle_query_part_property_new (void);
58 void beagle_query_part_property_set_key (BeagleQueryPartProperty *part,
59 const char *key);
60 void beagle_query_part_property_set_value (BeagleQueryPartProperty *part,
61 const char *value);
62 void beagle_query_part_property_set_property_type (BeagleQueryPartProperty *part,
63 BeaglePropertyType prop_type);
64 #endif /* __BEAGLE_QUERY_PART_PROPERTY_H */