Top | ![]() |
![]() |
![]() |
![]() |
EntangleCameraFile * | entangle_camera_file_new () |
const char * | entangle_camera_file_get_folder () |
const char * | entangle_camera_file_get_name () |
gboolean | entangle_camera_file_save_path () |
gboolean | entangle_camera_file_save_uri () |
GByteArray * | entangle_camera_file_get_data () |
void | entangle_camera_file_set_data () |
const gchar * | entangle_camera_file_get_mimetype () |
void | entangle_camera_file_set_mimetype () |
EntangleCameraFile * entangle_camera_file_new (const char *folder
,const char *name
);
const char *
entangle_camera_file_get_folder (EntangleCameraFile *file
);
Get the path of the folder on the camera which stores the file
const char *
entangle_camera_file_get_name (EntangleCameraFile *file
);
Gets the name of the camera file, without any folder component
gboolean entangle_camera_file_save_path (EntangleCameraFile *file
,const char *localpath
,GError **err
);
Saves the content of the camera file to the local
filesystem path identified by localpath
gboolean entangle_camera_file_save_uri (EntangleCameraFile *file
,const char *uri
,GError **err
);
Saves the content of the camera file to the virtual
filesystem location identified by uri
. uri
can be
any scheme for which a GVFS handler is present.
GByteArray *
entangle_camera_file_get_data (EntangleCameraFile *file
);
Get the raw data associated with the camera file
void entangle_camera_file_set_data (EntangleCameraFile *file
,GByteArray *data
);
Set the raw data for the camera file. If there was pre-existing data
set this will be released. Passing NULL for data
will clear the
data completely. The contents of data
will not be copied, instead a
reference will be acquired. Thus any further changes to data
by the
caller will affect this object
const gchar *
entangle_camera_file_get_mimetype (EntangleCameraFile *file
);
Get the mimetype of the camera file, as a string
void entangle_camera_file_set_mimetype (EntangleCameraFile *file
,const gchar *mimetype
);
Set the mimetype of the data associated with the file.
This replaces any previously set mime type. Passing in
NULL for mimetype
will clear the mime type information.
“folder”
property“folder” gchar *
Folder name on the camera.
Flags: Read / Write / Construct Only
Default value: NULL
“mimetype”
property“mimetype” gchar *
File mimetype on the camera.
Flags: Read / Write
Default value: NULL
“name”
property“name” gchar *
File name on the camera.
Flags: Read / Write / Construct Only
Default value: NULL