• 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_ghelp.cpp
Go to the documentation of this file.
1 
2 #ifdef _WIN32
3 #define LIBXML_DLL_IMPORT __declspec(dllimport)
4 #else
5 extern "C" int xmlLoadExtDtdDefaultValue;
6 #endif
7 
8 #include "kio_help.h"
9 #include "xslt.h"
10 
11 #include <kdebug.h>
12 #include <kstandarddirs.h>
13 #include <kcomponentdata.h>
14 
15 #include <QtCore/QString>
16 
17 #include <stdlib.h>
18 #include <string.h>
19 #include <sys/time.h>
20 #include <unistd.h>
21 
22 #include <libxml/xmlversion.h>
23 #include <libxml/xmlmemory.h>
24 #include <libxml/debugXML.h>
25 #include <libxml/HTMLtree.h>
26 #include <libxml/xmlIO.h>
27 #include <libxml/parserInternals.h>
28 
29 #include <libxslt/xsltconfig.h>
30 #include <libxslt/xsltInternals.h>
31 #include <libxslt/transform.h>
32 #include <libxslt/xsltutils.h>
33 #include <libexslt/exslt.h>
34 
35 extern "C"
36 {
37  KDE_EXPORT int kdemain( int argc, char **argv )
38  {
39  KComponentData componentData( "kio_ghelp" );
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_ghelp 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( true, 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: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
kdemain
int kdemain(int argc, char **argv)
Definition: main_ghelp.cpp:37
kio_help.h
xslt.h
xmlLoadExtDtdDefaultValue
int xmlLoadExtDtdDefaultValue
Definition: main_ghelp.cpp:5
kstandarddirs.h
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