barrier/synergy/IScreenSaver.h
crs 504bfa2def checkpoint. adding screen saver support. only on X so far
and untested.  also some known problems:  not detecting an
xscreensaver started after us and not detecting built-in
screen saver activation (not sure if we can without using
ugly extensions).
2002-06-22 19:20:21 +00:00

31 lines
823 B
C++

#ifndef ISCREENSAVER_H
#define ISCREENSAVER_H
#include "IInterface.h"
class IScreenSaver : public IInterface {
public:
// note -- the c'tor/d'tor must *not* enable/disable the screen saver
// manipulators
// enable/disable the screen saver. enable() should restore 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;
virtual void disable() = 0;
// activate/deactivate (i.e. show/hide) the screen saver.
// deactivate() also resets the screen saver timer.
virtual void activate() = 0;
virtual void deactivate() = 0;
// accessors
// returns true iff the screen saver is active
virtual bool isActive() const = 0;
};
#endif