src
qt_gui
application_context.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
32
class
ApplicationContext
(object):
33
"""Application wide context containing variables used in various places."""
34
35
def
__init__
(self):
36
self.
provide_app_dbus_interfaces
=
False
37
"""The flag if the application should listen to commands on DBus."""
38
39
self.
dbus_base_bus_name
=
None
40
"""The named DBus bus name of the application."""
41
42
self.
dbus_unique_bus_name
=
None
43
"""The unique DBus bus name of the application."""
44
45
self.
dbus_host_bus_name
=
None
46
"""The unique DBus bus name of another application to communicate with."""
47
48
self.
options
=
None
49
"""The parsed command line options."""
50
51
self.
qtgui_path
=
None
52
"""The path of the qt_gui package."""
qt_gui.application_context.ApplicationContext
Definition:
application_context.py:32
qt_gui.application_context.ApplicationContext.provide_app_dbus_interfaces
provide_app_dbus_interfaces
Definition:
application_context.py:36
qt_gui.application_context.ApplicationContext.__init__
def __init__(self)
Definition:
application_context.py:35
qt_gui.application_context.ApplicationContext.options
options
Definition:
application_context.py:48
qt_gui.application_context.ApplicationContext.dbus_unique_bus_name
dbus_unique_bus_name
Definition:
application_context.py:42
qt_gui.application_context.ApplicationContext.qtgui_path
qtgui_path
Definition:
application_context.py:51
qt_gui.application_context.ApplicationContext.dbus_base_bus_name
dbus_base_bus_name
Definition:
application_context.py:39
qt_gui.application_context.ApplicationContext.dbus_host_bus_name
dbus_host_bus_name
Definition:
application_context.py:45
qt_gui
Author(s): Dirk Thomas
autogenerated on Fri Jun 24 2022 02:42:37