资源简介
qtftp-master,在QT5.0以上版本中加入FTP类
代码片段和文件信息
/****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as follows:
**
** “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 Digia Plc and its Subsidiary(-ies) 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 THE COPYRIGHT
** OWNER OR CONTRIBUTORS 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.“
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include
#include
#include
#include “ftpwindow.h“
FtpWindow::FtpWindow(QWidget *parent)
: QDialog(parent) ftp(0) networkSession(0)
{
ftpServerLabel = new QLabel(tr(“Ftp &server:“));
ftpServerLineEdit = new QLineEdit(“ftp.qt.nokia.com“);
ftpServerLabel->setBuddy(ftpServerLineEdit);
statusLabel = new QLabel(tr(“Please enter the name of an FTP server.“));
fileList = new QTreeWidget;
fileList->setEnabled(false);
fileList->setRootIsDecorated(false);
fileList->setHeaderLabels(QStringList() << tr(“Name“) << tr(“Size“) << tr(“Owner“) << tr(“Group“) << tr(“Time“));
fileList->header()->setStretchLastSection(false);
connectButton = new QPushButton(tr(“Connect“));
connectButton->setDefault(true);
cdToParentButton = new QPushButton;
cdToParentButton->setIcon(QPixmap(“:/images/cdtoparent.png“));
cdToParentButton->setEnabled(false);
downloadButton = new QPushButton(tr(“Download“));
downloadButton->
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-11-07 13:04 qtftp-master\
文件 46 2014-11-07 13:04 qtftp-master\.qmake.conf
文件 41 2014-11-07 13:04 qtftp-master\.tag
文件 1187 2014-11-07 13:04 qtftp-master\LGPL_EXCEPTION.txt
文件 22961 2014-11-07 13:04 qtftp-master\LICENSE.FDL
文件 26817 2014-11-07 13:04 qtftp-master\LICENSE.LGPL
文件 31566 2014-11-07 13:04 qtftp-master\LICENSE.PREVIEW.COMMERCIAL
目录 0 2014-11-07 13:04 qtftp-master\examples\
文件 36 2014-11-07 13:04 qtftp-master\examples\examples.pro
目录 0 2014-11-07 13:04 qtftp-master\examples\qftp\
目录 0 2014-11-07 13:04 qtftp-master\examples\qftp\doc\
目录 0 2014-11-07 13:04 qtftp-master\examples\qftp\doc\images\
文件 12371 2014-11-07 13:04 qtftp-master\examples\qftp\doc\images\ftp-example.png
目录 0 2014-11-07 13:04 qtftp-master\examples\qftp\doc\src\
文件 8511 2014-11-07 13:04 qtftp-master\examples\qftp\doc\src\ftp.qdoc
文件 170 2014-11-07 13:04 qtftp-master\examples\qftp\ftp.qrc
文件 13346 2014-11-07 13:04 qtftp-master\examples\qftp\ftpwindow.cpp
文件 3494 2014-11-07 13:04 qtftp-master\examples\qftp\ftpwindow.h
目录 0 2014-11-07 13:04 qtftp-master\examples\qftp\images\
文件 139 2014-11-07 13:04 qtftp-master\examples\qftp\images\cdtoparent.png
文件 154 2014-11-07 13:04 qtftp-master\examples\qftp\images\dir.png
文件 129 2014-11-07 13:04 qtftp-master\examples\qftp\images\file.png
文件 2208 2014-11-07 13:04 qtftp-master\examples\qftp\main.cpp
文件 201 2014-11-07 13:04 qtftp-master\examples\qftp\qftp.desktop
文件 369 2014-11-07 13:04 qtftp-master\examples\qftp\qftp.pro
目录 0 2014-11-07 13:04 qtftp-master\modules\
文件 492 2014-11-07 13:04 qtftp-master\modules\qt_ftp.pri
文件 674 2014-11-07 13:04 qtftp-master\qtftp.pro
文件 585 2014-11-07 13:04 qtftp-master\readme.txt
目录 0 2014-11-07 13:04 qtftp-master\src\
目录 0 2014-11-07 13:04 qtftp-master\src\qftp\
............此处省略22个文件信息
评论
共有 条评论