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 KComponentData componentData( "kio_help", "kio_help4" );
00033 fillInstance(componentData);
00034 (void)componentData.config();
00035
00036 kDebug(7101) << "Starting " << getpid();
00037
00038 if (argc != 4)
00039 {
00040 fprintf(stderr, "Usage: kio_help protocol domain-socket1 domain-socket2\n");
00041 exit(-1);
00042 }
00043
00044 LIBXML_TEST_VERSION
00045 xmlSubstituteEntitiesDefault(1);
00046 xmlLoadExtDtdDefaultValue = 1;
00047
00048 HelpProtocol slave(false, argv[2], argv[3]);
00049 slave.dispatchLoop();
00050
00051 kDebug(7101) << "Done";
00052 return 0;
00053 }
00054 }
00055
00056
00057