Source code formating unification
[platform/framework/web/wrt-plugins-common.git] / src / wrt-popup / wrt / popup-runner / PopupInvoker.cpp
index 9b50a88..8e44eb3 100644 (file)
@@ -33,7 +33,6 @@ const char *POPUP_EXEC = "/usr/bin/wrt-popup-wrt-runtime";
 
 namespace Wrt {
 namespace Popup {
-
 PopupInvoker::PopupInvoker() :
     m_inputName(tmpnam(NULL)),
     m_outputName(tmpnam(NULL))
@@ -44,7 +43,7 @@ PopupInvoker::PopupInvoker() :
         m_output.Create(m_outputName);
         LogDebug("Pipes created");
     }
-    Catch (DPL::Exception)
+    Catch(DPL::Exception)
     {
         LogError("Cannot create pipes");
     }
@@ -58,13 +57,14 @@ PopupInvoker::~PopupInvoker()
         m_output.Destroy(m_outputName);
         LogDebug("Pipes destroyed");
     }
-    Catch (DPL::Exception)
+    Catch(DPL::Exception)
     {
         LogError("Cannot destroy pipes");
     }
 }
 
-bool PopupInvoker::askYesNo(const std::string& title, const std::string& message)
+bool PopupInvoker::askYesNo(const std::string& title,
+                            const std::string& message)
 {
     Try
     {
@@ -135,7 +135,8 @@ void PopupInvoker::showInfo(const std::string& title,
 }
 
 PopupResponse PopupInvoker::askYesNoCheckbox(const std::string& title,
-    const std::string& message, const std::string& checkboxLabel)
+                                             const std::string& message,
+                                             const std::string& checkboxLabel)
 {
     Try
     {
@@ -158,7 +159,8 @@ PopupResponse PopupInvoker::askYesNoCheckbox(const std::string& title,
         const int result = PopupSerializer::getIntArg(*resultData);
         const int rememberResult = PopupSerializer::getIntArg(*resultData);
 
-        LogDebug("Popup result is: " << result << " remeber: " << rememberResult);
+        LogDebug(
+            "Popup result is: " << result << " remeber: " << rememberResult);
 
         Assert(resultData->Empty());
         tmp.Close();
@@ -189,14 +191,12 @@ PopupResponse PopupInvoker::askYesNoCheckbox(const std::string& title,
 void PopupInvoker::executePopup()
 {
     pid_t pid = fork();
-    if (pid == -1)
-    {
+    if (pid == -1) {
         //error occured
         LogError("Cannot display popup!");
         Assert(false);
     }
-    if (pid == 0)
-    {
+    if (pid == 0) {
         //child process
         int ret = execl(POPUP_EXEC,
                         POPUP_EXEC,
@@ -213,6 +213,5 @@ void PopupInvoker::executePopup()
     DPL::WaitableHandle handle = m_input.WaitableReadHandle();
     DPL::WaitForSingleHandle(handle);
 }
-
 } // Popup
 } // Wrt