Make it compile with new files.
[mmediamanager.git] / src / mm-filter-param.h
blob49614a155e685478e976d2cacecc1238ab3292c2
1 /* MManager - a Desktop wide manager for multimedia applications.
3 * Copyright (C) 2008 Cosimo Cecchi <cosimoc@gnome.org>
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 of the License, or (at your option) any later version.
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.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef __MM_FILTER_PARAM_H__
22 #define __MM_FILTER_PARAM_H__
24 #include <glib.h>
25 #include "mm-types.h"
26 #include "mm-attribute.h"
28 #define MM_TYPE_FILTER_PARAM (mm_filter_param_get_type())
29 #define MM_FILTER_PARAM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
30 MM_TYPE_FILTER_PARAM, MMFilterParam))
31 #define MM_FILTER_PARAM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
32 MM_TYPE_FILTER_PARAM, MMFilterParamClass))
33 #define MM_IS_FILTER_PARAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
34 MM_TYPE_FILTER_PARAM))
35 #define MM_IS_FILTER_PARAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj),\
36 MM_TYPE_FILTER_PARAM))
37 #define MM_FILTER_PARAM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),\
38 MM_TYPE_FILTER_PARAM, MMFilterParamClass))
40 typedef struct _MMFilterParam MMFilterParam;
41 typedef struct _MMFilterParamDetails MMFilterParamDetails;
42 typedef struct _MMFilterParamClass MMFilterParamClass;
44 struct _MMFilterParam {
45 GObject parent;
47 MMFilterParamDetails *details;
50 struct _MMFilterParamClass {
51 GObjectClass parent_class;
54 /* public methods */
56 GType mm_filter_param_get_type (void);
58 MMFilterParam * mm_filter_param_new (MMAttribute *attribute,
59 GValue *value,
60 MMComparisionOperator op);
61 void mm_filter_param_set_attribute (MMFilterParam *filter_param,
62 MMAttribute *attribute);
63 void mm_filter_param_set_operator (MMFilterParam *filter_param,
64 MMComparisionOperator op);
65 void mm_filter_param_set_value (MMFilterParam *filter_param,
66 GValue *value);
67 GValue * mm_filter_param_get_value (MMFilterParam *filter_param);
68 MMAttribute * mm_filter_param_get_attribute (MMFilterParam *filter_param);
69 MMComparisionOperator mm_filter_param_get_operator (MMFilterParam *filter_param);
70 void mm_filter_param_clear (MMFilterParam *filter_param);
72 #endif /* __MM_FILTER_PARAM_H__ */