def __init__(self, *args): Mock.__init__(self, *args) app.interface = self self.msg_win_mgr = Mock() self.roster = Mock() app.ged = ged.GlobalEventsDispatcher() from gajim import plugins app.plugin_manager = plugins.PluginManager() self.remote_ctrl = None self.instances = {} self.minimized_controls = {} self.status_sent_to_users = Mock() if app.use_x: self.jabber_state_images = { '16': {}, '24': {}, '32': {}, 'opened': {}, 'closed': {} } from gajim import gtkgui_helpers gtkgui_helpers.make_jabber_state_images() else: self.jabber_state_images = { '16': Mock(), '24': Mock(), '32': Mock(), 'opened': Mock(), 'closed': Mock() }
def __init__(self, *args): Mock.__init__(self, *args) app.interface = self self.msg_win_mgr = Mock() self.roster = Mock() app.ged = ged.GlobalEventsDispatcher() from gajim import plugins app.plugin_manager = plugins.PluginManager() self.instances = {} self.minimized_controls = {}
from gajim.common.types import ConnectionT # pylint: disable=unused-import from gajim.common.types import LegacyContactsAPIT # pylint: disable=unused-import from gajim.common.types import SettingsT # pylint: disable=unused-import interface = cast(InterfaceT, None) thread_interface = lambda *args: None # Interface to run a thread and then a callback config = c_config.Config() settings = cast(SettingsT, None) version = gajim.__version__ connections = {} # type: Dict[str, ConnectionT] avatar_cache = {} # type: Dict[str, Dict[str, Any]] bob_cache = {} # type: Dict[str, bytes] ipython_window = None app = None # Gtk.Application ged = ged_module.GlobalEventsDispatcher() # Global Events Dispatcher nec = cast(NetworkEventsControllerT, None) plugin_manager = None # Plugins Manager class Storage: def __init__(self): self.cache = None self.archive = None storage = Storage() css_config = None transport_type = {} # type: Dict[str, str]