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 #include <glib-object.h>
28 * CHEESE_PHOTO_NAME_SUFFIX:
30 * The filename suffix for photos saved by Cheese.
32 #define CHEESE_PHOTO_NAME_SUFFIX ".jpg"
35 * CHEESE_VIDEO_NAME_SUFFIX:
37 * The filename suffix for videos saved by Cheese.
39 #define CHEESE_VIDEO_NAME_SUFFIX ".webm"
46 * Use the accessor functions below.
48 struct _CheeseFileUtil
57 * @CHEESE_MEDIA_MODE_PHOTO: photo
58 * @CHEESE_MEDIA_MODE_VIDEO: video
59 * @CHEESE_MEDIA_MODE_BURST: a burst of photos
61 * The media type, used for generating filenames with
62 * cheese_fileutil_get_new_media_filename().
66 CHEESE_MEDIA_MODE_PHOTO
,
67 CHEESE_MEDIA_MODE_VIDEO
,
68 CHEESE_MEDIA_MODE_BURST
72 #define CHEESE_TYPE_FILEUTIL (cheese_fileutil_get_type ())
73 G_DECLARE_FINAL_TYPE (CheeseFileUtil
, cheese_fileutil
, CHEESE
, FILEUTIL
, GObject
)
75 CheeseFileUtil
*cheese_fileutil_new (void);
76 const gchar
*cheese_fileutil_get_video_path (CheeseFileUtil
*fileutil
);
77 const gchar
*cheese_fileutil_get_photo_path (CheeseFileUtil
*fileutil
);
78 gchar
*cheese_fileutil_get_new_media_filename (CheeseFileUtil
*fileutil
, CheeseMediaMode mode
);
79 void cheese_fileutil_reset_burst (CheeseFileUtil
*fileutil
);
83 #endif /* __CHEESE_FILEUTIL_H__ */