D20640: WIP: [scripting] Port to QJSEngine

Vlad Zagorodniy <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
zzag updated this revision to Diff 56746.
zzag added a comment.


  Implement callDBus.
  
  I went with the second option. Overall, the solution doesn't
  look nice, but it works.
  
  In long term, I think it would be nice to introduce a module
  for such things, e.g.
  
    const dbus = require('dbus');
    
    dbus.makeMethodCall({
        service: 'org.kde.KWin',
        path: '/KWin',
        interface: 'org.kde.KWin',
        method: 'supportInformation',
        onFinished: (text) => console.log(text),
        onError: (err) => console.log(err)
    });

REPOSITORY
  R108 KWin

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D20640?vs=56460&id=56746

BRANCH
  port-scripting-to-qjsengine

REVISION DETAIL
  https://phabricator.kde.org/D20640

AFFECTED FILES
  CMakeLists.txt
  autotests/integration/scripting/scripts/screenedge.js
  autotests/integration/scripting/scripts/screenedgeunregister.js
  autotests/integration/scripting/scripts/touchScreenedge.js
  scripting/meta.cpp
  scripting/meta.h
  scripting/scripting.cpp
  scripting/scripting.h
  scripting/scriptingutils.h
  scripting/timer.cpp
  scripting/timer_wrapper.cpp
  scripting/timer_wrapper.h
  scripting/workspace_wrapper.cpp
  scripting/workspace_wrapper.h

To: zzag
Cc: kwin, jraleigh, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, ngraham, alexeymin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.