aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-03-31 16:53:36 -0300
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:37:39 +0200
commit676b6c35768e707710a7121ed9f71002c6226bd7 (patch)
tree977ef722a17e907a2d79beb33f0581fe43dd16ae /include
parentb13d57194646736652610fd68793aa8f2a260566 (diff)
downloadayatana-indicator-datetime-676b6c35768e707710a7121ed9f71002c6226bd7.tar.gz
ayatana-indicator-datetime-676b6c35768e707710a7121ed9f71002c6226bd7.tar.bz2
ayatana-indicator-datetime-676b6c35768e707710a7121ed9f71002c6226bd7.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();