libaurum: apply smart pointer wider and extract impl out
[platform/core/uifw/aurum.git] / org.tizen.aurum-bootstrap / src / AurumServiceImpl.cc
index ae7da19..4d177ea 100644 (file)
@@ -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