-
Notifications
You must be signed in to change notification settings - Fork 13
/
IMAPClientService.h
30 lines (23 loc) · 1.11 KB
/
IMAPClientService.h
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
#pragma once
#include "ClientService.h"
#include "functions/FCast.h"
#include "functions/FCrypt.h"
#include "functions/FString.h"
#include "Global.h"
#define IMAP_CLIENT_SERVICE_DEFAULT_PORT 143
#define IMAP_CLIENT_SERVICE_SSL_DEFAULT_PORT 993
#define IMAP_CLIENT_SERVICE_TLS_DEFAULT_PORT 143
#define IMAP_CLIENT_SERVICE_AUTH_COMMAND "C0 AUTHENTICATE LOGIN"
#define IMAP_CLIENT_SERVICE_AUTH_COMMAND_USER "<login-username>"
#define IMAP_CLIENT_SERVICE_AUTH_COMMAND_PASSWORD "<login-password>"
#define IMAP_CLIENT_SERVICE_AUTH_SUCCESS_REPLY_CODE "OK"
#define IMAP_CLIENT_SERVICE_END_COMMAND_LINE "\r\n"
using namespace std;
class IMAPClientService: public ClientService {
private:
bool authCryptographicSecurity();
bool authLoginUser();
public:
IMAPClientService(unsigned int nRecvSecTimeout = CLIENT_SERVICE_RECV_DEFAULT_SECONDS_TIMEOUT);
~IMAPClientService();
};