File indexing completed on 2024-12-08 05:15:27

0001 /**
0002  * SPDX-FileCopyrightText: 2019 Nicolas Fella <nicolas.fella@gmx.de>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  */
0006 
0007 #pragma once
0008 
0009 #include <QObject>
0010 
0011 class Formatter : public QObject
0012 {
0013     Q_OBJECT
0014 
0015 public:
0016     Q_INVOKABLE QString formatDuration(int seconds);
0017     Q_INVOKABLE QString formatTime(const QDateTime &time);
0018 };