Zeitgeist.Event

g GObject.Object GObject.Object Zeitgeist.Event Zeitgeist.Event GObject.Object->Zeitgeist.Event

Subclasses:None

Methods

Inherited:GObject.Object (37)
Structs:GObject.ObjectClass (5)
class from_variant (event_variant)
class new ()
  add_subject (subject)
  debug_print ()
  get_actor ()
  get_id ()
  get_interpretation ()
  get_manifestation ()
  get_origin ()
  get_payload ()
  get_subject (index)
  get_subjects ()
  get_timestamp ()
  matches_template (template_event)
  num_subjects ()
  set_actor (value)
  set_actor_from_app_info (info)
  set_id (value)
  set_interpretation (value)
  set_manifestation (value)
  set_origin (value)
  set_payload (value)
  set_subjects (value)
  set_timestamp (value)
  take_subject (subject)
  to_variant ()

Virtual Methods

Inherited:GObject.Object (7)

Properties

Name Type Flags Short Description
actor str r/w actor
id int r/w id
interpretation str r/w interpretation
manifestation str r/w manifestation
origin str r/w origin
payload GLib.ByteArray r/w payload
subjects GLib.PtrArray r/w subjects
timestamp int r/w timestamp

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)
Name Type Access Description
parent_instance GObject.Object r  

Class Details

class Zeitgeist.Event(**kwargs)
Bases:GObject.Object
Abstract:No
Structure:Zeitgeist.EventClass
classmethod from_variant(event_variant)
Parameters:event_variant (GLib.Variant) –
Raises:GLib.Error
Return type:Zeitgeist.Event
classmethod new()
Return type:Zeitgeist.Event
add_subject(subject)
Parameters:subject (Zeitgeist.Subject) –
debug_print()
get_actor()
Return type:str
get_id()
Return type:int
get_interpretation()
Return type:str
get_manifestation()
Return type:str
get_origin()
Return type:str
get_payload()
Return type:GLib.ByteArray
get_subject(index)
Parameters:index (int) –
Return type:Zeitgeist.Subject
get_subjects()
Return type:[Zeitgeist.Subject]
get_timestamp()
Return type:int
matches_template(template_event)
Parameters:template_event (Zeitgeist.Event) –
Return type:bool
num_subjects()
Return type:int
set_actor(value)
Parameters:value (str or None) –
set_actor_from_app_info(info)
Parameters:info (Gio.AppInfo) –
set_id(value)
Parameters:value (int) –
set_interpretation(value)
Parameters:value (str or None) –
set_manifestation(value)
Parameters:value (str or None) –
set_origin(value)
Parameters:value (str or None) –
set_payload(value)
Parameters:value (GLib.ByteArray or None) –
set_subjects(value)
Parameters:value ([Zeitgeist.Subject]) –
set_timestamp(value)
Parameters:value (int) –
take_subject(subject)
Parameters:subject (Zeitgeist.Subject) –
to_variant()
Return type:GLib.Variant

Property Details

Zeitgeist.Event.props.actor
Name:actor
Type:str
Default Value:None
Flags:READABLE, WRITABLE

actor

Zeitgeist.Event.props.id
Name:id
Type:int
Default Value:0
Flags:READABLE, WRITABLE

id

Zeitgeist.Event.props.interpretation
Name:interpretation
Type:str
Default Value:None
Flags:READABLE, WRITABLE

interpretation

Zeitgeist.Event.props.manifestation
Name:manifestation
Type:str
Default Value:None
Flags:READABLE, WRITABLE

manifestation

Zeitgeist.Event.props.origin
Name:origin
Type:str
Default Value:None
Flags:READABLE, WRITABLE

origin

Zeitgeist.Event.props.payload
Name:payload
Type:GLib.ByteArray
Default Value:None
Flags:READABLE, WRITABLE

payload

Zeitgeist.Event.props.subjects
Name:subjects
Type:GLib.PtrArray
Default Value:None
Flags:READABLE, WRITABLE

subjects

Zeitgeist.Event.props.timestamp
Name:timestamp
Type:int
Default Value:0
Flags:READABLE, WRITABLE

timestamp