3
* Copyright (C) 2002 Zsolt Rizsanyi <rizsanyi@myrealbox.com>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
12
#ifndef __DPMS_CONTROL_H__
13
#define __DPMS_CONTROL_H__
18
* You can call the static methods of this class directly
19
* from within another class to control the DPMS or
20
* to get its current status.
27
* Static accessor method to get the status of the dpms.
28
* Returns true if DPMS is currently enabled,
29
* false if it is disabled.
31
static bool getDpmsStatus();
34
* Static accessor method to enable or disable DPMS. Returns
35
* true if the operation was successful, false if it was not.
37
static bool enableDpms(bool enable = true);
40
* Disables DPMS. Calls enableDpms(false).
42
static bool disableDpms();