Esempio n. 1
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     if self.is_available():
         self.modem_config = amodem.config.slowest()
         self.library_name = {
             'Linux': 'libportaudio.so'
         }[platform.system()]
Esempio n. 2
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     if self.is_available():
         self.modem_config = amodem.config.slowest()
         self.library_name = {
             'Linux': 'libportaudio.so'
         }[platform.system()]
Esempio n. 3
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.listener = None
     self.obj = QReceiveSignalObject()
     self.obj.cosigner_receive_signal.connect(self.on_receive)
     self.keys = []
     self.cosigner_list = []
Esempio n. 4
0
File: qt.py Progetto: asfin/electrum
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.wallet = None
     self.window = None
     self.address = None
     self.export_ok = None
     self.gpgw = GPGwrapper()
Esempio n. 5
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.listener = None
     self.obj = QReceiveSignalObject()
     self.obj.cosigner_receive_signal.connect(self.on_receive)
     self.keys = []  # type: List[Tuple[str, str, ElectrumWindow]]
     self.cosigner_list = []  # type: List[Tuple[ElectrumWindow, str, bytes, str]]
Esempio n. 6
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.listener = None
     self.obj = QReceiveSignalObject()
     self.obj.cosigner_receive_signal.connect(self.on_receive)
     self.keys = []
     self.cosigner_list = []
Esempio n. 7
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     #self.target_host = 'labels.electrum.org'
     self.target_host = '39.105.86.163:8080'
     #self.target_host = '10.10.0.37:8080'
     self.wallets = {}
     self.create_wallets = {}
     self.get_wallet_loop = asyncio.get_event_loop()
Esempio n. 8
0
    def close(self):
        BasePlugin.close(self)
        self.stop()

        # restore the user's previous oneserver setting when the plugin is disabled
        was_oneserver = self.config.get('bwt_was_oneserver')
        if was_oneserver is not None:
            self.config.set_key('oneserver', was_oneserver)
            self.config.set_key('bwt_was_oneserver', None)
Esempio n. 9
0
    def close(self):
        BasePlugin.close(self)
        self.stop()

        # restore the user's previous settings when the plugin is disabled
        if self.prev_settings:
            for setting, prev_value in self.prev_settings.items():
                if prev_value is None: self.config.cmdline_options.pop(setting, None)
                else: self.config.cmdline_options[setting] = prev_value
            self.prev_settings = None
Esempio n. 10
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.imap_server = self.config.get('email_server', '')
     self.username = self.config.get('email_username', '')
     self.password = self.config.get('email_password', '')
     if self.imap_server and self.username and self.password:
         self.processor = Processor(self.imap_server, self.username, self.password, self.on_receive)
         self.processor.start()
     self.obj = QEmailSignalObject()
     self.obj.email_new_invoice_signal.connect(self.new_invoice)
     self.wallets = set()
Esempio n. 11
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.imap_server = self.config.get('email_server', '')
     self.username = self.config.get('email_username', '')
     self.password = self.config.get('email_password', '')
     if self.imap_server and self.username and self.password:
         self.processor = Processor(self.imap_server, self.username, self.password, self.on_receive)
         self.processor.start()
     self.obj = QEmailSignalObject()
     self.obj.email_new_invoice_signal.connect(self.new_invoice)
     self.wallets = set()  # type: Set[Abstract_Wallet]
Esempio n. 12
0
    def __init__(self, parent, config, name):
        BasePlugin.__init__(self, parent, config, name)

        self.enabled = config.get('bwt_enabled')
        self.bitcoind_url = config.get('bwt_bitcoind_url', default_bitcoind_url())
        self.bitcoind_dir = config.get('bwt_bitcoind_dir', default_bitcoind_dir())
        self.bitcoind_wallet = config.get('bwt_bitcoind_wallet')
        self.bitcoind_auth = config.get('bwt_bitcoind_auth', config.get('bwt_bitcoind_cred'))
        self.rescan_since = config.get('bwt_rescan_since', 'all')
        self.custom_opt = config.get('bwt_custom_opt')
        self.socket_path = config.get('bwt_socket_path', default_socket_path())
        self.verbose = config.get('bwt_verbose', 0)

        if self.enabled:
            self.set_config()
            self.start()
Esempio n. 13
0
File: bwt.py Progetto: d3vil7/bwt
    def __init__(self, parent, config, name):
        BasePlugin.__init__(self, parent, config, name)
        self.proc = None
        self.wallets = set()

        self.enabled = config.get('bwt_enabled')
        self.bitcoind_url = config.get('bwt_bitcoind_url',
                                       default_bitcoind_url())
        self.bitcoind_dir = config.get('bwt_bitcoind_dir',
                                       default_bitcoind_dir())
        self.bitcoind_wallet = config.get('bwt_bitcoind_wallet')
        self.bitcoind_cred = config.get('bwt_bitcoind_cred')
        self.rescan_since = config.get('bwt_rescan_since', 'all')
        self.socket_path = config.get(
            'bwt_socket_path', path.join(path.dirname(__file__), 'bwt-socket'))
        self.poll_interval = config.get('bwt_poll_interval', 5)
        self.verbose = config.get('bwt_verbose', 0)

        self.start()
Esempio n. 14
0
    def __init__(self, parent, config, name):
        BasePlugin.__init__(self, parent, config, name)
        self.base_dir = config.electrum_path() + '/revealer/'

        if self.config.get('calibration_h') == None:
            self.config.set_key('calibration_h', 0)
        if self.config.get('calibration_v') == None:
            self.config.set_key('calibration_v', 0)

        self.calibration_h = self.config.get('calibration_h')
        self.calibration_v = self.config.get('calibration_v')

        self.version = '0'
        self.size = (159, 97)
        self.f_size = QSize(1014 * 2, 642 * 2)
        self.abstand_h = 21
        self.abstand_v = 34
        self.calibration_noise = int('10' * 128)
        self.rawnoise = False
        make_dir(self.base_dir)
Esempio n. 15
0
    def __init__(self, parent, config, name):
        BasePlugin.__init__(self, parent, config, name)
        self.proc = None
        self.wallets = set()

        self.enabled = config.get('bwt_enabled')
        self.bitcoind_url = config.get('bwt_bitcoind_url',
                                       default_bitcoind_url())
        self.bitcoind_dir = config.get('bwt_bitcoind_dir',
                                       default_bitcoind_dir())
        self.bitcoind_wallet = config.get('bwt_bitcoind_wallet')
        self.bitcoind_cred = config.get('bwt_bitcoind_cred')
        self.rescan_since = config.get('bwt_rescan_since', 'all')
        self.custom_opt = config.get('bwt_custom_opt')
        self.socket_path = config.get('bwt_socket_path', default_socket_path())
        self.verbose = config.get('bwt_verbose', 0)

        if config.get('bwt_was_oneserver') is None:
            config.set_key('bwt_was_oneserver', config.get('oneserver'))

        self.start()
Esempio n. 16
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.wallet_class.plugin = self
     self.requesting = False
Esempio n. 17
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.device = self.keystore_class.device
     self.keystore_class.plugin = self
Esempio n. 18
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
Esempio n. 19
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.device = self.keystore_class.device
     self.keystore_class.plugin = self
Esempio n. 20
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.wallet_class.plugin = self
     self.requesting = False
Esempio n. 21
0
File: bwt.py Progetto: d3vil7/bwt
 def close(self):
     BasePlugin.close(self)
     self.stop()
Esempio n. 22
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.target_host = 'labels.electrum.org'
     self.wallets = {}
Esempio n. 23
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.device = self.keystore_class.device
     self.keystore_class.plugin = self
     self._ignore_outdated_fw = False
Esempio n. 24
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
Esempio n. 25
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.start_scheduler()
Esempio n. 26
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.wallets = set()
     self.parent = parent
     self.config = config
     self.name = name
Esempio n. 27
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.target_host = 'labels.electrum.org'
     self.wallets = {}
Esempio n. 28
0
 def __init__(self, parent, config, name):
     BasePlugin.__init__(self, parent, config, name)
     self.target_host = 'labels.bauerj.eu'
     self.wallets = {}