HaikuDepot: Change communication mechanism with server for repos

Operating Systems / Haiku - Andrew Lindesay [lindesay.co.nz] - 3 November 2017 19:10 EDT

(last commit with same title only included new files - added those now)

Previously the desktop application would make a number of JSON-RPC calls over HTTP to get the repositories. Now it will make a single call to get the repositories and cache the result. This uses standard HTTP cache signalling techniques and allows the server-side the ability to cache the generated data as well. Note that the model classes and parse-related classes are generated and may not be code-style compliant. They are generated from JSON schema files in the server-side project. Information about this as well as the python files used to generate the C++ classes and headers are included in the server-side project.

3d528c4a60 HaikuDepot: Change communication mechanism with server for repos
src/apps/haikudepot/Jamfile | 8 +-
src/apps/haikudepot/model/Model.cpp | 75 +++----
src/apps/haikudepot/model/Model.h | 5 +-
.../haikudepot/server/AbstractServerProcess.cpp | 233 ++++++++++++++++++++-
src/apps/haikudepot/server/AbstractServerProcess.h | 42 +++-
.../server/RepositoryDataUpdateProcess.cpp | 2 +-
.../server/ServerIconExportUpdateProcess.cpp | 196 ++---------------
.../server/ServerIconExportUpdateProcess.h | 33 ++-
src/apps/haikudepot/ui/MainWindow.cpp | 8 +-
src/tests/apps/haikudepot/HaikuDepotTestAddon.cpp | 3 +-
src/tests/apps/haikudepot/Jamfile | 12 +-
11 files changed, 366 insertions(+), 251 deletions(-)

Upstream: cgit.haiku-os.org


  • Share