ReminderWatcher
Object Hierarchy:
ECal.ReminderWatcher
ECal.ReminderWatcher
ECal.ReminderWatcher
GLib.Object
GLib.Object
GLib.Object->ECal.ReminderWatcher
Description:
[ CCode ( cname = "EReminderWatcher" , type_id = "e_reminder_watcher_get_type ()" ) ] [ Version ( since = "3.30" ) ]public class ReminderWatcher : Object
Contains only private data that should be read and manipulated using the functions below.
Content:
Properties:
public Timezone default_zone { owned get ; set ; }
An Timezone to be used as the default time
zone.
public SourceRegistry registry { owned get ; construct ; }
The SourceRegistry which manages
Source instances.
public bool timers_enabled { get ; set ; }
Whether timers are enabled for the ReminderWatcher
.
Creation methods:
Methods:
public virtual async void cal_client_connect (Source source, ClientSourceType source_type, uint32 wait_for_connected_seconds, Cancellable ? cancellable)
public string describe_data (ReminderData rd, uint32 flags)
Returns a new string with a text description of the rd
.
public async bool dismiss (ReminderData rd, Cancellable ? cancellable) throws Error
Asynchronously dismiss single reminder in the past or snoozed
reminders.
public async bool dismiss_all (Cancellable ? cancellable) throws Error
Asynchronously dismiss all past reminders.
public bool dismiss_all_sync (Cancellable ? cancellable = null ) throws Error
Synchronously dismiss all past reminders.
public bool dismiss_sync (ReminderData rd, Cancellable ? cancellable = null ) throws Error
Synchronously dismiss single reminder in the past or snoozed
reminders.
public Timezone dup_default_zone ()
public SList <ReminderData >? dup_past ()
Gathers a SList of all past reminders which
had not been removed after EReminderWatcher:EReminderWatcher:triggered
signal.
public SList <ReminderData >? dup_snoozed ()
Gathers a SList of currently snoozed
reminder with snooze .
public unowned SourceRegistry get_registry ()
public bool get_timers_enabled ()
public Client ? ref_opened_client (string source_uid)
public virtual void schedule_timer (int64 at_time)
public void set_default_zone (Timezone ? zone)
Sets the default zone for the this .
public void set_timers_enabled (bool enabled)
The this can be used both for
scheduling the timers for the reminders and respond to them through the "triggered" signal, or only to listen for changes on the past
reminders.
public void snooze (ReminderData rd, int64 until)
Snoozes rd
until until
, which is an absolute
time when the rd
should be retriggered.
public void timer_elapsed ()
Notifies the watcher
that the timer previously scheduled
with EReminderWatcherClass:EReminderWatcher:schedule_timer
elapsed.
Signals:
public virtual signal void changed ()
Signal is emitted when the list of past or snoozed reminders changes.
public virtual signal void format_time (ReminderData rd, Time itt, ref void * inout_buffer, int buffer_size)
Formats time itt
to a string and writes it to
inout_buffer
, which can hold up to buffer_size
bytes.
public signal void triggered (SList <ReminderData > reminders, bool snoozed)
Signal is emitted when any reminder is either overdue or triggered.
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