summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/services/mail
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2016-03-23 11:53:15 -0400
committerKali Kaneko <kali@leap.se>2016-03-23 11:53:15 -0400
commitc866892b988912a5b9a88edfd6d1e71491617822 (patch)
treec2f807cd9273d1201fc14a32cca13815cd2bb377 /src/leap/bitmask/services/mail
parentb596eab3591414c4ef58648d74434bc0d5d7c6e3 (diff)
[feature] quick integration with legacy gui
Diffstat (limited to 'src/leap/bitmask/services/mail')
-rw-r--r--src/leap/bitmask/services/mail/conductor.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/leap/bitmask/services/mail/conductor.py b/src/leap/bitmask/services/mail/conductor.py
index b94b3cc8..05fafa1a 100644
--- a/src/leap/bitmask/services/mail/conductor.py
+++ b/src/leap/bitmask/services/mail/conductor.py
@@ -192,7 +192,17 @@ class SMTPControl(object):
self.smtp_connection.qtsigs.connection_aborted_signal.emit()
-class MailConductor(IMAPControl, SMTPControl):
+class PixelatedControl(object):
+
+ def start_pixelated_service(self):
+ self._backend.pixelated_start_service(
+ full_user_id=self.userid)
+
+ def stop_pixelated_service(self):
+ pass
+
+
+class MailConductor(IMAPControl, SMTPControl, PixelatedControl):
"""
This class encapsulates everything related to the initialization and
process control for the mail services.
@@ -269,6 +279,9 @@ class MailConductor(IMAPControl, SMTPControl):
self.start_smtp_service(download_if_needed=download_if_needed)
self.start_imap_service()
+ # TODO --- check if it's enabled!!!
+ self.start_pixelated_service()
+
self._mail_services_started = True
def stop_mail_services(self):