~ubuntu-branches/debian/sid/cheese/sid

« back to all changes in this revision

Viewing changes to src/cheese-fileutil.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2010-05-04 17:37:18 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20100504173718-k2rx3nryi4vd0xyx
Tags: 2.30.1-1
* New upstream release.
  - HAL dependency has been dropped. Use (g)udev for v4l capability probing
    on Linux. Closes: #573774
  - Split code into separate libraries.
* debian/control.in
  - Drop Build-Depends on libhal-dev.
  - Drop Build-Depends on libebook1.2-dev.
  - Bump Build-Depends on libgtk2.0-dev to (>= 2.19.1).
  - Bump Build-Depends on libgstreamer*-dev to (>= 0.10.23).
  - Add Build-Depends on libcanberra-gtk-dev.
  - Add Build-Depends on libxtst-dev.
  - Add Build-Depends on libgudev-1.0-dev on Linux.
  - Bump Standards-Version to 3.8.4. No further changes.
* Switch to source format 3.0 (quilt)
  - Add debian/source/format.
* debian/rules
  - Drop lpia specific configure flags, lpia is dead.
* Update package layout (based on work by Ubuntu)
  - Move data files into new cheese-common package.
  - Keep binary along with its desktop and dbus service file in the cheese
    package.
  - Add libcheese-gtk18 and libcheese-gtk-dev package for the new
    libcheese-gtk library. Use a symbols file for improved shlibs
    dependencies.
  - Add Conflicts/Replaces to cheese-common to ensure proper upgrades from
    previous versions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
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>
5
 
 *
6
 
 * Licensed under the GNU General Public License Version 2
7
 
 *
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.
12
 
 *
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.
17
 
 *
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/>.
20
 
 */
21
 
 
22
 
#ifndef __CHEESE_FILEUTIL_H__
23
 
#define __CHEESE_FILEUTIL_H__
24
 
 
25
 
#define PHOTO_NAME_SUFFIX ".jpg"
26
 
#define VIDEO_NAME_SUFFIX ".ogv"
27
 
 
28
 
G_BEGIN_DECLS
29
 
 
30
 
#include <glib-object.h>
31
 
 
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))
38
 
 
39
 
typedef struct
40
 
{
41
 
  GObject parent;
42
 
} CheeseFileUtil;
43
 
 
44
 
typedef struct
45
 
{
46
 
  GObjectClass parent_class;
47
 
} CheeseFileUtilClass;
48
 
 
49
 
typedef enum
50
 
{
51
 
  CHEESE_MEDIA_MODE_PHOTO,
52
 
  CHEESE_MEDIA_MODE_VIDEO
53
 
} CheeseMediaMode;
54
 
 
55
 
 
56
 
GType           cheese_fileutil_get_type (void);
57
 
CheeseFileUtil *cheese_fileutil_new (void);
58
 
 
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);
64
 
 
65
 
G_END_DECLS
66
 
 
67
 
#endif /* __CHEESE_FILEUTIL_H__ */