#include <YMacroRecorder.h>
Public Member Functions | |
YMacroRecorder (const string ¯oFileName) | |
virtual | ~YMacroRecorder () |
void | recordUserInput (const YCPValue &input) |
void | recordWidgetProperty (YWidget *widget, const char *propertyName) |
void | recordMakeScreenShot (bool enabled=false, const char *filename=0) |
void | recordComment (string comment_text) |
void | beginBlock () |
void | endBlock () |
Protected Member Functions | |
void | openMacroFile (const string ¯oFileName) |
void | closeMacroFile () |
void | writeMacroFileHeader () |
void | writeMacroFileFooter () |
void | recordYcpCodeLocation () |
void | recordTimeStamp () |
void | recordDialogDebugLabel () |
Protected Attributes | |
FILE * | _macroFile |
int | _screenShotCount |
|
Constructor |
|
Destructor |
|
Begin a macro block that will be executed as a whole. |
|
Close the internally used macro file. |
|
End a macro block that will be executed as a whole. |
|
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. |
|
Record a text as a comment. |
|
Record a human-readable identification of the dialog (its heading etc.) |
|
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. |
|
Record a time stamp to match with y2logs |
|
Record one user input. |
|
Record one widget property. |
|
Record file name and line number of current YCP code |
|
Write a standardized macro file footer. |
|
Write a standardized macro file header. |
|
The internally used macro file; valid if non-null. |
|
A counter for making screen shots. |