libyui  3.0.10
YMacro Class Reference

#include <YMacro.h>

List of all members.

Static Public Member Functions

static void setRecorder (YMacroRecorder *recorder)
static void setPlayer (YMacroPlayer *player)
static void record (const std::string &macroFile)
static void endRecording ()
static bool recording ()
static void play (const std::string &macroFile)
static void playNextBlock ()
static bool playing ()
static YMacroRecorderrecorder ()
static YMacroPlayerplayer ()
static void deleteRecorder ()
static void deletePlayer ()

Detailed Description

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).

Definition at line 44 of file YMacro.h.


Member Function Documentation

void YMacro::deletePlayer ( ) [static]

Delete the current macro player if there is one.

Definition at line 105 of file YMacro.cc.

void YMacro::deleteRecorder ( ) [static]

Delete the current macro recorder if there is one.

Definition at line 98 of file YMacro.cc.

void YMacro::endRecording ( ) [static]

End macro recording.

Definition at line 59 of file YMacro.cc.

Here is the call graph for this function:

void YMacro::play ( const std::string &  macroFile) [static]

Play a macro from the specified macro file.

Definition at line 75 of file YMacro.cc.

Here is the call graph for this function:

static YMacroPlayer* YMacro::player ( ) [inline, static]

Return the current macro player or 0 if there is none.

Definition at line 106 of file YMacro.h.

bool YMacro::playing ( ) [static]

Return 'true' if a macro is currently being played.

Definition at line 89 of file YMacro.cc.

Here is the call graph for this function:

void YMacro::playNextBlock ( ) [static]

Play the next block from the current macro, if there is one playing.

Definition at line 82 of file YMacro.cc.

Here is the call graph for this function:

void YMacro::record ( const std::string &  macroFile) [static]

Record a macro to the specified macro file.

Definition at line 52 of file YMacro.cc.

Here is the call graph for this function:

static YMacroRecorder* YMacro::recorder ( ) [inline, static]

Return the current macro recorder or 0 if there is none.

Definition at line 101 of file YMacro.h.

bool YMacro::recording ( ) [static]

Return 'true' if a macro is currently being recorded.

Definition at line 66 of file YMacro.cc.

Here is the call graph for this function:

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Friends