diff options
author | Michele Calgaro <[email protected]> | 2025-03-02 18:37:22 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2025-03-06 12:31:12 +0900 |
commit | 44ef0bd5fe47a43e47aec5f7981b6c1d728dd9a8 (patch) | |
tree | 2b29e921a9bccea53444ed9bbed06a25a5fe20cc /apps/kttorinfo | |
parent | d1f24dae035c506d945ca13f2be398aa0a4de8cc (diff) | |
download | ktorrent-master.tar.gz ktorrent-master.zip |
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'apps/kttorinfo')
-rw-r--r-- | apps/kttorinfo/Makefile.am | 10 | ||||
-rw-r--r-- | apps/kttorinfo/main.cpp | 54 |
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 * - * [email protected] * - * * - * 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; -} |