File indexing completed on 2024-05-12 16:21:17
0001 // SPDX-FileCopyrightText: 2021 Jonah BrĂ¼chert <jbb@kaidan.im> 0002 // 0003 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0004 0005 #pragma once 0006 0007 #include <QObject> 0008 0009 #include <KFormat> 0010 0011 class PlayerUtils : public QObject 0012 { 0013 Q_OBJECT 0014 0015 public: 0016 explicit PlayerUtils(QObject *parent = nullptr); 0017 0018 Q_INVOKABLE QString formatTimestamp(quint64 stamp); 0019 Q_INVOKABLE float convertVolume(float volume); 0020 0021 private: 0022 KFormat m_format; 0023 }; 0024