Giter Club home page Giter Club logo

connectionagent's Introduction

connectionagent

Connectionagent is a daemon and declarative plugin for accessing connman's UserAgent. It allows multiple access to UserAgent.

The daemon and QtDeclarative plugin are licensed un ther LGPL.

This class is for accessing connman's UserAgent from multiple sources. This is because currently, there can only be one UserAgent per system.

It also handles autoconnect features. In the future it might handle sessions and connection 'migration' or re-connection when a better known service becomes available.

It makes use of a patch to connman, that allows the UserAgent to get signaled when a connection is needed. This is the real reason this daemon is needed. An InputRequest is short lived, and thus, may not clash with other apps that need to use UserAgent.

When you are trying to intercept a connection request, you need a long living process to wait until such time. This will immediately clash if a wlan needs user Input signal from connman, and the configure will never get the proper signal.

This qml type can be used as such:

import com.jolla.connection 1.0

ConnectionAgent {
   id: userAgent
    onUserInputRequested: {
        console.log("        onUserInputRequested:")
    }

   onConnectionRequest: {
      console.log("onConnectionRequest ")
        sendSuppress()
    }
    onErrorReported: {
        console.log("Got error from connman: " + error);
   }

}

connectionagent's People

Contributors

amccarthy avatar faenil avatar lpotter avatar martinjones avatar monich avatar pvuorela avatar rburchell avatar rojkov avatar tigeli avatar

Watchers

 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.