GSF Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
Synopsis
GsfInfileZip; GsfInfile * gsf_infile_zip_new (GsfInput *source
,GError **err
); GsfOutfileZip; GsfOutfile * gsf_outfile_zip_new (GsfOutput *sink
,GError **err
); gboolean gsf_outfile_zip_set_compression_method (GsfOutfileZip *zip
,GsfZipCompressionMethod method
);
Object Hierarchy
GObject +----GsfInput +----GsfInfile +----GsfInfileZip
GObject +----GsfOutput +----GsfOutfile +----GsfOutfileZip
Properties
"compression-level" gint : Read "internal-parent" GsfInfileZip* : Write / Construct Only "source" GsfInput* : Read / Write / Construct Only "compression-level" gint : Read / Write / Construct Only "entry-name" gchar* : Read / Write / Construct Only "sink" GsfOutput* : Read / Write / Construct Only
Details
gsf_infile_zip_new ()
GsfInfile * gsf_infile_zip_new (GsfInput *source
,GError **err
);
Opens the root directory of a Zip file.
Note
This adds a reference tosource
.
|
A base GsfInput |
|
place to store a GError if anything goes wrong. [allow-none] |
Returns : |
the new zip file handler |
gsf_outfile_zip_new ()
GsfOutfile * gsf_outfile_zip_new (GsfOutput *sink
,GError **err
);
Creates the root directory of a Zip file and manages the addition of children.
Note
This adds a reference tosink
.
|
a GsfOutput to hold the ZIP file |
|
Location to store error, or NULL ; currently unused. |
Returns : |
the new zip file handler |
gsf_outfile_zip_set_compression_method ()
gboolean gsf_outfile_zip_set_compression_method (GsfOutfileZip *zip
,GsfZipCompressionMethod method
);
Property Details
The "compression-level"
property
"compression-level" gint : Read
Controls the level of compression used for new members.
Allowed values: [0,10]
Default value: 0
The "internal-parent"
property
"internal-parent" GsfInfileZip* : Write / Construct Only
Internal use only.
The "source"
property
"source" GsfInput* : Read / Write / Construct Only
The archive being interpreted.
The "compression-level"
property
"compression-level" gint : Read / Write / Construct Only
The level of compression used, zero meaning none.
Allowed values: [0,10]
Default value: 8
The "entry-name"
property
"entry-name" gchar* : Read / Write / Construct Only
The filename of this member in the archive without path.
Default value: NULL