1
0
Fork 0
VideoPlayer/src/utils.hpp

33 lines
715 B
C++
Raw Normal View History

#ifndef UTILS_H
#define UTILS_H
2020-04-26 01:05:09 +01:00
#include <QObject>
#include <QString>
#include <QWindow>
namespace Utils {
Q_NAMESPACE
2020-05-06 12:43:01 +01:00
void SetDPMS(bool on);
void SetScreensaver(WId wid, bool on);
void AlwaysOnTop(WId wid, bool on);
QString
createTimestamp(int seconds);
2020-05-06 12:43:01 +01:00
void launchAboutQt();
void updateAppImage();
}
2020-05-06 12:43:01 +01:00
class UtilsClass : public QObject {
Q_OBJECT
public slots:
2020-05-06 12:43:01 +01:00
void SetDPMS(bool on) { Utils::SetDPMS(on); };
void AlwaysOnTop(WId wid, bool on) { Utils::AlwaysOnTop(wid, on); };
void launchAboutQt() { Utils::launchAboutQt(); };
void updateAppImage() { Utils::updateAppImage(); };
2020-05-05 15:28:04 +01:00
2020-05-06 12:43:01 +01:00
QString createTimestamp(int seconds)
{
return Utils::createTimestamp(seconds);
};
};
#endif