File indexing completed on 2024-05-12 17:21:23

0001 /*
0002  * SPDX-FileCopyrightText: 2020 Jonah BrĂ¼chert <jbb@kaidan.im>
0003  *
0004  * SPDX-License-Identifier: GPL-3.0-or-later
0005  */
0006 
0007 #pragma once
0008 
0009 #include <QObject>
0010 
0011 class Utils : public QObject
0012 {
0013     Q_OBJECT
0014 
0015 public:
0016     explicit Utils(QObject *parent = nullptr);
0017 
0018     Q_INVOKABLE static QString formatDateTime(const QString &time);
0019     Q_INVOKABLE static QString formatTime(int time);
0020     Q_INVOKABLE static QString formatDuration(int duration);
0021 };