blob: 868007330d604a96727b04848bcca911fbd74642 (
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
|
//
// 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()
{
}
NNTPFetchServerTimeOperation::~NNTPFetchServerTimeOperation()
{
}
time_t NNTPFetchServerTimeOperation::time()
{
return mTime;
}
void NNTPFetchServerTimeOperation::main()
{
ErrorCode error;
mTime = session()->session()->fetchServerDate(&error);
setError(error);
}
|