LibreOffice Module vcl (master)  1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
UITestLogger Class Reference

#include <logger.hxx>

Collaboration diagram for UITestLogger:

Public Member Functions

 UITestLogger ()
void logCommand (const OUString &rAction, const css::uno::Sequence< css::beans::PropertyValue > &rArgs)
void logAction (VclPtr< Control > const &xUIElement, VclEventId nEvent)
void logAction (vcl::Window *const &xUIWin, VclEventId nEvent)
void log (std::u16string_view rString)
void logKeyInput (VclPtr< vcl::Window > const &xUIElement, const KeyEvent &rEvent)
void logEvent (const EventDescription &rDescription)
void setAppName (OUString name)
const OUString & getAppName () const

Static Public Member Functions

static UITestLoggergetInstance ()

Private Attributes

SvFileStream maStream
bool mbValid
OUString app_name

Detailed Description

Definition at line 34 of file logger.hxx.

Constructor & Destructor Documentation

UITestLogger::UITestLogger ( )

Definition at line 65 of file logger.cxx.

References maStream, mbValid, mbValid, SvFileStream::Open(), and SAL_CONFIGFILE.

Member Function Documentation

const OUString& UITestLogger::getAppName ( ) const

Definition at line 63 of file logger.hxx.

Referenced by logEvent().

UITestLogger & UITestLogger::getInstance ( )
void UITestLogger::log ( std::u16string_view  rString)
void UITestLogger::logAction ( VclPtr< Control > const &  xUIElement,
VclEventId  nEvent 
void UITestLogger::logAction ( vcl::Window *const &  xUIWin,
VclEventId  nEvent 
void UITestLogger::logCommand ( const OUString &  rAction,
const css::uno::Sequence< css::beans::PropertyValue > &  rArgs 

Definition at line 82 of file logger.cxx.

References aBuffer, aCommand, maStream, mbValid, nValue, OUStringToOString(), and SvStream::WriteLine().

void UITestLogger::logEvent ( const EventDescription rDescription)
void UITestLogger::logKeyInput ( VclPtr< vcl::Window > const &  xUIElement,
const KeyEvent rEvent 
void UITestLogger::setAppName ( OUString  name)

Definition at line 61 of file logger.hxx.

Referenced by ButtonUIObject::get_action().

Member Data Documentation

OUString UITestLogger::app_name

Definition at line 41 of file logger.hxx.

SvFileStream UITestLogger::maStream

Definition at line 37 of file logger.hxx.

Referenced by log(), logAction(), logCommand(), logKeyInput(), and UITestLogger().

bool UITestLogger::mbValid

Definition at line 39 of file logger.hxx.

Referenced by log(), logAction(), logCommand(), logKeyInput(), and UITestLogger().

The documentation for this class was generated from the following files: