Enabling support for configuring voicemail check on missed call
[gc-dialer] / src / call_handler.py
index 756dc6a..b90e109 100644 (file)
@@ -45,7 +45,14 @@ class _MissedCallWatcher(QtCore.QObject):
        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:
@@ -110,6 +117,10 @@ class _DummyMissedCallWatcher(QtCore.QObject):
        def isSupported(self):
                return False
 
+       @property
+       def isStarted(self):
+               return self._isStarted
+
        def start(self):
                self._isStarted = True