资源简介
Qt pop3自动登陆邮箱接收邮件,并把邮件保存到数据库,附件下载到工程目录。
代码片段和文件信息
/****************************************************************************
** 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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 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个文件信息
- 上一篇:软考 软件测评师考点归纳
- 下一篇:QT5开发及高清PDF,资料全
相关资源
- QT5开发及高清PDF,资料全
- myMp3_alin.zip
- Navicat+10.0.9+Premium中文版+注册机
- calib_point
- Qt+Halcon封装迈德威视相机
- ESP8266开发,实现MQTT客户端,与MQTT服
- 《Qt5开发及》高清完整PDF版
- 基于Qt电子词典的设计与实现
- Qt5.5.1读取大恒相机
- 基于web的酒店客房管理系统
- Computer Vision with OpenCV 3 and Qt5 pdf + co
- PyQt5All.rar
- 房屋出租管理系统源码及毕设论文
- TCPSocket文件传输.rar
- VS2015_Qt5_Halcon混合编程代码和操作手册
- QT画矩形Graphics, Scene,Item逻辑关系使
- QML与ffmpeg实现简单视频播放与播放操
- ssh个人博客系统239240
- 基于Qt的记事本
- 基于Qt5.7的2048小游戏
- Qt之模型/视图实时更新数据
- QT5.9 serialport串口通信模块,编写一个
- QT+Opencv2+VS2012 使用多线程显示网络摄
- Trolltech.Qt.Visual.Studio.Integration.v1.4.3.
- opencv3.4.1 编译库,可在Qt直接使用
- QTCharts源代码
- qt简单仿mstsc连接远程桌面源码使用
- Qt4开发学生管理系统
- Qt网络编程项目:斗地主+详细设计文
- 基于QT的网络音乐播放器
评论
共有 条评论