mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-20 01:11:37 +03:00
fee4095624
synergy.cpp and server.cpp into cmd/synergyd as synergyd.cpp. Moved and renamed related files. Moved remaining source files into lib/.... Modified and added makefiles as appropriate. Result is that library files are under lib with each library in its own directory and program files are under cmd with each command in its own directory.
60 lines
1.2 KiB
C++
60 lines
1.2 KiB
C++
#ifndef ISCREENSAVER_H
|
|
#define ISCREENSAVER_H
|
|
|
|
#include "IInterface.h"
|
|
|
|
//! Screen saver interface
|
|
/*!
|
|
This interface defines the methods common to all screen savers.
|
|
*/
|
|
class IScreenSaver : public IInterface {
|
|
public:
|
|
// note -- the c'tor/d'tor must *not* enable/disable the screen saver
|
|
|
|
//! @name manipulators
|
|
//@{
|
|
|
|
//! Enable screen saver
|
|
/*!
|
|
Enable the screen saver, restoring the screen saver settings to
|
|
what they were when disable() was previously called. If disable()
|
|
wasn't previously called then it should keep the current settings
|
|
or use reasonable defaults.
|
|
*/
|
|
virtual void enable() = 0;
|
|
|
|
//! Disable screen saver
|
|
/*!
|
|
Disable the screen saver, saving the old settings for the next
|
|
call to enable().
|
|
*/
|
|
virtual void disable() = 0;
|
|
|
|
//! Activate screen saver
|
|
/*!
|
|
Activate (i.e. show) the screen saver.
|
|
*/
|
|
virtual void activate() = 0;
|
|
|
|
//! Deactivate screen saver
|
|
/*!
|
|
Deactivate (i.e. hide) the screen saver, reseting the screen saver
|
|
timer.
|
|
*/
|
|
virtual void deactivate() = 0;
|
|
|
|
//@}
|
|
//! @name accessors
|
|
//@{
|
|
|
|
//! Test if screen saver on
|
|
/*!
|
|
Returns true iff the screen saver is currently active (showing).
|
|
*/
|
|
virtual bool isActive() const = 0;
|
|
|
|
//@}
|
|
};
|
|
|
|
#endif
|