libyui
3.0.10
|
#include <YMacro.h>
Static Public Member Functions | |
static void | setRecorder (YMacroRecorder *recorder) |
static void | setPlayer (YMacroPlayer *player) |
static void | record (const std::string ¯oFile) |
static void | endRecording () |
static bool | recording () |
static void | play (const std::string ¯oFile) |
static void | playNextBlock () |
static bool | playing () |
static YMacroRecorder * | recorder () |
static YMacroPlayer * | player () |
static void | deleteRecorder () |
static void | deletePlayer () |
Simple access to macro recording and playing.
This class stores an instance of a macro recorder and a macro player. Since both YMacroRecorder and YMacroPlayer are abstract base classes, derived classes from either of them have to be instantiated and set (setRecorder(), setPlayer()) from the outside for anything to happen. Until that point, none of the macro operations here do anything (but also don't throw any error or exception).
void YMacro::deletePlayer | ( | ) | [static] |
void YMacro::deleteRecorder | ( | ) | [static] |
void YMacro::endRecording | ( | ) | [static] |
void YMacro::play | ( | const std::string & | macroFile | ) | [static] |
static YMacroPlayer* YMacro::player | ( | ) | [inline, static] |
bool YMacro::playing | ( | ) | [static] |
void YMacro::playNextBlock | ( | ) | [static] |
void YMacro::record | ( | const std::string & | macroFile | ) | [static] |
static YMacroRecorder* YMacro::recorder | ( | ) | [inline, static] |
bool YMacro::recording | ( | ) | [static] |
void YMacro::setPlayer | ( | YMacroPlayer * | player | ) | [static] |
Set a macro player.
This needs to be done from the outside since YMacroRecorder is an abstract base class, i.e., it needs to be derived to be instantiated.
Definition at line 43 of file YMacro.cc.
void YMacro::setRecorder | ( | YMacroRecorder * | recorder | ) | [static] |
Set a macro recorder.
This needs to be done from the outside since YMacroRecorder is an abstract base class, i.e., it needs to be derived to be instantiated.
Definition at line 34 of file YMacro.cc.