Ran update_copyright.py, updating all the copyright blurbs and adding AUTHORS.
[hooke.git] / hooke / interaction.py
index 6904f7d49e86ff5abc474f1ddf014655215cdf32..778a0d693afc3c6e7204171a5cbd879627abe288 100644 (file)
@@ -1,3 +1,21 @@
+# Copyright (C) 2010 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of Hooke.
+#
+# Hooke is free software: you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation, either
+# version 3 of the License, or (at your option) any later version.
+#
+# Hooke is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with Hooke.  If not, see
+# <http://www.gnu.org/licenses/>.
+
 """The `interaction` module provides :class:`Request`,
 :class:`Response`, an related classes for handling user interaction
 through the
@@ -109,3 +127,14 @@ class PointRequest (Request):
 class PointResponse (Response):
     def __init__(self, value):
         super(PointResponse, self).__init__('point', value)
+
+
+class Notification (object):
+    def __init__(self, type):
+        self.type = type
+
+class ReloadUserInterfaceConfig (Notification):
+    def __init__(self, config):
+        super(ReloadUserInterfaceConfig, self).__init__(
+            'reload user interface config')
+        self.config = config