summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2020-10-20 14:40:51 +0200
committergregory guy <gregory-tde@laposte.net>2021-01-13 18:12:31 +0100
commit81b64bcfc0a32fdeb0e4f367adbf273d924e55f4 (patch)
tree9e0903eb2b5cc19a7dcf4874d098a29133d3163c /src
parent8b4f72aa0753110a46db9195216f3c88e14a9b69 (diff)
downloadtork-81b64bcfc0a32fdeb0e4f367adbf273d924e55f4.tar.gz
tork-81b64bcfc0a32fdeb0e4f367adbf273d924e55f4.zip
Conversion to the cmake building system.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt109
-rw-r--r--src/GeoIP-1.4.0/CMakeLists.txt2
-rw-r--r--src/GeoIP-1.4.0/data/CMakeLists.txt7
-rw-r--r--src/GeoIP-1.4.0/libGeoIP/CMakeLists.txt23
-rw-r--r--src/GeoIP-1.4.0/libGeoIP/GeoIP.c5
-rw-r--r--src/GeoIP-1.4.0/libGeoIP/GeoIPCity.c13
-rw-r--r--src/GeoIP-1.4.0/libGeoIP/md5.c2
-rw-r--r--src/GeoIP-1.4.0/libGeoIP/types.h4
-rw-r--r--src/arkollon/CMakeLists.txt41
-rw-r--r--src/arkollon/data.h6
-rw-r--r--src/arkollon/headerlistitem.cpp10
-rw-r--r--src/arkollon/headerlistitem.h2
-rw-r--r--src/arkollon/rcparser.cpp13
-rw-r--r--src/arkollon/rcparser.h4
-rw-r--r--src/arkollon/torkarkollon.cpp5
-rw-r--r--src/arkollon/uninstallwizard.cpp23
-rw-r--r--src/arkollon/uninstallwizard.h8
-rw-r--r--src/arkollon/wizard.cpp36
-rw-r--r--src/arkollon/wizard.h17
-rw-r--r--src/chart.cpp9
-rw-r--r--src/chart.h2
-rw-r--r--src/configdialog.cpp58
-rw-r--r--src/configdialog.h4
-rw-r--r--src/crashhandler.cpp25
-rw-r--r--src/crypto.cpp33
-rw-r--r--src/crypto.h4
-rw-r--r--src/dndlistview.cpp16
-rw-r--r--src/dndlistview.h4
-rw-r--r--src/firewallsproxies.ui.h9
-rw-r--r--src/functions.cpp7
-rw-r--r--src/functions.h11
-rw-r--r--src/hiddensrvs.ui.h15
-rw-r--r--src/hidsrvwizard.ui8
-rw-r--r--src/hidsrvwizard.ui.h10
-rw-r--r--src/hitwidget.cpp15
-rw-r--r--src/hitwidget.h2
-rw-r--r--src/icons/CMakeLists.txt3
-rw-r--r--src/kerrylabel.cpp8
-rw-r--r--src/konqplugin/CMakeLists.txt41
-rw-r--r--src/konqueror.ui8
-rw-r--r--src/kwidgetlistbox.cpp4
-rw-r--r--src/kwidgetlistbox.h2
-rw-r--r--src/likeback.cpp27
-rw-r--r--src/likeback.h2
-rw-r--r--src/likeback_private.h3
-rw-r--r--src/main.cpp11
-rw-r--r--src/maxmin.ui.h10
-rw-r--r--src/menu/CMakeLists.txt10
-rw-r--r--src/menu/tork.cmake4
-rw-r--r--src/mixminion.ui.h11
-rw-r--r--src/newfirstrunwizard.ui44
-rw-r--r--src/newfirstrunwizard.ui.h22
-rw-r--r--src/newstreamosd.cpp22
-rw-r--r--src/newstreamosd.h8
-rw-r--r--src/overlayWidget.cpp4
-rw-r--r--src/overlayWidget.h2
-rw-r--r--src/paranoia.ui.h8
-rw-r--r--src/popupMessage.cpp19
-rw-r--r--src/popupMessage.h7
-rw-r--r--src/privoxytemplates/CMakeLists.txt18
-rw-r--r--src/questions.h4
-rw-r--r--src/quickconfig.ui.h7
-rw-r--r--src/running.ui8
-rw-r--r--src/running.ui.h11
-rw-r--r--src/scripts/CMakeLists.txt4
-rw-r--r--src/server.ui.h24
-rw-r--r--src/serverwizard.ui.h5
-rw-r--r--src/statgraph.cpp8
-rw-r--r--src/statgraph.h8
-rw-r--r--src/testprivacyproxy.cpp20
-rw-r--r--src/testprivacyproxy.h8
-rw-r--r--src/tor_ioslave/CMakeLists.txt34
-rw-r--r--src/tor_ioslave/torioslave.cpp24
-rw-r--r--src/tor_ioslave/torioslave.h4
-rw-r--r--src/torclient.cpp40
-rw-r--r--src/torclient.h8
-rw-r--r--src/tork.cpp42
-rw-r--r--src/tork.h13
-rw-r--r--src/torkactivelabel.cpp11
-rw-r--r--src/torkapplet/CMakeLists.txt35
-rw-r--r--src/torkapplet/tork_mnu.cpp18
-rw-r--r--src/torkapplet/tork_mnu.h2
-rw-r--r--src/torkview.cpp74
-rw-r--r--src/torkview.h15
-rw-r--r--src/torkview_base.ui9
-rw-r--r--src/torkview_base.ui.h9
-rw-r--r--src/torservers.ui.h21
-rw-r--r--src/trayhoverpopup.cpp13
-rw-r--r--src/trayhoverpopup.h3
-rw-r--r--src/trayicon.cpp8
-rw-r--r--src/trayicon.h2
-rw-r--r--src/update.cpp17
-rw-r--r--src/update.h2
-rw-r--r--src/upnp/CMakeLists.txt28
-rw-r--r--src/upnp/exitoperation.cpp1
-rw-r--r--src/upnp/exitoperation.h3
-rw-r--r--src/upnp/forwardportlist.cpp5
-rw-r--r--src/upnp/forwardportlist.h3
-rw-r--r--src/upnp/httprequest.cpp10
-rw-r--r--src/upnp/httprequest.h4
-rw-r--r--src/upnp/portlist.cpp1
-rw-r--r--src/upnp/portlist.h3
-rw-r--r--src/upnp/soap.cpp3
-rw-r--r--src/upnp/soap.h4
-rw-r--r--src/upnp/upnpdescriptionparser.cpp14
-rw-r--r--src/upnp/upnpmcastsocket.cpp18
-rw-r--r--src/upnp/upnpmcastsocket.h1
-rw-r--r--src/upnp/upnprouter.cpp16
-rw-r--r--src/upnp/upnprouter.h12
-rw-r--r--src/upnpmanager.cpp1
-rw-r--r--src/upnpmanager.h5
-rw-r--r--src/usability.ui.h8
-rw-r--r--src/warnings.h4
113 files changed, 988 insertions, 527 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..cbab62d
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,109 @@
+add_subdirectory( menu )
+add_subdirectory( upnp )
+add_subdirectory( icons )
+add_subdirectory( scripts )
+add_subdirectory( arkollon )
+add_subdirectory( privoxytemplates )
+
+tde_conditional_add_subdirectory( WITH_EMBEDDED_GEOIP GeoIP-1.4.0 )
+tde_conditional_add_subdirectory( BUILD_KONQPLUGIN konqplugin )
+tde_conditional_add_subdirectory( BUILD_TORAPPLET torkapplet )
+tde_conditional_add_subdirectory( BUILD_TOR_IOSLAVE tor_ioslave )
+
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${X11_INCLUDE_DIR}
+ ${GNUTLS_INCLUDE_DIRS}
+ ${LIBGCRYPT_INCLUDE_DIRS}
+ ${OPENSSL_INCLUDE_DIR}
+ ${GEOIP_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### tork (executable)
+
+tde_add_executable( ${PROJECT_NAME} AUTOMOC
+
+ SOURCES
+ dcoptork.skel
+ firewallsproxies.ui hiddensrvs.ui hidsrvwizard.ui
+ hitwidget_layout.ui introwizard.ui serverwizard.ui
+ konqueror.ui maxmin.ui mixminion.ui torkview_base.ui
+ newfirstrunwizard.ui paranoia.ui torservers.ui
+ quickconfig.ui running.ui server.ui usability.ui
+ chart.cpp configdialog.cpp crashhandler.cpp
+ crypto.cpp dndlistview.cpp functions.cpp
+ hitwidget.cpp kerrylabel.cpp kwidgetlistbox.cpp
+ likeback.cpp main.cpp newstreamosd.cpp
+ overlayWidget.cpp popupMessage.cpp
+ statgraph.cpp testprivacyproxy.cpp torclient.cpp
+ tork.cpp torkactivelabel.cpp torkconfig.kcfgc
+ torkview.cpp trayhoverpopup.cpp
+ trayicon.cpp update.cpp upnpmanager.cpp
+ LINK
+ tdeio-shared
+ tdehtml-shared
+ tdeui-shared
+ tdecore-shared
+ ktupnp-static
+ ${OPENSSL_LIBRARIES}
+ ${GEOIP_LIBRARIES}
+ ${GNUTLS_LIBRARIES}
+ ${LIBGCRYPT_LIBRARIES}
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### icons
+
+install(
+ FILES ${PROJECT_NAME}.xpm
+ DESTINATION ${SHARE_INSTALL_PREFIX}/pixmaps
+)
+
+
+##### other data
+
+install(
+ FILES torkui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
+)
+
+tde_create_translated_desktop( ${PROJECT_NAME}.desktop )
+
+tde_create_translated_desktop(
+ SOURCE tork_downloadwithfirefox.desktop
+ tork_downloadwithopera.desktop
+ tork_downloadwithkonqueror.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus
+)
+
+tde_create_translated_desktop(
+ SOURCE eventsrc
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
+)
+
+install(
+ FILES torkconfig.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)
+
+
+##### man page
+
+INSTALL(
+ FILES ${PROJECT_NAME}.1
+ DESTINATION ${MAN_INSTALL_DIR}/man1
+ COMPONENT doc
+)
diff --git a/src/GeoIP-1.4.0/CMakeLists.txt b/src/GeoIP-1.4.0/CMakeLists.txt
new file mode 100644
index 0000000..6e42390
--- /dev/null
+++ b/src/GeoIP-1.4.0/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_subdirectory( data )
+add_subdirectory( libGeoIP )
diff --git a/src/GeoIP-1.4.0/data/CMakeLists.txt b/src/GeoIP-1.4.0/data/CMakeLists.txt
new file mode 100644
index 0000000..627b9ba
--- /dev/null
+++ b/src/GeoIP-1.4.0/data/CMakeLists.txt
@@ -0,0 +1,7 @@
+
+###### GeoIP data
+
+install(
+ FILES GeoIP.dat GeoIP-LICENSE.txt
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/geoip
+)
diff --git a/src/GeoIP-1.4.0/libGeoIP/CMakeLists.txt b/src/GeoIP-1.4.0/libGeoIP/CMakeLists.txt
new file mode 100644
index 0000000..a0b9be0
--- /dev/null
+++ b/src/GeoIP-1.4.0/libGeoIP/CMakeLists.txt
@@ -0,0 +1,23 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/src
+ ${ZLIB_INCLUDE_DIRS}
+)
+
+
+##### geoip (static)
+
+tde_add_library( geoip STATIC_PIC
+
+ SOURCES
+ GeoIP.c
+ GeoIPCity.c
+ regionName.c
+ timeZone.c
+ GeoIPUpdate.c
+ md5.c
+ LINK
+ ${ZLIB_LIBRARIES}
+)
diff --git a/src/GeoIP-1.4.0/libGeoIP/GeoIP.c b/src/GeoIP-1.4.0/libGeoIP/GeoIP.c
index feb6a40..a055156 100644
--- a/src/GeoIP-1.4.0/libGeoIP/GeoIP.c
+++ b/src/GeoIP-1.4.0/libGeoIP/GeoIP.c
@@ -17,6 +17,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "GeoIP.h"
#include "GeoIP_internal.h"
@@ -29,6 +33,7 @@
#include <windows.h>
#define snprintf _snprintf
#endif
+
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/src/GeoIP-1.4.0/libGeoIP/GeoIPCity.c b/src/GeoIP-1.4.0/libGeoIP/GeoIPCity.c
index 2a65759..b5c445a 100644
--- a/src/GeoIP-1.4.0/libGeoIP/GeoIPCity.c
+++ b/src/GeoIP-1.4.0/libGeoIP/GeoIPCity.c
@@ -17,9 +17,14 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <GeoIP.h>
-#include <GeoIP_internal.h>
-#include <GeoIPCity.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "GeoIP.h"
+#include "GeoIP_internal.h"
+#include "GeoIPCity.h"
+
#ifndef WIN32
#include <netdb.h>
#include <netinet/in.h> /* For ntohl */
@@ -27,7 +32,9 @@
#include <windows.h>
#include <winsock.h>
#endif
+
#include <sys/types.h> /* For uint32_t */
+
#ifdef HAVE_STDINT_H
#include <stdint.h> /* For uint32_t */
#endif
diff --git a/src/GeoIP-1.4.0/libGeoIP/md5.c b/src/GeoIP-1.4.0/libGeoIP/md5.c
index 922f75a..0882a3a 100644
--- a/src/GeoIP-1.4.0/libGeoIP/md5.c
+++ b/src/GeoIP-1.4.0/libGeoIP/md5.c
@@ -23,7 +23,9 @@
/* Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. */
/* Heavily modified for GnuPG by <wk@gnupg.org> */
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include <stdio.h>
#include <stdlib.h>
diff --git a/src/GeoIP-1.4.0/libGeoIP/types.h b/src/GeoIP-1.4.0/libGeoIP/types.h
index 4a8b80a..0a8a953 100644
--- a/src/GeoIP-1.4.0/libGeoIP/types.h
+++ b/src/GeoIP-1.4.0/libGeoIP/types.h
@@ -21,6 +21,10 @@
#ifndef G10_TYPES_H
#define G10_TYPES_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#ifdef HAVE_INTTYPES_H
/* For uint64_t */
#include <inttypes.h>
diff --git a/src/arkollon/CMakeLists.txt b/src/arkollon/CMakeLists.txt
new file mode 100644
index 0000000..0e93613
--- /dev/null
+++ b/src/arkollon/CMakeLists.txt
@@ -0,0 +1,41 @@
+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}
+)
+
+
+##### torkarkollon (executable)
+
+tde_add_executable( torkarkollon AUTOMOC
+
+ SOURCES
+ logdialog.ui
+ wizardbase.ui
+ torkarkollon.cpp
+ wizard.cpp
+ rcparser.cpp
+ uninstallwizard.cpp
+ headerlistitem.cpp
+ data.cpp
+ LINK
+ tdecore-shared
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data
+
+INSTALL(
+ FILES torkarkollon.1
+ DESTINATION ${MAN_INSTALL_DIR}/man1
+ COMPONENT doc
+)
diff --git a/src/arkollon/data.h b/src/arkollon/data.h
index 1526c1b..abd4c3a 100644
--- a/src/arkollon/data.h
+++ b/src/arkollon/data.h
@@ -169,8 +169,8 @@ static const unsigned char uninstaller_sh_data[] = {
0x74,0x0a,0x64,0x6f,0x6e,0x65,0x0a,0x09,0x09,0x0a
};
-#include <ntqimage.h>
-#include <ntqdict.h>
+#include <tqimage.h>
+#include <tqdict.h>
static const TQRgb misc_data[] = {
0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,
0xff8f8f8f,0xff8f8f8f,0xff8f8f8f,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfffefefe,0xfffcfcfc,0xfffbfbfb,0xfff9f9f9,
@@ -3058,7 +3058,7 @@ static const TQRgb packageIcon_data[] = {
0x44000000,0x44000000,0x44000000,0x44000000,0x44000000,0x44030303,0x1d000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0xffffff
};
-#include <ntqcstring.h>
+#include <tqcstring.h>
const TQImage& qembed_findImage( const TQString& name );
diff --git a/src/arkollon/headerlistitem.cpp b/src/arkollon/headerlistitem.cpp
index 0c29e6f..ab066d0 100644
--- a/src/arkollon/headerlistitem.cpp
+++ b/src/arkollon/headerlistitem.cpp
@@ -17,12 +17,12 @@
* Free Software Foundation, Inc., *
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include "headerlistitem.h"
-
-#include <ntqfontmetrics.h>
-#include <ntqpainter.h>
-#include <ntqapplication.h>
+
+#include <tqfontmetrics.h>
+#include <tqpainter.h>
+#include <tqapplication.h>
+#include "headerlistitem.h"
#include "uninstallwizard.h"
#include "wizard.h"
diff --git a/src/arkollon/headerlistitem.h b/src/arkollon/headerlistitem.h
index 3be07e5..4097b22 100644
--- a/src/arkollon/headerlistitem.h
+++ b/src/arkollon/headerlistitem.h
@@ -20,7 +20,7 @@
#ifndef HEADERLISTITEM_H
#define HEADERLISTITEM_H
-#include <ntqlistview.h>
+#include <tqlistview.h>
class HeaderListItem : public TQListViewItem
{
diff --git a/src/arkollon/rcparser.cpp b/src/arkollon/rcparser.cpp
index 82123dc..6a7850b 100644
--- a/src/arkollon/rcparser.cpp
+++ b/src/arkollon/rcparser.cpp
@@ -17,11 +17,12 @@
* Free Software Foundation, Inc., *
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include "rcparser.h"
-#include <ntqregexp.h>
-#include <ntqfile.h>
-#include <ntqtextstream.h>
+#include <tqregexp.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+
+#include "rcparser.h"
RcParser::RcParser()
{
@@ -140,7 +141,3 @@ TQStringList RcParser::readList(TQString key)
{
return TQStringList::split(",", sections[currentSection][key]);
}
-
-
-
-
diff --git a/src/arkollon/rcparser.h b/src/arkollon/rcparser.h
index 71842fa..47db4d6 100644
--- a/src/arkollon/rcparser.h
+++ b/src/arkollon/rcparser.h
@@ -20,8 +20,8 @@
#ifndef RCPARSER_H
#define RCPARSER_H
-#include <ntqstringlist.h>
-#include <ntqmap.h>
+#include <tqstringlist.h>
+#include <tqmap.h>
class RcParser
{
diff --git a/src/arkollon/torkarkollon.cpp b/src/arkollon/torkarkollon.cpp
index c4e6c30..f57046d 100644
--- a/src/arkollon/torkarkollon.cpp
+++ b/src/arkollon/torkarkollon.cpp
@@ -19,15 +19,16 @@
***************************************************************************/
#ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "config.h"
#endif
+#include <tqapplication.h>
+
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
-#include <ntqapplication.h>
#include "wizard.h"
#include "uninstallwizard.h"
diff --git a/src/arkollon/uninstallwizard.cpp b/src/arkollon/uninstallwizard.cpp
index 58bd6b4..346d038 100644
--- a/src/arkollon/uninstallwizard.cpp
+++ b/src/arkollon/uninstallwizard.cpp
@@ -18,23 +18,22 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+#include <tqregexp.h>
+#include <tqwidgetstack.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+#include <tqheader.h>
+#include <tqlistbox.h>
+#include <tqmessagebox.h>
+#include <tqpushbutton.h>
+#include <tqlineedit.h>
+#include <tqtextedit.h>
+#include <tqlabel.h>
#include "uninstallwizard.h"
#include "headerlistitem.h"
#include "data.h"
-#include <ntqregexp.h>
-#include <ntqwidgetstack.h>
-#include <ntqfile.h>
-#include <ntqtextstream.h>
-#include <ntqheader.h>
-#include <ntqlistbox.h>
-#include <ntqmessagebox.h>
-#include <ntqpushbutton.h>
-#include <ntqlineedit.h>
-#include <ntqtextedit.h>
-#include <ntqlabel.h>
-
AppListItem::AppListItem(TQString nN, TQString n, TQListView* parent)
: TQCheckListItem(parent, "", TQCheckListItem::CheckBox)
{
diff --git a/src/arkollon/uninstallwizard.h b/src/arkollon/uninstallwizard.h
index 712dc37..0d10cbd 100644
--- a/src/arkollon/uninstallwizard.h
+++ b/src/arkollon/uninstallwizard.h
@@ -21,14 +21,14 @@
#ifndef UNINSTALLWIZARD_H
#define UNINSTALLWIZARD_H
+#include <tqlistview.h>
+#include <tqprocess.h>
+#include <tqpixmap.h>
+
#include "wizardbase.h"
#include "logdialog.h"
#include "headerlistitem.h"
-#include <ntqlistview.h>
-#include <ntqprocess.h>
-#include <ntqpixmap.h>
-
class AppListItem : public TQCheckListItem
{
public:
diff --git a/src/arkollon/wizard.cpp b/src/arkollon/wizard.cpp
index fd2cfac..f9f5d9c 100644
--- a/src/arkollon/wizard.cpp
+++ b/src/arkollon/wizard.cpp
@@ -17,26 +17,26 @@
* Free Software Foundation, Inc., *
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include "wizard.h"
-#include <ntqfiledialog.h>
-#include <ntqwidgetstack.h>
-#include <ntqpushbutton.h>
-#include <ntqpainter.h>
-#include <ntqheader.h>
-#include <ntqapplication.h>
-#include <ntqmessagebox.h>
-#include <ntqprogressbar.h>
-#include <ntqradiobutton.h>
-#include <ntqtextedit.h>
-#include <ntqlineedit.h>
-#include <ntqpopupmenu.h>
-#include <ntqhbox.h>
-#include <ntqfileinfo.h>
-#include <ntqlabel.h>
-#include <ntqfontmetrics.h>
-#include <ntqcheckbox.h>
+#include <tqfiledialog.h>
+#include <tqwidgetstack.h>
+#include <tqpushbutton.h>
+#include <tqpainter.h>
+#include <tqheader.h>
+#include <tqapplication.h>
+#include <tqmessagebox.h>
+#include <tqprogressbar.h>
+#include <tqradiobutton.h>
+#include <tqtextedit.h>
+#include <tqlineedit.h>
+#include <tqpopupmenu.h>
+#include <tqhbox.h>
+#include <tqfileinfo.h>
+#include <tqlabel.h>
+#include <tqfontmetrics.h>
+#include <tqcheckbox.h>
+#include "wizard.h"
#include "data.h"
#include "rcparser.h"
diff --git a/src/arkollon/wizard.h b/src/arkollon/wizard.h
index 09e0ef9..d7e0866 100644
--- a/src/arkollon/wizard.h
+++ b/src/arkollon/wizard.h
@@ -20,17 +20,20 @@
#ifndef WIZARD_H
#define WIZARD_H
+#include <tqlistview.h>
+#include <tqprocess.h>
+#include <tqsettings.h>
+#include <tqiconview.h>
+#include <tqregexp.h>
+#include <tqvaluevector.h>
+#include <tqstring.h>
+
#include <wizardbase.h>
-#include <ntqlistview.h>
-#include <ntqprocess.h>
-#include <ntqsettings.h>
-#include <ntqiconview.h>
-#include <ntqregexp.h>
-#include <ntqvaluevector.h>
-#include <ntqstring.h>
+
#include <stdio.h>
#include "logdialog.h"
+
class HeaderListItem;
struct Component
diff --git a/src/chart.cpp b/src/chart.cpp
index 60bc741..6441b6a 100644
--- a/src/chart.cpp
+++ b/src/chart.cpp
@@ -22,11 +22,14 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+#include <tqpainter.h>
+#include <tqbrush.h>
+
+#include <kdebug.h>
+
#include "chart.h"
#include "functions.h"
-#include <ntqpainter.h>
-#include <ntqbrush.h>
-#include <kdebug.h>
+
using namespace tk;
diff --git a/src/chart.h b/src/chart.h
index bf41378..5b1f6e5 100644
--- a/src/chart.h
+++ b/src/chart.h
@@ -23,7 +23,7 @@
#ifndef CHART_H
#define CHART_H
-#include <ntqwidget.h>
+#include <tqwidget.h>
class TQPaintEvent;
diff --git a/src/configdialog.cpp b/src/configdialog.cpp
index ad16af6..0169e81 100644
--- a/src/configdialog.cpp
+++ b/src/configdialog.cpp
@@ -34,6 +34,37 @@ email : markey@web.de
* *
***************************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <tqcombobox.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqmessagebox.h>
+#include <tqobjectlist.h>
+#include <tqpushbutton.h>
+#include <tqradiobutton.h>
+#include <tqspinbox.h>
+#include <tqtextcodec.h>
+#include <tqtooltip.h>
+#include <tqvbox.h>
+#include <tqlistview.h>
+#include <tqcheckbox.h>
+
+#include <tdeapplication.h> //kapp
+#include <kcombobox.h>
+#include <kiconloader.h>
+#include <klineedit.h>
+#include <tdelocale.h>
+#include <kstandarddirs.h>
+#include <kdebug.h>
+#include <dcopref.h>
+#include <tdeconfig.h>
+#include <tdemessagebox.h>
+
#include "configdialog.h"
#include "konqueror.h"
#include "firewallsproxies.h"
@@ -49,34 +80,7 @@ email : markey@web.de
#include "portsandnames.h"
#include "tork.h"
#include "crypto.h"
-#include "../config.h"
-
-#include <ntqcombobox.h>
-#include <ntqgroupbox.h>
-#include <ntqlabel.h>
-#include <ntqlayout.h>
-#include <ntqlineedit.h>
-#include <ntqmessagebox.h>
-#include <ntqobjectlist.h>
-#include <ntqpushbutton.h>
-#include <ntqradiobutton.h>
-#include <ntqspinbox.h>
-#include <ntqtextcodec.h>
-#include <ntqtooltip.h>
-#include <ntqvbox.h>
-#include <ntqlistview.h>
-#include <ntqcheckbox.h>
-#include <tdeapplication.h> //kapp
-#include <kcombobox.h>
-#include <kiconloader.h>
-#include <klineedit.h>
-#include <tdelocale.h>
-#include <kstandarddirs.h>
-#include <kdebug.h>
-#include <dcopref.h>
-#include <tdeconfig.h>
-#include <tdemessagebox.h>
//////////////////////////////////////////////////////////////////////////////////////////
// PUBLIC
diff --git a/src/configdialog.h b/src/configdialog.h
index 5e310b9..20824b0 100644
--- a/src/configdialog.h
+++ b/src/configdialog.h
@@ -18,9 +18,9 @@ email : markey@web.de
#ifndef TORKCONFIGDIALOG_H
#define TORKCONFIGDIALOG_H
+#include <tqmap.h>
+#include <tqvaluelist.h>
-#include <ntqmap.h>
-#include <ntqvaluelist.h>
#include <tdeconfigdialog.h>
class TQComboBox;
diff --git a/src/crashhandler.cpp b/src/crashhandler.cpp
index db161b1..3deb9a6 100644
--- a/src/crashhandler.cpp
+++ b/src/crashhandler.cpp
@@ -10,9 +10,10 @@
* *
***************************************************************************/
-#include "tork.h"
-#include "torkconfig.h"
-#include "crashhandler.h"
+#include <tqfile.h>
+#include <tqregexp.h>
+#include <tqtextstream.h>
+#include <tqglobal.h> //tqVersion()
#include <tdeapplication.h> //invokeMailer()
#include <kdebug.h> //kdBacktrace()
@@ -20,19 +21,15 @@
#include <tdelocale.h>
#include <tdetempfile.h>
-#include <ntqfile.h>
-#include <ntqregexp.h>
-#include <ntqtextstream.h>
-#include <ntqglobal.h> //tqVersion()
-
#include <cstdio> //popen, fread
#include <iostream>
#include <sys/types.h> //pid_t
#include <sys/wait.h> //waitpid
#include <unistd.h> //write, getpid
-
-
+#include "tork.h"
+#include "torkconfig.h"
+#include "crashhandler.h"
namespace torK
@@ -245,14 +242,16 @@ namespace torK
#if 0
-#include <ntqlabel.h>
-#include <ntqlayout.h>
-#include <ntqvbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqvbox.h>
+
#include <kdialog.h>
#include <kpushbutton.h>
#include <kstdguiitem.h>
#include <kstandarddirs.h>
+
torK::CrashHandlerWidget::CrashHandlerWidget()
{
TQBoxLayout *layout = new TQHBoxLayout( this, 18, 12 );
diff --git a/src/crypto.cpp b/src/crypto.cpp
index 3fb4696..0e6836f 100644
--- a/src/crypto.cpp
+++ b/src/crypto.cpp
@@ -37,10 +37,25 @@
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. */
/* See Tor LICENSE for licensing information */
/* $Id: crypto.cpp,v 1.11 2008/07/31 19:56:26 hoganrobert Exp $ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <kdebug.h>
+
#include <string.h>
-#include <kdebug.h>
-#include "crypto.h"
-#include "../config.h"
+#include <stdlib.h>
+#include <assert.h>
+#include <stdio.h>
+#include <limits.h>
+#include <ctype.h>
+#include <unistd.h>
+#include <fcntl.h>
+#include <sys/fcntl.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <stdint.h>
#ifndef USE_OPENSSL
#include <gnutls/gnutls.h>
@@ -59,18 +74,8 @@
#include <openssl/conf.h>
#endif
-#include <stdlib.h>
-#include <assert.h>
-#include <stdio.h>
-#include <limits.h>
+#include "crypto.h"
-#include <ctype.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <sys/fcntl.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <stdint.h>
/* random numbers */
diff --git a/src/crypto.h b/src/crypto.h
index 6efa086..9d0f6a8 100644
--- a/src/crypto.h
+++ b/src/crypto.h
@@ -91,8 +91,8 @@
#define S2K_SPECIFIER_LEN 9
-#include <ntqmap.h>
-#include <ntqstring.h>
+#include <tqmap.h>
+#include <tqstring.h>
typedef struct crypto_digest_env_t crypto_digest_env_t;
diff --git a/src/dndlistview.cpp b/src/dndlistview.cpp
index 65fe852..a689fcf 100644
--- a/src/dndlistview.cpp
+++ b/src/dndlistview.cpp
@@ -18,17 +18,19 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include "dndlistview.h"
-#include "torkconfig.h"
-#include "kdebug.h"
-#include <ntqapplication.h>
-#include <ntqheader.h>
+#include <tqapplication.h>
+#include <tqheader.h>
+#include <tqsimplerichtext.h>
+#include <tqpainter.h>
+
#include <kiconloader.h>
#include <tdelocale.h>
#include <kstandarddirs.h>
-#include <ntqsimplerichtext.h>
-#include <ntqpainter.h>
+#include "dndlistview.h"
+#include "torkconfig.h"
+#include "kdebug.h"
+
DndListView::DndListView( TQWidget * parent, const char * name, WFlags f ) :
TQListView( parent, name, f ), oldCurrent( 0 ),
diff --git a/src/dndlistview.h b/src/dndlistview.h
index 06a92de..7305960 100644
--- a/src/dndlistview.h
+++ b/src/dndlistview.h
@@ -22,8 +22,8 @@
#ifndef _DNDLISTVIEW_H_
#define _DNDLISTVIEW_H_
-#include <ntqlistview.h>
-#include <ntqdragobject.h>
+#include <tqlistview.h>
+#include <tqdragobject.h>
class TQDragEnterEvent;
class TQDragDropEvent;
diff --git a/src/firewallsproxies.ui.h b/src/firewallsproxies.ui.h
index 77f5ff8..b215b39 100644
--- a/src/firewallsproxies.ui.h
+++ b/src/firewallsproxies.ui.h
@@ -18,15 +18,18 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include "torkconfig.h"
+#include <tqtooltip.h>
+#include <tqpopupmenu.h>
+
#include <tdelocale.h>
-#include <ntqtooltip.h>
-#include <ntqpopupmenu.h>
#include <kdebug.h>
#include <tdehtml_part.h>
#include <dom/html_misc.h>
#include <tdemessagebox.h>
+#include "torkconfig.h"
+
+
TDEHTMLPart *filelist;
void FirewallsProxies::init()
diff --git a/src/functions.cpp b/src/functions.cpp
index cf0ec8d..f0d73aa 100644
--- a/src/functions.cpp
+++ b/src/functions.cpp
@@ -20,12 +20,15 @@
* Free Software Foundation, Inc., *
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <ntqdatetime.h>
+
+#include <tqdatetime.h>
+#include <tqdir.h>
+
#include <tdelocale.h>
#include <tdeglobal.h>
#include <kdebug.h>
+
#include <sys/time.h>
-#include <ntqdir.h>
#include <cstdlib>
#include "functions.h"
diff --git a/src/functions.h b/src/functions.h
index 84d0c87..8f0af72 100644
--- a/src/functions.h
+++ b/src/functions.h
@@ -22,12 +22,15 @@
#ifndef FUNCTIONS_H
#define FUNCTIONS_H
-#include <ntqstring.h>
-#include <ntqstringlist.h>
-#include <ntqdir.h>
-#include "constants.h"
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqdir.h>
+
#include <map>
+#include "constants.h"
+
+
TQString getFullLocation(const char *additionalPaths, const TQString &name);
TQStringList findPrograms(const TQStringList &programList);
diff --git a/src/hiddensrvs.ui.h b/src/hiddensrvs.ui.h
index 9bc6647..b91078d 100644
--- a/src/hiddensrvs.ui.h
+++ b/src/hiddensrvs.ui.h
@@ -17,19 +17,24 @@
* Free Software Foundation, Inc., *
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include "torkconfig.h"
-#include "tork.h"
-#include "hidsrvwizard.h"
+
+#include <tqtooltip.h>
+#include <tqpopupmenu.h>
+
#include <tdelocale.h>
#include <kdebug.h>
-#include <ntqtooltip.h>
-#include <ntqpopupmenu.h>
#include <kurl.h>
#include <tdeapplication.h>
#include <kprocio.h>
#include <tdemessagebox.h>
+
#include <cstdlib>
+#include "torkconfig.h"
+#include "tork.h"
+#include "hidsrvwizard.h"
+
+
void MyHidden::init()
{
diff --git a/src/hidsrvwizard.ui b/src/hidsrvwizard.ui
index 1644e1a..05bce3c 100644
--- a/src/hidsrvwizard.ui
+++ b/src/hidsrvwizard.ui
@@ -459,6 +459,9 @@
</tabstops>
<includes>
<include location="local" impldecl="in implementation">hidsrvwizard.ui.h</include>
+ <include location="global" impldecl="in implementation">kurlrequester.h</include>
+ <include location="global" impldecl="in implementation">kcombobox.h</include>
+ <include location="global" impldecl="in implementation">kpushbutton.h</include>
</includes>
<signals>
<signal>createService(const TQString &amp;,const TQString &amp;)</signal>
@@ -476,9 +479,4 @@
<function access="private" specifier="non virtual">init()</function>
</functions>
<layoutdefaults spacing="6" margin="11"/>
-<includehints>
- <includehint>kurlrequester.h</includehint>
- <includehint>kcombobox.h</includehint>
- <includehint>kpushbutton.h</includehint>
-</includehints>
</UI>
diff --git a/src/hidsrvwizard.ui.h b/src/hidsrvwizard.ui.h
index 2cb1090..a9ab197 100644
--- a/src/hidsrvwizard.ui.h
+++ b/src/hidsrvwizard.ui.h
@@ -18,12 +18,16 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include "tork.h"
-#include "functions.h"
-#include <ntqtimer.h>
+#include <tqtimer.h>
+
#include <tdemessagebox.h>
+
#include <cstdlib>
+#include "tork.h"
+#include "functions.h"
+
+
bool local;
TQString thttpd;
diff --git a/src/hitwidget.cpp b/src/hitwidget.cpp
index 9472cae..5ad364b 100644
--- a/src/hitwidget.cpp
+++ b/src/hitwidget.cpp
@@ -17,20 +17,23 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA *
***************************************************************************/
-#include "hitwidget.h"
-#include "kerrylabel.h"
+#include <tqscrollview.h>
+#include <tqcombobox.h>
+#include <tqtoolbutton.h>
+#include <tqlayout.h>
#include <kpushbutton.h>
#include <kdebug.h>
#include <kiconloader.h>
-#include <ntqtoolbutton.h>
#include <tdelocale.h>
#include <kurllabel.h>
#include <tdeglobalsettings.h>
-#include <ntqlayout.h>
+
/*#include <konq_filetip.h>*/
-#include <ntqscrollview.h>
-#include <ntqcombobox.h>
+
+#include "hitwidget.h"
+#include "kerrylabel.h"
+
HitWidget::HitWidget(TQString uri, TQString mimetype, KWidgetListbox *parent, const char *name)
: HitWidgetLayout(parent, name), m_uri(uri), m_mimetype(mimetype), m_collapsed(false),
diff --git a/src/hitwidget.h b/src/hitwidget.h
index 4c48072..b8a0e05 100644
--- a/src/hitwidget.h
+++ b/src/hitwidget.h
@@ -21,8 +21,10 @@
#define HITWIDGET_H
#include <hitwidget_layout.h>
+
#include "kwidgetlistbox.h"
+
class TQScrollView;
// class KonqFileTip;
diff --git a/src/icons/CMakeLists.txt b/src/icons/CMakeLists.txt
new file mode 100644
index 0000000..7d025a1
--- /dev/null
+++ b/src/icons/CMakeLists.txt
@@ -0,0 +1,3 @@
+##### icons hicolor
+
+tde_install_icons()
diff --git a/src/kerrylabel.cpp b/src/kerrylabel.cpp
index f758ffc..42d8b9c 100644
--- a/src/kerrylabel.cpp
+++ b/src/kerrylabel.cpp
@@ -18,10 +18,8 @@
Boston, MA 02110-1301, USA.
*/
-#include "kerrylabel.h"
-#include "hitwidget.h"
+#include <tqdragobject.h>
-#include <ntqdragobject.h>
#include <tdeglobalsettings.h>
#include <kurl.h>
#include <krun.h>
@@ -31,6 +29,10 @@
#include <knewmenu.h>
*/
+#include "kerrylabel.h"
+#include "hitwidget.h"
+
+
KerryLabel::KerryLabel (TQWidget* parent, const char* name)
: KURLLabel (parent, name)
{
diff --git a/src/konqplugin/CMakeLists.txt b/src/konqplugin/CMakeLists.txt
new file mode 100644
index 0000000..1da7c27
--- /dev/null
+++ b/src/konqplugin/CMakeLists.txt
@@ -0,0 +1,41 @@
+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}
+)
+
+
+##### tdehtml_tork (kpart)
+
+tde_add_kpart( tdehtml_tork AUTOMOC
+
+ SOURCES
+ tork_plug_in.cpp
+ LINK
+ tdehtml-shared
+
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### icons
+
+tde_install_icons( )
+
+
+##### other data
+
+install(
+ FILES tork_plug_in.rc
+ DESTINATION ${DATA_INSTALL_DIR}/tdehtml/kpartplugins
+)
+
+
+tde_create_translated_desktop( tork_plug_in.desktop )
diff --git a/src/konqueror.ui b/src/konqueror.ui
index 434a254..6c90dc8 100644
--- a/src/konqueror.ui
+++ b/src/konqueror.ui
@@ -424,6 +424,9 @@
</connections>
<includes>
<include location="local" impldecl="in implementation">konqueror.ui.h</include>
+ <include location="global" impldecl="in implementation">kurlrequester.h</include>
+ <include location="global" impldecl="in implementation">kcombobox.h</include>
+ <include location="global" impldecl="in implementation">kpushbutton.h</include>
</includes>
<slots>
<slot>kcfg_TorkProxy_toggled( bool state )</slot>
@@ -432,9 +435,4 @@
<functions>
<function access="private" specifier="non virtual">init()</function>
</functions>
-<includehints>
- <includehint>kurlrequester.h</includehint>
- <includehint>kcombobox.h</includehint>
- <includehint>kpushbutton.h</includehint>
-</includehints>
</UI>
diff --git a/src/kwidgetlistbox.cpp b/src/kwidgetlistbox.cpp
index 23300de..16ef004 100644
--- a/src/kwidgetlistbox.cpp
+++ b/src/kwidgetlistbox.cpp
@@ -17,11 +17,13 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA *
***************************************************************************/
-#include "kwidgetlistbox.h"
#include <kdebug.h>
#include <tdeglobalsettings.h>
#include <hitwidget.h>
+#include "kwidgetlistbox.h"
+
+
KWidgetListbox::KWidgetListbox(TQWidget *parent, const char *name)
: TQTable(parent, name)
{
diff --git a/src/kwidgetlistbox.h b/src/kwidgetlistbox.h
index 2568588..0603673 100644
--- a/src/kwidgetlistbox.h
+++ b/src/kwidgetlistbox.h
@@ -20,7 +20,7 @@
#ifndef KWIDGETLISTBOX_H
#define KWIDGETLISTBOX_H
-#include <ntqtable.h>
+#include <tqtable.h>
typedef bool (*show_callback) (int index, TQWidget* widget, void* data);
diff --git a/src/likeback.cpp b/src/likeback.cpp
index 4517ec5..f0d11d0 100644
--- a/src/likeback.cpp
+++ b/src/likeback.cpp
@@ -18,6 +18,19 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
***************************************************************************/
+#include <tqvalidator.h>
+#include <tqaction.h>
+#include <tqlayout.h>
+#include <tqtoolbutton.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqbuttongroup.h>
+#include <tqvgroupbox.h>
+#include <tqpopupmenu.h>
+#include <tqtextedit.h>
+#include <tqlabel.h>
+#include <tqhttp.h>
+
#include <tdeapplication.h>
#include <tdeaboutdata.h>
#include <tdeconfig.h>
@@ -27,28 +40,14 @@
#include <tdelocale.h>
#include <kdebug.h>
#include <tdemessagebox.h>
-#include <ntqlayout.h>
-#include <ntqtoolbutton.h>
#include <kpushbutton.h>
-#include <ntqcheckbox.h>
-#include <ntqradiobutton.h>
-#include <ntqbuttongroup.h>
-#include <ntqvgroupbox.h>
#include <kguiitem.h>
-#include <ntqpopupmenu.h>
-#include <ntqtextedit.h>
-#include <ntqlayout.h>
-#include <ntqlabel.h>
#include <kdialogbase.h>
-#include <ntqhttp.h>
#include <kurl.h>
#include <kinputdialog.h>
-#include <ntqvalidator.h>
-#include <ntqaction.h>
#include <kdebug.h>
#include <pwd.h>
-
#include <iostream>
#include <unistd.h>
diff --git a/src/likeback.h b/src/likeback.h
index e319e8d..7961362 100644
--- a/src/likeback.h
+++ b/src/likeback.h
@@ -21,7 +21,7 @@
#ifndef LIKEBACK_H
#define LIKEBACK_H
-#include <ntqobject.h>
+#include <tqobject.h>
class TDEConfig;
class TDEAboutData;
diff --git a/src/likeback_private.h b/src/likeback_private.h
index 8f0e386..fc0aadc 100644
--- a/src/likeback_private.h
+++ b/src/likeback_private.h
@@ -21,8 +21,9 @@
#ifndef LIKEBACK_PRIVATE_H
#define LIKEBACK_PRIVATE_H
+#include <tqtimer.h>
+
#include <kdialogbase.h>
-#include <ntqtimer.h>
#include "likeback.h"
diff --git a/src/main.cpp b/src/main.cpp
index 6889b4a..b207514 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -19,17 +19,18 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+#include <tdeapplication.h>
+#include <tdeaboutdata.h>
+#include <tdecmdlineargs.h>
+#include <tdelocale.h>
+#include <tdeconfigdialogmanager.h>
#include "tork.h"
#include "crashhandler.h"
#include "torkconfig.h"
#include "functions.h"
#include "newfirstrunwizard.h"
-#include <tdeapplication.h>
-#include <tdeaboutdata.h>
-#include <tdecmdlineargs.h>
-#include <tdelocale.h>
-#include <tdeconfigdialogmanager.h>
+
static const char description[] =
I18N_NOOP("<b>TorK - An Anonymity Manager for the TDE Desktop.</b>\n"
diff --git a/src/maxmin.ui.h b/src/maxmin.ui.h
index 1902c2e..35d0d00 100644
--- a/src/maxmin.ui.h
+++ b/src/maxmin.ui.h
@@ -18,11 +18,15 @@
* Free Software Foundation, Inc., *
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include "torkconfig.h"
+
+#include <tqtooltip.h>
+#include <tqpopupmenu.h>
+
#include <tdelocale.h>
#include <tdemessagebox.h>
-#include <ntqtooltip.h>
-#include <ntqpopupmenu.h>
+
+#include "torkconfig.h"
+
void MaxMin::init()
{
diff --git a/src/menu/CMakeLists.txt b/src/menu/CMakeLists.txt
new file mode 100644
index 0000000..a0931ac
--- /dev/null
+++ b/src/menu/CMakeLists.txt
@@ -0,0 +1,10 @@
+##### other data
+
+string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_EXEC_PREFIX ${EXEC_INSTALL_PREFIX} )
+
+configure_file( ${PROJECT_NAME}.cmake ${PROJECT_NAME} @ONLY )
+
+install(
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}
+ DESTINATION ${SHARE_INSTALL_PREFIX}/menu
+)
diff --git a/src/menu/tork.cmake b/src/menu/tork.cmake
new file mode 100644
index 0000000..cec26c8
--- /dev/null
+++ b/src/menu/tork.cmake
@@ -0,0 +1,4 @@
+?package(tork):needs="X11" section="Applications/Network/Web Browsing"\
+ title="TorK"\
+ description="An anonymity manager for TDE."\
+ command="@BIN_INSTALL_DIR@/tork" icon="@SHARE_INSTALL_PREFIX@/pixmaps/tork.xpm"
diff --git a/src/mixminion.ui.h b/src/mixminion.ui.h
index e5e7b94..5b78339 100644
--- a/src/mixminion.ui.h
+++ b/src/mixminion.ui.h
@@ -18,15 +18,20 @@
* Free Software Foundation, Inc., *
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+
+#include <tqregexp.h>
+#include <tqtimer.h>
+
#include <kprocio.h>
#include <tdemessagebox.h>
#include <kprogress.h>
#include <kdebug.h>
-#include <ntqregexp.h>
-#include <ntqtimer.h>
-#include "torkconfig.h"
+
#include <cstdlib>
+#include "torkconfig.h"
+
+
KProgressDialog* progressDialog;
TQString output;
diff --git a/src/newfirstrunwizard.ui b/src/newfirstrunwizard.ui
index fdd61d7..1fbd2c9 100644
--- a/src/newfirstrunwizard.ui
+++ b/src/newfirstrunwizard.ui
@@ -2467,6 +2467,11 @@ I've configured your Privacy Proxy. Click next to continue.</string>
<include location="global" impldecl="in declaration">kprocio.h</include>
<include location="global" impldecl="in implementation">kprocio.h</include>
<include location="local" impldecl="in implementation">newfirstrunwizard.ui.h</include>
+ <include location="global" impldecl="in implementation">kactivelabel.h</include>
+ <include location="global" impldecl="in implementation">kurlrequester.h</include>
+ <include location="global" impldecl="in implementation">klineedit.h</include>
+ <include location="global" impldecl="in implementation">kpushbutton.h</include>
+ <include location="global" impldecl="in implementation">kcombobox.h</include>
</includes>
<forwards>
<forward>class KURL;</forward>
@@ -2509,43 +2514,4 @@ I've configured your Privacy Proxy. Click next to continue.</string>
<function access="private" specifier="non virtual">guessDataDir()</function>
</functions>
<layoutdefaults spacing="6" margin="11"/>
-<includehints>
- <includehint>kactivelabel.h</includehint>
- <includehint>kactivelabel.h</includehint>
- <includehint>kurlrequester.h</includehint>
- <includehint>klineedit.h</includehint>
- <includehint>kpushbutton.h</includehint>
- <includehint>kactivelabel.h</includehint>
- <includehint>kactivelabel.h</includehint>
- <includehint>kurlrequester.h</includehint>
- <includehint>klineedit.h</includehint>
- <includehint>kpushbutton.h</includehint>
- <includehint>kactivelabel.h</includehint>
- <includehint>kactivelabel.h</includehint>
- <includehint>kurlrequester.h</includehint>
- <includehint>kcombobox.h</includehint>
- <includehint>kpushbutton.h</includehint>
- <includehint>kactivelabel.h</includehint>
- <includehint>kactivelabel.h</includehint>
- <includehint>kurlrequester.h</includehint>
- <includehint>klineedit.h</includehint>
- <includehint>kpushbutton.h</includehint>
- <includehint>kactivelabel.h</includehint>
- <includehint>kactivelabel.h</includehint>
- <includehint>kurlrequester.h</includehint>
- <includehint>klineedit.h</includehint>
- <includehint>kpushbutton.h</includehint>
- <includehint>kactivelabel.h</includehint>
- <includehint>kactivelabel.h</includehint>
- <includehint>kurlrequester.h</includehint>
- <includehint>kcombobox.h</includehint>
- <includehint>kpushbutton.h</includehint>
- <includehint>kactivelabel.h</includehint>
- <includehint>kactivelabel.h</includehint>
- <includehint>kactivelabel.h</includehint>
- <includehint>kactivelabel.h</includehint>
- <includehint>kactivelabel.h</includehint>
- <includehint>kactivelabel.h</includehint>
- <includehint>kactivelabel.h</includehint>
-</includehints>
</UI>
diff --git a/src/newfirstrunwizard.ui.h b/src/newfirstrunwizard.ui.h
index a8fa9fc..db6b08e 100644
--- a/src/newfirstrunwizard.ui.h
+++ b/src/newfirstrunwizard.ui.h
@@ -18,29 +18,31 @@
* Free Software Foundation, Inc., *
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include "torkconfig.h"
-#include "update.h"
-#include "crypto.h"
-#include "torclient.h"
+
+#include <tqvaluevector.h>
+#include <tqpushbutton.h>
+#include <tqpixmap.h>
+#include <tqtimer.h>
#include <tdeapplication.h>
-#include <ntqpushbutton.h>
-#include <ntqpixmap.h>
-#include <ntqtimer.h>
-#include <stdlib.h>
#include <kstandarddirs.h>
#include <kurl.h>
#include <kprocio.h>
#include <kdebug.h>
-#include <stdlib.h>
#include <dcopref.h>
#include <tdeconfig.h>
#include <tdemessagebox.h>
#include <tdelocale.h>
#include <krun.h>
-#include <ntqvaluevector.h>
+
+#include <stdlib.h>
#include "functions.h"
+#include "torkconfig.h"
+#include "update.h"
+#include "crypto.h"
+#include "torclient.h"
+
TorClient* client;
KProcIO *whichproc;
diff --git a/src/newstreamosd.cpp b/src/newstreamosd.cpp
index ebdb068..867d762 100644
--- a/src/newstreamosd.cpp
+++ b/src/newstreamosd.cpp
@@ -36,9 +36,19 @@
* robert@roberthogan.net *
* *
*/
-
+
#include "newstreamosd.h"
#include "torkview.h"
+
+#include <tqlistview.h>
+#include <tqlayout.h>
+#include <tqheader.h>
+#include <tqpixmap.h>
+#include <tqpainter.h>
+#include <tqapplication.h>
+#include <tqframe.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h> //TQToolTip::palette()
#include <twin.h>
#include <kiconloader.h>
@@ -47,20 +57,10 @@
#include <tdeconfig.h>
#include <tdelocale.h>
#include <tdepopupmenu.h>
-#include <ntqlistview.h>
-#include <ntqlayout.h>
-#include <ntqheader.h>
-
-#include <ntqpixmap.h>
-#include <ntqpainter.h>
-#include <ntqapplication.h>
-#include <ntqframe.h>
-#include <ntqtoolbutton.h>
#include <tdeapplication.h>
#include <kiconloader.h>
#include <X11/Xlib.h>
-#include <ntqtooltip.h> //TQToolTip::palette()
StreamOSD::StreamOSD( torkView* parent, bool tortraffic, const char* name )
diff --git a/src/newstreamosd.h b/src/newstreamosd.h
index e64bf0c..b2c6511 100644
--- a/src/newstreamosd.h
+++ b/src/newstreamosd.h
@@ -16,10 +16,10 @@
#ifndef _K3B_JOB_PROGRESS_OSD_H_
#define _K3B_JOB_PROGRESS_OSD_H_
-#include <ntqwidget.h>
-#include <ntqpixmap.h>
-#include <ntqlistview.h>
-#include <ntqtoolbutton.h>
+#include <tqwidget.h>
+#include <tqpixmap.h>
+#include <tqlistview.h>
+#include <tqtoolbutton.h>
#include "statgraph.h"
#include "chart.h"
diff --git a/src/overlayWidget.cpp b/src/overlayWidget.cpp
index 40653b3..e88153c 100644
--- a/src/overlayWidget.cpp
+++ b/src/overlayWidget.cpp
@@ -18,11 +18,11 @@
* 51 Franklin Steet, Fifth Floor, Boston, MA 02111-1307, USA. *
***************************************************************************/
+#include <tqpoint.h>
+
#include "overlayWidget.h"
//#include "statusbar.h"
-#include <ntqpoint.h>
-
namespace KDE {
diff --git a/src/overlayWidget.h b/src/overlayWidget.h
index 7640212..c9101eb 100644
--- a/src/overlayWidget.h
+++ b/src/overlayWidget.h
@@ -20,7 +20,7 @@
#ifndef KDEOVERLAYWIDGET_H
#define KDEOVERLAYWIDGET_H
-#include <ntqhbox.h>
+#include <tqhbox.h>
namespace KDE
{
diff --git a/src/paranoia.ui.h b/src/paranoia.ui.h
index 84f32d6..325f8de 100644
--- a/src/paranoia.ui.h
+++ b/src/paranoia.ui.h
@@ -19,13 +19,15 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include "torkconfig.h"
+#include <tqtooltip.h>
+#include <tqpopupmenu.h>
+
#include <tdelocale.h>
-#include <ntqtooltip.h>
-#include <ntqpopupmenu.h>
#include <kdebug.h>
#include <kiconloader.h>
+#include "torkconfig.h"
+
void FilterTable::init()
{
diff --git a/src/popupMessage.cpp b/src/popupMessage.cpp
index adff918..37b9112 100644
--- a/src/popupMessage.cpp
+++ b/src/popupMessage.cpp
@@ -40,20 +40,21 @@
* 51 Franklin Steet, Fifth Floor, Boston, MA 02111-1307, USA. *
***************************************************************************/
-#include "popupMessage.h"
-#include "torkconfig.h"
+#include <tqfont.h>
+#include <tqframe.h>
+#include <tqlabel.h>
+#include <tqmessagebox.h>
+#include <tqpainter.h>
+#include <tqtimer.h>
+#include <tqcheckbox.h>
#include <kactivelabel.h>
#include <kpushbutton.h>
#include <kstdguiitem.h>
-#include <ntqfont.h>
-#include <ntqframe.h>
-#include <ntqlabel.h>
-#include <ntqmessagebox.h>
-#include <ntqpainter.h>
-#include <ntqtimer.h>
-#include <ntqcheckbox.h>
+#include "popupMessage.h"
+#include "torkconfig.h"
+
namespace KDE
{
diff --git a/src/popupMessage.h b/src/popupMessage.h
index 3b2e8ee..12a6899 100644
--- a/src/popupMessage.h
+++ b/src/popupMessage.h
@@ -25,12 +25,13 @@
#ifndef KDE_POPUPMESSAGE_H
#define KDE_POPUPMESSAGE_H
+#include <tqbitmap.h>
+#include <tqlayout.h>
+#include <tqpixmap.h>
+
#include "overlayWidget.h"
//#include "functor.h"
-#include <ntqbitmap.h>
-#include <ntqlayout.h>
-#include <ntqpixmap.h>
namespace KDE
{
diff --git a/src/privoxytemplates/CMakeLists.txt b/src/privoxytemplates/CMakeLists.txt
new file mode 100644
index 0000000..7c92982
--- /dev/null
+++ b/src/privoxytemplates/CMakeLists.txt
@@ -0,0 +1,18 @@
+
+###### privoxy templates
+
+install(
+ FILES blocked cgi-error-404 cgi-error-bad-param cgi-error-disabled
+ cgi-error-file cgi-error-modified cgi-error-parse
+ cgi-style.css connect-failed default
+ edit-actions-add-url-form edit-actions-for-url
+ edit-actions-for-url-filter edit-actions-list
+ edit-actions-list-section edit-actions-list-url
+ edit-actions-remove-url-form edit-actions-url-form
+ mod-local-help mod-support-and-service mod-title
+ mod-unstable-warning no-such-domain show-request
+ show-status show-status-file show-url-info
+ show-version toggle toggle-mini untrusted
+
+ DESTINATION ${DATA_INSTALL_DIR}/tork/privoxy/templates
+)
diff --git a/src/questions.h b/src/questions.h
index 3b14b68..20d4e99 100644
--- a/src/questions.h
+++ b/src/questions.h
@@ -21,8 +21,10 @@
* Free Software Foundation, Inc., *
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+
+#include <tqstring.h>
+
#include "tork.h"
-#include <ntqstring.h>
/** A variable allowed in the configuration file or on the command line. */
diff --git a/src/quickconfig.ui.h b/src/quickconfig.ui.h
index acdcd22..dd8e942 100644
--- a/src/quickconfig.ui.h
+++ b/src/quickconfig.ui.h
@@ -19,17 +19,18 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+#include <tqtooltip.h>
+#include <tqpopupmenu.h>
-#include "torkconfig.h"
#include <tdelocale.h>
-#include <ntqtooltip.h>
-#include <ntqpopupmenu.h>
#include <kdebug.h>
#include <dcopref.h>
#include <tdeconfig.h>
#include <tdemessagebox.h>
#include <tdelocale.h>
+#include "torkconfig.h"
+
void QuickConfig::init()
{
diff --git a/src/running.ui b/src/running.ui
index 0e1aa69..5bfb93f 100644
--- a/src/running.ui
+++ b/src/running.ui
@@ -569,6 +569,9 @@
</connections>
<includes>
<include location="local" impldecl="in implementation">running.ui.h</include>
+ <include location="global" impldecl="in implementation">kurlrequester.h</include>
+ <include location="global" impldecl="in implementation">kcombobox.h</include>
+ <include location="global" impldecl="in implementation">kpushbutton.h</include>
</includes>
<slots>
<slot>PushAdd_clicked()</slot>
@@ -585,9 +588,4 @@
<function access="private" specifier="non virtual">init()</function>
</functions>
<layoutdefaults spacing="6" margin="11"/>
-<includehints>
- <includehint>kurlrequester.h</includehint>
- <includehint>kcombobox.h</includehint>
- <includehint>kpushbutton.h</includehint>
-</includehints>
</UI>
diff --git a/src/running.ui.h b/src/running.ui.h
index ecf991c..98f20ee 100644
--- a/src/running.ui.h
+++ b/src/running.ui.h
@@ -19,13 +19,16 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-//dummy
-#include "torkconfig.h"
+#include <tqtooltip.h>
+#include <tqpopupmenu.h>
+
#include <tdelocale.h>
-#include <ntqtooltip.h>
-#include <ntqpopupmenu.h>
#include <kdebug.h>
+//dummy
+#include "torkconfig.h"
+
+
void Running::init()
{
diff --git a/src/scripts/CMakeLists.txt b/src/scripts/CMakeLists.txt
new file mode 100644
index 0000000..525a0fb
--- /dev/null
+++ b/src/scripts/CMakeLists.txt
@@ -0,0 +1,4 @@
+install(
+ PROGRAMS usewithtor
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/src/server.ui.h b/src/server.ui.h
index 4ef573e..9f83877 100644
--- a/src/server.ui.h
+++ b/src/server.ui.h
@@ -18,21 +18,29 @@
* Free Software Foundation, Inc., *
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include "tork.h"
-#include "torkconfig.h"
-#include "upnpmanager.h"
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <tqtooltip.h>
+#include <tqpopupmenu.h>
+
#include <tdelocale.h>
#include <kdebug.h>
-#include <ntqtooltip.h>
-#include <ntqpopupmenu.h>
#include <kiconloader.h>
-#ifndef EXTERNAL_GEOIP
-# include "GeoIP-1.4.0/libGeoIP/GeoIP.h"
-#else
+#ifdef EXTERNAL_GEOIP
# include <GeoIP.h>
+#else
+# include "GeoIP-1.4.0/libGeoIP/GeoIP.h"
#endif
+#include "tork.h"
+#include "torkconfig.h"
+#include "upnpmanager.h"
+
+
using namespace bt;
using namespace kt;
diff --git a/src/serverwizard.ui.h b/src/serverwizard.ui.h
index a8fe5d9..ae45441 100644
--- a/src/serverwizard.ui.h
+++ b/src/serverwizard.ui.h
@@ -18,9 +18,12 @@
* Free Software Foundation, Inc., *
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+
+#include <tqstringlist.h>
+
#include <tdemessagebox.h>
#include <kdebug.h>
-#include <ntqstringlist.h>
+
#include "tork.h"
#include "torkconfig.h"
#include "upnpmanager.h"
diff --git a/src/statgraph.cpp b/src/statgraph.cpp
index 706f3a8..4a12b63 100644
--- a/src/statgraph.cpp
+++ b/src/statgraph.cpp
@@ -31,12 +31,14 @@
* *
***************************************************************************/
-#include "statgraph.h"
+#include <tqpainter.h>
+#include <tqlabel.h>
-#include <ntqpainter.h>
-#include <ntqlabel.h>
#include <kdebug.h>
+#include "statgraph.h"
+
+
#define SOFT_STEP 3
const TQColor StatGraph::defaultBgColor = TQt::black;
diff --git a/src/statgraph.h b/src/statgraph.h
index 2c526f5..aeeb525 100644
--- a/src/statgraph.h
+++ b/src/statgraph.h
@@ -34,10 +34,10 @@
#ifndef STATGRAPH_H
#define STATGRAPH_H
-#include <ntqobject.h>
-#include <ntqstring.h>
-#include <ntqcolor.h>
-#include <ntqlabel.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqcolor.h>
+#include <tqlabel.h>
/**
* @author Diego 'Flameeyes' Pettenò
diff --git a/src/testprivacyproxy.cpp b/src/testprivacyproxy.cpp
index ef19b06..2fff495 100644
--- a/src/testprivacyproxy.cpp
+++ b/src/testprivacyproxy.cpp
@@ -19,25 +19,25 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+#include <tqsocket.h>
+#include <tqtextstream.h>
+#include <tqfile.h>
+#include <tqdir.h>
+#include <tqtimer.h>
-#include <ntqsocket.h>
-#include <ntqtextstream.h>
-#include "testprivacyproxy.h"
-#include "tork.h"
-#include "torkconfig.h"
-
-#include <ntqtimer.h>
+#include <kstandarddirs.h>
#include <tdelocale.h>
+
#include <assert.h>
-#include <ntqfile.h>
#include <sys/socket.h>
#include <netdb.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <kstandarddirs.h>
-#include <ntqdir.h>
+#include "testprivacyproxy.h"
+#include "tork.h"
+#include "torkconfig.h"
TestPrivoxy::TestPrivoxy( )
{
diff --git a/src/testprivacyproxy.h b/src/testprivacyproxy.h
index 1f512f2..9d88c94 100644
--- a/src/testprivacyproxy.h
+++ b/src/testprivacyproxy.h
@@ -29,11 +29,13 @@
#ifndef _TESTPRIVACYPROXY_H_
#define _TESTPRIVACYPROXY_H_
-#include <ntqsocket.h>
-#include <ntqtextstream.h>
+#include <tqsocket.h>
+#include <tqtextstream.h>
+#include <tqlistview.h>
+
#include <kdebug.h>
#include <tdeconfigskeleton.h>
-#include <ntqlistview.h>
+
#include "torkconfig.h"
diff --git a/src/tor_ioslave/CMakeLists.txt b/src/tor_ioslave/CMakeLists.txt
new file mode 100644
index 0000000..922f0a1
--- /dev/null
+++ b/src/tor_ioslave/CMakeLists.txt
@@ -0,0 +1,34 @@
+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}
+)
+
+
+##### tdeio_torioslave (kpart)
+
+tde_add_kpart( tdeio_torioslave AUTOMOC
+
+ SOURCES
+ torioslave.cpp
+ LINK
+ tdecore-shared
+ tdeio-shared
+
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data
+
+tde_create_translated_desktop(
+ SOURCE torioslave.protocol
+ DESTINATION ${SERVICES_INSTALL_DIR}
+)
diff --git a/src/tor_ioslave/torioslave.cpp b/src/tor_ioslave/torioslave.cpp
index 1c1e875..c3fc8b0 100644
--- a/src/tor_ioslave/torioslave.cpp
+++ b/src/tor_ioslave/torioslave.cpp
@@ -19,18 +19,10 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <ntqcstring.h>
-#include <ntqsocket.h>
-#include <ntqdatetime.h>
-#include <ntqbitarray.h>
-
-#include <stdlib.h>
-#include <math.h>
-#include <unistd.h>
-#include <sys/socket.h>
-#include <sys/types.h>
-#include <netinet/in.h>
-#include <netdb.h>
+#include <tqcstring.h>
+#include <tqsocket.h>
+#include <tqdatetime.h>
+#include <tqbitarray.h>
#include <tdeapplication.h>
#include <kdebug.h>
@@ -48,6 +40,14 @@
#include <krun.h>
#include <kprocio.h>
+#include <stdlib.h>
+#include <math.h>
+#include <unistd.h>
+#include <sys/socket.h>
+#include <sys/types.h>
+#include <netinet/in.h>
+#include <netdb.h>
+
#include "torioslave.h"
using namespace TDEIO;
diff --git a/src/tor_ioslave/torioslave.h b/src/tor_ioslave/torioslave.h
index 5668e3f..ab0efb3 100644
--- a/src/tor_ioslave/torioslave.h
+++ b/src/tor_ioslave/torioslave.h
@@ -22,8 +22,8 @@
#ifndef _tor_H_
#define _tor_H_
-#include <ntqstring.h>
-#include <ntqcstring.h>
+#include <tqstring.h>
+#include <tqcstring.h>
#include <kurl.h>
#include <tdeio/global.h>
diff --git a/src/torclient.cpp b/src/torclient.cpp
index 1652ed2..27c9477 100644
--- a/src/torclient.cpp
+++ b/src/torclient.cpp
@@ -19,18 +19,17 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
-#include <ntqsocket.h>
-#include <ntqtextstream.h>
-#include <ntqstringlist.h>
-#include <ntqregexp.h>
-#include "torclient.h"
-#include "tork.h"
-#include "torkconfig.h"
-#include "dndlistview.h"
-#include "functions.h"
+#include <tqdir.h>
+#include <tqsocket.h>
+#include <tqtextstream.h>
+#include <tqstringlist.h>
+#include <tqregexp.h>
+#include <tqtimer.h>
-#include <ntqtimer.h>
#include <tdelocale.h>
#include <assert.h>
#include <ntqfile.h>
@@ -40,15 +39,20 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <kstandarddirs.h>
-#include <ntqdir.h>
-#include "crypto.h"
-#ifndef EXTERNAL_GEOIP
-# include "GeoIP-1.4.0/libGeoIP/GeoIP.h"
-#else
+#ifdef EXTERNAL_GEOIP
# include <GeoIP.h>
+#else
+# include "GeoIP-1.4.0/libGeoIP/GeoIP.h"
#endif
+#include "torclient.h"
+#include "tork.h"
+#include "torkconfig.h"
+#include "dndlistview.h"
+#include "functions.h"
+#include "crypto.h"
+
/* Linux-specific includes */
#include <dirent.h>
#include <unistd.h>
@@ -827,10 +831,10 @@ void TorClient::parseServer(const TQString &info)
GeoIP * gi = 0;
if (geoip_db)
-#ifndef EXTERNAL_GEOIP
- gi = GeoIP_open(locate("data", "tork/geoip/GeoIP.dat").ascii(),0);
-#else
+#ifdef EXTERNAL_GEOIP
gi = GeoIP_new(GEOIP_STANDARD);
+#else
+ gi = GeoIP_open(locate("data", "tork/geoip/GeoIP.dat").ascii(),0);
#endif
if (gi){
diff --git a/src/torclient.h b/src/torclient.h
index 01bd5d2..657dfdc 100644
--- a/src/torclient.h
+++ b/src/torclient.h
@@ -29,11 +29,13 @@
#ifndef _TORCLIENT_H_
#define _TORCLIENT_H_
-#include <ntqsocket.h>
-#include <ntqtextstream.h>
+#include <tqsocket.h>
+#include <tqtextstream.h>
+#include <tqlistview.h>
+
#include <kdebug.h>
#include <tdeconfigskeleton.h>
-#include <ntqlistview.h>
+
#include "torkconfig.h"
diff --git a/src/tork.cpp b/src/tork.cpp
index fb17b0a..d53df07 100644
--- a/src/tork.cpp
+++ b/src/tork.cpp
@@ -19,14 +19,23 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
-#include <ntqdragobject.h>
-#include <kprinter.h>
-#include <ntqpainter.h>
-#include <ntqpaintdevicemetrics.h>
-#include <ntqtimer.h>
-#include <ntqgroupbox.h>
+#include <tqdragobject.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
+#include <tqtimer.h>
+#include <tqgroupbox.h>
+#include <tqtooltip.h>
+#include <tqlabel.h>
+#include <tqfile.h>
+#include <tqdir.h>
+#include <tqtabwidget.h>
+#include <tqhostaddress.h>
+#include <kprinter.h>
#include <tdeconfigdialog.h>
#include <tdeglobal.h>
#include <tdelocale.h>
@@ -60,21 +69,14 @@
#include <twin.h>
#include <knotifyclient.h>
#include <tdelistviewsearchline.h>
-
-#include <ntqtooltip.h>
-#include <ntqlabel.h>
-#include <ntqfile.h>
-#include <ntqdir.h>
-#include <ntqtabwidget.h>
-#include <ntqhostaddress.h>
#include <dcopref.h>
#include <dcopclient.h>
#include <tdecmdlineargs.h>
-#ifndef EXTERNAL_GEOIP
-# include "GeoIP-1.4.0/libGeoIP/GeoIP.h"
-#else
+#ifdef EXTERNAL_GEOIP
# include <GeoIP.h>
+#else
+# include "GeoIP-1.4.0/libGeoIP/GeoIP.h"
#endif
#include "tork.h"
@@ -94,8 +96,6 @@
#include "version.h"
#include "hiddensrvs.h"
-#include "../config.h"
-
tork *tdemain = 0L;
using namespace tk;
@@ -2991,15 +2991,15 @@ void tork::startController()
updateServerButton();
-#ifndef EXTERNAL_GEOIP
- geoip_db = !locate("data", "tork/geoip/GeoIP.dat").isNull();
-#else
+#ifdef EXTERNAL_GEOIP
GeoIP * gi = 0;
gi = GeoIP_new(GEOIP_STANDARD);
if (gi)
geoip_db = true;
else
geoip_db = false;
+#else
+ geoip_db = !locate("data", "tork/geoip/GeoIP.dat").isNull();
#endif
client->setGeoIPAvailable(geoip_db);
diff --git a/src/tork.h b/src/tork.h
index 722c618..fd9cf31 100644
--- a/src/tork.h
+++ b/src/tork.h
@@ -24,12 +24,17 @@
#define _TORK_H_
#ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "config.h"
#endif
+#include <tqvaluevector.h>
+
#include <tdeapplication.h>
#include <tdemainwindow.h>
#include <tdetempfile.h>
+#include <tdeconfigskeleton.h>
+#include <twinmodule.h>
+#include <tdepopupmenu.h>
#include "torkview.h"
#include "torclient.h"
@@ -39,12 +44,6 @@
#include "version.h"
#include "dcoptork.h"
#include "testprivacyproxy.h"
-
-#include <tdeconfigskeleton.h>
-#include <twinmodule.h>
-#include <tdepopupmenu.h>
-#include <ntqvaluevector.h>
-
#include "update.h"
#include "trayicon.h"
#include "upnpmanager.h"
diff --git a/src/torkactivelabel.cpp b/src/torkactivelabel.cpp
index 4fad736..f03dbf4 100644
--- a/src/torkactivelabel.cpp
+++ b/src/torkactivelabel.cpp
@@ -19,14 +19,17 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include "torkactivelabel.h"
-#include "kdebug.h"
-#include <ntqapplication.h>
-#include <ntqheader.h>
+#include <tqapplication.h>
+#include <tqheader.h>
+
#include <kiconloader.h>
#include <tdelocale.h>
#include <kstandarddirs.h>
+#include "torkactivelabel.h"
+#include "kdebug.h"
+
+
TorkActiveLabel::TorkActiveLabel( const TQString &text,TQWidget * parent, const char * name) :
KActiveLabel( text,parent, name ), mousePressed( FALSE )
{
diff --git a/src/torkapplet/CMakeLists.txt b/src/torkapplet/CMakeLists.txt
new file mode 100644
index 0000000..b29088b
--- /dev/null
+++ b/src/torkapplet/CMakeLists.txt
@@ -0,0 +1,35 @@
+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}
+)
+
+
+##### kickermenu_tork (kpart)
+
+tde_add_kpart( kickermenu_tork AUTOMOC
+
+ SOURCES
+ tork_mnu.cpp
+ ../functions.cpp
+ LINK
+ tdecore-shared
+ tdeui-shared
+ tdeio-shared
+
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data
+
+tde_create_translated_desktop( torkmenu.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/kicker/menuext
+)
diff --git a/src/torkapplet/tork_mnu.cpp b/src/torkapplet/tork_mnu.cpp
index fc5a45d..1c72496 100644
--- a/src/torkapplet/tork_mnu.cpp
+++ b/src/torkapplet/tork_mnu.cpp
@@ -19,15 +19,9 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <stdlib.h>
-#include <dirent.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <sys/stat.h>
-
-#include <ntqdir.h>
-#include <ntqfileinfo.h>
-#include <ntqstringlist.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
+#include <tqstringlist.h>
#include <tdeapplication.h>
#include <tdeglobal.h>
@@ -44,6 +38,12 @@
#include <tdelocale.h>
#include <krun.h>
+#include <stdlib.h>
+#include <dirent.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <sys/stat.h>
+
#include "tork_mnu.h"
#include "../functions.h"
diff --git a/src/torkapplet/tork_mnu.h b/src/torkapplet/tork_mnu.h
index f92c534..2474ea5 100644
--- a/src/torkapplet/tork_mnu.h
+++ b/src/torkapplet/tork_mnu.h
@@ -23,7 +23,7 @@
#ifndef _tork_mnu_h_
#define _tork_mnu_h_
-#include <ntqvaluevector.h>
+#include <tqvaluevector.h>
#include <kpanelmenu.h>
#include <klibloader.h>
diff --git a/src/torkview.cpp b/src/torkview.cpp
index c7a0d50..e03fe92 100644
--- a/src/torkview.cpp
+++ b/src/torkview.cpp
@@ -19,14 +19,40 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <tqregexp.h>
+#include <tqsplitter.h>
+#include <tqgroupbox.h>
+#include <tqfile.h>
+#include <tqdir.h>
+#include <tqpixmap.h>
+#include <tqlabel.h>
+#include <tqlistview.h>
+
+#include <kdebug.h>
+#include <kstandarddirs.h>
+#include <kiconloader.h>
+#include <kmimetype.h>
+#include <ksystemtray.h>
+#include <kprocio.h>
+#include <tdemessagebox.h>
+#include <krun.h>
+#include <kurl.h>
+#include <tdeio/netaccess.h>
+#include <tdelocale.h>
+
#include <sys/time.h>
+/* Linux-specific includes */
+#include <dirent.h>
+#include <unistd.h>
+
#include "torkview.h"
#include "tork.h"
#include "torclient.h"
-#include <tdelocale.h>
-#include <ntqlabel.h>
-#include <ntqlistview.h>
#include "dndlistview.h"
#include "portsandicons.h"
#include "torkconfig.h"
@@ -34,40 +60,16 @@
#include "functions.h"
#include "mixminion.h"
#include "crypto.h"
-
#include "hitwidget.h"
#include "kwidgetlistbox.h"
#include "kerrylabel.h"
-
-#ifndef EXTERNAL_GEOIP
-# include "GeoIP-1.4.0/libGeoIP/GeoIP.h"
-#else
+#ifdef EXTERNAL_GEOIP
# include <GeoIP.h>
+#else
+# include "GeoIP-1.4.0/libGeoIP/GeoIP.h"
#endif
-#include "kdebug.h"
-#include <kstandarddirs.h>
-#include <kiconloader.h>
-#include <kmimetype.h>
-#include <ksystemtray.h>
-#include <kprocio.h>
-#include <tdemessagebox.h>
-#include <krun.h>
-#include <kurl.h>
-#include <tdeio/netaccess.h>
-
-#include <ntqregexp.h>
-#include <ntqsplitter.h>
-#include <ntqgroupbox.h>
-#include <ntqfile.h>
-#include <ntqdir.h>
-#include <ntqpixmap.h>
-/* Linux-specific includes */
-#include <dirent.h>
-#include <unistd.h>
-#include "../config.h"
-
using namespace tk;
@@ -80,15 +82,15 @@ torkView::torkView(TQWidget *parent)
: torkview_base(parent), m_pop(0L), m_tormon(TorkConfig::showTorMon()), torbtx(0), torbrx(0)
{
-#ifndef EXTERNAL_GEOIP
- geoip_db = !locate("data", "tork/geoip/GeoIP.dat").isNull();
-#else
+#ifdef EXTERNAL_GEOIP
GeoIP * gi = 0;
gi = GeoIP_new(GEOIP_STANDARD);
if (gi)
geoip_db = true;
else
geoip_db = false;
+#else
+ geoip_db = !locate("data", "tork/geoip/GeoIP.dat").isNull();
#endif
greenonion << "green" << "up" << "built" << "good" << "connected" << "succeeded";
@@ -1324,10 +1326,10 @@ void torkView::serverStatusUpdated(const TQString &ip,const TQString &fp,
int country_id = 0;
GeoIP * gi = 0;
if (geoip_db)
-#ifndef EXTERNAL_GEOIP
- gi = GeoIP_open(locate("data", "tork/geoip/GeoIP.dat").ascii(),0);
-#else
+#ifdef EXTERNAL_GEOIP
gi = GeoIP_new(GEOIP_STANDARD);
+#else
+ gi = GeoIP_open(locate("data", "tork/geoip/GeoIP.dat").ascii(),0);
#endif
if (gi){
diff --git a/src/torkview.h b/src/torkview.h
index 19ae410..3f015ce 100644
--- a/src/torkview.h
+++ b/src/torkview.h
@@ -23,20 +23,21 @@
#ifndef _TORKVIEW_H_
#define _TORKVIEW_H_
-#include <ntqwidget.h>
+#include <tqwidget.h>
+#include <tqlistview.h>
+#include <tqdragobject.h>
+#include <tqiconview.h>
+#include <tqdatetime.h>
+#include <kpassivepopup.h>
+
+#include "newstreamosd.h"
#include "torkview_base.h"
#include "hitwidget.h"
#include "kwidgetlistbox.h"
#include "kerrylabel.h"
#include "dndlistview.h"
-#include <ntqlistview.h>
-#include <ntqdragobject.h>
-#include <ntqiconview.h>
-#include <ntqdatetime.h>
-#include <kpassivepopup.h>
-#include "newstreamosd.h"
class TQPainter;
class KURL;
diff --git a/src/torkview_base.ui b/src/torkview_base.ui
index c2905f5..f21c8fa 100644
--- a/src/torkview_base.ui
+++ b/src/torkview_base.ui
@@ -927,6 +927,8 @@
</connections>
<includes>
<include location="local" impldecl="in implementation">torkview_base.ui.h</include>
+ <include location="global" impldecl="in implementation">kwidgetlistbox.h</include>
+ <include location="global" impldecl="in implementation">dndlistview.h</include>
</includes>
<signals>
<signal>closeStream(const TQString &amp;)</signal>
@@ -995,11 +997,4 @@
<function access="private" specifier="non virtual">addExitNodes( bool perm, bool strict )</function>
</functions>
<layoutdefaults spacing="6" margin="11"/>
-<includehints>
- <includehint>kwidgetlistbox.h</includehint>
- <includehint>dndlistview.h</includehint>
- <includehint>dndlistview.h</includehint>
- <includehint>dndlistview.h</includehint>
- <includehint>dndlistview.h</includehint>
-</includehints>
</UI>
diff --git a/src/torkview_base.ui.h b/src/torkview_base.ui.h
index 4cabe40..509bdce 100644
--- a/src/torkview_base.ui.h
+++ b/src/torkview_base.ui.h
@@ -19,14 +19,15 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <ntqtooltip.h>
-#include <ntqpopupmenu.h>
-#include <kdebug.h>
-#include <ntqclipboard.h>
+#include <tqtooltip.h>
+#include <tqpopupmenu.h>
+#include <tqclipboard.h>
+#include <kdebug.h>
#include <tdeapplication.h>
#include <kiconloader.h>
#include <kstandarddirs.h>
+
#include "torkconfig.h"
#include "tork.h"
#include "crypto.h"
diff --git a/src/torservers.ui.h b/src/torservers.ui.h
index aca99b1..ff20704 100644
--- a/src/torservers.ui.h
+++ b/src/torservers.ui.h
@@ -18,18 +18,25 @@
* Free Software Foundation, Inc., *
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include "torkconfig.h"
-#include "crypto.h"
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <tqtooltip.h>
+#include <tqpopupmenu.h>
+
#include <tdelocale.h>
-#include <ntqtooltip.h>
-#include <ntqpopupmenu.h>
#include <kdebug.h>
#include <kiconloader.h>
-#ifndef EXTERNAL_GEOIP
-# include "GeoIP-1.4.0/libGeoIP/GeoIP.h"
-#else
+#include "torkconfig.h"
+#include "crypto.h"
+
+#ifdef EXTERNAL_GEOIP
# include <GeoIP.h>
+#else
+# include "GeoIP-1.4.0/libGeoIP/GeoIP.h"
#endif
typedef TQMap<TQString, TQString> codemap;
diff --git a/src/trayhoverpopup.cpp b/src/trayhoverpopup.cpp
index 4e8e8bb..01fe070 100644
--- a/src/trayhoverpopup.cpp
+++ b/src/trayhoverpopup.cpp
@@ -37,12 +37,15 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <ntqvbox.h>
-#include <ntqhbox.h>
-#include <ntqlabel.h>
-#include <ntqtooltip.h>
-#include <ntqpixmap.h>
+
+#include <tqvbox.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqtooltip.h>
+#include <tqpixmap.h>
+
#include <kdialog.h>
+
#include "trayhoverpopup.h"
diff --git a/src/trayhoverpopup.h b/src/trayhoverpopup.h
index 913b778..4e4c22b 100644
--- a/src/trayhoverpopup.h
+++ b/src/trayhoverpopup.h
@@ -40,7 +40,8 @@
#ifndef TRAYHOVERPOPUP_H
#define TRAYHOVERPOPUP_H
-#include <ntqtimer.h>
+#include <tqtimer.h>
+
#include <kpassivepopup.h>
class TQLabel;
diff --git a/src/trayicon.cpp b/src/trayicon.cpp
index 20fd2a9..b791671 100644
--- a/src/trayicon.cpp
+++ b/src/trayicon.cpp
@@ -41,15 +41,17 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+#include <tqtooltip.h>
+#include <tqstringlist.h>
+
#include <tdepopupmenu.h>
#include <kurldrag.h>
#include <kdebug.h>
#include <tdelocale.h>
#include <tdeapplication.h>
-#include "trayicon.h"
-#include <ntqtooltip.h>
#include <kpassivepopup.h>
-#include <ntqstringlist.h>
+
+#include "trayicon.h"
#include "trayhoverpopup.h"
#include "torkconfig.h"
diff --git a/src/trayicon.h b/src/trayicon.h
index 29d5204..41258fc 100644
--- a/src/trayicon.h
+++ b/src/trayicon.h
@@ -41,10 +41,10 @@
#ifndef TRAYICON_H
#define TRAYICON_H
+#include <tqpainter.h>
#include <ksystemtray.h>
#include <tdepopupmenu.h>
-#include <ntqpainter.h>
#include <kurl.h>
#include <tork.h>
diff --git a/src/update.cpp b/src/update.cpp
index 87e5935..359b0c9 100644
--- a/src/update.cpp
+++ b/src/update.cpp
@@ -19,21 +19,18 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include "update.h"
+#include <tqtimer.h>
+#include <tqdir.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
#include <kstaticdeleter.h>
-
#include <tdelocale.h>
#include <tdeio/netaccess.h>
-
-
#include <tdeaction.h>
-
-#include <ntqcheckbox.h>
#include <kbuttonbox.h>
#include <kurlcompletion.h>
#include <kcombobox.h>
-#include <ntqlayout.h>
#include <tdemessagebox.h>
#include <klineedit.h>
#include <tdetempfile.h>
@@ -47,11 +44,11 @@
#include <dcopclient.h>
#include <kuser.h>
-#include <ntqtimer.h>
-#include <ntqdir.h>
+#include <stdlib.h>
+
#include "version.h"
+#include "update.h"
-#include <stdlib.h>
const char *mirrors[] = {
"heanet",
diff --git a/src/update.h b/src/update.h
index c23c978..dd027dc 100644
--- a/src/update.h
+++ b/src/update.h
@@ -24,7 +24,7 @@
#define _UPDATE_H_
#ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "config.h"
#endif
#include <tdeapplication.h>
diff --git a/src/upnp/CMakeLists.txt b/src/upnp/CMakeLists.txt
new file mode 100644
index 0000000..538f013
--- /dev/null
+++ b/src/upnp/CMakeLists.txt
@@ -0,0 +1,28 @@
+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}
+)
+
+
+##### ktupnp (static)
+
+tde_add_library( ktupnp STATIC_PIC AUTOMOC
+
+ SOURCES
+ soap.cpp
+ upnpdescriptionparser.cpp
+ upnpmcastsocket.cpp
+ upnprouter.cpp
+ portlist.cpp
+ httprequest.cpp
+ exitoperation.cpp
+ forwardportlist.cpp
+)
diff --git a/src/upnp/exitoperation.cpp b/src/upnp/exitoperation.cpp
index 6df1224..9a996c0 100644
--- a/src/upnp/exitoperation.cpp
+++ b/src/upnp/exitoperation.cpp
@@ -17,6 +17,7 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+
#include "exitoperation.h"
namespace kt
diff --git a/src/upnp/exitoperation.h b/src/upnp/exitoperation.h
index d969c6c..3afda7a 100644
--- a/src/upnp/exitoperation.h
+++ b/src/upnp/exitoperation.h
@@ -20,7 +20,8 @@
#ifndef KTEXITOPERATION_H
#define KTEXITOPERATION_H
-#include <ntqobject.h>
+#include <tqobject.h>
+
#include <tdeio/job.h>
namespace kt
diff --git a/src/upnp/forwardportlist.cpp b/src/upnp/forwardportlist.cpp
index 906bde3..9714725 100644
--- a/src/upnp/forwardportlist.cpp
+++ b/src/upnp/forwardportlist.cpp
@@ -17,8 +17,11 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include "forwardportlist.h"
+
#include <kdebug.h>
+
+#include "forwardportlist.h"
+
namespace net
{
ForwardPort::ForwardPort() : extnumber(0),intnumber(0),proto(TCP),forward(false)
diff --git a/src/upnp/forwardportlist.h b/src/upnp/forwardportlist.h
index 5f8f9f7..d2d3c0c 100644
--- a/src/upnp/forwardportlist.h
+++ b/src/upnp/forwardportlist.h
@@ -20,7 +20,8 @@
#ifndef FORWARDPORTLIST_H
#define FORWARDPORTLIST_H
-#include <ntqvaluelist.h>
+#include <tqvaluelist.h>
+
#include "../constants.h"
#include "portlist.h"
diff --git a/src/upnp/httprequest.cpp b/src/upnp/httprequest.cpp
index bb411ca..a6c3e71 100644
--- a/src/upnp/httprequest.cpp
+++ b/src/upnp/httprequest.cpp
@@ -15,14 +15,16 @@
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <ntqstringlist.h>
-#include "httprequest.h"
-#include "../functions.h"
+
+#include <tqstringlist.h>
+
#include <kdebug.h>
#include <ksocks.h>
+#include "httprequest.h"
+#include "../functions.h"
namespace bt
{
diff --git a/src/upnp/httprequest.h b/src/upnp/httprequest.h
index 8c4496b..47428cd 100644
--- a/src/upnp/httprequest.h
+++ b/src/upnp/httprequest.h
@@ -20,9 +20,11 @@
#ifndef BTHTTPREQUEST_H
#define BTHTTPREQUEST_H
-#include <ntqobject.h>
+#include <tqobject.h>
+
#include <kurl.h>
#include <kstreamsocket.h>
+
#include "exitoperation.h"
#include "../constants.h"
diff --git a/src/upnp/portlist.cpp b/src/upnp/portlist.cpp
index 56076ed..3ce5ac1 100644
--- a/src/upnp/portlist.cpp
+++ b/src/upnp/portlist.cpp
@@ -17,6 +17,7 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+
#include "portlist.h"
namespace net
diff --git a/src/upnp/portlist.h b/src/upnp/portlist.h
index 378127e..b8036e7 100644
--- a/src/upnp/portlist.h
+++ b/src/upnp/portlist.h
@@ -20,7 +20,8 @@
#ifndef NETPORTLIST_H
#define NETPORTLIST_H
-#include <ntqvaluelist.h>
+#include <tqvaluelist.h>
+
#include "../constants.h"
namespace net
diff --git a/src/upnp/soap.cpp b/src/upnp/soap.cpp
index c44ab1e..e6d2528 100644
--- a/src/upnp/soap.cpp
+++ b/src/upnp/soap.cpp
@@ -15,8 +15,9 @@
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+
#include "soap.h"
namespace kt
diff --git a/src/upnp/soap.h b/src/upnp/soap.h
index cb766f0..6632342 100644
--- a/src/upnp/soap.h
+++ b/src/upnp/soap.h
@@ -20,8 +20,8 @@
#ifndef KTSOAP_H
#define KTSOAP_H
-#include <ntqvaluelist.h>
-#include <ntqstring.h>
+#include <tqvaluelist.h>
+#include <tqstring.h>
namespace kt
{
diff --git a/src/upnp/upnpdescriptionparser.cpp b/src/upnp/upnpdescriptionparser.cpp
index 7b40db7..286e614 100644
--- a/src/upnp/upnpdescriptionparser.cpp
+++ b/src/upnp/upnpdescriptionparser.cpp
@@ -15,16 +15,20 @@
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <ntqxml.h>
-#include <ntqvaluestack.h>
-// #include <util/fileops.h>
+
+#include <tqxml.h>
+#include <tqvaluestack.h>
+
#include <kdebug.h>
-// #include <torrent/globals.h>
+
#include "upnprouter.h"
#include "upnpdescriptionparser.h"
+// #include <util/fileops.h>
+// #include <torrent/globals.h>
+
using namespace bt;
namespace kt
diff --git a/src/upnp/upnpmcastsocket.cpp b/src/upnp/upnpmcastsocket.cpp
index ff87432..56df8fa 100644
--- a/src/upnp/upnpmcastsocket.cpp
+++ b/src/upnp/upnpmcastsocket.cpp
@@ -18,8 +18,15 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+#include <tqstringlist.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+
+#include <tdesocketdevice.h>
+#include <tdesocketaddress.h>
#include <kurl.h>
#include <kdebug.h>
+
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
@@ -27,16 +34,11 @@
#include <netinet/ip.h>
#include <arpa/inet.h>
#include <netinet/ip.h>
-#include <ntqstringlist.h>
-#include <tdesocketdevice.h>
-#include <tdesocketaddress.h>
-/*#include <util/log.h>
-#include <torrent/globals.h>*/
-#include <ntqfile.h>
-#include <ntqtextstream.h>
-#include "upnpmcastsocket.h"
+#include "upnpmcastsocket.h"
+/*#include <util/log.h>
+#include <torrent/globals.h>*/
using namespace KNetwork;
using namespace bt;
diff --git a/src/upnp/upnpmcastsocket.h b/src/upnp/upnpmcastsocket.h
index 23007fe..c7b7a3c 100644
--- a/src/upnp/upnpmcastsocket.h
+++ b/src/upnp/upnpmcastsocket.h
@@ -21,6 +21,7 @@
#define KTUPNPMCASTSOCKET_H
#include <kdatagramsocket.h>
+
#include "../constants.h"
#include "../functions.h"
#include "upnprouter.h"
diff --git a/src/upnp/upnprouter.cpp b/src/upnp/upnprouter.cpp
index e5764b5..242dbe6 100644
--- a/src/upnp/upnprouter.cpp
+++ b/src/upnp/upnprouter.cpp
@@ -15,24 +15,28 @@
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <stdlib.h>
+
+#include <tqstringlist.h>
+#include <tqdir.h>
+#include <tqfile.h>
+
#include <tdelocale.h>
#include <kdebug.h>
#include <tdeglobal.h>
#include <kstandarddirs.h>
-#include <ntqstringlist.h>
#include <tdeio/netaccess.h>
#include <tdeio/job.h>
+
+#include <stdlib.h>
+#include <fcntl.h>
+
#include "httprequest.h"
#include "upnprouter.h"
#include "upnpdescriptionparser.h"
#include "soap.h"
#include "../functions.h"
-#include <fcntl.h>
-#include <ntqdir.h>
-#include <ntqfile.h>
using namespace bt;
using namespace net;
diff --git a/src/upnp/upnprouter.h b/src/upnp/upnprouter.h
index d0590b9..73463c9 100644
--- a/src/upnp/upnprouter.h
+++ b/src/upnp/upnprouter.h
@@ -20,13 +20,15 @@
#ifndef KTUPNPROUTER_H
#define KTUPNPROUTER_H
-#include <ntqtimer.h>
-#include <tdeio/job.h>
-#include <ntqvaluelist.h>
-#include "exitoperation.h"
+#include <tqtimer.h>
+#include <tqvaluelist.h>
+#include <tqstringlist.h>
+
#include <kurl.h>
-#include <ntqstringlist.h>
#include <kstreamsocket.h>
+#include <tdeio/job.h>
+
+#include "exitoperation.h"
#include "portlist.h"
#include "forwardportlist.h"
diff --git a/src/upnpmanager.cpp b/src/upnpmanager.cpp
index 77a7a46..8c95f15 100644
--- a/src/upnpmanager.cpp
+++ b/src/upnpmanager.cpp
@@ -23,6 +23,7 @@
***************************************************************************/
#include <tdemessagebox.h>
+
#include "upnpmanager.h"
#include "kdebug.h"
diff --git a/src/upnpmanager.h b/src/upnpmanager.h
index 29dc319..9cd245d 100644
--- a/src/upnpmanager.h
+++ b/src/upnpmanager.h
@@ -25,8 +25,9 @@
#ifndef UPNPMANAGER_H
#define UPNPMANAGER_H
-#include <ntqmap.h>
-#include <ntqwidget.h>
+#include <tqmap.h>
+#include <tqwidget.h>
+
#include "upnp/upnprouter.h"
#include "upnp/upnpdescriptionparser.h"
#include "upnp/upnpmcastsocket.h"
diff --git a/src/usability.ui.h b/src/usability.ui.h
index dbf59e1..97d8d75 100644
--- a/src/usability.ui.h
+++ b/src/usability.ui.h
@@ -19,14 +19,14 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+#include <tqtooltip.h>
+#include <tqpopupmenu.h>
-#include "torkconfig.h"
-#include "portsandnames.h"
#include <tdelocale.h>
-#include <ntqtooltip.h>
-#include <ntqpopupmenu.h>
#include <kdebug.h>
+#include "torkconfig.h"
+#include "portsandnames.h"
void Usability::init()
{
diff --git a/src/warnings.h b/src/warnings.h
index e80d5d7..0eb2e3a 100644
--- a/src/warnings.h
+++ b/src/warnings.h
@@ -19,8 +19,10 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+#include <tqstring.h>
+
#include "tork.h"
-#include <ntqstring.h>
+
typedef struct message_t {
const char *logmessage; /**< The full keyword (case insensitive). */