aboutsummaryrefslogtreecommitdiff
path: root/src/planner-eds.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-03-09 22:26:26 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-03-09 22:26:26 -0500
commit462e8e6d8e46475ea3222056f65ff40823e9e0bf (patch)
treed6538de2306f6d7a2c6b00117dfaa4dda52abc2f /src/planner-eds.cpp
parent3f4d409f21bbb1f79f149a5ee66dcddaa505ddb1 (diff)
downloadayatana-indicator-datetime-462e8e6d8e46475ea3222056f65ff40823e9e0bf.tar.gz
ayatana-indicator-datetime-462e8e6d8e46475ea3222056f65ff40823e9e0bf.tar.bz2
ayatana-indicator-datetime-462e8e6d8e46475ea3222056f65ff40823e9e0bf.zip
don't connect to EDS when running in the greeter.
Diffstat (limited to 'src/planner-eds.cpp')
-rw-r--r--src/planner-eds.cpp67
1 files changed, 0 insertions, 67 deletions
diff --git a/src/planner-eds.cpp b/src/planner-eds.cpp
deleted file mode 100644
index f3f28ee..0000000
--- a/src/planner-eds.cpp
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Copyright 2013 Canonical Ltd.
- *
- * This program is free software: you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 3, as published
- * by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranties of
- * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- * Authors:
- * Charles Kerr <charles.kerr@canonical.com>
- */
-
-#include <datetime/planner-eds.h>
-#include <datetime/engine-eds.h>
-
-namespace unity {
-namespace indicator {
-namespace datetime {
-
-/***
-****
-***/
-
-EdsPlanner::EdsPlanner(const std::shared_ptr<EdsEngine>& engine,
- const std::shared_ptr<Timezone>& timezone):
- m_engine(engine),
- m_timezone(timezone)
-{
- m_engine->changed().connect([this](){
- g_debug("EdsPlanner %p rebuilding soon because EdsEngine %p emitted 'changed' signal%p", this, m_engine.get());
- rebuild_soon();
- });
-}
-
-EdsPlanner::~EdsPlanner() =default;
-
-void EdsPlanner::rebuild_now()
-{
- const auto& r = range().get();
-
- auto on_appointments_fetched = [this](const std::vector<Appointment>& a){
- g_debug("EdsPlanner %p got %zu appointments", this, a.size());
- m_appointments.set(a);
- };
-
- m_engine->get_appointments(r.first, r.second, *m_timezone.get(), on_appointments_fetched);
-}
-
-core::Property<std::vector<Appointment>>& EdsPlanner::appointments()
-{
- return m_appointments;
-}
-
-/***
-****
-***/
-
-} // namespace datetime
-} // namespace indicator
-} // namespace unity