LeechCraft 0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
screensaverprohibitor.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11#include <QString>
12#include "xpcconfig.h"
13
14class IEntityManager;
15
16namespace LC::Util
17{
19 {
20 bool Enabled_ = true;
21 bool Prohibited_ = false;
22
23 IEntityManager * const IEM_;
24 const QString ContextID_;
25 public:
28
31 ScreensaverProhibitor& operator= (const ScreensaverProhibitor&) = delete;
33
34 void SetProhibited (bool);
35 void SetProhibitionsEnabled (bool);
36 private:
37 void SendEntity (bool);
38 };
39}
Proxy to core entity manager.
ScreensaverProhibitor(const ScreensaverProhibitor &)=delete
ScreensaverProhibitor(ScreensaverProhibitor &&)=delete
#define UTIL_XPC_API
Definition xpcconfig.h:16