aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-03-31 16:53:36 -0300
committerRobert Tari <robert@tari.in>2021-07-05 02:28:32 +0200
commit30b0ba7facf333209ea60db9f3b5820dc0f4d5f3 (patch)
treebf0e9bd431af493e44fa484229c654d0d71c0873 /include
parent6df38ca1d68d1eb2fed2aca024ea938fb00d306c (diff)
downloadayatana-indicator-datetime-30b0ba7facf333209ea60db9f3b5820dc0f4d5f3.tar.gz
ayatana-indicator-datetime-30b0ba7facf333209ea60db9f3b5820dc0f4d5f3.tar.bz2
ayatana-indicator-datetime-30b0ba7facf333209ea60db9f3b5820dc0f4d5f3.zip
Update code as requested by reviewer.
Diffstat (limited to 'include')
-rw-r--r--include/datetime/engine-eds.h3
-rw-r--r--include/datetime/myself.h9
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();