Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

YMacroRecorder Class Reference

#include <YMacroRecorder.h>

List of all members.

Public Member Functions

 YMacroRecorder (const string &macroFileName)
virtual ~YMacroRecorder ()
void recordUserInput (const YCPValue &input)
void recordWidgetProperty (YWidget *widget, const char *propertyName)
void recordMakeScreenShot (bool enabled=false, const char *filename=0)
void beginBlock ()
void endBlock ()

Protected Member Functions

void openMacroFile (const string &macroFileName)
void closeMacroFile ()
void writeMacroFileHeader ()
void writeMacroFileFooter ()

Protected Attributes

FILE * _macroFile
int _screenShotCount


Constructor & Destructor Documentation

YMacroRecorder::YMacroRecorder const string &  macroFileName  ) 
 

Constructor

YMacroRecorder::~YMacroRecorder  )  [virtual]
 

Destructor


Member Function Documentation

void YMacroRecorder::beginBlock  ) 
 

Begin a macro block that will be executed as a whole.

void YMacroRecorder::closeMacroFile  )  [protected]
 

Close the internally used macro file.

void YMacroRecorder::endBlock  ) 
 

End a macro block that will be executed as a whole.

void YMacroRecorder::openMacroFile const string &  macroFileName  )  [protected]
 

Open the internally used macro file for writing.

On error a message is issued to the log file. All write functions check the internally used macro file prior to using it, so it is perfectly safe to use them even if the initial open failed.

void YMacroRecorder::recordMakeScreenShot bool  enabled = false,
const char *  filename = 0
 

Record a "UI::MakeScreenShot()" statement.

If 'enabled' is 'false', this statement will be commented out. If no file name is given, a default file name (with auto-increment) will be used.

void YMacroRecorder::recordUserInput const YCPValue input  ) 
 

Record one user input.

void YMacroRecorder::recordWidgetProperty YWidget widget,
const char *  propertyName
 

Record one widget property.

void YMacroRecorder::writeMacroFileFooter  )  [protected]
 

Write a standardized macro file footer.

void YMacroRecorder::writeMacroFileHeader  )  [protected]
 

Write a standardized macro file header.


Member Data Documentation

FILE* YMacroRecorder::_macroFile [protected]
 

The internally used macro file; valid if non-null.

int YMacroRecorder::_screenShotCount [protected]
 

A counter for making screen shots.


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 18:15:25 2007 for yast2-core by doxygen 1.3.6