ReminderWatcher
Object Hierarchy:
Description:
[ CCode ( cname = "EReminderWatcher" , type_id = "e_reminder_watcher_get_type ()" ) ]
[ Version ( since = "3.30" ) ]
public class ReminderWatcher : Object
[ Version ( since = "3.30" ) ]
public class ReminderWatcher : Object
Contains only private data that should be read and manipulated using the functions below.
Namespace: ECal
Package: libecal-2.0
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:
- public ReminderWatcher (SourceRegistry registry)
Creates a new ReminderWatcher, which will use the
registry.
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:triggeredsignal. - public SList<ReminderData>? dup_snoozed ()
- 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
rduntiluntil, which is an absolute time when therdshould be retriggered. - public void timer_elapsed ()
Notifies the
watcherthat the timer previously scheduled with EReminderWatcherClass:EReminderWatcher:schedule_timerelapsed.
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
ittto a string and writes it toinout_buffer, which can hold up tobuffer_sizebytes. - 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