Search in sources :

Example 1 with TransportProvider

use of com.fsck.k9.mail.TransportProvider in project k-9 by k9mail.

the class MessagingController method getInstance.

public static synchronized MessagingController getInstance(Context context) {
    if (inst == null) {
        Context appContext = context.getApplicationContext();
        NotificationController notificationController = NotificationController.newInstance(appContext);
        Contacts contacts = Contacts.getInstance(context);
        TransportProvider transportProvider = TransportProvider.getInstance();
        inst = new MessagingController(appContext, notificationController, contacts, transportProvider);
    }
    return inst;
}
Also used : Context(android.content.Context) Contacts(com.fsck.k9.helper.Contacts) NotificationController(com.fsck.k9.notification.NotificationController) TransportProvider(com.fsck.k9.mail.TransportProvider)

Aggregations

Context (android.content.Context)1 Contacts (com.fsck.k9.helper.Contacts)1 TransportProvider (com.fsck.k9.mail.TransportProvider)1 NotificationController (com.fsck.k9.notification.NotificationController)1