namespace Wrt {
namespace Popup {
-
bool WrtPopup::openPipes()
{
Try
{
Try
{
- if (m_pipesOpened)
- {
+ if (m_pipesOpened) {
DPL::WaitableHandleWatchSupport::InheritedContext()->
RemoveWaitableHandleWatch(this,
m_input.WaitableReadHandle(),
}
}
-void WrtPopup::OnEventReceived(const QuitEvent &/* event */)
+void WrtPopup::OnEventReceived(const QuitEvent & /* event */)
{
LogDebug("Quiting");
closePipes();
void WrtPopup::OnWaitableHandleEvent(DPL::WaitableHandle waitableHandle,
DPL::WaitMode::Type /*mode*/)
{
- if (waitableHandle == m_input.WaitableReadHandle())
- {
+ if (waitableHandle == m_input.WaitableReadHandle()) {
readInputData();
}
}
m_input.Read(std::numeric_limits<std::size_t>::max());
int popupType = PopupSerializer::getIntArg(*data);
LogDebug("popup type " << popupType);
- switch(popupType) {
+ switch (popupType) {
case YES_NO_PROMPT:
m_popup.reset(new YesNoPopup());
m_popup->show(data, this);
void WrtPopup::OnCreate()
{
- if (!openPipes())
- {
+ if (!openPipes()) {
PostEvent(QuitEvent());
}
LogInfo("On Create");
Renderer::PopupManagerSingleton::Instance().Deinitialize();
LogDebug("App Finished");
}
-
}
}