2
* * Copyright (C) 2009-2011 Ali <aliov@xfce.org>
4
* Licensed under the GNU General Public License Version 2
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
#if !defined (__PAROLE_H_INSIDE__) && !defined (PAROLE_COMPILATION)
22
#error "Only <parole.h> can be included directly."
25
#ifndef __PAROLE_MEDIA_FILE_H
26
#define __PAROLE_MEDIA_FILE_H
28
#include <glib-object.h>
32
#define PAROLE_TYPE_FILE (parole_file_get_type () )
33
#define PAROLE_FILE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), PAROLE_TYPE_FILE, ParoleFile))
34
#define PAROLE_IS_FILE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), PAROLE_TYPE_FILE))
36
typedef struct _ParoleFile ParoleFile;
37
typedef struct _ParoleFileClass ParoleFileClass;
44
struct _ParoleFileClass
46
GObjectClass parent_class;
49
GType parole_file_get_type (void) G_GNUC_CONST;
51
ParoleFile *parole_file_new (const gchar *filename);
53
ParoleFile *parole_file_new_with_display_name (const gchar *filename,
54
const gchar *display_name);
56
const gchar G_CONST_RETURN *parole_file_get_file_name (const ParoleFile *file) G_GNUC_PURE;
58
const gchar G_CONST_RETURN *parole_file_get_display_name (const ParoleFile *file) G_GNUC_PURE;
60
const gchar G_CONST_RETURN *parole_file_get_uri (const ParoleFile *file) G_GNUC_PURE;
62
const gchar G_CONST_RETURN *parole_file_get_content_type (const ParoleFile *file) G_GNUC_PURE;
66
#endif /* __PAROLE_MEDIA_FILE_H */