Libmsi.SummaryInfo¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
database |
||
r/w/co |
update-count |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Libmsi.SummaryInfo(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(database, update_count)¶
- Parameters:
database (
Libmsi.Database
orNone
) – an optionnal associatedLibmsi.Database
update_count (
int
) – number of changes allowed
- Raises:
- Returns:
a
Libmsi.SummaryInfo
orNone
on failure- Return type:
If database is provided, the summary informations will be populated during creation, and the
Libmsi.SummaryInfo.persist
() function will save the properties to it. If database isNone
, you may still populate properties and then save them to a particular database with theLibmsi.SummaryInfo.save
() function.
- get_filetime(prop)¶
- Parameters:
prop (
Libmsi.Property
) – aLibmsi.Property
to get- Raises:
- Returns:
the property value or 0 on failure
- Return type:
- get_int(prop)¶
- Parameters:
prop (
Libmsi.Property
) – aLibmsi.Property
to get- Raises:
- Returns:
the property value or -1 on failure
- Return type:
- get_properties()¶
- Returns:
a new
GLib.Array
with the list of set properties- Return type:
- get_property_type(prop)¶
- Parameters:
prop (
Libmsi.Property
) – aLibmsi.Property
to get- Raises:
- Returns:
the property type associated for prop.
- Return type:
- get_string(prop)¶
- Parameters:
prop (
Libmsi.Property
) – aLibmsi.Property
to get- Raises:
- Returns:
the property value or
None
on failure- Return type:
- persist()¶
- Raises:
- Returns:
True
on success- Return type:
Save summary informations to the associated database.
- save(db)¶
- Parameters:
db (
Libmsi.Database
) – aLibmsi.Database
to save to- Raises:
- Returns:
True
on success- Return type:
Save summary informations to the associated database.
- set_filetime(prop, value)¶
- Parameters:
prop (
Libmsi.Property
) – aLibmsi.Property
to setvalue (
int
) – a value
- Raises:
- Returns:
True
on success- Return type:
Set file time property prop.
- set_int(prop, value)¶
- Parameters:
prop (
Libmsi.Property
) – aLibmsi.Property
to setvalue (
int
) – a value
- Raises:
- Returns:
True
on success- Return type:
Set integer property prop.
- set_string(prop, value)¶
- Parameters:
prop (
Libmsi.Property
) – aLibmsi.Property
to setvalue (
str
) – a string value
- Raises:
- Returns:
True
on success- Return type:
Set string property prop.
Property Details¶
- Libmsi.SummaryInfo.props.database¶
- Name:
database
- Type:
- Default Value:
- Flags:
database
- Libmsi.SummaryInfo.props.update_count¶
- Name:
update-count
- Type:
- Default Value:
0
- Flags:
update-count