2 * Copyright (C) 2013 - Canonical Ltd.
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License, as
6 * published by the Free Software Foundation; either version 2.1 or 3.0
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranties of
11 * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
12 * PURPOSE. See the applicable version of the GNU Lesser General Public
13 * License for more details.
15 * You should have received a copy of both the GNU Lesser General Public
16 * License along with this program. If not, see <http://www.gnu.org/licenses/>
18 * Authored by: Daniel d'Andrada <daniel.dandrada@canonical.com>
21#ifndef UBUNTUGESTURES_TIMESOURCE_H
22#define UBUNTUGESTURES_TIMESOURCE_H
24#include "UbuntuGesturesGlobal.h"
25#include <QSharedPointer>
27namespace UbuntuGestures {
29 Interface for a time source.
31class UBUNTUGESTURES_EXPORT TimeSource {
33 virtual ~TimeSource() {}
34 /* Returns the current time in milliseconds since some reference time in the past. */
35 virtual qint64 msecsSinceReference() = 0;
37typedef QSharedPointer<TimeSource> SharedTimeSource;
40 Implementation of a time source
42class RealTimeSourcePrivate;
43class RealTimeSource : public TimeSource {
46 virtual ~RealTimeSource();
47 qint64 msecsSinceReference() override;
49 RealTimeSourcePrivate *d;
52} // namespace UbuntuGestures
54#endif // UBUNTUGESTURES_TIMESOURCE_H
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list