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

KDocTools

  • sources
  • kde-4.12
  • kdelibs
  • kdoctools
main.cpp
Go to the documentation of this file.
1 #ifdef _WIN32
2 #define LIBXML_DLL_IMPORT __declspec(dllimport)
3 #else
4 extern "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 
34 extern "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 
xmlLoadExtDtdDefaultValue
int xmlLoadExtDtdDefaultValue
Definition: main.cpp:4
HelpProtocol
Definition: kio_help.h:36
kdebug.h
slave
HelpProtocol * slave
Definition: kio_help.cpp:174
kDebug
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
KComponentData::config
const KSharedConfig::Ptr & config() const
kio_help.h
xslt.h
kstandarddirs.h
KGlobal::hasMainComponent
bool hasMainComponent()
kdemain
int kdemain(int argc, char **argv)
Definition: main.cpp:36
kcomponentdata.h
KComponentData
fillInstance
void fillInstance(KComponentData &ins, const QString &srcdir=QString())
Definition: xslt_kde.cpp:27
KDE_EXPORT
#define KDE_EXPORT
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:03 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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