Imported mafw-gst-renderer_0.1.2009.47-1+0m5
[mafwsubrenderer] / tests / mafw-mock-playlist.h
1 /*
2  * This file is a part of MAFW
3  *
4  * Copyright (C) 2007, 2008, 2009 Nokia Corporation, all rights reserved.
5  *
6  * Contact: Visa Smolander <visa.smolander@nokia.com>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation; version 2.1 of
11  * the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  *
23  */
24
25 #ifndef MAFW_MOCK_PLAYLIST_H
26 #define MAFW_MOCK_PLAYLIST_H
27
28 #include <glib-object.h>
29 #include <libmafw/mafw-playlist.h>
30 #include <libmafw/mafw-errors.h>
31
32 /*----------------------------------------------------------------------------
33   GObject type conversion macros
34   ----------------------------------------------------------------------------*/
35
36 #define MAFW_TYPE_MOCK_PLAYLIST \
37         (mafw_mock_playlist_get_type())
38
39 #define MAFW_MOCK_PLAYLIST(obj) \
40         (G_TYPE_CHECK_INSTANCE_CAST(obj, MAFW_TYPE_MOCK_PLAYLIST, \
41                                     MafwMockPlaylist))
42
43 #define MAFW_MOCK_PLAYLIST_CLASS(klass) \
44         (G_TYPE_CHECK_CLASS_CAST(klass, MAFW_TYPE_MOCK_PLAYLIST, \
45                                  MafwMockPlaylistClass))
46
47 #define MAFW_IS_MOCK_PLAYLIST(obj) \
48         (G_TYPE_CHECK_INSTANCE_TYPE(obj, MAFW_TYPE_MOCK_PLAYLIST))
49
50 #define MAFW_IS_MOCK_PLAYLIST_CLASS(klass) \
51         (G_TYPE_CHECK_CLASS_TYPE((klass), MAFW_TYPE_MOCK_PLAYLIST))
52
53 #define MAFW_MOCK_PLAYLIST_GET_CLASS(obj) \
54         (G_TYPE_INSTANCE_GET_CLASS((obj), MAFW_TYPE_MOCK_PLAYLIST, \
55                                    MafwMockPlaylistClass))
56
57 /*----------------------------------------------------------------------------
58   GObject type definitions
59   ----------------------------------------------------------------------------*/
60
61 typedef struct _MafwMockPlaylist MafwMockPlaylist;
62 typedef struct _MafwMockPlaylistClass MafwMockPlaylistClass;
63
64
65 struct _MafwMockPlaylist
66 {
67         GObject parent_instance;
68
69 };
70
71 struct _MafwMockPlaylistClass
72 {
73         GObjectClass parent_class;
74
75 };
76
77 /*----------------------------------------------------------------------------
78   Shared playlist-specific functions
79   ----------------------------------------------------------------------------*/
80
81 GType mafw_mock_playlist_get_type(void);
82 GObject *mafw_mock_playlist_new(void);
83
84 #endif