KDocTools
main.cpp
Go to the documentation of this file.00001 #ifdef _WIN32
00002 #define LIBXML_DLL_IMPORT __declspec(dllimport)
00003 #else
00004 extern "C" int xmlLoadExtDtdDefaultValue;
00005 #endif
00006
00007 #include <string.h>
00008 #include <sys/time.h>
00009 #include <unistd.h>
00010 #include <libxml/xmlversion.h>
00011 #include <libxml/xmlmemory.h>
00012 #include <libxml/debugXML.h>
00013 #include <libxml/HTMLtree.h>
00014 #include <libxml/xmlIO.h>
00015 #include <libxml/parserInternals.h>
00016 #include <libxslt/xsltconfig.h>
00017 #include <libxslt/xsltInternals.h>
00018 #include <libxslt/transform.h>
00019 #include <libxslt/xsltutils.h>
00020 #include <QtCore/QString>
00021 #include <kstandarddirs.h>
00022 #include <kcomponentdata.h>
00023 #include <kdebug.h>
00024 #include <stdlib.h>
00025 #include "kio_help.h"
00026 #include "xslt.h"
00027
00028 extern "C"
00029 {
00030 KDE_EXPORT int kdemain( int argc, char **argv )
00031 {
00032 Q_ASSERT(!KGlobal::hasMainComponent());
00033 KComponentData componentData( "kio_help", "kio_help4" );
00034 fillInstance(componentData);
00035 (void)componentData.config();
00036
00037 kDebug(7101) << "Starting " << getpid();
00038
00039 if (argc != 4)
00040 {
00041 fprintf(stderr, "Usage: kio_help protocol domain-socket1 domain-socket2\n");
00042 exit(-1);
00043 }
00044
00045 LIBXML_TEST_VERSION
00046 xmlSubstituteEntitiesDefault(1);
00047 xmlLoadExtDtdDefaultValue = 1;
00048
00049 HelpProtocol slave(false, argv[2], argv[3]);
00050 slave.dispatchLoop();
00051
00052 kDebug(7101) << "Done";
00053 return 0;
00054 }
00055 }
00056
00057
00058