Network/IRC/IrcNetworkWidget.py

changeset 2246
fdf22a29fbf4
parent 2245
cbddacb4bc2e
child 2252
1fc32bd13be3
--- a/Network/IRC/IrcNetworkWidget.py	Wed Dec 05 19:46:44 2012 +0100
+++ b/Network/IRC/IrcNetworkWidget.py	Thu Dec 06 19:40:03 2012 +0100
@@ -27,12 +27,14 @@
     @signal joinChannel(str) emitted to join a channel
     @signal nickChanged(str) emitted to change the nick name
     @signal sendData(str) emitted to send a message to the channel
+    @signal away(bool) emitted to indicate the away status
     """
     connectNetwork = pyqtSignal(str, bool)
     editNetwork = pyqtSignal(str)
     joinChannel = pyqtSignal(str)
     nickChanged = pyqtSignal(str)
     sendData = pyqtSignal(str)
+    away = pyqtSignal(bool)
     
     
     # TODO: add context menu to messages pane with these entries:
@@ -128,6 +130,7 @@
             self.sendData.emit("AWAY :" + awayMessage)
             self.awayButton.setIcon(UI.PixmapCache.getIcon("ircUserAway.png"))
             self.__away = True
+        self.away.emit(self.__away)
     
     @pyqtSlot()
     def on_editButton_clicked(self):

eric ide

mercurial