diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-05-30 19:06:32 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-05-30 19:06:32 +0900 |
commit | dfe4aee045113eceaeabd327291f94583e7b13d3 (patch) | |
tree | 745826e7154c4d08606456dcef68716e64c70b81 /src/applist.hpp | |
parent | 5d91a5ffe0bc614ee79a18818dadf5836ce038d7 (diff) |
Format source codes
Change-Id: I28e99487b814b23fe99aa6bc8ec4538af3940acf
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/applist.hpp')
-rw-r--r-- | src/applist.hpp | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/src/applist.hpp b/src/applist.hpp index 52dcfeb..cab3595 100644 --- a/src/applist.hpp +++ b/src/applist.hpp @@ -24,13 +24,15 @@ #include "windowmanager-client.hpp" #include "request.hpp" -namespace wm { +namespace wm +{ /* using std::experimental::nullopt; using std::experimental::optional; */ -class AppList { -public: +class AppList +{ + public: AppList(); virtual ~AppList(); AppList(const AppList &obj) = delete; @@ -39,7 +41,7 @@ public: void addClient(const std::string &appid, const std::string &role); void removeClient(const std::string &appid); bool contains(const std::string &appid); - int countClient(); + int countClient(); std::shared_ptr<WMClient> lookUpClient(const std::string &appid); // Request Interface @@ -49,26 +51,26 @@ public: /* TODO: consider, which is better WMClient or std::string appid? if appid is key to manage resources, it is better to select std::string otherwise WMClient is better, IMO */ - bool requestFinished(); - bool setAction(unsigned req_num, const struct WMAction &action); - bool setAction(unsigned req_num, const std::string &appid, const std::string &role, const std::string &area, bool visible = true); - bool setEndDrawFinished(unsigned req_num, const std::string &appid, const std::string &role); - bool endDrawFullfilled(unsigned req_num); - void removeRequest(unsigned req_num); - void next(); - bool haveRequest(); + bool requestFinished(); + bool setAction(unsigned req_num, const struct WMAction &action); + bool setAction(unsigned req_num, const std::string &appid, const std::string &role, const std::string &area, bool visible = true); + bool setEndDrawFinished(unsigned req_num, const std::string &appid, const std::string &role); + bool endDrawFullfilled(unsigned req_num); + void removeRequest(unsigned req_num); + void next(); + bool haveRequest(); struct WMTrigger getRequest(unsigned req_num); - const std::vector<struct WMAction>& getActions(unsigned req_num); + const std::vector<struct WMAction> &getActions(unsigned req_num); - void client_dump(); - void req_dump(); + void client_dump(); + void req_dump(); -private: - std::vector<WMRequest> req_list; - std::unordered_map<std::string, std::shared_ptr<WMClient>> client_list; - unsigned current_seq; + private: + std::vector<WMRequest> req_list; + std::unordered_map<std::string, std::shared_ptr<WMClient>> client_list; + unsigned current_seq; }; -} +} // namespace wm #endif // ALLOCATE_LIST_HPP
\ No newline at end of file |