2 * Copyright (c) 2018 TOYOTA MOTOR CORPORATION
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef HOMESCREEN_CLIENT_H
18 #define HOMESCREEN_CLIENT_H
21 #include <unordered_map>
22 #include "hs-helper.h"
27 HS_Client(struct afb_req request, const char* id) : HS_Client(request, std::string(id)){}
28 HS_Client(struct afb_req request, std::string id);
29 HS_Client(HS_Client&) = delete;
30 HS_Client &operator=(HS_Client&) = delete;
33 int tap_shortcut(const char* appname);
34 int on_screen_message (struct afb_req request, const char* message);
35 int on_screen_reply (struct afb_req request, const char* message);
36 int subscribe(struct afb_req request, const char* event);
37 int unsubscribe(struct afb_req request, const char* event);
40 bool checkEvent(const char* event);
44 struct afb_event my_event;
45 std::unordered_map<std::string, int> event_list;
49 #endif // HOMESCREEN_CLIENT_H