2
* Copyright © 2007,2008 daniel g. siegel <dgsiegel@gnome.org>
3
* Copyright © 2007,2008 Jaap Haitsma <jaap@haitsma.org>
4
* Copyright © 2008 Felix Kaser <f.kaser@gmx.net>
6
* Licensed under the GNU General Public License Version 2
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
22
#ifndef __CHEESE_FILEUTIL_H__
23
#define __CHEESE_FILEUTIL_H__
25
#define PHOTO_NAME_SUFFIX ".jpg"
26
#define VIDEO_NAME_SUFFIX ".ogv"
30
#include <glib-object.h>
32
#define CHEESE_TYPE_FILEUTIL (cheese_fileutil_get_type ())
33
#define CHEESE_FILEUTIL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CHEESE_TYPE_FILEUTIL, CheeseFileUtil))
34
#define CHEESE_FILEUTIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CHEESE_TYPE_FILEUTIL, CheeseFileUtilClass))
35
#define CHEESE_IS_FILEUTIL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CHEESE_TYPE_FILEUTIL))
36
#define CHEESE_IS_FILEUTIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CHEESE_TYPE_FILEUTIL))
37
#define CHEESE_FILEUTIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CHEESE_TYPE_FILEUTIL, CheeseFileUtilClass))
46
GObjectClass parent_class;
47
} CheeseFileUtilClass;
51
CHEESE_MEDIA_MODE_PHOTO,
52
CHEESE_MEDIA_MODE_VIDEO
56
GType cheese_fileutil_get_type (void);
57
CheeseFileUtil *cheese_fileutil_new (void);
59
gchar *cheese_fileutil_get_video_path (CheeseFileUtil *fileutil);
60
gchar *cheese_fileutil_get_photo_path (CheeseFileUtil *fileutil);
61
gchar *cheese_fileutil_get_path_before_224 (CheeseFileUtil *fileutil);
62
gchar *cheese_fileutil_get_log_path (CheeseFileUtil *fileutil);
63
gchar *cheese_fileutil_get_new_media_filename (CheeseFileUtil *fileutil, CheeseMediaMode mode);
67
#endif /* __CHEESE_FILEUTIL_H__ */