43b436acb2efd86a0e305cd61db54cb9b4ac1216
[platform/core/appfw/pkgmgr-info.git] / src / common / request_handler / set_pkginfo_request_handler.hh
1 // Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by an apache-2.0 license that can be
3 // found in the LICENSE file.
4
5 #ifndef SERVER_SET_PKGINFO_REQUEST_HANDLER_HH_
6 #define SERVER_SET_PKGINFO_REQUEST_HANDLER_HH_
7
8 #include "abstract_request_handler.hh"
9
10 #include <string>
11
12 namespace pkgmgr_server {
13 namespace request_handler {
14
15 #ifndef EXPORT_API
16 #define EXPORT_API __attribute__((visibility("default")))
17 #endif
18
19 class EXPORT_API SetPkginfoRequestHandler : public AbstractRequestHandler {
20  public:
21   bool HandleRequest(unsigned char* data, int size, std::string locale) override;
22
23   std::vector<uint8_t> GetResult() override;
24 };
25
26 }  // namespace request_handler
27 }  // namespace pkgmgr_server
28
29 #endif  // SERVER_SET_PKGINFO_REQUEST_HANDLER_HH_