summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/services/mail
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-05-21 13:58:26 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-05-21 16:20:54 -0300
commita61889110118d04703b023936048b44517947516 (patch)
treebff5220bc7e0f89febd053bc8b924b613f00234d /src/leap/bitmask/services/mail
parent0e34d622bf133a78132cf58e60d52b0c2511e408 (diff)
Rename backend methods for consistency.
Diffstat (limited to 'src/leap/bitmask/services/mail')
-rw-r--r--src/leap/bitmask/services/mail/conductor.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/leap/bitmask/services/mail/conductor.py b/src/leap/bitmask/services/mail/conductor.py
index 87c4621e..7fc19f1c 100644
--- a/src/leap/bitmask/services/mail/conductor.py
+++ b/src/leap/bitmask/services/mail/conductor.py
@@ -64,7 +64,7 @@ class IMAPControl(object):
"""
Start imap service.
"""
- self._backend.start_imap_service(self.userid, flags.OFFLINE)
+ self._backend.imap_start_service(self.userid, flags.OFFLINE)
def stop_imap_service(self):
"""
@@ -73,7 +73,7 @@ class IMAPControl(object):
self.imap_connection.qtsigs.disconnecting_signal.emit()
logger.debug('Stopping imap service.')
- self._backend.stop_imap_service()
+ self._backend.imap_stop_service()
def _handle_imap_events(self, req):
"""
@@ -146,14 +146,14 @@ class SMTPControl(object):
:type download_if_needed: bool
"""
self.smtp_connection.qtsigs.connecting_signal.emit()
- self._backend.start_smtp_service(self.userid, download_if_needed)
+ self._backend.smtp_start_service(self.userid, download_if_needed)
def stop_smtp_service(self):
"""
Stops the SMTP service.
"""
self.smtp_connection.qtsigs.disconnecting_signal.emit()
- self._backend.stop_smtp_service()
+ self._backend.smtp_stop_service()
def _handle_smtp_events(self, req):
"""
@@ -249,8 +249,8 @@ class MailConductor(IMAPControl, SMTPControl):
"""
Stop the IMAP and SMTP services.
"""
- self.stop_imap_service()
- self.stop_smtp_service()
+ self.imap_stop_service()
+ self.smtp_stop_service()
def connect_mail_signals(self, widget):
"""