GCab.File – libgcab-1.0 Reference Manual
Packages
libgcab-1.0
GCab
File
bytes
file
name
File
File.with_bytes
File.with_file
get_attributes
get_bytes
get_date
get_date_time
get_extract_name
get_file
get_name
get_size
set_attributes
set_bytes
set_date
set_date_time
set_extract_name
File
Object Hierarchy:
Description:
[
CCode
( type_id =
"gcab_file_get_type ()"
) ]
public
class
File
:
Object
An opaque object, referencing a file in a Cabinet.
Namespace:
GCab
Package:
libgcab-1.0
Content:
Properties:
public
Bytes
bytes
{
get
;
set
; }
public
File
file
{
owned
get
;
set
; }
public
string
name
{
owned
get
;
set
; }
Creation methods:
protected
File
()
public
File.with_bytes
(
string
name,
Bytes
bytes)
Create a
File
from a given
Bytes
.
public
File.with_file
(
string
name,
File
file)
Create a
File
from a given
File
, to be added to a
Cabinet
for archive creation.
Methods:
public
uint32
get_attributes
()
Get the file attributes.
public
unowned
Bytes
get_bytes
()
Get the
File
associated with
this
.
public
bool
get_date
(
TimeVal
result)
Get the file date, in
result
.
public
DateTime
get_date_time
()
Gets the file date and returns it as a
DateTime
.
public
unowned
string
?
get_extract_name
()
Get the file name to use for extraction, or
null
.
public
unowned
File
get_file
()
If the cabinet is being created, get the
File
associated with
this
.
public
unowned
string
get_name
()
Get the file name within the cabinet.
public
uint32
get_size
()
Get the file size.
public
void
set_attributes
(
uint32
attr)
Set the file attributes.
public
void
set_bytes
(
Bytes
bytes)
Replace the
Bytes
associated with
self
.
public
void
set_date
(
TimeVal
tv)
Sets the file modification date, instead of the value provided by the GFile.
public
void
set_date_time
(
DateTime
dt)
Sets the file modification date (instead of the date provided by the GFile)
public
void
set_extract_name
(
string
? name)
Sets the file name to use for extraction, instead of the name provided by the Cabinet.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref