aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-02-03 00:42:57 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-02-03 00:42:57 -0600
commit8365f5e3a35254b7234ac6f6edc43278cea11279 (patch)
tree7ccc1a8b54bd188dd506bc0b5dc1cab53381d804 /include
parent35850dcd7c95e08b86052d5ac72ca23d00b5180f (diff)
downloadayatana-indicator-datetime-8365f5e3a35254b7234ac6f6edc43278cea11279.tar.gz
ayatana-indicator-datetime-8365f5e3a35254b7234ac6f6edc43278cea11279.tar.bz2
ayatana-indicator-datetime-8365f5e3a35254b7234ac6f6edc43278cea11279.zip
add header file which should have been bzr add'ed last commit
Diffstat (limited to 'include')
-rw-r--r--include/datetime/snap.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/include/datetime/snap.h b/include/datetime/snap.h
new file mode 100644
index 0000000..d6f5aad
--- /dev/null
+++ b/include/datetime/snap.h
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2014 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>
+ */
+
+#ifndef INDICATOR_DATETIME_SNAP_H
+#define INDICATOR_DATETIME_SNAP_H
+
+#include <datetime/appointment.h>
+#include <datetime/clock.h>
+#include <datetime/formatter.h>
+
+#include <memory>
+
+namespace unity {
+namespace indicator {
+namespace datetime {
+
+/**
+ * \brief Pops up Snap Decisions for appointments
+ */
+class Snap
+{
+public:
+ Snap(const std::shared_ptr<Clock>&);
+ virtual ~Snap() =default;
+ void operator()(const Appointment&);
+
+private:
+ PhoneFormatter m_formatter;
+};
+
+} // namespace datetime
+} // namespace indicator
+} // namespace unity
+
+#endif // INDICATOR_DATETIME_SNAP_H