Move source files to /src

This commit is contained in:
Floris Bos 2022-02-14 10:06:21 +01:00
parent 4daff1ba79
commit 033ff07abf
2685 changed files with 9 additions and 7 deletions

33
src/powersaveblocker.h Normal file
View file

@ -0,0 +1,33 @@
#ifndef POWERSAVEBLOCKER_H
#define POWERSAVEBLOCKER_H
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright (C) 2020 Raspberry Pi Ltd
*/
#include <QObject>
#ifdef Q_OS_WIN
#include <windows.h>
#endif
class PowerSaveBlocker : public QObject
{
Q_OBJECT
public:
explicit PowerSaveBlocker(QObject *parent = nullptr);
virtual ~PowerSaveBlocker();
void applyBlock(const QString &reason);
void removeBlock();
signals:
protected:
bool _stayingAwake;
#ifdef Q_OS_WIN
HANDLE _powerRequest;
#endif
};
#endif // POWERSAVEBLOCKER_H