Conversion to the cmake building system.

Add a man page taken from the Debian packaging.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Signed-off-by: gregory guy <gregory-tde@laposte.net>
pull/4/head
gregory guy 3 years ago
parent daac380b7c
commit 2bc7596862
No known key found for this signature in database
GPG Key ID: 2CC84A1CC6823AF8

@ -0,0 +1,83 @@
############################################
# #
# Improvements and feedbacks are welcome #
# #
# This file is released under GPL >= 3 #
# #
############################################
cmake_minimum_required( VERSION 2.8.12 )
#### general package setup
project( kftpgrabber )
set( VERSION R14.1.0 )
#### include essential cmake modules
include( FindPkgConfig )
include( CheckFunctionExists )
include( CheckSymbolExists )
include( CheckIncludeFile )
include( CheckIncludeFiles )
include( CheckLibraryExists )
include( CheckCSourceCompiles )
include( CheckCXXSourceCompiles )
#### include our cmake modules
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
include( TDEMacros )
##### setup install paths
include( TDESetupPaths )
tde_setup_paths( )
##### optional stuff
option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
##### user requested modules
option( BUILD_ALL "Build all" ON )
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
##### configure checks
include( ConfigureChecks.cmake )
###### global compiler settings
add_definitions( -DHAVE_CONFIG_H )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
##### directories
add_subdirectory( kftpgrabber )
##### other data
tde_conditional_add_project_docs( BUILD_DOC )
tde_conditional_add_project_translations( BUILD_TRANSLATIONS )
##### write configure files
configure_file( config.h.cmake config.h @ONLY )

@ -0,0 +1,85 @@
###########################################
# #
# Improvements and feedback are welcome #
# #
# This file is released under GPL >= 3 #
# #
###########################################
# required stuff
find_package( TQt )
find_package( TDE )
tde_setup_architecture_flags( )
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
tde_setup_largefiles( )
##### check for gcc visibility support
if( WITH_GCC_VISIBILITY )
tde_setup_gcc_visibility( )
endif( WITH_GCC_VISIBILITY )
##### check for OpenSSL
find_package( OpenSSL )
if( NOT OPENSSL_FOUND )
check_include_file( openssl/err.h HAVE_OPENSSL_H )
check_library_exists( ssl OPENSSL_init_ssl "" HAVE_LIBSSL_11 )
check_library_exists( crypto EVP_EncryptInit_ex "" HAVE_LIBCRYPTO )
if( NOT HAVE_LIBSSL_11 )
check_library_exists( ssl SSL_library_init "" HAVE_LIBSSL )
endif()
if( HAVE_OPENSSL_H AND HAVE_LIBCRYPTO AND (HAVE_LIBSSL_11 OR HAVE_LIBSSL) )
set( SSL_FOUND 1 CACHE INTERNAL "" FORCE )
find_file( OPENSSLV_H openssl/opensslv.h )
file( STRINGS "${OPENSSLV_H}" SSL_VERSION REGEX "#[ \t]*define[ \t]*OPENSSL_VERSION_TEXT" )
string( REGEX REPLACE "# *define[ \t]*OPENSSL_VERSION_TEXT[ \t]*\"[^0-9 ]* *([^ ]*).*" "\\1" SSL_VERSION "${SSL_VERSION}" )
set( SSL_VERSION "${SSL_VERSION}" CACHE INTERNAL "" FORCE )
message( STATUS "Found OpenSSL: version ${SSL_VERSION}" )
set( OPENSSL_LIBRARIES "ssl;crypto" CACHE INTERNAL "ssl and crypto libs" FORCE )
endif()
endif( NOT OPENSSL_FOUND )
if( NOT OPENSSL_FOUND )
tde_message_fatal( "OpenSSL support is required but OpenSSL was not found on your system" )
else()
check_include_file( "openssl/aes.h" HAVE_OPENSSL_AES_H )
check_include_file( "openssl/blowfish.h" HAVE_OPENSSL_BLOWFISH_H )
endif( NOT OPENSSL_FOUND )
##### check for zlib
find_package( ZLIB )
if( ZLIB_FOUND )
set( HAVE_LIBZ 1 )
endif( ZLIB_FOUND )
##### check for functions
check_function_exists( poll HAVE_POLL )
check_function_exists( select HAVE_SELECT )
##### check headers
check_include_file( "sys/time.h" HAVE_SYS_TIME_H )
check_include_files( "sys/time.h;time.h" TIME_WITH_SYS_TIME )
check_include_files( "sys/poll.h" HAVE_SYS_POLL_H )
##### check for symbols
check_symbol_exists( gethostbyname "netdb.h" HAVE_GETHOSTBYNAME )
check_symbol_exists( gethostbyaddr "netdb.h" HAVE_GETHOSTBYADDR )

@ -0,0 +1,41 @@
#define VERSION "@VERSION@"
// Defined if you have fvisibility and fvisibility-inlines-hidden support.
#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
/* Defined if you have the gethostbyname function */
#cmakedefine HAVE_GETHOSTBYNAME 1
/* Defined if you have the gethostbyaddr function */
#cmakedefine HAVE_GETHOSTBYADDR 1
/* Defined if you have the OpenSSL library */
#cmakedefine OPENSSL_CRYPTO 1
/* Defined if you have the <openssl/aes.h> header */
#cmakedefine HAVE_OPENSSL_AES_H 1
/* Defined if you have the <openssl/blowfish.h> header */
#cmakedefine HAVE_OPENSSL_BLOWFISH_H 1
/* Defined if you have the <sys/time.h> header */
#cmakedefine HAVE_SYS_TIME_H 1
/* Defined if you have both <sys/time.h> and <time.h> headers */
#cmakedefine TIME_WITH_SYS_TIME 1
/* Defined if you have the Zlib library */
#cmakedefine HAVE_LIBZ 1
/* Defined if you have the <sys/poll.h> header */
#cmakedefine HAVE_SYS_POLL_H 1
/* Defined if you have the poll function */
#cmakedefine HAVE_POLL 1
/* Defined if you have the select function */
#cmakedefine HAVE_SELECT 1

@ -0,0 +1,107 @@
'\" -*- coding: us-ascii -*-
.if \n(.g .ds T< \\FC
.if \n(.g .ds T> \\F[\n[.fam]]
.de URL
\\$2 \(la\\$1\(ra\\$3
..
.if \n(.g .mso www.tmac
.TH kftpgrabber 1 "mars 17, 2006" "" ""
.SH NAME
kftpgrabber \- ftp client for TDE
.SH SYNOPSIS
'nh
.fi
.ad l
\fBkftpgrabber\fR \kx
.if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
'in \n(.iu+\nxu
[\fB\fIoptions\fB\fR]
'in \n(.iu-\nxu
.ad b
'hy
.SH DESCRIPTION
\fBkftpgrabber\fR is a graphical ftp client for TDE.
It supports technologies like ZeroConf, TLS/SSL and FXP
.PP
Some features:
- Multiple FTP sessions (tabs)
.br
- Transfer queue
.br
- TLS/SSL support for encrypted connections (implicit and explicit)
.br
- Partial X509 certificate support for authentication
.br
- File eXchange Protocol (FXP) transfer support
.br
- One Time Password (OTP) support - S/Key, MD5, RMD160, SHA1
.br
- Drag and Drop support
.br
- Site bookmarking
.br
- Encrypted bookmark support (password can be saved to TDEWallet)
.br
- Distributed FTP support (PRET)
.br
- SSCN and CPSV support
.br
- Skiplist
.br
- ZeroConf (aka. Rendezvous) support for local site discovery
.br
- Bookmark sharing with Kopete contacts
.br
- Bookmark import plugins
.br
- Support for SFTP protocol
.br
- Traffic graph
.br
- Speed limiting
.br
- Priority and skip lists
.br
- Fast directory listings via control channel on servers that support STAT
.br
- Integrated SFV checksum verifier
.br
- Ability to view/edit remote files
.br
- Exporting of directory listings into text files
.br
- "On file exists" action matrix for Download, Upload and FXP transfers
.SH OPTIONS
All TDE and Qt programs accept some common command-line options.
\fBkftpgrabber\fR has no application-specific options.
.TP
\*(T<\fB\-\-help\fR\*(T>
Show help about options
.TP
\*(T<\fB\-\-help\-qt\fR\*(T>
Show Qt specific options
.TP
\*(T<\fB\-\-help\-tde\fR\*(T>
Show TDE specific options
.TP
\*(T<\fB\-\-help\-all\fR\*(T>
Show all options
.TP
\*(T<\fB\-\-author\fR\*(T>
Show author information
.TP
\*(T<\fB\-v\fR\*(T> \*(T<\fB\-\-version\fR\*(T>
Show version information
.TP
\*(T<\fB\-\-license\fR\*(T>
Show license information
.SH AUTHOR
This manual page was written by Fathi Boudra <<\*(T<fboudra@free.fr\*(T>>> for
the Debian system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under
the terms of the GNU General Public License, Version 2 any
later version published by the Free Software Foundation.
.PP
On Debian systems, the complete text of the GNU General Public
License can be found in /usr/share/common-licenses/GPL.

@ -0,0 +1 @@
add_subdirectory( src )

@ -0,0 +1,81 @@
add_subdirectory( misc )
add_subdirectory( engine )
add_subdirectory( ui )
add_subdirectory( widgets )
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/kftpgrabber/src/misc
${CMAKE_SOURCE_DIR}/kftpgrabber/src/widgets
${CMAKE_BINARY_DIR}/kftpgrabber/src/ui
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### kftpgrabber (executable)
tde_add_executable( ${PROJECT_NAME} AUTOMOC
SOURCES
main.cpp
mainwindow.cpp
checksumverifier.cpp
kftpbookmarks.cpp
kftpqueue.cpp
mainactions.cpp
kftpbookmarkaction.cpp
kftpqueueprocessor.cpp
kftpsession.cpp
kftpqueueconverter.cpp
kftptransfer.cpp
kftptransferfile.cpp
kftptransferdir.cpp
kftpfileexistsactions.cpp
statistics.cpp site.cpp
queueobject.cpp
queuegroup.cpp
directoryscanner.cpp
LINK
tdeui-shared
tdeio-shared
tdecore-shared
tdeparts-shared
tdednssd-shared
bookmarkwidgets-static
browser-static
queueviewwidget-static
widgets-static
engine-static
kftpgrabbercore-static
customcommands-static
ui-static
kftpinterfaces-shared
tdewalletclient-shared
DESTINATION ${BIN_INSTALL_DIR}
)
##### icons
tde_install_icons( ${PROJECT_NAME} )
##### other data
tde_create_translated_desktop( ${PROJECT_NAME}.desktop )
install(
FILES kftpgrabber-bi-wizard.png kftpgrabber-logo.png kftpgrabberui.rc
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
)

@ -36,7 +36,7 @@
#include "directoryscanner.h"
#include "kftpqueue.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include "misc/filter.h"
#include <tdefileitem.h>

@ -0,0 +1,40 @@
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${OPENSSL_INCLUDE_DIR}
${CMAKE_BINARY_DIR}/kftpgrabber/src
${CMAKE_SOURCE_DIR}/kftpgrabber/src
${CMAKE_SOURCE_DIR}/kftpgrabber/src/misc
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### engine (static)
tde_add_library( engine STATIC_PIC AUTOMOC
SOURCES
socket.cpp
thread.cpp
directorylisting.cpp
commands.cpp
event.cpp
ftpsocket.cpp
ftpdirectoryparser.cpp
cache.cpp
sftpsocket.cpp
connectionretry.cpp
speedlimiter.cpp
ssl.cpp
LINK
ssh-static
DEPENDENCIES kftpgrabbercore-static
)

@ -110,3 +110,5 @@ void ConnectionRetry::slotEngineEvent(KFTPEngine::Event *event)
}
}
#include "connectionretry.moc"

@ -37,14 +37,26 @@
#ifndef KFTPNETWORKDIRECTORYLISTING_H
#define KFTPNETWORKDIRECTORYLISTING_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <tdeio/global.h>
#include <kurl.h>
#include <ntqvaluelist.h>
#include <ntqptrlist.h>
#include <time.h>
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
#if HAVE_SYS_TIME_H
#include <sys/time.h>
#else
#include <time.h>
#endif // HAVE_SYS_TIME_H
#endif // TIME_WITH_SYS_TIME
typedef unsigned long long int filesize_t;

@ -164,3 +164,5 @@ void EventHandler::customEvent(TQCustomEvent *e)
}
}
#include "event.moc"

@ -42,7 +42,7 @@
#include "ssl.h"
#include "misc/kftpotpgenerator.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include <ntqdir.h>
@ -2749,3 +2749,5 @@ void FtpSocket::protoKeepAlive()
}
}
#include "ftpsocket.moc"

@ -36,7 +36,7 @@
#include "sftpsocket.h"
#include "cache.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include <ntqdir.h>

@ -39,7 +39,7 @@
#include "speedlimiter.h"
#include "cache.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include <tdelocale.h>

@ -34,7 +34,7 @@
* files in the program, then also delete it here.
*/
#include "speedlimiter.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include <kstaticdeleter.h>

@ -44,7 +44,7 @@
#include "kftpsession.h"
#include "bookmarks/listview.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include "engine/thread.h"
#include "engine/ftpsocket.h"

@ -41,7 +41,7 @@
#include "kftpqueueprocessor.h"
#include "kftpsession.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include "misc/filter.h"
#include <tdemessagebox.h>

@ -43,7 +43,7 @@
#include "widgets/systemtray.h"
#include "mainactions.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include "misc/filter.h"
#include <ntqdir.h>

@ -39,7 +39,7 @@
#include "kftpqueue.h"
#include "kftpsession.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include <tdelocale.h>

@ -40,7 +40,7 @@
#include "engine/thread.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include <tdemessagebox.h>
#include <tdelocale.h>

@ -35,7 +35,7 @@
*/
#include "mainwindow.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include <kuniqueapplication.h>
#include <tdeaboutdata.h>

@ -34,9 +34,11 @@
* files in the program, then also delete it here.
*/
#include "mainactions.h"
#include <config.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "mainactions.h"
#include "misc.h"
#include "kftpapi.h"
#include "kftpqueue.h"
@ -48,7 +50,7 @@
#include "widgets/browser/detailsview.h"
#include "widgets/browser/propsplugin.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include "misc/filter.h"
#include <tdemainwindow.h>

@ -83,7 +83,7 @@
#include "sidebar.h"
// Other KFTPGrabber stuff
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include "misc/customcommands/manager.h"
#include "mainwindow.h"

@ -38,7 +38,7 @@
#define MAINWINDOW_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#include "config.h"
#endif
#include <ntqtimer.h>

@ -0,0 +1,52 @@
add_subdirectory( interfaces )
add_subdirectory( plugins )
add_subdirectory( libs )
add_subdirectory( customcommands )
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/kftpgrabber/src
${CMAKE_SOURCE_DIR}/kftpgrabber/src/misc/interfaces
${OPENSSL_INCLUDE_DIR}
${X11_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### kftpgrabbercore (static)
tde_add_library( kftpgrabbercore STATIC_PIC AUTOMOC
SOURCES
misc.cpp
kftpotpgenerator.cpp
kftpapi.cpp
desencryptor.cpp
kftpwalletconnection.cpp
kftppluginmanager.cpp
kftpzeroconf.cpp
kftpconfig.kcfgc
configbase.cpp
filter.cpp
filterwidgethandler.cpp
LINK
kftpinterfaces-shared
customcommands-static
${OPENSSL_LIBRARIES}
)
##### other data
install(
FILES kftpgrabber.kcfg
DESTINATION ${KCFG_INSTALL_DIR}
)

@ -10,7 +10,7 @@ noinst_LIBRARIES = libkftpgrabbercore.a
libkftpgrabbercore_a_SOURCES = misc.cpp kftpotpgenerator.cpp \
kftpapi.cpp desencryptor.cpp kftpwalletconnection.cpp \
kftppluginmanager.cpp \
kftpzeroconf.cpp config.kcfgc configbase.cpp filter.cpp \
kftpzeroconf.cpp kftpconfig.kcfgc configbase.cpp filter.cpp \
filterwidgethandler.cpp
libkftpgrabbercore_a_LIBADD = interfaces/libkftpinterfaces.la customcommands/libcustomcommands.a

@ -35,7 +35,7 @@
*/
#include "configbase.h"
#include "config.h"
#include "kftpconfig.h"
#include "kftpapi.h"
#include "filter.h"

@ -0,0 +1,36 @@
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/kftpgrabber/src
${CMAKE_SOURCE_DIR}/kftpgrabber/src/misc
${CMAKE_SOURCE_DIR}/kftpgrabber/src/widgets
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### customcommands (static)
tde_add_library( customcommands STATIC_PIC AUTOMOC
SOURCES
handlers.cpp
entry.cpp
manager.cpp
parameterentrydialog.cpp
responsedialog.cpp
)
##### other data
install(
FILES commands.xml
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
)

@ -0,0 +1,44 @@
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### kftpinterfaces (shared)
tde_add_library( kftpinterfaces SHARED AUTOMOC
SOURCES
kftpbookmarkimportplugin.cpp
LINK
tdecore-shared
tdeui-shared
tdeparts-shared
VERSION 0.0.0
DESTINATION ${LIB_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kftpbookmarkimportplugin.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR}
)
install(
FILES kftpbookmarkimportplugin.h
DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME}
)

@ -43,7 +43,7 @@
*
* @author Jernej Kos
*/
class KFTPBookmarkImportPlugin : public KParts::Plugin {
class KDE_EXPORT KFTPBookmarkImportPlugin : public KParts::Plugin {
Q_OBJECT
public:
KFTPBookmarkImportPlugin(TQObject *parent, const char *name = 0);

@ -0,0 +1 @@
add_subdirectory( ssh )

@ -0,0 +1,25 @@
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${OPENSSL_INCLUDE_DIR}
${ZLIB_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### ssh (static)
tde_add_library( ssh STATIC_PIC
SOURCES
auth.c base64.c buffer.c channels.c client.c connect.c
crypt.c dh.c error.c gzip.c kex.c keyfiles.c keys.c misc.c
options.c packet.c sftp.c string.c wrapper.c
)

@ -20,7 +20,11 @@ MA 02110-1301, USA. */
#ifndef _LIBSSH_H
#define _LIBSSH_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <unistd.h>
#include <sys/select.h> /* for fd_set * */
#include <sys/types.h>

@ -25,6 +25,11 @@ MA 02110-1301, USA. */
#ifndef _LIBSSH_PRIV_H
#define _LIBSSH_PRIV_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "libssh.h"
/* Debugging constants */
@ -43,11 +48,10 @@ MA 02110-1301, USA. */
#define TYPE_RSA 2
#define TYPE_RSA1 3
/* profiling constants. Don't touch them unless you know what you do */
/* profiling constants. Don't touch them unless you know what you do */
#define OPENSSL_CRYPTO
#define OPENSSL_BIGNUMS
#ifdef __cplusplus
extern "C" {
#endif
@ -88,11 +92,18 @@ typedef BN_CTX* bignum_CTX;
#define bignum_num_bits(num) BN_num_bits(num)
#define bignum_is_bit_set(num,bit) BN_is_bit_set(num,bit)
#define bignum_bn2bin(num,ptr) BN_bn2bin(num,ptr)
#endif /* OPENSSL_BIGNUMS */
#ifdef HAVE_SYS_TIME_H
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
#if HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#else
#include <time.h>
#endif // HAVE_SYS_TIME_H
#endif // TIME_WITH_SYS_TIME
/* wrapper.c */
MD5CTX *md5_init(void);

@ -0,0 +1 @@
add_subdirectory( bookmarkimport )

@ -0,0 +1,4 @@
add_subdirectory( gftp )
add_subdirectory( ncftp )
add_subdirectory( kftp )
add_subdirectory( filezilla3 )

@ -0,0 +1,37 @@
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/kftpgrabber/src/misc/interfaces
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### kftpimportplugin_filezilla3 (kpart)
tde_add_kpart( kftpimportplugin_filezilla3 AUTOMOC
SOURCES
kftpimportfz3plugin.cpp
LINK
tdecore-shared
tdeui-shared
kftpinterfaces-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kftpimportplugin_filezilla3.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)

@ -0,0 +1,36 @@
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/kftpgrabber/src/misc/interfaces
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### kftpimportplugin_gftp (kpart)
tde_add_kpart( kftpimportplugin_gftp AUTOMOC
SOURCES
kftpimportgftpplugin.cpp
LINK
tdecore-shared
tdeui-shared
kftpinterfaces-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kftpimportplugin_gftp.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)

@ -0,0 +1,37 @@
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/kftpgrabber/src/misc/interfaces
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### kftpimportplugin_kftp (kpart)
tde_add_kpart( kftpimportplugin_kftp AUTOMOC
SOURCES
kftpimportkftpplugin.cpp
LINK
tdecore-shared
tdeui-shared
kftpinterfaces-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kftpimportplugin_kftp.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)

@ -0,0 +1,37 @@
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/kftpgrabber/src/misc/interfaces
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### kftpimportplugin_ncftp (kpart)
tde_add_kpart( kftpimportplugin_ncftp AUTOMOC
SOURCES
kftpimportncftpplugin.cpp
LINK
tdecore-shared
tdeui-shared
kftpinterfaces-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop(
SOURCE kftpimportplugin_ncftp.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
)

@ -126,3 +126,5 @@ void QueueGroup::incrementAndExecute()
}
}
#include "queuegroup.moc"

@ -0,0 +1,36 @@
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/kftpgrabber/src/widgets
${CMAKE_SOURCE_DIR}/kftpgrabber/src
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### ui (static)
tde_add_library( ui STATIC_PIC AUTOMOC
SOURCES
bookmark_properties.ui
kftpfilteraddpatternlayout.ui
kftpquickconnectlayout.ui
kftpqueueeditorlayout.ui
kftpsearchlayout.ui
kftpbookmarkimportlayout.ui
kftpbookmarkeditortlswidget.ui
config_general.ui
config_transfers.ui
config_log.ui
config_display.ui
config_filters.ui
foobar.cpp
checksum_verifier.ui
)

@ -0,0 +1,52 @@
add_subdirectory( queueview )
add_subdirectory( browser )
add_subdirectory( bookmarks )
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${CMAKE_BINARY_DIR}/kftpgrabber/src
${CMAKE_SOURCE_DIR}/kftpgrabber/src
${CMAKE_SOURCE_DIR}/kftpgrabber/src/misc
${CMAKE_BINARY_DIR}/kftpgrabber/src/ui
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### widgets (static)
tde_add_library( widgets STATIC_PIC AUTOMOC
SOURCES
logview.cpp
kftpselectserverdialog.cpp
kftpserverlineedit.cpp
listview.cpp
quickconnect.cpp
systemtray.cpp
balloon.cpp
searchdialog.cpp
kftpzeroconflistview.cpp
trafficgraph.cpp
kftptabwidget.cpp
failedtransfers.cpp
listviewitem.cpp
sidebar.cpp
multitabbar.cpp
configdialog.cpp
configfilter.cpp
verifier.cpp
filtereditor.cpp
widgetlister.cpp
overlaywidget.cpp
popupmessage.cpp
DEPENDENCIES kftpgrabbercore-static ui-static
)

@ -0,0 +1,32 @@
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${CMAKE_BINARY_DIR}/kftpgrabber/src
${CMAKE_SOURCE_DIR}/kftpgrabber/src
${CMAKE_SOURCE_DIR}/kftpgrabber/src/misc
${CMAKE_SOURCE_DIR}/kftpgrabber/src/widgets
${CMAKE_BINARY_DIR}/kftpgrabber/src/ui
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### bookmarkwidgets (static)
tde_add_library( bookmarkwidgets STATIC_PIC AUTOMOC
SOURCES
editor.cpp
editortls.cpp
listview.cpp
importwizard.cpp
sidebar.cpp
DEPENDENCIES kftpgrabbercore-static ui-static
)

@ -59,7 +59,7 @@
#include "kftpapi.h"
#include "kftpbookmarks.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include "misc.h"
#include "editor.h"

@ -0,0 +1,35 @@
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${CMAKE_BINARY_DIR}/kftpgrabber/src
${CMAKE_SOURCE_DIR}/kftpgrabber/src
${CMAKE_SOURCE_DIR}/kftpgrabber/src/misc
${CMAKE_SOURCE_DIR}/kftpgrabber/src/widgets
${CMAKE_SOURCE_DIR}/kftpgrabber/src/engine
${CMAKE_BINARY_DIR}/kftpgrabber/src/ui
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### browser (static)
tde_add_library( browser STATIC_PIC AUTOMOC
SOURCES
view.cpp actions.cpp
treeview.cpp
propsplugin.cpp
filterwidget.cpp
detailsview.cpp
locationnavigator.cpp
dirlister.cpp
DEPENDENCIES kftpgrabbercore-static ui-static
)

@ -50,7 +50,7 @@
#include "mainactions.h"
#include "misc.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include "misc/filter.h"
#include "misc/customcommands/manager.h"

@ -40,7 +40,7 @@
#include "browser/dirlister.h"
#include "browser/actions.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include "misc/kftpapi.h"
#include "misc/filter.h"

@ -40,7 +40,7 @@
#include "browser/filterwidget.h"
#include "kftpbookmarks.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include "kftpsession.h"
#include "ftpsocket.h"

@ -35,7 +35,7 @@
#include "configdialog.h"
#include "misc.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include "widgets/systemtray.h"
#include <tdelocale.h>

@ -37,7 +37,7 @@
#include "configfilter.h"
#include "filtereditor.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include "misc.h"
#include <tdelistview.h>

@ -34,7 +34,7 @@
*/
#include "logview.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include "kftpapi.h"
#include <tdelocale.h>

@ -0,0 +1,31 @@
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${OPENSSL_INCLUDE_DIR}
${CMAKE_BINARY_DIR}/kftpgrabber/src
${CMAKE_SOURCE_DIR}/kftpgrabber/src
${CMAKE_SOURCE_DIR}/kftpgrabber/src/misc
${CMAKE_SOURCE_DIR}/kftpgrabber/src/widgets
${CMAKE_BINARY_DIR}/kftpgrabber/src/ui
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### queueviewwidget (static)
tde_add_library( queueviewwidget STATIC_PIC AUTOMOC
SOURCES
queueeditor.cpp
queueview.cpp
threadview.cpp
DEPENDENCIES kftpgrabbercore-static ui-static
)

@ -42,7 +42,7 @@
#include "kftpapi.h"
#include "queueeditor.h"
#include "widgets/searchdialog.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include <tdeapplication.h>
#include <tdefiledialog.h>

@ -36,7 +36,7 @@
#include "widgets/quickconnect.h"
#include "bookmarks/editortls.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
#include "kftpbookmarks.h"
#include "misc.h"

@ -44,7 +44,7 @@
#include "kftpbookmarks.h"
#include "kftpqueue.h"
#include "misc.h"
#include "misc/config.h"
#include "misc/kftpconfig.h"
using namespace KFTPGrabberBase;

@ -170,3 +170,5 @@ void WidgetLister::enableControls()
}
}
#include "widgetlister.moc"

Loading…
Cancel
Save