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

KDocTools

kio_help.h

Go to the documentation of this file.
00001 #ifndef __help_h__
00002 #define __help_h__
00003 
00004 /* This file is part of the KDE libraries
00005    Copyright (C) 2000 Matthias Hoelzer-Kluepfel <hoelzer@kde.org>
00006    Copyright (C) 2001 Stephan Kulow <coolo@kde.org>
00007    Copyright (C) 2003 Cornelius Schumacher <schumacher@kde.org>
00008 
00009    This library is free software; you can redistribute it and/or
00010    modify it under the terms of the GNU Library General Public
00011    License as published by the Free Software Foundation; either
00012    version 2 of the License, or (at your option) any later version.
00013 
00014    This library is distributed in the hope that it will be useful,
00015    but WITHOUT ANY WARRANTY; without even the implied warranty of
00016    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017    Library General Public License for more details.
00018 
00019    You should have received a copy of the GNU Library General Public License
00020    along with this library; see the file COPYING.LIB.  If not, write to
00021    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00022    Boston, MA 02110-1301, USA.
00023 */
00024 
00025 
00026 #include <sys/types.h>
00027 #include <sys/stat.h>
00028 
00029 
00030 #include <stdio.h>
00031 #include <unistd.h>
00032 
00033 
00034 #include <QtCore/QString>
00035 
00036 
00037 #include <kio/global.h>
00038 #include <kio/slavebase.h>
00039 
00040 class HelpProtocol : public KIO::SlaveBase
00041 {
00042 public:
00043 
00044     HelpProtocol( bool ghelp, const QByteArray &pool, const QByteArray &app);
00045     virtual ~HelpProtocol() { }
00046 
00047     virtual void get( const KUrl& url );
00048 
00049     virtual void mimetype( const KUrl& url );
00050 
00051 private:
00052 
00053     QString langLookup(const QString &fname);
00054     void emitFile( const KUrl &url );
00055     void get_file( const KUrl& url );
00056     QString lookupFile(const QString &fname, const QString &query,
00057                        bool &redirect);
00058 
00059     void unicodeError( const QString &t );
00060 
00061     QString mParsed;
00062     bool mGhelp;
00063 };
00064 
00065 
00066 #endif

KDocTools

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal