diff options
Diffstat (limited to 'include/datetime')
-rw-r--r-- | include/datetime/engine-eds.h | 3 | ||||
-rw-r--r-- | include/datetime/myself.h | 9 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/datetime/engine-eds.h b/include/datetime/engine-eds.h index 0b854e5..96b0f76 100644 --- a/include/datetime/engine-eds.h +++ b/include/datetime/engine-eds.h @@ -47,8 +47,7 @@ class Myself; class EdsEngine: public Engine { public: - EdsEngine(); - explicit EdsEngine(const std::unique_ptr<Myself> &myself); + EdsEngine(const std::shared_ptr<Myself> &myself); ~EdsEngine(); void get_appointments(const DateTime& begin, diff --git a/include/datetime/myself.h b/include/datetime/myself.h index c381780..452fa53 100644 --- a/include/datetime/myself.h +++ b/include/datetime/myself.h @@ -20,13 +20,14 @@ #ifndef INDICATOR_DATETIME_MYSELF_H #define INDICATOR_DATETIME_MYSELF_H -#include <libaccounts-glib.h> - #include <core/property.h> #include <string> #include <vector> #include <memory.h> +#include <glib.h> + +typedef struct _AgManager AgManager; namespace ayatana { namespace indicator { @@ -37,7 +38,7 @@ class Myself public: Myself(); - core::Property<std::vector<std::string>>& emails() + const core::Property<std::set<std::string>>& emails() { return m_emails; } @@ -46,7 +47,7 @@ public: private: std::shared_ptr<AgManager> m_accounts_manager; - core::Property<std::vector<std::string> > m_emails; + core::Property<std::set<std::string> > m_emails; static void on_accounts_changed(AgManager*, guint, Myself*); void reloadEmails(); |