Commit graph

6 commits

Author SHA1 Message Date
Michael Gratton
b8bbe53425 Application, Plugin: Make object conversion methods consistent.
Publicly, get objects for a variant rather than from it since we're
not actually getting the objects from the variant, just looking them
up using the variant as an id.

Internally, use `to_` rather than `get_` when converting between plugin
and engine objects, since its typically just a cast or a lookup to do
so.
2020-08-18 16:32:26 +10:00
Michael Gratton
aff599821a Plugin.EmailStore: Add methods for getting email ids from variants
Implement these in Application.EmailStoreFactory's implementation of
the interface.

This switches the variant format used to `(account_id,email_id)` to
match that used for folders, and so a folder doesn't need to be
specified when showing an email.

This breaks opening email from desktop notifications, but that will be
fixed shortly.
2020-04-20 10:53:27 +10:00
Michael Gratton
544289688a src/client: Fix warnings and errors reported by valadoc 2020-04-08 12:07:05 +10:00
Michael Gratton
8a36587cc0 Plugin.EmailStore: Add email-displayed signal
Ensure the signal is emitted whenever an email in the conversation
viewer is displayed fully (i.e. expanded).
2020-03-30 21:05:00 +11:00
Michael Gratton
88c049e1d0 Plugin.EmailStore: API doc fixes 2020-03-30 21:05:00 +11:00
Michael Gratton
f72b1354f8 Add stable public interfaces for plugins to use
These interfaces provide a stable, public API for plugins that can
provide API stability while the underlying client and engine APIs
change.
2020-03-17 19:23:24 +11:00