bootstrap: change bootstrap to a tizen service app
[platform/core/uifw/aurum.git] / org.tizen.aurum-bootstrap / src / Commands / SyncCommand.cc
1 #include "SyncCommand.h"
2 #include <loguru.hpp>
3
4 #include <AccessibleWatcher.h>
5 #include <AccessibleNode.h>
6
7 SyncCommand::SyncCommand(const ::aurum::ReqEmpty *request,
8                          ::aurum::RspEmpty *      response)
9     : mRequest{request}, mResponse{response}
10 {
11 }
12
13 ::grpc::Status SyncCommand::execute()
14 {
15     LOG_SCOPE_F(INFO, "Sync Command ");
16     const AccessibleWatcher *accObj = AccessibleWatcher::getInstance();
17
18     auto root = accObj->getRootNode();
19     LOG_F(INFO, "root node tree / depth : 2");
20     root->print(0, 2);
21
22     return grpc::Status::OK;
23 }