2 * This file is a part of MAFW
4 * Copyright (C) 2007, 2008, 2009 Nokia Corporation, all rights reserved.
6 * Contact: Visa Smolander <visa.smolander@nokia.com>
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.
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.
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
25 #ifndef MAFW_MOCK_PLAYLIST_H
26 #define MAFW_MOCK_PLAYLIST_H
28 #include <glib-object.h>
29 #include <libmafw/mafw-playlist.h>
30 #include <libmafw/mafw-errors.h>
32 /*----------------------------------------------------------------------------
33 GObject type conversion macros
34 ----------------------------------------------------------------------------*/
36 #define MAFW_TYPE_MOCK_PLAYLIST \
37 (mafw_mock_playlist_get_type())
39 #define MAFW_MOCK_PLAYLIST(obj) \
40 (G_TYPE_CHECK_INSTANCE_CAST(obj, MAFW_TYPE_MOCK_PLAYLIST, \
43 #define MAFW_MOCK_PLAYLIST_CLASS(klass) \
44 (G_TYPE_CHECK_CLASS_CAST(klass, MAFW_TYPE_MOCK_PLAYLIST, \
45 MafwMockPlaylistClass))
47 #define MAFW_IS_MOCK_PLAYLIST(obj) \
48 (G_TYPE_CHECK_INSTANCE_TYPE(obj, MAFW_TYPE_MOCK_PLAYLIST))
50 #define MAFW_IS_MOCK_PLAYLIST_CLASS(klass) \
51 (G_TYPE_CHECK_CLASS_TYPE((klass), MAFW_TYPE_MOCK_PLAYLIST))
53 #define MAFW_MOCK_PLAYLIST_GET_CLASS(obj) \
54 (G_TYPE_INSTANCE_GET_CLASS((obj), MAFW_TYPE_MOCK_PLAYLIST, \
55 MafwMockPlaylistClass))
57 /*----------------------------------------------------------------------------
58 GObject type definitions
59 ----------------------------------------------------------------------------*/
61 typedef struct _MafwMockPlaylist MafwMockPlaylist;
62 typedef struct _MafwMockPlaylistClass MafwMockPlaylistClass;
65 struct _MafwMockPlaylist
67 GObject parent_instance;
71 struct _MafwMockPlaylistClass
73 GObjectClass parent_class;
77 /*----------------------------------------------------------------------------
78 Shared playlist-specific functions
79 ----------------------------------------------------------------------------*/
81 GType mafw_mock_playlist_get_type(void);
82 GObject *mafw_mock_playlist_new(void);