github.com/jonasnick/go-ethereum@v0.7.12-0.20150216215225-22176f05d387/cmd/mist/assets/ext/ethereum.js/lib/qtsync.js (about)

     1  /*
     2      This file is part of ethereum.js.
     3  
     4      ethereum.js is free software: you can redistribute it and/or modify
     5      it under the terms of the GNU Lesser General Public License as published by
     6      the Free Software Foundation, either version 3 of the License, or
     7      (at your option) any later version.
     8  
     9      ethereum.js is distributed in the hope that it will be useful,
    10      but WITHOUT ANY WARRANTY; without even the implied warranty of
    11      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12      GNU Lesser General Public License for more details.
    13  
    14      You should have received a copy of the GNU Lesser General Public License
    15      along with ethereum.js.  If not, see <http://www.gnu.org/licenses/>.
    16  */
    17  /** @file qtsync.js
    18   * @authors:
    19   *   Marek Kotewicz <marek@ethdev.com>
    20   *   Marian Oancea <marian@ethdev.com>
    21   * @date 2014
    22   */
    23  
    24  var QtSyncProvider = function () {
    25  };
    26  
    27  QtSyncProvider.prototype.send = function (payload) {
    28      var result = navigator.qt.callMethod(JSON.stringify(payload));
    29      return JSON.parse(result);
    30  };
    31  
    32  module.exports = QtSyncProvider;
    33