blob: e71d872255880c3fa6267323f638d85078742125 (
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
30
31
32
33
34
35
|
//
// MCNNTPFetchServerTimeOperation.cpp
// mailcore2
//
// Created by Robert Widmann on 10/21/14.
// Copyright (c) 2014 MailCore. All rights reserved.
//
#include "MCNNTPFetchServerTimeOperation.h"
#include "MCNNTPAsyncSession.h"
#include "MCNNTPSession.h"
using namespace mailcore;
NNTPFetchServerTimeOperation::NNTPFetchServerTimeOperation()
{
mTime = -1;
}
NNTPFetchServerTimeOperation::~NNTPFetchServerTimeOperation()
{
}
time_t NNTPFetchServerTimeOperation::time()
{
return mTime;
}
void NNTPFetchServerTimeOperation::main()
{
ErrorCode error;
mTime = session()->session()->fetchServerDate(&error);
setError(error);
}
|