mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-06 03:50:08 +02:00
Handle login parameters.
This commit is contained in:
parent
fe6c2298a1
commit
98b975086b
8 changed files with 259 additions and 50 deletions
65
src/mrloginparam.h
Normal file
65
src/mrloginparam.h
Normal file
|
@ -0,0 +1,65 @@
|
|||
/*******************************************************************************
|
||||
*
|
||||
* Messenger Backend
|
||||
* Copyright (C) 2016 Björn Petersen Software Design and Development
|
||||
* Contact: r10s@b44t.com, http://b44t.com
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License as published by the Free Software
|
||||
* Foundation, either version 3 of the License, or (at your option) any later
|
||||
* version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see http://www.gnu.org/licenses/ .
|
||||
*
|
||||
*******************************************************************************
|
||||
*
|
||||
* File: mrloginparam.h
|
||||
* Authors: Björn Petersen
|
||||
* Purpose: Handle IMAP parameters
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
#ifndef __MRLOGINPARAM_H__
|
||||
#define __MRLOGINPARAM_H__
|
||||
|
||||
|
||||
class MrMailbox;
|
||||
|
||||
|
||||
class MrLoginParam
|
||||
{
|
||||
public:
|
||||
MrLoginParam (MrMailbox* mailbox);
|
||||
~MrLoginParam ();
|
||||
|
||||
void Clear ();
|
||||
void ReadFromSql ();
|
||||
void Complete ();
|
||||
|
||||
// IMAP/POP3
|
||||
char* m_email;
|
||||
char* m_mail_server;
|
||||
char* m_mail_user;
|
||||
char* m_mail_pw;
|
||||
uint16_t m_mail_port;
|
||||
|
||||
// SMTP
|
||||
char* m_send_server;
|
||||
char* m_send_user;
|
||||
char* m_send_pw;
|
||||
uint16_t m_send_port;
|
||||
|
||||
private:
|
||||
MrMailbox* m_mailbox;
|
||||
};
|
||||
|
||||
|
||||
#endif // __MRLOGINPARAM_H__
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue