libaurum: apply smart pointer wider and extract impl out
[platform/core/uifw/aurum.git] / org.tizen.aurum-bootstrap / src / AurumServiceImpl.cc
index 89e7c60..4d177ea 100644 (file)
@@ -6,7 +6,7 @@
 #include "Commands/PreCommand.h"
 
 #include "config.h"
-#include "loguru.hpp"
+#include <loguru.hpp>
 
 using namespace grpc;
 using namespace aurum;
@@ -181,3 +181,10 @@ aurumServiceImpl::~aurumServiceImpl() {}
     std::unique_ptr<SendKeyCommand> cmd = std::make_unique<SendKeyCommand>(request, response);
     return execute(cmd.get());
 }
+::grpc::Status aurumServiceImpl::takeScreenshot(::grpc::ServerContext* context,
+                                                const ::aurum::ReqTakeScreenshot* request,
+                                                ::grpc::ServerWriter< ::aurum::RspTakeScreenshot>* writer)
+{
+    std::unique_ptr<TakeScreenshotCommand> cmd = std::make_unique<TakeScreenshotCommand>(request, writer);
+    return execute(cmd.get());
+}
\ No newline at end of file