~charlesk/indicator-datetime/alarms

« back to all changes in this revision

Viewing changes to include/datetime/snap.h

  • Committer: Charles Kerr
  • Date: 2014-02-03 06:42:57 UTC
  • Revision ID: charles.kerr@canonical.com-20140203064257-4dujxmjiceiw30tl
add header file which should have been bzr add'ed last commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2014 Canonical Ltd.
 
3
 *
 
4
 * This program is free software: you can redistribute it and/or modify it
 
5
 * under the terms of the GNU General Public License version 3, as published
 
6
 * by the Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful, but
 
9
 * WITHOUT ANY WARRANTY; without even the implied warranties of
 
10
 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
 
11
 * PURPOSE.  See the GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License along
 
14
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 *
 
16
 * Authors:
 
17
 *   Charles Kerr <charles.kerr@canonical.com>
 
18
 */
 
19
 
 
20
#ifndef INDICATOR_DATETIME_SNAP_H
 
21
#define INDICATOR_DATETIME_SNAP_H
 
22
 
 
23
#include <datetime/appointment.h>
 
24
#include <datetime/clock.h>
 
25
#include <datetime/formatter.h>
 
26
 
 
27
#include <memory>
 
28
 
 
29
namespace unity {
 
30
namespace indicator {
 
31
namespace datetime {
 
32
 
 
33
/**
 
34
 * \brief Pops up Snap Decisions for appointments
 
35
 */
 
36
class Snap
 
37
{
 
38
public:
 
39
    Snap(const std::shared_ptr<Clock>&);
 
40
    virtual ~Snap() =default;
 
41
    void operator()(const Appointment&);
 
42
 
 
43
private:
 
44
    PhoneFormatter m_formatter;
 
45
};
 
46
 
 
47
} // namespace datetime
 
48
} // namespace indicator
 
49
} // namespace unity
 
50
 
 
51
#endif // INDICATOR_DATETIME_SNAP_H