Skip to content

Commit

Permalink
例子的路径包含错误更正。
Browse files Browse the repository at this point in the history
  • Loading branch information
dushibaiyu committed Dec 16, 2014
1 parent 82ba956 commit ef52d76
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 24 deletions.
8 changes: 4 additions & 4 deletions examples/ssh/errorhandling/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/****************************************************************************
/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
Expand Down Expand Up @@ -28,9 +28,9 @@
**
****************************************************************************/

#include <ssh/sftpchannel.h>
#include <ssh/sshconnection.h>
#include <ssh/sshremoteprocess.h>
#include <sftpchannel.h>
#include <sshconnection.h>
#include <sshremoteprocess.h>

#include <QCoreApplication>
#include <QList>
Expand Down
2 changes: 1 addition & 1 deletion examples/ssh/remoteprocess/argumentscollector.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#ifndef ARGUMENTSCOLLECTOR_H
#define ARGUMENTSCOLLECTOR_H

#include <ssh/sshconnection.h>
#include <sshconnection.h>

#include <QStringList>

Expand Down
2 changes: 1 addition & 1 deletion examples/ssh/remoteprocess/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "argumentscollector.h"
#include "remoteprocesstest.h"

#include <ssh/sshconnection.h>
#include <sshconnection.h>

#include <QCoreApplication>
#include <QObject>
Expand Down
2 changes: 1 addition & 1 deletion examples/ssh/remoteprocess/remoteprocesstest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "remoteprocesstest.h"

#include <ssh/sshpseudoterminal.h>
#include <sshpseudoterminal.h>

#include <QCoreApplication>
#include <QTextStream>
Expand Down
2 changes: 1 addition & 1 deletion examples/ssh/remoteprocess/remoteprocesstest.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#ifndef REMOTEPROCESSTEST_H
#define REMOTEPROCESSTEST_H

#include <ssh/sshremoteprocessrunner.h>
#include <sshremoteprocessrunner.h>

#include <QObject>

Expand Down
4 changes: 2 additions & 2 deletions examples/ssh/sftp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
#include "argumentscollector.h"
#include "sftptest.h"

#include <ssh/sftpchannel.h>
#include <ssh/sshconnection.h>
#include <sftpchannel.h>
#include <sshconnection.h>

#include <QCoreApplication>
#include <QObject>
Expand Down
2 changes: 1 addition & 1 deletion examples/ssh/sftp/parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#ifndef PARAMETERS_H
#define PARAMETERS_H

#include <ssh/sshconnection.h>
#include <sshconnection.h>

struct Parameters {
QSsh::SshConnectionParameters sshParams;
Expand Down
4 changes: 2 additions & 2 deletions examples/ssh/sftp/sftptest.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

#include "parameters.h"

#include <ssh/sftpchannel.h>
#include <ssh/sshconnection.h>
#include <sftpchannel.h>
#include <sshconnection.h>

#include <QElapsedTimer>
#include <QHash>
Expand Down
2 changes: 1 addition & 1 deletion examples/ssh/shell/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "../remoteprocess/argumentscollector.h"
#include "shell.h"

#include <ssh/sshconnection.h>
#include <sshconnection.h>

#include <QCoreApplication>
#include <QObject>
Expand Down
4 changes: 2 additions & 2 deletions examples/ssh/shell/shell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
****************************************************************************/
#include "shell.h"

#include <ssh/sshconnection.h>
#include <ssh/sshremoteprocess.h>
#include <sshconnection.h>
#include <sshremoteprocess.h>

#include <QCoreApplication>
#include <QFile>
Expand Down
11 changes: 9 additions & 2 deletions examples/ssh/ssh.pri
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@ QT += core gui network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

include ($$PWD/../../src/ssh.pri)
INCLUDEPATH += $$PWD/../../src/ssh/
QSSH_ROOT = $${PWD}/../..
DESTDIR = $${QSSH_ROOT}/examples_bin

INCLUDEPATH += $$PWD/../../src
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app

CONFIG += c++11

unix:LIBS += -L$${QSSH_ROOT}/lib -lQSsh

win32:CONFIG(release, debug|release): LIBS += -L$${QSSH_ROOT}/lib -lQSsh
else:win32:CONFIG(debug, debug|release): LIBS += -L$${QSSH_ROOT}/lib -lQSshd
2 changes: 1 addition & 1 deletion examples/ssh/tunnel/argumentscollector.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#ifndef ARGUMENTSCOLLECTOR_H
#define ARGUMENTSCOLLECTOR_H

#include <ssh/sshconnection.h>
#include <sshconnection.h>

#include <QStringList>

Expand Down
2 changes: 1 addition & 1 deletion examples/ssh/tunnel/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "../remoteprocess/argumentscollector.h"
#include "tunnel.h"

#include <ssh/sshconnection.h>
#include <sshconnection.h>

#include <QCoreApplication>
#include <QObject>
Expand Down
4 changes: 2 additions & 2 deletions examples/ssh/tunnel/tunnel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
****************************************************************************/
#include "tunnel.h"

#include <ssh/sshconnection.h>
#include <ssh/sshdirecttcpiptunnel.h>
#include <sshconnection.h>
#include <sshdirecttcpiptunnel.h>

#include <QCoreApplication>
#include <QTcpServer>
Expand Down
4 changes: 2 additions & 2 deletions include/ssh/sftpchannel.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/****************************************************************************
/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
Expand Down Expand Up @@ -32,7 +32,7 @@
#define SFTPCHANNEL_H

#include "sftpdefs.h"
#include "sftpincomingpacket_p.h"
//#include "sftpincomingpacket_p.h"

#include "ssh_global.h"

Expand Down

0 comments on commit ef52d76

Please sign in to comment.