| 1 | /* |
| 2 | * Copyright 2015 Canonical Ltd. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU Lesser General Public License as published by |
| 6 | * the Free Software Foundation; version 3. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU Lesser General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU Lesser General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | * |
| 16 | * Authored by: Daniel d'Andrada <[email protected]> |
| 17 | */ |
| 18 | |
| 19 | #include "timesource_p.h"cxx . . $ `<file>/src/LomiriGestures/timesource_p.h`/ |
| 20 | |
| 21 | #include <QtCore/QElapsedTimer> |
| 22 | |
| 23 | UG_NAMESPACE_BEGINcxx . . $ `src/LomiriGestures/lomirigesturesglobal.h:30:9`! |
| 24 | |
| 25 | class RealTimeSourcePrivatecxx . . $ LomiriGestures/RealTimeSourcePrivate# { |
| 26 | public: |
| 27 | QElapsedTimercxx . . $ QElapsedTimer# timercxx . . $ LomiriGestures/RealTimeSourcePrivate#timer.; |
| 28 | }; |
| 29 | |
| 30 | RealTimeSourcecxx . . $ LomiriGestures/RealTimeSource#::RealTimeSourcecxx . . $ LomiriGestures/RealTimeSource#RealTimeSource(49f6e7a06ebc5aa8).() |
| 31 | : UG_PREPEND_NAMESPACEcxx . . $ `src/LomiriGestures/lomirigesturesglobal.h:32:9`!(TimeSource()) |
| 32 | , dcxx . . $ LomiriGestures/RealTimeSource#d.(new RealTimeSourcePrivatecxx . . $ LomiriGestures/RealTimeSourcePrivate#) |
| 33 | { |
| 34 | dcxx . . $ LomiriGestures/RealTimeSource#d.->timercxx . . $ LomiriGestures/RealTimeSourcePrivate#timer..startcxx . . $ QElapsedTimer#start(ced63f7c635d850d).(); |
| 35 | } |
| 36 | |
| 37 | RealTimeSourcecxx . . $ LomiriGestures/RealTimeSource#::~cxx . . $ LomiriGestures/RealTimeSource#`~RealTimeSource`(ced63f7c635d850d).RealTimeSourcecxx . . $ LomiriGestures/RealTimeSource#() |
| 38 | { |
| 39 | delete dcxx . . $ LomiriGestures/RealTimeSource#d.; |
| 40 | } |
| 41 | |
| 42 | qint64cxx . . $ qint64# RealTimeSourcecxx . . $ LomiriGestures/RealTimeSource#::msecsSinceReferencecxx . . $ LomiriGestures/RealTimeSource#msecsSinceReference(a5d9f2bf8849668d).() |
| 43 | { |
| 44 | return dcxx . . $ LomiriGestures/RealTimeSource#d.->timercxx . . $ LomiriGestures/RealTimeSourcePrivate#timer..elapsedcxx . . $ QElapsedTimer#elapsed(6b0412d51016192f).(); |
| 45 | } |
| 46 | |
| 47 | UG_NAMESPACE_ENDcxx . . $ `src/LomiriGestures/lomirigesturesglobal.h:31:9`! |