Commit 05fc2cb0 authored by Dan Pascu's avatar Dan Pascu

Replaced TimestampedNotificationData with NotificationData

parent 8236c4be
......@@ -15,7 +15,7 @@ from collections import defaultdict
import cjson
from PyQt4.QtGui import QApplication
from application import log
from application.notification import IObserver, NotificationCenter
from application.notification import IObserver, NotificationCenter, NotificationData
from application.python import Null
from application.system import host, makedirs, unlink
from eventlet import api
......@@ -29,7 +29,6 @@ from sipsimple.configuration.settings import SIPSimpleSettings
from sipsimple.storage import FileStorage
from sipsimple.threading import run_in_twisted_thread
from sipsimple.threading.green import run_in_green_thread
from sipsimple.util import TimestampedNotificationData
from blink.configuration.account import AccountExtension, BonjourAccountExtension
from blink.configuration.datatypes import InvalidToken
......@@ -68,7 +67,7 @@ class IPAddressMonitor(object):
if new_address != host.default_ip:
continue
if new_address != current_address:
notification_center.post_notification(name='SystemIPAddressDidChange', sender=self, data=TimestampedNotificationData(old_ip_address=current_address, new_ip_address=new_address))
notification_center.post_notification(name='SystemIPAddressDidChange', sender=self, data=NotificationData(old_ip_address=current_address, new_ip_address=new_address))
current_address = new_address
api.sleep(5)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment