aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/async/smtp/MCSMTPLoginOperation.cpp
blob: 58866df95df1a12e99b68a419b21f366f9cf4c31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
//  MCSMTPLoginOperation.cc
//  mailcore2
//
//  Created by Hironori Yoshida on 10/29/14.
//  Copyright (c) 2014 MailCore. All rights reserved.
//

#include "MCSMTPLoginOperation.h"

#include "MCSMTPAsyncSession.h"
#include "MCSMTPSession.h"

using namespace mailcore;

SMTPLoginOperation::SMTPLoginOperation()
{
}

SMTPLoginOperation::~SMTPLoginOperation()
{
}

void SMTPLoginOperation::main()
{
    ErrorCode error;
    session()->session()->loginIfNeeded(&error);
    setError(error);
}