Top |
gboolean | (*GCabFileCallback) () |
guint32 | gcab_file_get_attributes () |
gboolean | gcab_file_get_date () |
void | gcab_file_set_date () |
GDateTime * | gcab_file_get_date_time () |
void | gcab_file_set_date_time () |
const gchar * | gcab_file_get_extract_name () |
GFile * | gcab_file_get_file () |
const gchar * | gcab_file_get_name () |
guint32 | gcab_file_get_size () |
GBytes * | gcab_file_get_bytes () |
GCabFile * | gcab_file_new_with_file () |
GCabFile * | gcab_file_new_with_bytes () |
void | gcab_file_set_extract_name () |
void | gcab_file_set_attributes () |
A GCabFile is a handle to a file inside a Cabinet archive.
It can either be a file that is already within an exisiting
archive, or a file that reference a file on disk that will be used
for a new archive creation. In the later case, gcab_file_get_file()
must return a valid handle.
gboolean (*GCabFileCallback) (GCabFile *file
,gpointer user_data
);
The type used for callback called when processing Cabinet archive files.
guint32
gcab_file_get_attributes (GCabFile *file
);
Get the file attributes.
Since: 0.6
gboolean gcab_file_get_date (GCabFile *file
,GTimeVal *result
);
gcab_file_get_date
is deprecated and should not be used in newly-written code.
Get the file date, in result
.
Since: 0.6
void gcab_file_set_date (GCabFile *file
,const GTimeVal *tv
);
gcab_file_set_date
is deprecated and should not be used in newly-written code.
Sets the file modification date, instead of the value provided by the GFile.
Since: 1.0
GDateTime *
gcab_file_get_date_time (GCabFile *file
);
Gets the file date and returns it as a GDateTime..
Since: 1.4
void gcab_file_set_date_time (GCabFile *file
,GDateTime *dt
);
Sets the file modification date (instead of the date provided by the GFile)
Since: 1.4
const gchar *
gcab_file_get_extract_name (GCabFile *file
);
Get the file name to use for extraction, or NULL
.
GFile *
gcab_file_get_file (GCabFile *file
);
If the cabinet is being created, get the GFile associated with
file
. This must be an exisiting file that can be read, in order to
be added to the archive during cabinet creation.
If file
is from an existing cabinet, the fuction will return
NULL
.
const gchar *
gcab_file_get_name (GCabFile *file
);
Get the file name within the cabinet.
GBytes *
gcab_file_get_bytes (GCabFile *file
);
Get the GFile associated with file
. This will only be non-NULL
if the
GCabFile has been created using gcab_file_new_with_bytes()
.
Since: 1.0
GCabFile * gcab_file_new_with_file (const gchar *name
,GFile *file
);
Create a GCabFile from a given GFile, to be added to a GCabCabinet for archive creation.
GCabFile * gcab_file_new_with_bytes (const gchar *name
,GBytes *bytes
);
Create a GCabFile from a given GBytes.
If this file is to be added to an archive you should also probably use
gcab_file_set_date()
and gcab_file_set_attributes()
to set sensible values.
Since: 1.0
void gcab_file_set_extract_name (GCabFile *file
,const gchar *name
);
Sets the file name to use for extraction, instead of the name provided by the Cabinet.