Giter Site home page Giter Site logo

synqclient's Introduction

A SynqClient is a C++ library based on Qt which implements job-based access to file sharing services. On top, it implements synchronization between a local folder structure and a remote one on a server.

Background

SynqClient is the result of factoring the WebDAV sync code out of the OpenTodoList project. The result is a library which:

  • Implements a job based approach to access a storage server.
  • On top of this job system, a simple file sync protocol is implemented.

Hence, you can use the library both for simple remote file accesses as well as if you want your app to be able to sync its data across devices.

Documentation

You can find the API documentation on https://synqclient.readthedocs.io/en/latest/index.html.

Building

Building the library can be done either with cmake or qmake.

You will need the following dependencies being installed:

  • Qt 5.15 or 6. The following modules are used:
    • Core
    • Network
    • XML
    • SQL

In addition, depending on how you build, the following extra modules can be used:

  • Extra CMake Modules (ECM)

Building with cmake

Building using cmake is as easy as:

cd path/to/synqclient
mkdir build
cd build
cmake ..
cmake --build .
cmake --install .

Note: You must use cmake version 3.

To build and link against the library, simple use the following in your cmake code:

find_package(SynqClient REQUIRED)

target_link_libraries(my-app PUBLIC SynqClient::synqclient)

In addition, if ECM is found during the build, a qmake module file will be created as well. Hence, if you are using a qmake based project, you can simple use

QT += SynqClient

to include the library in your code.

Note: If you want to install into the system location, you most probably want to set ECM_MKSPECS_INSTALL_DIR appropriately for your system. Please refer to the ECMGeneratePriFile documentation for more details.

Fine Tuning The Build

The following options can be passed to cmake (e.g. via -DOPTION_NAME=ON) to tweak the build:

Flag Description
SYNQCLIENT_WITHOUT_TESTS Do not build the unit tests.

Building with qmake

The qmake based build is also pretty easy:

cd path/to/synqclient
mkdir build
cd build
qmake ..
make
make install

Important: The qmake build will neither yield qmake not cmake integration files. It is recommended only if you have a qmake based project and want to build SynqClient as part of your project build.

Fine Tuning The Build

The following configuration switched can be passed to qmake (e.g. pass CONFIG+=XXX when calling it):

Flag Description
synqclient_with_no_tests Do not build the unit tests.
synqclient_with_static_libs Build the library as a static library.

synqclient's People

Contributors

mhoeher avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.