LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
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 
14 class IEntityManager;
15 
16 namespace 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;
32  ScreensaverProhibitor& operator= (ScreensaverProhibitor&&) = delete;
33 
34  void SetProhibited (bool);
35  void SetProhibitionsEnabled (bool);
36  private:
37  void SendEntity (bool);
38  };
39 }
LC::Util::ScreensaverProhibitor
Definition: screensaverprohibitor.h:18
xpcconfig.h
LC::Util
Definition: icoreproxy.h:33
IEntityManager
Proxy to core entity manager.
Definition: ientitymanager.h:31
UTIL_XPC_API
#define UTIL_XPC_API
Definition: xpcconfig.h:16