summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/backend.py
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-05-06 16:16:40 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-05-21 14:49:48 -0300
commit2f57c31cda8208340322efd5c02f8b9120ce29aa (patch)
treee876ce87938dd10b18d51e5e767b07253af7253a /src/leap/bitmask/backend.py
parent72b7d49966637c019e97fae7f186774097e5e96f (diff)
Separate imap/smtp logic from conductor.
Diffstat (limited to 'src/leap/bitmask/backend.py')
-rw-r--r--src/leap/bitmask/backend.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/leap/bitmask/backend.py b/src/leap/bitmask/backend.py
index 327131b3..fd09929a 100644
--- a/src/leap/bitmask/backend.py
+++ b/src/leap/bitmask/backend.py
@@ -46,6 +46,8 @@ from leap.bitmask.services.eip.eipbootstrapper import EIPBootstrapper
from leap.bitmask.services.eip import vpnlauncher, vpnprocess
from leap.bitmask.services.eip import linuxvpnlauncher, darwinvpnlauncher
+from leap.bitmask.services.mail import imap
+
from leap.bitmask.services.soledad.soledadbootstrapper import \
SoledadBootstrapper
@@ -632,6 +634,37 @@ class Soledad(object):
soledad.close()
+class Mail(object):
+ """
+ Interfaces with setup and launch of Mail.
+ """
+
+ zope.interface.implements(ILEAPComponent)
+
+ def __init__(self, signaler=None):
+ """
+ Constructor for the Mail component.
+
+ :param signaler: Object in charge of handling communication
+ back to the frontend
+ :type signaler: Signaler
+ """
+ self.key = "mail"
+ self._signaler = signaler
+
+ def start_smtp_service(self):
+ pass
+
+ def start_imap_service(self, offline=False):
+ pass
+
+ def stop_smtp_service(self):
+ pass
+
+ def stop_imap_service(self):
+ pass
+
+
class Authenticate(object):
"""
Interfaces with setup and bootstrapping operations for a provider