#include <ProvokedWarningRegistry.h>

Public Member Functions | |
| virtual const ProvokedWarning * | FindRegisteredWarning (const wxString &caption, const wxString &message=_T("")) const |
| Find first registerd warning fitting the specified caption and message. | |
| virtual bool | IsRegisteredAndInTime (const ProvokedWarning &warning) const |
| Check if provoked/expected warning is registered and time out interval has not exceeded. | |
| virtual void | RegisterWarning (const ProvokedWarning &warning) |
| Register provoked/expected warning. | |
| virtual void | SetWarningAsDetected (const ProvokedWarning &warning) |
| Set provoked/expected warning to has been detected. | |
| virtual void | UnregisterWarning (const ProvokedWarning &warning) |
| Unregister and remove provoked/expected warning from container. | |
| virtual bool | WasDetected (const ProvokedWarning &warning) const |
| Check if this provoked/expected warning was detected. | |
Static Public Member Functions | |
| static void | Destroy () |
| Threadsafe destruction of static singleton instance. | |
| static ProvokedWarningRegistry & | GetInstance () |
| Get single private instance (Singleton pattern). | |
Protected Member Functions | |
| ProvokedWarningRegistry () | |
| Constructor. | |
| virtual | ~ProvokedWarningRegistry () |
| Destructor. | |
(Using Singleton pattern.)
Definition at line 35 of file ProvokedWarningRegistry.h.
| ProvokedWarningRegistry::ProvokedWarningRegistry | ( | ) | [protected] |
Constructor.
Definition at line 26 of file ProvokedWarningRegistry.cpp.
Referenced by GetInstance().
| ProvokedWarningRegistry::~ProvokedWarningRegistry | ( | ) | [protected, virtual] |
Destructor.
Definition at line 32 of file ProvokedWarningRegistry.cpp.
References UnregisterWarning().
| void ProvokedWarningRegistry::Destroy | ( | ) | [static] |
Threadsafe destruction of static singleton instance.
Definition at line 53 of file ProvokedWarningRegistry.cpp.
| const ProvokedWarning * ProvokedWarningRegistry::FindRegisteredWarning | ( | const wxString & | caption, | |
| const wxString & | message = _T("") | |||
| ) | const [virtual] |
Find first registerd warning fitting the specified caption and message.
| caption | caption of provoked/expected warnings to find | |
| message | message of provoked/expected warnings to find; leave empty if you don't care what about matching the message. |
Definition at line 133 of file ProvokedWarningRegistry.cpp.
References wxTst::ProvokedWarning::GetCaption(), and wxTst::ProvokedWarning::GetMessage().
Referenced by wxTst::WxGuiTestHelper::IsProvokedWarning().
| ProvokedWarningRegistry & ProvokedWarningRegistry::GetInstance | ( | ) | [static] |
Get single private instance (Singleton pattern).
Definition at line 43 of file ProvokedWarningRegistry.cpp.
References ProvokedWarningRegistry().
Referenced by wxTst::WxGuiTestHelper::IsProvokedWarning().
| bool ProvokedWarningRegistry::IsRegisteredAndInTime | ( | const ProvokedWarning & | warning | ) | const [virtual] |
Check if provoked/expected warning is registered and time out interval has not exceeded.
| warning | provoked/expected warning to check for registration |
Definition at line 79 of file ProvokedWarningRegistry.cpp.
References wxTst::ProvokedWarning::GetTimeout().
Referenced by wxTst::WxGuiTestHelper::IsProvokedWarning().
| void ProvokedWarningRegistry::RegisterWarning | ( | const ProvokedWarning & | warning | ) | [virtual] |
Register provoked/expected warning.
| warning | provoked/expected warning to register |
Definition at line 63 of file ProvokedWarningRegistry.cpp.
| void ProvokedWarningRegistry::SetWarningAsDetected | ( | const ProvokedWarning & | warning | ) | [virtual] |
Set provoked/expected warning to has been detected.
| warning | detected provoked/expected warning |
Definition at line 122 of file ProvokedWarningRegistry.cpp.
Referenced by wxTst::WxGuiTestHelper::IsProvokedWarning().
| void ProvokedWarningRegistry::UnregisterWarning | ( | const ProvokedWarning & | warning | ) | [virtual] |
Unregister and remove provoked/expected warning from container.
| warning | provoked/expected warning to unregister |
Definition at line 71 of file ProvokedWarningRegistry.cpp.
Referenced by ~ProvokedWarningRegistry().
| bool ProvokedWarningRegistry::WasDetected | ( | const ProvokedWarning & | warning | ) | const [virtual] |
Check if this provoked/expected warning was detected.
| warning | provoked/expected warning to check for detection |
Definition at line 105 of file ProvokedWarningRegistry.cpp.
1.5.5