Cheese.FileUtil

g Cheese.FileUtil Cheese.FileUtil GObject.Object GObject.Object GObject.Object->Cheese.FileUtil

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_new_media_filename (mode)

get_photo_path ()

get_video_path ()

reset_burst ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

unused

object

r

Class Details

class Cheese.FileUtil(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Cheese.FileUtilClass

Use the accessor functions below.

classmethod new()
Returns:

a new Cheese.FileUtil

Return type:

Cheese.FileUtil

Create a new Cheese.FileUtil object.

get_new_media_filename(mode)
Parameters:

mode (Cheese.MediaMode) – the type of media to create a filename for

Returns:

a new filename

Return type:

str

Creates a filename for one of the three media types: photo, photo burst or video. If a filename for a photo burst image was previously created, this function increments the burst count automatically. To start a new burst, first call Cheese.FileUtil.reset_burst().

get_photo_path()
Returns:

the Cheese photo path

Return type:

str

Get the path where Cheese photo files are stored.

get_video_path()
Returns:

the Cheese video path

Return type:

str

Get the path where Cheese video files are stored.

reset_burst()

Resets the burst counter, so that calling Cheese.FileUtil.get_new_media_filename() with a photo burst starts a new burst of photos.