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 (const OUString &rAction, const css::uno::Sequence< css::beans::PropertyValue > &rArgs)
 
void logAction (VclPtr< Control > const &xUIElement, VclEventId nEvent)
 
void log (const OUString &rString)
 
void logKeyInput (VclPtr< vcl::Window > const &xUIElement, const KeyEvent &rEvent)
 
void logEvent (const EventDescription &rDescription)
 
void setAppName (OUString name)
 
OUString getAppName () const
 

Static Public Member Functions

static UITestLoggergetInstance ()
 

Private Attributes

SvFileStream maStream
 
bool mbValid
 
OUString app_name
 

Detailed Description

Definition at line 49 of file logger.hxx.

Constructor & Destructor Documentation

UITestLogger::UITestLogger ( )

Definition at line 64 of file logger.cxx.

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

Member Function Documentation

OUString UITestLogger::getAppName ( ) const
inline

Definition at line 76 of file logger.hxx.

Referenced by logEvent().

UITestLogger & UITestLogger::getInstance ( )
static
void UITestLogger::log ( const OUString &  rString)
void UITestLogger::logAction ( VclPtr< Control > const &  xUIElement,
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 maStream, mbValid, 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)
inline

Definition at line 74 of file logger.hxx.

Referenced by ButtonUIObject::get_action().

Member Data Documentation

OUString UITestLogger::app_name
private

Definition at line 56 of file logger.hxx.

SvFileStream UITestLogger::maStream
private

Definition at line 52 of file logger.hxx.

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

bool UITestLogger::mbValid
private

Definition at line 54 of file logger.hxx.

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


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