資源簡介
Qt pop3自動(dòng)登陸郵箱接收郵件,并把郵件保存到數(shù)據(jù)庫,附件下載到工程目錄。
代碼片段和文件信息
/****************************************************************************
**?Copyright?(c)?2006?-?2011?the?LibQxt?project.
**?See?the?Qxt?AUTHORS?file?for?a?list?of?authors?and?copyright?holders.
**?All?rights?reserved.
**
**?Redistribution?and?use?in?source?and?binary?forms?with?or?without
**?modification?are?permitted?provided?that?the?following?conditions?are?met:
**?????*?Redistributions?of?source?code?must?retain?the?above?copyright
**???????notice?this?list?of?conditions?and?the?following?disclaimer.
**?????*?Redistributions?in?binary?form?must?reproduce?the?above?copyright
**???????notice?this?list?of?conditions?and?the?following?disclaimer?in?the
**???????documentation?and/or?other?materials?provided?with?the?distribution.
**?????*?Neither?the?name?of?the?LibQxt?project?nor?the
**???????names?of?its?contributors?may?be?used?to?endorse?or?promote?products
**???????derived?from?this?software?without?specific?prior?written?permission.
**
**?THIS?SOFTWARE?IS?PROVIDED?BY?THE?COPYRIGHT?HOLDERS?AND?CONTRIBUTORS?“AS?IS“?AND
**?ANY?EXPRESS?OR?IMPLIED?WARRANTIES?INCLUDING?BUT?NOT?LIMITED?TO?THE?IMPLIED
**?WARRANTIES?OF?MERCHANTABILITY?AND?FITNESS?FOR?A?PARTICULAR?PURPOSE?ARE
**?DISCLAIMED.?IN?NO?EVENT?SHALL??BE?LIABLE?FOR?ANY
**?DIRECT?INDIRECT?INCIDENTAL?SPECIAL?EXEMPLARY?OR?CONSEQUENTIAL?DAMAGES
**?(INCLUDING?BUT?NOT?LIMITED?TO?PROCUREMENT?OF?SUBSTITUTE?GOODS?OR?SERVICES;
**?LOSS?OF?USE?DATA?OR?PROFITS;?OR?BUSINESS?INTERRUPTION)?HOWEVER?CAUSED?AND
**?ON?ANY?THEORY?OF?LIABILITY?WHETHER?IN?CONTRACT?STRICT?LIABILITY?OR?TORT
**?(INCLUDING?NEGLIGENCE?OR?OTHERWISE)?ARISING?IN?ANY?WAY?OUT?OF?THE?USE?OF?THIS
**?SOFTWARE?EVEN?IF?ADVISED?OF?THE?POSSIBILITY?OF?SUCH?DAMAGE.
**
**???
*****************************************************************************/
/*!
?*?\class?QxtMailAttachment
?*?\inmodule?QxtNetwork
?*?\brief?The?QxtMailAttachment?class?represents?an?attachement?to?a?QxtMailMessage
?*/
#include?“mailattachment.h“
#include?“mailutility_p.h“
#include?
#include?
#include?
#include?
#include?
class?QxtMailAttachmentPrivate?:?public?QSharedData
{
public:
????QHash?extraHeaders;
????QString?contentType;
????//?those?two?members?are?mutable?because?they?may?change?in?the?const?rawData()?method?of?QxtMailAttachment
????//?while?caching?the?raw?data?for?the?attachment?if?needed.
????mutable?QPointer?content;
????mutable?bool?deleteContent;
????QxtMailAttachmentPrivate()
????{
????????content?=?0;
????????deleteContent?=?false;
????????contentType?=?QStringLiteral(“text/plain“);
????}
????~QxtMailAttachmentPrivate()
????{
????????if?(deleteContent?&&?content)
????????????content->deleteLater();
????????deleteContent?=?false;
????????content?=?0;
????}
};
QxtMailAttachment::QxtMailAttachment()
{
????qxt_d?=?ne
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-04-30?16:01??qmailManager\
?????目錄???????????0??2019-04-30?16:02??qmailManager\.git\
?????文件??????????85??2019-02-28?19:35??qmailManager\.git\COMMIT_EDITMSG
?????文件?????????333??2019-02-28?19:35??qmailManager\.git\config
?????文件???????????0??2019-04-30?11:41??qmailManager\.git\FETCH_HEAD
?????文件??????????23??2019-02-28?19:31??qmailManager\.git\HEAD
?????文件????????4156??2019-04-30?16:02??qmailManager\.git\index
?????目錄???????????0??2019-02-28?19:35??qmailManager\.git\logs\
?????文件?????????234??2019-02-28?19:35??qmailManager\.git\logs\HEAD
?????目錄???????????0??2019-02-28?19:35??qmailManager\.git\logs\refs\
?????目錄???????????0??2019-02-28?19:35??qmailManager\.git\logs\refs\heads\
?????文件?????????234??2019-02-28?19:35??qmailManager\.git\logs\refs\heads\master
?????目錄???????????0??2019-02-28?19:35??qmailManager\.git\logs\refs\remotes\
?????目錄???????????0??2019-02-28?19:35??qmailManager\.git\logs\refs\remotes\origin\
?????文件?????????146??2019-02-28?19:35??qmailManager\.git\logs\refs\remotes\origin\master
?????目錄???????????0??2019-04-30?16:02??qmailManager\.git\ob
?????目錄???????????0??2019-02-28?19:34??qmailManager\.git\ob
?????文件????????3416??2019-02-28?19:34??qmailManager\.git\ob
?????目錄???????????0??2019-02-28?19:34??qmailManager\.git\ob
?????文件????????4394??2019-02-28?19:34??qmailManager\.git\ob
?????目錄???????????0??2019-02-28?19:34??qmailManager\.git\ob
?????文件????????1681??2019-02-28?19:34??qmailManager\.git\ob
?????目錄???????????0??2019-02-28?19:34??qmailManager\.git\ob
?????文件????????1620??2019-02-28?19:34??qmailManager\.git\ob
?????目錄???????????0??2019-02-28?19:34??qmailManager\.git\ob
?????文件????????1614??2019-02-28?19:34??qmailManager\.git\ob
?????目錄???????????0??2019-02-28?19:34??qmailManager\.git\ob
?????文件????????1644??2019-02-28?19:34??qmailManager\.git\ob
?????目錄???????????0??2019-04-30?16:02??qmailManager\.git\ob
?????文件????????1095??2019-04-30?16:02??qmailManager\.git\ob
?????目錄???????????0??2019-02-28?19:34??qmailManager\.git\ob
............此處省略167個(gè)文件信息
評(píng)論
共有 條評(píng)論