plugin_handler_xembed.py
Go to the documentation of this file.
1 # Copyright (c) 2011, Dirk Thomas, Dorian Scholz, TU Darmstadt
2 # All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions
6 # are met:
7 #
8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following
12 # disclaimer in the documentation and/or other materials provided
13 # with the distribution.
14 # * Neither the name of the TU Darmstadt nor the names of its
15 # contributors may be used to endorse or promote products derived
16 # from this software without specific prior written permission.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22 # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
28 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 # POSSIBILITY OF SUCH DAMAGE.
30 
31 from qt_gui.plugin_handler_xembed_client import PluginHandlerXEmbedClient
32 from qt_gui.plugin_handler_xembed_container import PluginHandlerXEmbedContainer
33 
34 
36  """
37  Handler for forwarding invocations between the framework and one `Plugin` instance.
38 
39  Handler uses peer-to-peer DBus connection. The both DBus endpoints are realized by the
40  `PluginHandlerXEmbedContainer` and the `PluginHandlerXEmbedClient`.
41  """
42 
43  def __init__(self, parent, main_window, instance_id,
44  application_context, container_manager, argv):
45  dbus_object_path = '/PluginHandlerXEmbed/plugin/' + instance_id.tidy_str()
46  if application_context.options.embed_plugin is None:
48  parent, main_window, instance_id, application_context,
49  container_manager, argv, dbus_object_path)
50  else:
52  parent, main_window, instance_id, application_context,
53  container_manager, argv, dbus_object_path)
54 
55  def __getattr__(self, name):
56  return getattr(self._handler, name)
qt_gui.plugin_handler_xembed.PluginHandlerXEmbed.__getattr__
def __getattr__(self, name)
Definition: plugin_handler_xembed.py:55
qt_gui.plugin_handler_xembed.PluginHandlerXEmbed._handler
_handler
Definition: plugin_handler_xembed.py:46
qt_gui.plugin_handler_xembed_client
Definition: plugin_handler_xembed_client.py:1
qt_gui.plugin_handler_xembed_client.PluginHandlerXEmbedClient
Definition: plugin_handler_xembed_client.py:45
qt_gui.plugin_handler_xembed.PluginHandlerXEmbed
Definition: plugin_handler_xembed.py:35
qt_gui.plugin_handler_xembed.PluginHandlerXEmbed.__init__
def __init__(self, parent, main_window, instance_id, application_context, container_manager, argv)
Definition: plugin_handler_xembed.py:43
qt_gui.plugin_handler_xembed_container.PluginHandlerXEmbedContainer
Definition: plugin_handler_xembed_container.py:45
qt_gui.plugin_handler_xembed_container
Definition: plugin_handler_xembed_container.py:1


qt_gui
Author(s): Dirk Thomas
autogenerated on Sat Jun 25 2022 02:15:05