File indexing completed on 2024-05-19 15:46:48
0001 #!/usr/bin/env python3 0002 # -*- coding: utf-8 -*- 0003 # 0004 # SPDX-FileCopyrightText: 2014 Denis Steckelmacher <steckdenis@yahoo.fr> 0005 # 0006 # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0007 0008 from jsgenerator import * 0009 from common import * 0010 0011 # Print the license of the generated file (the same as the one of this file) 0012 license() 0013 basicTypes(globals()) 0014 require('event') 0015 0016 _function = 'function(){}' 0017 _object = 'new Object()' 0018 0019 Module().members( 0020 F('new Domain()', 'create'), 0021 Class('Domain').prototype('event.EventEmitter').members( 0022 F(_void, 'run', ('fn', _function)), 0023 Var(_array, 'members'), 0024 F(_void, 'add', ('emitter', _object)), 0025 F(_void, 'remove', ('emitter', _object)), 0026 F(_function, 'bind', ('callback', _function)), 0027 F(_function, 'intercept', ('callback', _function)), 0028 F(_void, 'enter'), 0029 F(_void, 'exit'), 0030 F(_void, 'dispose') 0031 ) 0032 ).print()