| 
    libnick 2025.10.0
    
   A cross-platform base for native Nickvision applications. 
   | 
 
An object to prevent the system from suspending. More...
#include <suspendinhibitor.h>
Public Member Functions | |
| SuspendInhibitor () noexcept | |
| Constructs a SuspendInhibitor.   | |
| SuspendInhibitor (const SuspendInhibitor &other) noexcept | |
| Constructs a SuspendInhibitor via copy.   | |
| SuspendInhibitor (SuspendInhibitor &&other) noexcept | |
| Constructs a SuspendInhibitor via move.   | |
| ~SuspendInhibitor () noexcept | |
| Destructs a SuspendInhibitor.   | |
| bool | isInhibiting () const noexcept | 
| Gets whether or not the system is being inhibited from suspending.   | |
| bool | inhibit () noexcept | 
| Inhibits the system from suspending.   | |
| bool | uninhibit () noexcept | 
| Uninhibits the system from suspending.   | |
| SuspendInhibitor & | operator= (const SuspendInhibitor &other) noexcept | 
| Assigns a SuspendInhibitor via copy.   | |
| SuspendInhibitor & | operator= (SuspendInhibitor &&other) noexcept | 
| Assigns a SuspendInhibitor via move.   | |
An object to prevent the system from suspending.
      
  | 
  noexcept | 
Constructs a SuspendInhibitor.
This will not inhibit the system from suspending until the inhibit() function is called.
      
  | 
  noexcept | 
Constructs a SuspendInhibitor via copy.
| other | The object to copy | 
      
  | 
  noexcept | 
Constructs a SuspendInhibitor via move.
| other | The object to move | 
      
  | 
  noexcept | 
Destructs a SuspendInhibitor.
If the system is being inhibited, it will uninhibit.
      
  | 
  noexcept | 
Inhibits the system from suspending.
      
  | 
  noexcept | 
Gets whether or not the system is being inhibited from suspending.
      
  | 
  noexcept | 
      
  | 
  noexcept | 
      
  | 
  noexcept | 
Uninhibits the system from suspending.