• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDocTools

  • kdoctools
main.cpp
Go to the documentation of this file.
1#ifdef _WIN32
2#define LIBXML_DLL_IMPORT __declspec(dllimport)
3#else
4extern "C" int xmlLoadExtDtdDefaultValue;
5#endif
6
7#include "kio_help.h"
8#include "xslt.h"
9
10#include <kstandarddirs.h>
11#include <kcomponentdata.h>
12#include <kdebug.h>
13
14#include <QtCore/QString>
15
16#include <stdlib.h>
17#include <string.h>
18#include <sys/time.h>
19#include <unistd.h>
20
21#include <libxml/xmlversion.h>
22#include <libxml/xmlmemory.h>
23#include <libxml/debugXML.h>
24#include <libxml/HTMLtree.h>
25#include <libxml/xmlIO.h>
26#include <libxml/parserInternals.h>
27
28#include <libxslt/xsltconfig.h>
29#include <libxslt/xsltInternals.h>
30#include <libxslt/transform.h>
31#include <libxslt/xsltutils.h>
32#include <libexslt/exslt.h>
33
34extern "C"
35{
36 KDE_EXPORT int kdemain( int argc, char **argv )
37 {
38 Q_ASSERT(!KGlobal::hasMainComponent()); // kdeinit is messed up if this is the case.
39 KComponentData componentData( "kio_help", "kio_help4" );
40 fillInstance(componentData);
41 (void)componentData.config(); // we need this one to make sure system globals are read
42
43 kDebug(7101) << "Starting " << getpid();
44
45 if (argc != 4)
46 {
47 fprintf(stderr, "Usage: kio_help protocol domain-socket1 domain-socket2\n");
48 exit(-1);
49 }
50
51 LIBXML_TEST_VERSION
52 xmlSubstituteEntitiesDefault(1);
53 xmlLoadExtDtdDefaultValue = 1;
54 exsltRegisterAll();
55
56 HelpProtocol slave(false, argv[2], argv[3]);
57 slave.dispatchLoop();
58
59 kDebug(7101) << "Done";
60 return 0;
61 }
62}
63
64
65
HelpProtocol
Definition: kio_help.h:37
KComponentData
KComponentData::config
const KSharedConfig::Ptr & config() const
KIO::SlaveBase::dispatchLoop
void dispatchLoop()
kDebug
#define kDebug
kcomponentdata.h
kdebug.h
slave
HelpProtocol * slave
Definition: kio_help.cpp:174
kio_help.h
kstandarddirs.h
kdemain
int kdemain(int argc, char **argv)
Definition: main.cpp:36
xmlLoadExtDtdDefaultValue
int xmlLoadExtDtdDefaultValue
Definition: main.cpp:4
KGlobal::hasMainComponent
bool hasMainComponent()
xslt.h
fillInstance
void fillInstance(KComponentData &ins, const QString &srcdir=QString())
Definition: xslt_kde.cpp:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDocTools

Skip menu "KDocTools"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal