summaryrefslogtreecommitdiffstats
path: root/apps/kttorinfo
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2025-03-02 18:37:22 +0900
committerMichele Calgaro <[email protected]>2025-03-06 12:31:12 +0900
commit44ef0bd5fe47a43e47aec5f7981b6c1d728dd9a8 (patch)
tree2b29e921a9bccea53444ed9bbed06a25a5fe20cc /apps/kttorinfo
parentd1f24dae035c506d945ca13f2be398aa0a4de8cc (diff)
downloadktorrent-master.tar.gz
ktorrent-master.zip
Restructure source files into 'src' subfolderHEADmaster
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'apps/kttorinfo')
-rw-r--r--apps/kttorinfo/Makefile.am10
-rw-r--r--apps/kttorinfo/main.cpp54
2 files changed, 0 insertions, 64 deletions
diff --git a/apps/kttorinfo/Makefile.am b/apps/kttorinfo/Makefile.am
deleted file mode 100644
index 0736208..0000000
--- a/apps/kttorinfo/Makefile.am
+++ /dev/null
@@ -1,10 +0,0 @@
-INCLUDES = -I$(srcdir)/../../libktorrent $(all_includes)
-METASOURCES = AUTO
-
-bin_PROGRAMS = kttorinfo
-kttorinfo_SOURCES = main.cpp
-kttorinfo_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_TQT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
-kttorinfo_LDADD = ../../libktorrent/libktorrent.la $(LIB_TDEPARTS) $(LIB_TDEFILE) \
- $(LIB_TDEIO)
-
-KDE_CXXFLAGS = $(USE_EXCEPTIONS) $(USE_RTTI)
diff --git a/apps/kttorinfo/main.cpp b/apps/kttorinfo/main.cpp
deleted file mode 100644
index 2208f7f..0000000
--- a/apps/kttorinfo/main.cpp
+++ /dev/null
@@ -1,54 +0,0 @@
-/***************************************************************************
- * Copyright (C) 2005 by Joris Guisson *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * 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. *
- ***************************************************************************/
-#include <stdlib.h>
-#include <tqstring.h>
-#include <util/log.h>
-#include <util/error.h>
-#include <torrent/globals.h>
-#include <torrent/torrent.h>
-
-using namespace bt;
-
-void help()
-{
- Out() << "Usage : kttorinfo <torrent>" << endl;
- exit(0);
-}
-
-int main(int argc,char** argv)
-{
- Globals::instance().setDebugMode(true);
- Globals::instance().initLog("kttorinfo.log");
- if (argc < 2)
- help();
-
- try
- {
- Torrent tor;
- tor.load(TQString(argv[1]),false);
- tor.debugPrintInfo();
- }
- catch (Error & e)
- {
- Out() << "Error : " << e.toString() << endl;
- }
- Globals::cleanup();
- return 0;
-}