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:
[legend]

Public Member Functions

 UITestLogger ()
 
void logCommand (std::u16string_view 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::UITestLogger ( )

Definition at line 65 of file logger.cxx.

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

Member Function Documentation

◆ getAppName()

const OUString & UITestLogger::getAppName ( ) const
inline

Definition at line 63 of file logger.hxx.

Referenced by logEvent().

◆ getInstance()

UITestLogger & UITestLogger::getInstance ( )
static

◆ log()

void UITestLogger::log ( std::u16string_view  rString)

◆ logAction() [1/2]

void UITestLogger::logAction ( vcl::Window *const &  xUIWin,
VclEventId  nEvent 
)

◆ logAction() [2/2]

void UITestLogger::logAction ( VclPtr< Control > const &  xUIElement,
VclEventId  nEvent 
)

◆ logCommand()

void UITestLogger::logCommand ( std::u16string_view  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().

◆ logEvent()

void UITestLogger::logEvent ( const EventDescription rDescription)

◆ logKeyInput()

void UITestLogger::logKeyInput ( VclPtr< vcl::Window > const &  xUIElement,
const KeyEvent rEvent 
)

◆ setAppName()

void UITestLogger::setAppName ( OUString  name)
inline

Definition at line 61 of file logger.hxx.

References name.

Referenced by ButtonUIObject::get_action().

Member Data Documentation

◆ app_name

OUString UITestLogger::app_name
private

Definition at line 41 of file logger.hxx.

◆ maStream

SvFileStream UITestLogger::maStream
private

Definition at line 37 of file logger.hxx.

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

◆ mbValid

bool UITestLogger::mbValid
private

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: