import logging
-from PyQt4 import QtCore
+import util.qt_compat as qt_compat
+QtCore = qt_compat.QtCore
import dbus
try:
import telepathy as _telepathy
class _MissedCallWatcher(QtCore.QObject):
- callMissed = QtCore.pyqtSignal()
+ callMissed = qt_compat.Signal()
def __init__(self):
QtCore.QObject.__init__(self)
def isSupported(self):
return self._isSupported
+ @property
+ def isStarted(self):
+ return self._isStarted
+
def start(self):
+ if self._isStarted:
+ _moduleLogger.info("voicemail monitor already started")
+ return
try:
self._newChannelSignaller.start()
except RuntimeError:
class _DummyMissedCallWatcher(QtCore.QObject):
- callMissed = QtCore.pyqtSignal()
+ callMissed = qt_compat.Signal()
def __init__(self):
QtCore.QObject.__init__(self)
def isSupported(self):
return False
+ @property
+ def isStarted(self):
+ return self._isStarted
+
def start(self):
self._isStarted = True