| Top |
| JcatFile * | jcat_file_new () |
| gchar * | jcat_file_to_string () |
| gboolean | jcat_file_import_stream () |
| gboolean | jcat_file_import_file () |
| gboolean | jcat_file_import_json () |
| gboolean | jcat_file_export_stream () |
| gboolean | jcat_file_export_file () |
| gchar * | jcat_file_export_json () |
| GPtrArray * | jcat_file_get_items () |
| JcatItem * | jcat_file_get_item_by_id () |
| JcatItem * | jcat_file_get_item_default () |
| void | jcat_file_add_item () |
| guint32 | jcat_file_get_version_major () |
| guint32 | jcat_file_get_version_minor () |
gchar *
jcat_file_to_string (JcatFile *self);
Converts the JcatFile to a string.
Since: 0.1.0
gboolean jcat_file_import_stream (JcatFile *self,GInputStream *istream,JcatImportFlags flags,GCancellable *cancellable,GError **error);
Imports a compressed Jcat file from a file.
self |
||
istream |
GInputStream |
|
flags |
JcatImportFlags, typically |
|
cancellable |
GCancellable, or |
|
error |
GError, or |
Since: 0.1.0
gboolean jcat_file_import_file (JcatFile *self,GFile *gfile,JcatImportFlags flags,GCancellable *cancellable,GError **error);
Imports a compressed Jcat file from an input stream.
self |
||
gfile |
gfile |
|
flags |
JcatImportFlags, typically |
|
cancellable |
GCancellable, or |
|
error |
GError, or |
Since: 0.1.0
gboolean jcat_file_import_json (JcatFile *self,const gchar *json,JcatImportFlags flags,GError **error);
Imports a Jcat file from raw JSON.
self |
||
json |
JSON data |
|
flags |
JcatImportFlags, typically |
|
error |
GError, or |
Since: 0.1.0
gboolean jcat_file_export_stream (JcatFile *self,GOutputStream *ostream,JcatExportFlags flags,GCancellable *cancellable,GError **error);
Exports a Jcat file to a compressed stream.
self |
||
ostream |
GOutputStream |
|
flags |
a JcatExportFlags, typically |
|
cancellable |
GCancellable, or |
|
error |
GError, or |
Since: 0.1.0
gboolean jcat_file_export_file (JcatFile *self,GFile *gfile,JcatExportFlags flags,GCancellable *cancellable,GError **error);
Exports a Jcat file to a compressed file.
self |
||
gfile |
gfile |
|
flags |
a JcatExportFlags, typically |
|
cancellable |
GCancellable, or |
|
error |
GError, or |
Since: 0.1.0
gchar * jcat_file_export_json (JcatFile *self,JcatExportFlags flags,GError **error);
Exports a Jcat file to raw JSON.
Since: 0.1.0
GPtrArray *
jcat_file_get_items (JcatFile *self);
Returns all the items in the file.
Since: 0.1.0
JcatItem * jcat_file_get_item_by_id (JcatFile *self,const gchar *id,GError **error);
Finds the item with the specified ID, falling back to the ID alias if set.
Since: 0.1.0
JcatItem * jcat_file_get_item_default (JcatFile *self,GError **error);
Finds the default item. If more than one JcatItem exists this function will return with an error.
Since: 0.1.0
void jcat_file_add_item (JcatFile *self,JcatItem *item);
Adds an item to a file.
Since: 0.1.0
guint32
jcat_file_get_version_major (JcatFile *self);
Returns the major version number of the Jcat specification
Since: 0.1.0