bootstrap: Fix indentation and code clean up 54/261054/3
authorWoochanlee <wc0917.lee@samsung.com>
Fri, 9 Jul 2021 06:13:47 +0000 (15:13 +0900)
committerwoochan lee <wc0917.lee@samsung.com>
Fri, 9 Jul 2021 07:58:38 +0000 (07:58 +0000)
Change-Id: I813501c1222bed9292a983fecc0b6c5bfabdf7ca

48 files changed:
org.tizen.aurum-bootstrap/inc/AurumServiceImpl.h
org.tizen.aurum-bootstrap/inc/Commands/ClearCommand.h
org.tizen.aurum-bootstrap/inc/Commands/ClickCommand.h
org.tizen.aurum-bootstrap/inc/Commands/CloseAppCommand.h
org.tizen.aurum-bootstrap/inc/Commands/DumpObjectTreeCommand.h
org.tizen.aurum-bootstrap/inc/Commands/FindElementCommand.h
org.tizen.aurum-bootstrap/inc/Commands/FlickCommand.h
org.tizen.aurum-bootstrap/inc/Commands/GetAppInfoCommand.h
org.tizen.aurum-bootstrap/inc/Commands/GetAttributeCommand.h
org.tizen.aurum-bootstrap/inc/Commands/GetDeviceTimeCommand.h
org.tizen.aurum-bootstrap/inc/Commands/GetLocationCommand.h
org.tizen.aurum-bootstrap/inc/Commands/GetSizeCommand.h
org.tizen.aurum-bootstrap/inc/Commands/GetValueCommand.h
org.tizen.aurum-bootstrap/inc/Commands/InstallAppCommand.h
org.tizen.aurum-bootstrap/inc/Commands/KillServerCommand.h
org.tizen.aurum-bootstrap/inc/Commands/LaunchAppCommand.h
org.tizen.aurum-bootstrap/inc/Commands/LongClickCommand.h
org.tizen.aurum-bootstrap/inc/Commands/RemoveAppCommand.h
org.tizen.aurum-bootstrap/inc/Commands/SendKeyCommand.h
org.tizen.aurum-bootstrap/inc/Commands/SetValueCommand.h
org.tizen.aurum-bootstrap/inc/Commands/TakeScreenshotCommand.h
org.tizen.aurum-bootstrap/inc/Commands/TouchDownCommand.h
org.tizen.aurum-bootstrap/inc/Commands/TouchMoveCommand.h
org.tizen.aurum-bootstrap/inc/Commands/TouchUpCommand.h
org.tizen.aurum-bootstrap/src/AurumServiceImpl.cc
org.tizen.aurum-bootstrap/src/BootstrapServer.cc
org.tizen.aurum-bootstrap/src/Commands/ClearCommand.cc
org.tizen.aurum-bootstrap/src/Commands/ClickCommand.cc
org.tizen.aurum-bootstrap/src/Commands/CloseAppCommand.cc
org.tizen.aurum-bootstrap/src/Commands/DumpObjectTreeCommand.cc
org.tizen.aurum-bootstrap/src/Commands/FindElementCommand.cc
org.tizen.aurum-bootstrap/src/Commands/FlickCommand.cc
org.tizen.aurum-bootstrap/src/Commands/GetAppInfoCommand.cc
org.tizen.aurum-bootstrap/src/Commands/GetAttributeCommand.cc
org.tizen.aurum-bootstrap/src/Commands/GetDeviceTimeCommand.cc
org.tizen.aurum-bootstrap/src/Commands/GetLocationCommand.cc
org.tizen.aurum-bootstrap/src/Commands/GetSizeCommand.cc
org.tizen.aurum-bootstrap/src/Commands/GetValueCommand.cc
org.tizen.aurum-bootstrap/src/Commands/KillServerCommand.cc
org.tizen.aurum-bootstrap/src/Commands/LaunchAppCommand.cc
org.tizen.aurum-bootstrap/src/Commands/LongClickCommand.cc
org.tizen.aurum-bootstrap/src/Commands/SendKeyCommand.cc
org.tizen.aurum-bootstrap/src/Commands/SetValueCommand.cc
org.tizen.aurum-bootstrap/src/Commands/TakeScreenshotCommand.cc
org.tizen.aurum-bootstrap/src/Commands/TouchDownCommand.cc
org.tizen.aurum-bootstrap/src/Commands/TouchMoveCommand.cc
org.tizen.aurum-bootstrap/src/Commands/TouchUpCommand.cc
org.tizen.aurum-bootstrap/src/ObjectMapper.cc

index 10577af4d83c1ae55c9ef31664694b6760942dc3..cbd41452050445930f3ad6e5f3534ae9ae7fd5d7 100644 (file)
@@ -13,80 +13,80 @@ protected:
     ::grpc::Status execute(Command *cmd, bool clean);
 
 public:
-    ::grpc::Status killServer(::grpc::ServerContext *  context,
+    ::grpc::Status killServer(::grpc::ServerContext *context,
                               const ::aurum::ReqEmpty *request,
-                              ::aurum::RspEmpty *      response) override;
+                              ::aurum::RspEmpty *response) override;
 
-    ::grpc::Status findElement(::grpc::ServerContext *        context,
+    ::grpc::Status findElement(::grpc::ServerContext *context,
                                const ::aurum::ReqFindElement *request,
                                ::aurum::RspFindElement *response) override;
 
-    ::grpc::Status getValue(::grpc::ServerContext *     context,
+    ::grpc::Status getValue(::grpc::ServerContext *context,
                             const ::aurum::ReqGetValue *request,
-                            ::aurum::RspGetValue *      response) override;
-    ::grpc::Status setValue(::grpc::ServerContext *     context,
+                            ::aurum::RspGetValue *response) override;
+    ::grpc::Status setValue(::grpc::ServerContext *context,
                             const ::aurum::ReqSetValue *request,
-                            ::aurum::RspSetValue *      response) override;
-    ::grpc::Status getAttribute(::grpc::ServerContext *         context,
+                            ::aurum::RspSetValue *response) override;
+    ::grpc::Status getAttribute(::grpc::ServerContext *context,
                                 const ::aurum::ReqGetAttribute *request,
                                 ::aurum::RspGetAttribute *response) override;
-    ::grpc::Status getSize(::grpc::ServerContext *    context,
+    ::grpc::Status getSize(::grpc::ServerContext *context,
                            const ::aurum::ReqGetSize *request,
-                           ::aurum::RspGetSize *      response) override;
-    ::grpc::Status clear(::grpc::ServerContext *  context,
+                           ::aurum::RspGetSize *response) override;
+    ::grpc::Status clear(::grpc::ServerContext *context,
                          const ::aurum::ReqClear *request,
-                         ::aurum::RspClear *      response) override;
+                         ::aurum::RspClear *response) override;
     ::grpc::Status installApp(
-        ::grpc::ServerContext *                        context,
+        ::grpc::ServerContext *context,
         ::grpc::ServerReader< ::aurum::ReqInstallApp> *reader,
-        ::aurum::RspInstallApp *                       response) override;
-    ::grpc::Status removeApp(::grpc::ServerContext *      context,
+        ::aurum::RspInstallApp *response) override;
+    ::grpc::Status removeApp(::grpc::ServerContext *context,
                              const ::aurum::ReqRemoveApp *request,
-                             ::aurum::RspRemoveApp *      response) override;
-    ::grpc::Status getAppInfo(::grpc::ServerContext *       context,
+                             ::aurum::RspRemoveApp *response) override;
+    ::grpc::Status getAppInfo(::grpc::ServerContext *context,
                               const ::aurum::ReqGetAppInfo *request,
-                              ::aurum::RspGetAppInfo *      response) override;
-    ::grpc::Status launchApp(::grpc::ServerContext *      context,
+                              ::aurum::RspGetAppInfo *response) override;
+    ::grpc::Status launchApp(::grpc::ServerContext *context,
                              const ::aurum::ReqLaunchApp *request,
-                             ::aurum::RspLaunchApp *      response) override;
-    ::grpc::Status closeApp(::grpc::ServerContext *     context,
+                             ::aurum::RspLaunchApp *response) override;
+    ::grpc::Status closeApp(::grpc::ServerContext *context,
                             const ::aurum::ReqCloseApp *request,
-                            ::aurum::RspCloseApp *      response) override;
+                            ::aurum::RspCloseApp *response) override;
 
-    ::grpc::Status click(::grpc::ServerContext *  context,
+    ::grpc::Status click(::grpc::ServerContext *context,
                          const ::aurum::ReqClick *request,
-                         ::aurum::RspClick *      response) override;
-    ::grpc::Status longClick(::grpc::ServerContext *  context,
+                         ::aurum::RspClick *response) override;
+    ::grpc::Status longClick(::grpc::ServerContext *context,
                              const ::aurum::ReqClick *request,
-                             ::aurum::RspClick *      response) override;
-    ::grpc::Status flick(::grpc::ServerContext *  context,
+                             ::aurum::RspClick *response) override;
+    ::grpc::Status flick(::grpc::ServerContext *context,
                          const ::aurum::ReqFlick *request,
-                         ::aurum::RspFlick *      response) override;
+                         ::aurum::RspFlick *response) override;
 
-    ::grpc::Status touchDown(::grpc::ServerContext *      context,
+    ::grpc::Status touchDown(::grpc::ServerContext *context,
                              const ::aurum::ReqTouchDown *request,
-                             ::aurum::RspTouchDown *      response) override;
-    ::grpc::Status touchUp(::grpc::ServerContext *    context,
+                             ::aurum::RspTouchDown *response) override;
+    ::grpc::Status touchUp(::grpc::ServerContext *context,
                            const ::aurum::ReqTouchUp *request,
-                           ::aurum::RspTouchUp *      response) override;
-    ::grpc::Status touchMove(::grpc::ServerContext *      context,
+                           ::aurum::RspTouchUp *response) override;
+    ::grpc::Status touchMove(::grpc::ServerContext *context,
                              const ::aurum::ReqTouchMove *request,
-                             ::aurum::RspTouchMove *      response) override;
-    ::grpc::Status getDeviceTime(::grpc::ServerContext *          context,
+                             ::aurum::RspTouchMove *response) override;
+    ::grpc::Status getDeviceTime(::grpc::ServerContext *context,
                                  const ::aurum::ReqGetDeviceTime *request,
                                  ::aurum::RspGetDeviceTime *response) override;
-    ::grpc::Status getLocation(::grpc::ServerContext *        context,
+    ::grpc::Status getLocation(::grpc::ServerContext *context,
                                const ::aurum::ReqGetLocation *request,
                                ::aurum::RspGetLocation *response) override;
     ::grpc::Status sendKey(::grpc::ServerContext *context,
                            const ::aurum::ReqKey *request,
-                           ::aurum::RspKey *      response) override;
+                           ::aurum::RspKey *response) override;
 
     ::grpc::Status takeScreenshot(::grpc::ServerContext *context,
-                            const ::aurum::ReqTakeScreenshot *                 request,
-                            ::grpc::ServerWriter< ::aurum::RspTakeScreenshot>writer) override;
+                            const ::aurum::ReqTakeScreenshot *request,
+                            ::grpc::ServerWriter< ::aurum::RspTakeScreenshot> *writer) override;
 
     ::grpc::Status dumpObjectTree(::grpc::ServerContext *context,
                             const ::aurum::ReqDumpObjectTree *request,
-                            ::aurum::RspDumpObjectTree *      response) override;
+                            ::aurum::RspDumpObjectTree *response) override;
 };
index 5a9391c0df174de0a343bcd7c525b758ec233c11..21fc670f1f451e7a88c086643c06afe72abcd14a 100644 (file)
@@ -9,11 +9,11 @@
 
 class ClearCommand : public Command {
 private:
-    const ::aurum::ReqClearmRequest;
-    ::aurum::RspClear*       mResponse;
+    const ::aurum::ReqClear *mRequest;
+    ::aurum::RspClear *mResponse;
 
 public:
-    ClearCommand(const ::aurum::ReqClear* request, ::aurum::RspClear* response);
+    ClearCommand(const ::aurum::ReqClear *request, ::aurum::RspClear *response);
     ::grpc::Status execute() override;
 
 protected:
index aafaf97eff45e3632fbe0a0db92d0f6bb164ee34..9d62d34eabe344389a9cf206ae6b857811885713 100644 (file)
@@ -8,13 +8,13 @@
 #include "config.h"
 class ClickCommand : public Command {
 protected:
-    const ::aurum::ReqClickmRequest;
-    ::aurum::RspClick*       mResponse;
+    const ::aurum::ReqClick *mRequest;
+    ::aurum::RspClick *mResponse;
 
 public:
-    ClickCommand(const ::aurum::ReqClick* request, ::aurum::RspClick* response);
+    ClickCommand(const ::aurum::ReqClick *request, ::aurum::RspClick *response);
     ::grpc::Status execute() override;
-    static std::unique_ptr<ClickCommand> createCommand(const ::aurum::ReqClick* request, ::aurum::RspClick* response);
+    static std::unique_ptr<ClickCommand> createCommand(const ::aurum::ReqClick *request, ::aurum::RspClick *response);
 };
 
 class ClickElementCommand : public ClickCommand {
index 81bc6c4c8b7819dea50376090c7c3803fe6cb38c..a3074ce506df695067b0c56572b5212426126346 100644 (file)
@@ -9,12 +9,12 @@
 
 class CloseAppCommand : public Command {
 private:
-    const ::aurum::ReqCloseAppmRequest;
-    ::aurum::RspCloseApp*       mResponse;
+    const ::aurum::ReqCloseApp *mRequest;
+    ::aurum::RspCloseApp *mResponse;
 
 public:
-    CloseAppCommand(const ::aurum::ReqCloseApprequest,
-                    ::aurum::RspCloseApp*       response);
+    CloseAppCommand(const ::aurum::ReqCloseApp *request,
+                    ::aurum::RspCloseApp *response);
     ::grpc::Status execute() override;
     ::grpc::Status executePost() override;
 };
\ No newline at end of file
index 1e320fa759c73dd48b67e1e7db318d8500c4d8b7..e09bd7dcf53fcbfd3320481696cf0f1df78be4cd 100644 (file)
 
 class DumpObjectTreeCommand: public Command {
 protected:
-    const ::aurum::ReqDumpObjectTreemRequest;
-    ::aurum::RspDumpObjectTree*       mResponse;
+    const ::aurum::ReqDumpObjectTree *mRequest;
+    ::aurum::RspDumpObjectTree *mResponse;
 
 protected:
-    ObjectMappermObjMap;
+    ObjectMapper *mObjMap;
 
 public:
-    DumpObjectTreeCommand(const ::aurum::ReqDumpObjectTreerequest,
-                       ::aurum::RspDumpObjectTree*       response);
+    DumpObjectTreeCommand(const ::aurum::ReqDumpObjectTree *request,
+                       ::aurum::RspDumpObjectTree *response);
     ::grpc::Status execute() override;
 
 private:
index cc522706dbf2d1426e91064499f235ae02f78c78..202ede20c1d890caebaaf8b1a9b3ab4b833b856b 100644 (file)
@@ -9,15 +9,15 @@
 
 class FindElementCommand : public Command {
 protected:
-    const ::aurum::ReqFindElementmRequest;
-    ::aurum::RspFindElement*       mResponse;
+    const ::aurum::ReqFindElement *mRequest;
+    ::aurum::RspFindElement *mResponse;
 
 protected:
-    ObjectMappermObjMap;
+    ObjectMapper *mObjMap;
 
 public:
-    FindElementCommand(const ::aurum::ReqFindElementrequest,
-                       ::aurum::RspFindElement*       response);
+    FindElementCommand(const ::aurum::ReqFindElement *request,
+                       ::aurum::RspFindElement *response);
     ::grpc::Status execute() override;
 protected:
     virtual std::shared_ptr<ISearchable> getSearchableTop(void);
index 1a6d5c5b05ee0369bce304a39a5064f53d0a90d4..ac3f1772ba07a03494cce345f9d1dbaff8afbbfa 100644 (file)
@@ -9,12 +9,12 @@
 
 class FlickCommand : public Command {
 private:
-    const ::aurum::ReqFlickmRequest;
-    ::aurum::RspFlick*       mResponse;
+    const ::aurum::ReqFlick *mRequest;
+    ::aurum::RspFlick *mResponse;
     const unsigned int MINIMUM_TOUCHEVENT_INTV_MS = 25;
 
 public:
-    FlickCommand(const ::aurum::ReqFlick* request, ::aurum::RspFlick* response);
+    FlickCommand(const ::aurum::ReqFlick *request, ::aurum::RspFlick *response);
     ;
     ::grpc::Status execute() override;
 };
\ No newline at end of file
index 7bdd8a6d3169c9b03ed2a9d06261061ce68a4444..4e94c54cd5f517540a2db6145c1860f5760e5195 100644 (file)
@@ -9,12 +9,12 @@
 
 class GetAppInfoCommand : public Command {
 private:
-    const ::aurum::ReqGetAppInfomRequest;
-    ::aurum::RspGetAppInfo*       mResponse;
+    const ::aurum::ReqGetAppInfo *mRequest;
+    ::aurum::RspGetAppInfo *mResponse;
 
 public:
-    GetAppInfoCommand(const ::aurum::ReqGetAppInforequest,
-                      ::aurum::RspGetAppInfo*       response);
+    GetAppInfoCommand(const ::aurum::ReqGetAppInfo *request,
+                      ::aurum::RspGetAppInfo *response);
     ;
     ::grpc::Status execute() override;
 };
index f1e3d7bdc8cd66e13152529f5e60186e65cb825c..749156ba08e7b6f68bf2a3bdde528e3a001dd003 100644 (file)
@@ -9,16 +9,16 @@
 
 class GetAttributeCommand : public Command {
 protected:
-    const ::aurum::ReqGetAttributemRequest;
-    ::aurum::RspGetAttribute*       mResponse;
-    ObjectMappermObjMap;
+    const ::aurum::ReqGetAttribute *mRequest;
+    ::aurum::RspGetAttribute *mResponse;
+    ObjectMapper *mObjMap;
 
 public:
-    GetAttributeCommand(const ::aurum::ReqGetAttributerequest,
-                        ::aurum::RspGetAttribute*       response);
+    GetAttributeCommand(const ::aurum::ReqGetAttribute *request,
+                        ::aurum::RspGetAttribute *response);
     ::grpc::Status execute() override;
-    static std::unique_ptr<GetAttributeCommand> createCommand(const ::aurum::ReqGetAttributerequest,
-                                                              ::aurum::RspGetAttribute*       response);
+    static std::unique_ptr<GetAttributeCommand> createCommand(const ::aurum::ReqGetAttribute *request,
+                                                              ::aurum::RspGetAttribute *response);
 };
 
 class GetVisibleAttributeCommand : public GetAttributeCommand {
index a3669614f86e3abc5437666893897c1af6951f07..d261d2c42dbb80edd611000a6f9b4be255d17683 100644 (file)
@@ -9,12 +9,12 @@
 
 class GetDeviceTimeCommand : public Command {
 private:
-    const ::aurum::ReqGetDeviceTimemRequest;
-    ::aurum::RspGetDeviceTime*       mResponse;
+    const ::aurum::ReqGetDeviceTime *mRequest;
+    ::aurum::RspGetDeviceTime *mResponse;
 
 public:
-    GetDeviceTimeCommand(const ::aurum::ReqGetDeviceTimerequest,
-                         ::aurum::RspGetDeviceTime*       response);
+    GetDeviceTimeCommand(const ::aurum::ReqGetDeviceTime *request,
+                         ::aurum::RspGetDeviceTime *response);
     ;
     ::grpc::Status execute() override;
 };
\ No newline at end of file
index 1591233ef4620b6a9a5e59e339cb620807d384c0..e153a4331817d0d84fdfed5f37da57c9b2ac3f41 100644 (file)
@@ -9,12 +9,12 @@
 
 class GetLocationCommand : public Command {
 private:
-    const ::aurum::ReqGetLocationmRequest;
-    ::aurum::RspGetLocation*       mResponse;
+    const ::aurum::ReqGetLocation *mRequest;
+    ::aurum::RspGetLocation *mResponse;
 
 public:
-    GetLocationCommand(const ::aurum::ReqGetLocationrequest,
-                       ::aurum::RspGetLocation*       response);
+    GetLocationCommand(const ::aurum::ReqGetLocation *request,
+                       ::aurum::RspGetLocation *response);
     ;
     ::grpc::Status execute() override;
 };
\ No newline at end of file
index eae1cebdc2642d3f3a5b3bb1b13cd287111436be..ad2a528f88145d2b4f6991cc77313abdb1bf73d8 100644 (file)
@@ -9,12 +9,12 @@
 
 class GetSizeCommand : public Command {
 private:
-    const ::aurum::ReqGetSizemRequest;
-    ::aurum::RspGetSize*       mResponse;
+    const ::aurum::ReqGetSize *mRequest;
+    ::aurum::RspGetSize *mResponse;
 
 public:
-    GetSizeCommand(const ::aurum::ReqGetSizerequest,
-                   ::aurum::RspGetSize*       response);
+    GetSizeCommand(const ::aurum::ReqGetSize *request,
+                   ::aurum::RspGetSize *response);
     ;
     ::grpc::Status execute() override;
 };
\ No newline at end of file
index 09617ec1be1a8ecf4266b20a8bcb296310487f37..22ab0db183867d53f35d74f7daa019e1f5a252f1 100644 (file)
@@ -9,12 +9,12 @@
 
 class GetValueCommand : public Command {
 private:
-    const ::aurum::ReqGetValuemRequest;
-    ::aurum::RspGetValue*       mResponse;
+    const ::aurum::ReqGetValue *mRequest;
+    ::aurum::RspGetValue *mResponse;
 
 public:
-    GetValueCommand(const ::aurum::ReqGetValuerequest,
-                    ::aurum::RspGetValue*       response);
+    GetValueCommand(const ::aurum::ReqGetValue *request,
+                    ::aurum::RspGetValue *response);
     ;
     ::grpc::Status execute() override;
 };
\ No newline at end of file
index 7ef0c32011ad47ff326d70fa03b674c16fd9402a..1c2e6b21a3af58225b1d839a975031eea11bac71 100644 (file)
@@ -9,12 +9,12 @@
 
 class InstallAppCommand : public Command {
 private:
-    ::grpc::ServerReader< ::aurum::ReqInstallApp>mRequest;
-    ::aurum::RspInstallApp*                        mResponse;
+    ::grpc::ServerReader< ::aurum::ReqInstallApp> *mRequest;
+    ::aurum::RspInstallApp *mResponse;
 
 public:
-    InstallAppCommand(::grpc::ServerReader< ::aurum::ReqInstallApp>request,
-                      ::aurum::RspInstallApp*                        response);
+    InstallAppCommand(::grpc::ServerReader< ::aurum::ReqInstallApp> *request,
+                      ::aurum::RspInstallApp *response);
     ::grpc::Status execute() override;
     ::grpc::Status executePost() override;
 };
\ No newline at end of file
index a8cc9e4fee3ffe753633b32c36f18c42c7061cb3..50ff081e6b18ebbb12d32ba7349bd9e5f8ed6ccc 100644 (file)
@@ -9,12 +9,12 @@
 
 class KillServerCommand : public Command {
 private:
-    const ::aurum::ReqEmptymRequest;
-    ::aurum::RspEmpty*       mResponse;
+    const ::aurum::ReqEmpty *mRequest;
+    ::aurum::RspEmpty *mResponse;
 
 public:
-    KillServerCommand(const ::aurum::ReqEmptyrequest,
-                      ::aurum::RspEmpty*       response);
+    KillServerCommand(const ::aurum::ReqEmpty *request,
+                      ::aurum::RspEmpty *response);
     ;
     ::grpc::Status execute() override;
 };
\ No newline at end of file
index 9702917bd36d208f19014b637f6315246c5216d1..a08d30c4486f8e44a99b2bca183946ba8383ba5f 100644 (file)
@@ -9,12 +9,12 @@
 
 class LaunchAppCommand : public Command {
 private:
-    const ::aurum::ReqLaunchAppmRequest;
-    ::aurum::RspLaunchApp*       mResponse;
+    const ::aurum::ReqLaunchApp *mRequest;
+    ::aurum::RspLaunchApp *mResponse;
 
 public:
-    LaunchAppCommand(const ::aurum::ReqLaunchApprequest,
-                     ::aurum::RspLaunchApp*       response);
+    LaunchAppCommand(const ::aurum::ReqLaunchApp *request,
+                     ::aurum::RspLaunchApp *response);
     ::grpc::Status execute() override;
     ::grpc::Status executePost() override;
 };
\ No newline at end of file
index 12fa17f06969ab0495e1922983de8288bdaee12e..5b25ab9f635c4a6c929858bb145756169b95eaee 100644 (file)
@@ -9,12 +9,12 @@
 
 class LongClickCommand : public Command {
 private:
-    const ::aurum::ReqClickmRequest;
-    ::aurum::RspClick*       mResponse;
+    const ::aurum::ReqClick *mRequest;
+    ::aurum::RspClick *mResponse;
 
 public:
-    LongClickCommand(const ::aurum::ReqClickrequest,
-                     ::aurum::RspClick*       response);
+    LongClickCommand(const ::aurum::ReqClick *request,
+                     ::aurum::RspClick *response);
     ::grpc::Status execute() override;
 private:
     const static unsigned int LOGNCLICK_INTERVAL = 50;
index f45ff5afcf8059f3ef30f4562b0f8afddf0f574f..435162975be8dd63abe8c764fcd6b1ed5dac24c7 100644 (file)
@@ -9,12 +9,12 @@
 
 class RemoveAppCommand : public Command {
 private:
-    const ::aurum::ReqRemoveAppmRequest;
-    ::aurum::RspRemoveApp*       mResponse;
+    const ::aurum::ReqRemoveApp *mRequest;
+    ::aurum::RspRemoveApp *mResponse;
 
 public:
-    RemoveAppCommand(const ::aurum::ReqRemoveApprequest,
-                     ::aurum::RspRemoveApp*       response);
+    RemoveAppCommand(const ::aurum::ReqRemoveApp *request,
+                     ::aurum::RspRemoveApp *response);
     ;
     ::grpc::Status execute() override;
     ::grpc::Status executePost() override;
index 1a7678a71951add2aef0271927591f86ec094e3f..4efb6d979edb64bf1fe7902f2324f4d454218b33 100644 (file)
@@ -9,10 +9,10 @@
 
 class SendKeyCommand : public Command {
 private:
-    const ::aurum::ReqKeymRequest;
-    ::aurum::RspKey*       mResponse;
+    const ::aurum::ReqKey *mRequest;
+    ::aurum::RspKey *mResponse;
 
 public:
-    SendKeyCommand(const ::aurum::ReqKey* request, ::aurum::RspKey* response);
+    SendKeyCommand(const ::aurum::ReqKey *request, ::aurum::RspKey *response);
     ::grpc::Status execute() override;
 };
\ No newline at end of file
index 2bc5dd5e36488272a160fe17efec52a26237abc7..7a3794337d21b2382484376fbc3e853b2919f352 100644 (file)
@@ -9,11 +9,11 @@
 
 class SetValueCommand : public Command {
 private:
-    const ::aurum::ReqSetValuemRequest;
-    ::aurum::RspSetValue*       mResponse;
+    const ::aurum::ReqSetValue *mRequest;
+    ::aurum::RspSetValue *mResponse;
 
 public:
-    SetValueCommand(const ::aurum::ReqSetValuerequest,
-                    ::aurum::RspSetValue*       response);
+    SetValueCommand(const ::aurum::ReqSetValue *request,
+                    ::aurum::RspSetValue *response);
     ::grpc::Status execute() override;
 };
\ No newline at end of file
index 41e0a8e3a5d865ca67b3961cc1577cf1e06bb740..d67c889bde2c01c0396065c31404c0f3bbe8c9ca 100644 (file)
@@ -9,11 +9,11 @@
 
 class TakeScreenshotCommand : public Command {
 private:
-    const ::aurum::ReqTakeScreenshot*                  mRequest;
-    ::grpc::ServerWriter< ::aurum::RspTakeScreenshot>mWriter;
+    const ::aurum::ReqTakeScreenshot *mRequest;
+    ::grpc::ServerWriter< ::aurum::RspTakeScreenshot> *mWriter;
 
 public:
-    TakeScreenshotCommand(const ::aurum::ReqTakeScreenshot*                  request,
-                          ::grpc::ServerWriter< ::aurum::RspTakeScreenshot>writer);
+    TakeScreenshotCommand(const ::aurum::ReqTakeScreenshot *request,
+                          ::grpc::ServerWriter< ::aurum::RspTakeScreenshot> *writer);
     ::grpc::Status execute() override;
 };
\ No newline at end of file
index acd0f1b633f306d6d7b934a5a4c954208b96aa1e..b9c6b84ef41177535476f2983538699f1cc11ebf 100644 (file)
@@ -9,11 +9,11 @@
 
 class TouchDownCommand : public Command {
 private:
-    const ::aurum::ReqTouchDownmRequest;
-    ::aurum::RspTouchDown*       mResponse;
+    const ::aurum::ReqTouchDown *mRequest;
+    ::aurum::RspTouchDown *mResponse;
 
 public:
-    TouchDownCommand(const ::aurum::ReqTouchDownrequest,
-                     ::aurum::RspTouchDown*       response);
+    TouchDownCommand(const ::aurum::ReqTouchDown *request,
+                     ::aurum::RspTouchDown *response);
     ::grpc::Status execute() override;
 };
\ No newline at end of file
index 2182e3b7ddea40855d477b82cd09f222c6ee3a8a..b8f6e01deed2f32c1684d003844c87ece07f9104 100644 (file)
@@ -9,11 +9,11 @@
 
 class TouchMoveCommand : public Command {
 private:
-    const ::aurum::ReqTouchMovemRequest;
-    ::aurum::RspTouchMove*       mResponse;
+    const ::aurum::ReqTouchMove *mRequest;
+    ::aurum::RspTouchMove *mResponse;
 
 public:
-    TouchMoveCommand(const ::aurum::ReqTouchMoverequest,
-                     ::aurum::RspTouchMove*       response);
+    TouchMoveCommand(const ::aurum::ReqTouchMove *request,
+                     ::aurum::RspTouchMove *response);
     ::grpc::Status execute() override;
 };
\ No newline at end of file
index ed746ac1bf4fdf2f23d708d598c0fc24a38fb932..9210b31404dc1a4b03061bba97c53509b253a2d9 100644 (file)
@@ -9,11 +9,11 @@
 
 class TouchUpCommand : public Command {
 private:
-    const ::aurum::ReqTouchUpmRequest;
-    ::aurum::RspTouchUp*       mResponse;
+    const ::aurum::ReqTouchUp *mRequest;
+    ::aurum::RspTouchUp *mResponse;
 
 public:
-    TouchUpCommand(const ::aurum::ReqTouchUprequest,
-                   ::aurum::RspTouchUp*       response);
+    TouchUpCommand(const ::aurum::ReqTouchUp *request,
+                   ::aurum::RspTouchUp *response);
     ::grpc::Status execute() override;
 };
\ No newline at end of file
index bf12ff8adab0a2c4ee600cfc1bba875f321137cd..586bac50b84bc0b1da336dbd980a1a72cdccb917 100644 (file)
@@ -17,7 +17,7 @@ aurumServiceImpl::aurumServiceImpl()
     AccessibleWatcher::getInstance();
 }
 
-::grpc::Status aurumServiceImpl::execute(Commandcmd, bool clean)
+::grpc::Status aurumServiceImpl::execute(Command *cmd, bool clean)
 {
     std::unique_ptr<PreCommand>  proxyPreCmd  = std::make_unique<PreCommand>(cmd);
     std::unique_ptr<PostCommand> proxyPostCmd = std::make_unique<PostCommand>(proxyPreCmd.get());
@@ -32,177 +32,177 @@ aurumServiceImpl::~aurumServiceImpl()
 }
 
 ::grpc::Status aurumServiceImpl::aurumServiceImpl::killServer(
-    ::grpc::ServerContext* context, const ::aurum::ReqEmpty* request,
-    ::aurum::RspEmptyresponse)
+    ::grpc::ServerContext *context, const ::aurum::ReqEmpty *request,
+    ::aurum::RspEmpty *response)
 {
     std::unique_ptr<KillServerCommand> cmd = std::make_unique<KillServerCommand>(request, response);
     return execute(cmd.get(), false);
 }
 
 ::grpc::Status aurumServiceImpl::aurumServiceImpl::findElement(
-    ::grpc::ServerContext* context, const ::aurum::ReqFindElement* request,
-    ::aurum::RspFindElementresponse)
+    ::grpc::ServerContext *context, const ::aurum::ReqFindElement *request,
+    ::aurum::RspFindElement *response)
 {
     std::unique_ptr<FindElementCommand> cmd = std::make_unique<FindElementCommand>(request, response);
     return execute(cmd.get(), true);
 }
 
 ::grpc::Status aurumServiceImpl::aurumServiceImpl::click(
-    ::grpc::ServerContext* context, const ::aurum::ReqClick* request,
-    ::aurum::RspClickresponse)
+    ::grpc::ServerContext *context, const ::aurum::ReqClick *request,
+    ::aurum::RspClick *response)
 {
     std::unique_ptr<ClickCommand> cmd = ClickCommand::createCommand(request, response);
     return execute(cmd.get(), true);
 }
 
-::grpc::Status aurumServiceImpl::getValue(::grpc::ServerContext*      context,
-                                          const ::aurum::ReqGetValuerequest,
-                                          ::aurum::RspGetValue*       response)
+::grpc::Status aurumServiceImpl::getValue(::grpc::ServerContext *context,
+                                          const ::aurum::ReqGetValue *request,
+                                          ::aurum::RspGetValue *response)
 {
     std::unique_ptr<GetValueCommand> cmd = std::make_unique<GetValueCommand>(request, response);
     return execute(cmd.get(), true);
 }
 
-::grpc::Status aurumServiceImpl::setValue(::grpc::ServerContext*      context,
-                                          const ::aurum::ReqSetValuerequest,
-                                          ::aurum::RspSetValue*       response)
+::grpc::Status aurumServiceImpl::setValue(::grpc::ServerContext *context,
+                                          const ::aurum::ReqSetValue *request,
+                                          ::aurum::RspSetValue *response)
 {
     std::unique_ptr<SetValueCommand> cmd = std::make_unique<SetValueCommand>(request, response);
     return execute(cmd.get(), true);
 }
 
 ::grpc::Status aurumServiceImpl::getAttribute(
-    ::grpc::ServerContext* context, const ::aurum::ReqGetAttribute* request,
-    ::aurum::RspGetAttributeresponse)
+    ::grpc::ServerContext *context, const ::aurum::ReqGetAttribute *request,
+    ::aurum::RspGetAttribute *response)
 {
     std::unique_ptr<GetAttributeCommand> cmd = GetAttributeCommand::createCommand(request, response);
     return execute(cmd.get(), true);
 }
 
-::grpc::Status aurumServiceImpl::getSize(::grpc::ServerContext*     context,
-                                         const ::aurum::ReqGetSizerequest,
-                                         ::aurum::RspGetSize*       response)
+::grpc::Status aurumServiceImpl::getSize(::grpc::ServerContext *context,
+                                         const ::aurum::ReqGetSize *request,
+                                         ::aurum::RspGetSize *response)
 {
     std::unique_ptr<GetSizeCommand> cmd = std::make_unique<GetSizeCommand>(request, response);
     return execute(cmd.get(), true);
 }
 
-::grpc::Status aurumServiceImpl::clear(::grpc::ServerContext*   context,
-                                       const ::aurum::ReqClearrequest,
-                                       ::aurum::RspClear*       response)
+::grpc::Status aurumServiceImpl::clear(::grpc::ServerContext *context,
+                                       const ::aurum::ReqClear *request,
+                                       ::aurum::RspClear *response)
 {
     std::unique_ptr<ClearCommand> cmd = std::make_unique<ClearCommand>(request, response);
     return execute(cmd.get(), true);
 }
 
 ::grpc::Status aurumServiceImpl::installApp(
-    ::grpc::ServerContext*                         context,
-    ::grpc::ServerReader< ::aurum::ReqInstallApp>request,
-    ::aurum::RspInstallApp*                        response)
+    ::grpc::ServerContext *context,
+    ::grpc::ServerReader< ::aurum::ReqInstallApp> *request,
+    ::aurum::RspInstallApp *response)
 {
     std::unique_ptr<InstallAppCommand> cmd = std::make_unique<InstallAppCommand>(request, response);
     return execute(cmd.get(), false);
 }
 
-::grpc::Status aurumServiceImpl::removeApp(::grpc::ServerContext*       context,
-                                           const ::aurum::ReqRemoveApprequest,
-                                           ::aurum::RspRemoveAppresponse)
+::grpc::Status aurumServiceImpl::removeApp(::grpc::ServerContext *context,
+                                           const ::aurum::ReqRemoveApp *request,
+                                           ::aurum::RspRemoveApp *response)
 {
     std::unique_ptr<RemoveAppCommand> cmd = std::make_unique<RemoveAppCommand>(request, response);
     return execute(cmd.get(), false);
 }
 
 ::grpc::Status aurumServiceImpl::getAppInfo(
-    ::grpc::ServerContext* context, const ::aurum::ReqGetAppInfo* request,
-    ::aurum::RspGetAppInforesponse)
+    ::grpc::ServerContext *context, const ::aurum::ReqGetAppInfo *request,
+    ::aurum::RspGetAppInfo *response)
 {
     std::unique_ptr<GetAppInfoCommand> cmd = std::make_unique<GetAppInfoCommand>(request, response);
     return execute(cmd.get(), false);
 }
 
-::grpc::Status aurumServiceImpl::launchApp(::grpc::ServerContext*       context,
-                                           const ::aurum::ReqLaunchApprequest,
-                                           ::aurum::RspLaunchAppresponse)
+::grpc::Status aurumServiceImpl::launchApp(::grpc::ServerContext *context,
+                                           const ::aurum::ReqLaunchApp *request,
+                                           ::aurum::RspLaunchApp *response)
 {
     std::unique_ptr<LaunchAppCommand> cmd = std::make_unique<LaunchAppCommand>(request, response);
     return execute(cmd.get(), false);
 }
 
-::grpc::Status aurumServiceImpl::closeApp(::grpc::ServerContext*      context,
-                                          const ::aurum::ReqCloseApprequest,
-                                          ::aurum::RspCloseApp*       response)
+::grpc::Status aurumServiceImpl::closeApp(::grpc::ServerContext *context,
+                                          const ::aurum::ReqCloseApp *request,
+                                          ::aurum::RspCloseApp *response)
 {
     std::unique_ptr<CloseAppCommand> cmd = std::make_unique<CloseAppCommand>(request, response);
     return execute(cmd.get(), false);
 }
 
-::grpc::Status aurumServiceImpl::touchDown(::grpc::ServerContext*       context,
-                                           const ::aurum::ReqTouchDownrequest,
-                                           ::aurum::RspTouchDownresponse)
+::grpc::Status aurumServiceImpl::touchDown(::grpc::ServerContext *context,
+                                           const ::aurum::ReqTouchDown *request,
+                                           ::aurum::RspTouchDown *response)
 {
     std::unique_ptr<TouchDownCommand> cmd = std::make_unique<TouchDownCommand>(request, response);
     return execute(cmd.get(), false);
 }
 
-::grpc::Status aurumServiceImpl::touchUp(::grpc::ServerContext*     context,
-                                         const ::aurum::ReqTouchUprequest,
-                                         ::aurum::RspTouchUp*       response)
+::grpc::Status aurumServiceImpl::touchUp(::grpc::ServerContext *context,
+                                         const ::aurum::ReqTouchUp *request,
+                                         ::aurum::RspTouchUp *response)
 {
     std::unique_ptr<TouchUpCommand> cmd = std::make_unique<TouchUpCommand>(request, response);
     return execute(cmd.get(), false);
 }
 
-::grpc::Status aurumServiceImpl::touchMove(::grpc::ServerContext*       context,
-                                           const ::aurum::ReqTouchMoverequest,
-                                           ::aurum::RspTouchMoveresponse)
+::grpc::Status aurumServiceImpl::touchMove(::grpc::ServerContext *context,
+                                           const ::aurum::ReqTouchMove *request,
+                                           ::aurum::RspTouchMove *response)
 {
     std::unique_ptr<TouchMoveCommand> cmd = std::make_unique<TouchMoveCommand>(request, response);
     return execute(cmd.get(), false);
 }
 
-::grpc::Status aurumServiceImpl::longClick(::grpc::ServerContext*   context,
-                                           const ::aurum::ReqClickrequest,
-                                           ::aurum::RspClick*       response)
+::grpc::Status aurumServiceImpl::longClick(::grpc::ServerContext *context,
+                                           const ::aurum::ReqClick *request,
+                                           ::aurum::RspClick * response)
 {
     std::unique_ptr<LongClickCommand> cmd = std::make_unique<LongClickCommand>(request, response);
     return execute(cmd.get(), false);
 }
 
-::grpc::Status aurumServiceImpl::flick(::grpc::ServerContext*   context,
-                                       const ::aurum::ReqFlickrequest,
-                                       ::aurum::RspFlick*       response)
+::grpc::Status aurumServiceImpl::flick(::grpc::ServerContext *context,
+                                       const ::aurum::ReqFlick *request,
+                                       ::aurum::RspFlick *response)
 {
     std::unique_ptr<FlickCommand> cmd = std::make_unique<FlickCommand>(request, response);
     return execute(cmd.get(), false);
 }
 
 ::grpc::Status aurumServiceImpl::getDeviceTime(
-    ::grpc::ServerContext* context, const ::aurum::ReqGetDeviceTime* request,
-    ::aurum::RspGetDeviceTimeresponse)
+    ::grpc::ServerContext *context, const ::aurum::ReqGetDeviceTime *request,
+    ::aurum::RspGetDeviceTime *response)
 {
     std::unique_ptr<GetDeviceTimeCommand> cmd = std::make_unique<GetDeviceTimeCommand>(request, response);
     return execute(cmd.get(), false);
 }
 
 ::grpc::Status aurumServiceImpl::getLocation(
-    ::grpc::ServerContext* context, const ::aurum::ReqGetLocation* request,
-    ::aurum::RspGetLocationresponse)
+    ::grpc::ServerContext *context, const ::aurum::ReqGetLocation *request,
+    ::aurum::RspGetLocation *response)
 {
     std::unique_ptr<GetLocationCommand> cmd = std::make_unique<GetLocationCommand>(request, response);
     return execute(cmd.get(), false);
 }
 
-::grpc::Status aurumServiceImpl::sendKey(::grpc::ServerContextcontext,
-                                         const ::aurum::ReqKeyrequest,
-                                         ::aurum::RspKey*       response)
+::grpc::Status aurumServiceImpl::sendKey(::grpc::ServerContext *context,
+                                         const ::aurum::ReqKey *request,
+                                         ::aurum::RspKey *response)
 {
     std::unique_ptr<SendKeyCommand> cmd = std::make_unique<SendKeyCommand>(request, response);
     return execute(cmd.get(), false);
 }
 
-::grpc::Status aurumServiceImpl::takeScreenshot(::grpc::ServerContextcontext,
-                                                const ::aurum::ReqTakeScreenshotrequest,
-                                                ::grpc::ServerWriter< ::aurum::RspTakeScreenshot>writer)
+::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(), false);
@@ -210,7 +210,7 @@ aurumServiceImpl::~aurumServiceImpl()
 
 ::grpc::Status aurumServiceImpl::dumpObjectTree(::grpc::ServerContext *context,
                            const ::aurum::ReqDumpObjectTree *request,
-                           ::aurum::RspDumpObjectTree *      response)
+                           ::aurum::RspDumpObjectTree *response)
 {
     std::unique_ptr<DumpObjectTreeCommand> cmd = std::make_unique<DumpObjectTreeCommand>(request, response);
     return execute(cmd.get(), true);
index 0edd35d3676def589bd6901e1d25ec77d75ed874..7255afddd8838937318b6ecc5337d7a014581581 100644 (file)
@@ -15,14 +15,14 @@ using namespace grpc;
 
 typedef struct _ServiceContext {
     GMainLoop *loop;
-    GThread   *thread;
+    GThread *thread;
     std::unique_ptr<Server> server;
 } ServiceContext;
 
 static gpointer
 _grpc_thread_func (gpointer data)
 {
-    ServiceContext *ctx = (ServiceContext*)data;
+    ServiceContext *ctx = (ServiceContext *)data;
     std::string binding("0.0.0.0:50051");
     aurumServiceImpl service;
     ServerBuilder builder;
@@ -38,7 +38,7 @@ _grpc_thread_func (gpointer data)
 
 static bool _service_app_create(void *data)
 {
-    ServiceContext *ctx = (ServiceContext*)data;
+    ServiceContext *ctx = (ServiceContext *)data;
 
     ctx->loop = g_main_loop_new ( NULL , FALSE );
     ctx->thread = g_thread_new("grpc_thread", _grpc_thread_func, ctx);
@@ -48,7 +48,7 @@ static bool _service_app_create(void *data)
 
 static void _service_app_terminate(void *data)
 {
-    ServiceContext *ctx = (ServiceContext*)data;
+    ServiceContext *ctx = (ServiceContext *)data;
     ctx->server->Shutdown();
     g_main_loop_unref(ctx->loop);
     g_thread_join(ctx->thread);
@@ -56,7 +56,7 @@ static void _service_app_terminate(void *data)
 
 static void _service_app_control(app_control_h app_control, void *data)
 {
-    ServiceContext *ctx = (ServiceContext*)data;
+    ServiceContext *ctx = (ServiceContext *)data;
     if (!ctx)
         LOGE("Service context is empty!");
 }
index 3b80401fcd5fc3f60dd3fbf712ec5ea674589d24..c48bcdbe58e241c5d699afd20bf0b5cb5c6e787a 100644 (file)
@@ -2,8 +2,8 @@
 #include "ClearCommand.h"
 #include <string>
 
-ClearCommand::ClearCommand(const ::aurum::ReqClearrequest,
-                           ::aurum::RspClear*       response)
+ClearCommand::ClearCommand(const ::aurum::ReqClear *request,
+                           ::aurum::RspClear *response)
     : mRequest{request}, mResponse{response}
 {
 }
@@ -25,7 +25,7 @@ bool ClearCommand::hasHintText(std::shared_ptr<UiObject> obj)
 ::grpc::Status ClearCommand::execute()
 {
     LOGI("Clear --------------- ");
-    ObjectMappermObjMap = ObjectMapper::getInstance();
+    ObjectMapper *mObjMap = ObjectMapper::getInstance();
     std::shared_ptr<UiObject> obj = mObjMap->getElement(mRequest->elementid());
 
     if (obj) {
@@ -44,4 +44,4 @@ bool ClearCommand::hasHintText(std::shared_ptr<UiObject> obj)
     }
 
     return grpc::Status::OK;
-}
\ No newline at end of file
+}
index 0b745273de6f15d6f77fa8ede6b79744d07474df..cc7a30ee00411c5e303b604d7d758a943391f391 100644 (file)
@@ -3,8 +3,8 @@
 #include "UiObject.h"
 #include "UiDevice.h"
 
-ClickCommand::ClickCommand(const ::aurum::ReqClickrequest,
-                           ::aurum::RspClick*       response)
+ClickCommand::ClickCommand(const ::aurum::ReqClick *request,
+                           ::aurum::RspClick *response)
     : mRequest{request}, mResponse{response}
 {
 }
@@ -14,7 +14,7 @@ ClickCommand::ClickCommand(const ::aurum::ReqClick* request,
    return grpc::Status::CANCELLED;
 }
 
-std::unique_ptr<ClickCommand> ClickCommand::createCommand(const ::aurum::ReqClick* request, ::aurum::RspClick* response)
+std::unique_ptr<ClickCommand> ClickCommand::createCommand(const ::aurum::ReqClick *request, ::aurum::RspClick *response)
 {
     ::aurum::ReqClick_RequestType type = request->type();
 
@@ -30,7 +30,7 @@ std::unique_ptr<ClickCommand> ClickCommand::createCommand(const ::aurum::ReqClic
 
 ::grpc::Status ClickElementCommand::execute()
 {
-    ObjectMappermObjMap = ObjectMapper::getInstance();
+    ObjectMapper *mObjMap = ObjectMapper::getInstance();
     std::shared_ptr<UiObject> obj = mObjMap->getElement(mRequest->elementid());
     LOGI("ClickElementCommand execute %p", obj.get());
 
@@ -55,7 +55,7 @@ std::unique_ptr<ClickCommand> ClickCommand::createCommand(const ::aurum::ReqClic
 
 ::grpc::Status ClickAtspiCommand::execute()
 {
-    ObjectMappermObjMap = ObjectMapper::getInstance();
+    ObjectMapper *mObjMap = ObjectMapper::getInstance();
     std::shared_ptr<UiObject> obj = mObjMap->getElement(mRequest->elementid());
 
     LOGI("ClickAtspiCommand execute %p", obj.get());
index e1d0b518703d816474a21290ccf8303967d2ce2b..c1073f4eec40aebfe96c406ea71a76e5b9c8c5d2 100644 (file)
@@ -6,8 +6,8 @@
 #include <app_manager_extension.h>
 #endif
 
-CloseAppCommand::CloseAppCommand(const ::aurum::ReqCloseApprequest,
-                                 ::aurum::RspCloseApp*       response)
+CloseAppCommand::CloseAppCommand(const ::aurum::ReqCloseApp *request,
+                                 ::aurum::RspCloseApp *response)
     : mRequest{request}, mResponse{response}
 {
 }
@@ -42,4 +42,4 @@ CloseAppCommand::CloseAppCommand(const ::aurum::ReqCloseApp* request,
     LOGI("Wait for 1500ms");
     std::this_thread::sleep_for(std::chrono::milliseconds{1500});
     return grpc::Status::OK;
-}
\ No newline at end of file
+}
index b8b7c719878c8da2d1a902d6ab43d67fb42f185a..84f0002e26178f8705c951fac8369befe5c79fbc 100644 (file)
@@ -6,8 +6,8 @@
 #include "Sel.h"
 #include "ISearchable.h"
 
-DumpObjectTreeCommand::DumpObjectTreeCommand(const ::aurum::ReqDumpObjectTreerequest,
-                                                   ::aurum::RspDumpObjectTreeresponse)
+DumpObjectTreeCommand::DumpObjectTreeCommand(const ::aurum::ReqDumpObjectTree *request,
+                                                   ::aurum::RspDumpObjectTree *response)
     : mRequest{request}, mResponse{response}
 {
     mObjMap = ObjectMapper::getInstance();
@@ -55,7 +55,7 @@ void DumpObjectTreeCommand::traverse(::aurum::Element *root, std::shared_ptr<Nod
     root->set_isselectable(obj->isSelectable());
 
     for( auto && childNode : node->mChildren) {
-        ::aurum::Elementchild = root->add_child();
+        ::aurum::Element *child = root->add_child();
         traverse(child, childNode, depth+1);
     }
 }
@@ -69,7 +69,7 @@ void DumpObjectTreeCommand::traverse(::aurum::Element *root, std::shared_ptr<Nod
         if (!obj) return grpc::Status::OK;;
 
         auto node = obj->getDescendant();
-        ::aurum::Elementroot = mResponse->add_roots();
+        ::aurum::Element *root = mResponse->add_roots();
         traverse(root, node, 0);
     }
     return grpc::Status::OK;
index 1238b8bdf6b4b739ddb5492b28ed90069b486e57..ee8f6ff46ef509fcadcbb93ad63cc0a026bd0852 100644 (file)
@@ -6,8 +6,8 @@
 #include "Sel.h"
 #include "ISearchable.h"
 
-FindElementCommand::FindElementCommand(const ::aurum::ReqFindElementrequest,
-                                       ::aurum::RspFindElement*       response)
+FindElementCommand::FindElementCommand(const ::aurum::ReqFindElement *request,
+                                       ::aurum::RspFindElement *response)
     : mRequest{request}, mResponse{response}
 {
     mObjMap = ObjectMapper::getInstance();
@@ -64,14 +64,14 @@ std::vector<std::shared_ptr<UiSelector>> FindElementCommand::getSelectors(void)
 
     if (founds.size() > 0) {
         for (auto& found : founds) {
-            UiObject*   obj = found.get();
+            UiObject *obj = found.get();
             std::string key{};
             key = mObjMap->getElement(found);
             if (key.length() <= 0)
               key = mObjMap->addElement(std::move(found));
             LOGI("found object : %s key:%s",
                   obj->getAutomationId().c_str(), key.c_str());
-            ::aurum::Elementelm = mResponse->add_elements();
+            ::aurum::Element *elm = mResponse->add_elements();
             elm->set_elementid(key);
             elm->set_package(obj->getApplicationPackage());
 
index d1703be21fe5e1213109f169bbe4076e8dbc4b8b..14fcf66a3493bf119a51df0a798d520aa4c17c95 100644 (file)
@@ -3,7 +3,7 @@
 #include "UiDevice.h"
 
 FlickCommand::FlickCommand(const ::aurum::ReqFlick *request,
-                           ::aurum::RspFlick *      response)
+                           ::aurum::RspFlick *response)
     : mRequest{request}, mResponse{response}
 {
 }
index 219211d1a6943371840a77a27802b5f6faf3487f..cf14e32aad34b5616052bb6cf6ffbfeaf1840eae 100644 (file)
@@ -5,8 +5,8 @@
 #include <package_manager.h>
 #endif
 
-GetAppInfoCommand::GetAppInfoCommand(const ::aurum::ReqGetAppInforequest,
-                                     ::aurum::RspGetAppInfo*       response)
+GetAppInfoCommand::GetAppInfoCommand(const ::aurum::ReqGetAppInfo *request,
+                                     ::aurum::RspGetAppInfo *response)
     : mRequest{request}, mResponse{response}
 {
 }
@@ -21,7 +21,7 @@ GetAppInfoCommand::GetAppInfoCommand(const ::aurum::ReqGetAppInfo* request,
     package_info_h package_info;
     app_state_e    appState;
 
-    charlabel = nullptr;
+    char *label = nullptr;
 
     mResponse->set_status(::aurum::RspStatus::OK);
     mResponse->set_isinstalled(false);
index cba8037d573663c678216fbfc52eff35ba607604..1d54967bf0db4b58c94db3635ceea93034699589 100644 (file)
@@ -4,7 +4,7 @@
 #include "UiDevice.h"
 
 GetAttributeCommand::GetAttributeCommand(
-    const ::aurum::ReqGetAttribute* request, ::aurum::RspGetAttribute* response)
+    const ::aurum::ReqGetAttribute *request, ::aurum::RspGetAttribute *response)
     : mRequest{request}, mResponse{response},  mObjMap{ObjectMapper::getInstance()}
 {
 }
@@ -14,8 +14,8 @@ GetAttributeCommand::GetAttributeCommand(
     return grpc::Status::CANCELLED;
 }
 
-std::unique_ptr<GetAttributeCommand> GetAttributeCommand::createCommand(const ::aurum::ReqGetAttributerequest,
-                                                                        ::aurum::RspGetAttribute*       response)
+std::unique_ptr<GetAttributeCommand> GetAttributeCommand::createCommand(const ::aurum::ReqGetAttribute *request,
+                                                                        ::aurum::RspGetAttribute*response)
 {
     LOGI("GetAttribute --------------- ");
     ::aurum::ReqGetAttribute_RequestType type = request->attribute();
index 8403dc80d7ca45435b7f8b7e254472bd60197bca..11b05e3a42ab62ba9bd5b3248a24d3832d57ddb1 100644 (file)
@@ -9,8 +9,8 @@
 #define BUFSIZE 64
 
 GetDeviceTimeCommand::GetDeviceTimeCommand(
-    const ::aurum::ReqGetDeviceTimerequest,
-    ::aurum::RspGetDeviceTime*       response)
+    const ::aurum::ReqGetDeviceTime *request,
+    ::aurum::RspGetDeviceTime *response)
     : mRequest{request}, mResponse{response}
 {
 }
index dc85706d1f815f9ffb95d49399fc64974820ada3..303d763d955f06a82aae077c793b9fcc837bbd49 100644 (file)
@@ -1,8 +1,8 @@
 #include "bootstrap.h"
 #include "GetLocationCommand.h"
 
-GetLocationCommand::GetLocationCommand(const ::aurum::ReqGetLocationrequest,
-                                       ::aurum::RspGetLocation*       response)
+GetLocationCommand::GetLocationCommand(const ::aurum::ReqGetLocation *request,
+                                       ::aurum::RspGetLocation *response)
     : mRequest{request}, mResponse{response}
 {
 }
@@ -10,7 +10,6 @@ GetLocationCommand::GetLocationCommand(const ::aurum::ReqGetLocation* request,
 ::grpc::Status GetLocationCommand::execute()
 {
     LOGI("GetLocation --------------- ");
-    // ObjectMapper *mObjMap = ObjectMapper::getInstance();
 
     mResponse->set_alt(-1);
     mResponse->set_lat(-1);
index 88c7b000f1e5922ceeca55ae2abac90d7908d57a..cb7280a7d5146d2f45b21e5d3cfe462b9e987e93 100644 (file)
@@ -2,8 +2,8 @@
 #include "GetSizeCommand.h"
 #include "UiObject.h"
 
-GetSizeCommand::GetSizeCommand(const ::aurum::ReqGetSizerequest,
-                               ::aurum::RspGetSize*       response)
+GetSizeCommand::GetSizeCommand(const ::aurum::ReqGetSize *request,
+                               ::aurum::RspGetSize *response)
     : mRequest{request}, mResponse{response}
 {
 }
index 410af95180cd98b98b676bff399a68dc846cdaa5..61c81d9ee2f2ca0eb598b50e912262e1d2ecd19d 100644 (file)
@@ -2,8 +2,8 @@
 #include "GetValueCommand.h"
 #include "UiObject.h"
 
-GetValueCommand::GetValueCommand(const ::aurum::ReqGetValuerequest,
-                                 ::aurum::RspGetValue*       response)
+GetValueCommand::GetValueCommand(const ::aurum::ReqGetValue *request,
+                                 ::aurum::RspGetValue *response)
     : mRequest{request}, mResponse{response}
 {
 }
@@ -11,7 +11,7 @@ GetValueCommand::GetValueCommand(const ::aurum::ReqGetValue* request,
 ::grpc::Status GetValueCommand::execute()
 {
     LOGI("GetValue --------------- ");
-    ObjectMappermObjMap = ObjectMapper::getInstance();
+    ObjectMapper *mObjMap = ObjectMapper::getInstance();
     std::shared_ptr<UiObject> obj = mObjMap->getElement(mRequest->elementid());
 
     if (obj) {
@@ -21,4 +21,4 @@ GetValueCommand::GetValueCommand(const ::aurum::ReqGetValue* request,
     }
 
     return grpc::Status::OK;
-}
\ No newline at end of file
+}
index 72f9e3f2976dad09cb0a4c271fcbcdab5caa1f00..c14297ab05df391b2c5439119b38ad8573b06d66 100644 (file)
@@ -1,8 +1,8 @@
 #include "bootstrap.h"
 #include "KillServerCommand.h"
 
-KillServerCommand::KillServerCommand(const ::aurum::ReqEmptyrequest,
-                                     ::aurum::RspEmpty*       response)
+KillServerCommand::KillServerCommand(const ::aurum::ReqEmpty *request,
+                                     ::aurum::RspEmpty *response)
     : mRequest{request}, mResponse{response}
 {
 }
index 2d2ab1532a291fd293c0825d93ebcd7d830d9235..f7c30ed7390391cd17f59a744da2be876de1a33b 100644 (file)
@@ -7,8 +7,8 @@
 #include <app_control.h>
 #endif
 
-LaunchAppCommand::LaunchAppCommand(const ::aurum::ReqLaunchApprequest,
-                                   ::aurum::RspLaunchApp*       response)
+LaunchAppCommand::LaunchAppCommand(const ::aurum::ReqLaunchApp *request,
+                                   ::aurum::RspLaunchApp *response)
     : mRequest{request}, mResponse{response}
 {
 }
index 22148b583daa7f30e221ab6d2a1ac1e3896cc19b..3312c70fe1cc208b5e0d9d7e4e5f3cd8b3b3c1d0 100644 (file)
@@ -3,8 +3,8 @@
 #include "UiObject.h"
 #include "UiDevice.h"
 
-LongClickCommand::LongClickCommand(const ::aurum::ReqClickrequest,
-                                   ::aurum::RspClick*       response)
+LongClickCommand::LongClickCommand(const ::aurum::ReqClick *request,
+                                   ::aurum::RspClick *response)
     : mRequest{request}, mResponse{response}
 {
 }
@@ -13,7 +13,7 @@ LongClickCommand::LongClickCommand(const ::aurum::ReqClick* request,
 {
     LOGI("LongClick --------------- ");
 
-    ObjectMappermObjMap = ObjectMapper::getInstance();
+    ObjectMapper *mObjMap = ObjectMapper::getInstance();
     ::aurum::ReqClick_RequestType type = mRequest->type();
 
     if (type == ::aurum::ReqClick_RequestType_ELEMENTID) {
index 52e137f7689bbd0667d6df24587a5eeb386bb41d..b2ba222ee3c16c8c4e49be9ee54e59f860d10601 100644 (file)
@@ -2,8 +2,8 @@
 #include "SendKeyCommand.h"
 #include "UiDevice.h"
 
-SendKeyCommand::SendKeyCommand(const ::aurum::ReqKeyrequest,
-                               ::aurum::RspKey*       response)
+SendKeyCommand::SendKeyCommand(const ::aurum::ReqKey *request,
+                               ::aurum::RspKey *response)
     : mRequest{request}, mResponse{response}
 {
 }
index 30538fed64b655666951a06dd9d5ef0b1feffc88..77ace7362aa07ea3aa018db6d170e556ef8c1131 100644 (file)
@@ -11,8 +11,9 @@ SetValueCommand::SetValueCommand(const ::aurum::ReqSetValue* request,
 {
     LOGI("SetValue --------------- ");
     LOGI("text:%s", mRequest->stringvalue().c_str());
-    ObjectMapper* mObjMap = ObjectMapper::getInstance();
+
+    ObjectMapper *mObjMap = ObjectMapper::getInstance();
     std::shared_ptr<UiObject> obj = mObjMap->getElement(mRequest->elementid());
     if (obj) obj->setText(const_cast<std::string&>(mRequest->stringvalue()));
     return grpc::Status::OK;
-}
\ No newline at end of file
+}
index 6d0177c88b571f968aabe5adfb3e6f4f898674b5..e3cc296584f99a249623bcd1cd463b02f18962bd 100644 (file)
@@ -5,8 +5,8 @@
 #include "UiDevice.h"
 
 TakeScreenshotCommand::TakeScreenshotCommand(
-    const ::aurum::ReqTakeScreenshot*                  request,
-    ::grpc::ServerWriter< ::aurum::RspTakeScreenshot>writer)
+    const ::aurum::ReqTakeScreenshot *request,
+    ::grpc::ServerWriter< ::aurum::RspTakeScreenshot> *writer)
     : mRequest{request}, mWriter{writer}
 {
 }
index c148b8a4b9cdb8db780e72c1854ae5eabd43d591..fa42062720ea870bef8f066cf177f4f6f74d5315 100644 (file)
@@ -2,8 +2,8 @@
 #include "TouchDownCommand.h"
 #include "UiDevice.h"
 
-TouchDownCommand::TouchDownCommand(const ::aurum::ReqTouchDownrequest,
-                                   ::aurum::RspTouchDown*       response)
+TouchDownCommand::TouchDownCommand(const ::aurum::ReqTouchDown *request,
+                                   ::aurum::RspTouchDown *response)
     : mRequest{request}, mResponse{response}
 {
 }
index 2bb0423a38d7af2cf12ce361aff1c6ea7b3bdc78..951e4de37f70bab9fdd9c69f86cbd7986e097f42 100644 (file)
@@ -2,8 +2,8 @@
 #include "TouchMoveCommand.h"
 #include "UiDevice.h"
 
-TouchMoveCommand::TouchMoveCommand(const ::aurum::ReqTouchMoverequest,
-                                   ::aurum::RspTouchMove*       response)
+TouchMoveCommand::TouchMoveCommand(const ::aurum::ReqTouchMove *request,
+                                   ::aurum::RspTouchMove *response)
     : mRequest{request}, mResponse{response}
 {
 }
index 4fd946b30e61b77aa1e19fab2d702e70ff482642..432e972af3dfbb4541ca9b020aea3c538fed0236 100644 (file)
@@ -2,8 +2,8 @@
 #include "TouchUpCommand.h"
 #include "UiDevice.h"
 
-TouchUpCommand::TouchUpCommand(const ::aurum::ReqTouchUprequest,
-                               ::aurum::RspTouchUp*       response)
+TouchUpCommand::TouchUpCommand(const ::aurum::ReqTouchUp *request,
+                               ::aurum::RspTouchUp *response)
     : mRequest{request}, mResponse{response}
 {
 }
index 0e7b7b6ccc54ef6789830ef3e17f8aa8f7e53c7a..40c68d131027cc613eb973d5deda3dc00a8c2b9e 100644 (file)
@@ -74,11 +74,9 @@ bool ObjectMapper::removeElement(std::shared_ptr<UiObject> object)
 
 void ObjectMapper::cleanUp()
 {
-    std::stringstream ss{};
-
     LOGI("clean up object map");
     for(auto iter = mObjectMapReverse.begin(); iter != mObjectMapReverse.end(); ) {
-       auto obj = mObjectMap[iter->second];
+        auto obj = mObjectMap[iter->second];
         if (obj && !obj->isValid()) {
             iter = mObjectMapReverse.erase(iter);
         } else {