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

KIO

dataprotocol.h

Go to the documentation of this file.
00001 //  dataprotocol.h
00002 // ================
00003 //
00004 // Interface of the KDE data protocol core operations
00005 //
00006 // Author: Leo Savernik
00007 // Email: l.savernik@aon.at
00008 // Copyright (C) 2002 by Leo Savernik <l.savernik@aon.at>
00009 // Created: Sam Dez 28 14:11:18 CET 2002
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *   This program is free software; you can redistribute it and/or modify  *
00014  *   it under the terms of the GNU Lesser General Public License as        *
00015  *   published by the Free Software Foundation; version 2.                 *
00016  *                                                                         *
00017  ***************************************************************************/
00018 
00019 #ifndef DATAPROTOCOL_H
00020 #define DATAPROTOCOL_H
00021 
00022 // dataprotocol.* interprets the following defines
00023 // DATAKIOSLAVE: define if you want to compile this into a stand-alone
00024 //      kioslave
00025 // TESTKIO: define for test-driving
00026 // Both defines are mutually exclusive. Defining none of them compiles
00027 // DataProtocol for internal usage within libkiocore.
00028 
00029 class QByteArray;
00030 
00031 class KUrl;
00032 
00033 #if defined(DATAKIOSLAVE)
00034 #  include <kio/slavebase.h>
00035 #elif !defined(TESTKIO)
00036 #  include "kio/dataslave.h"
00037 #endif
00038 
00039 namespace KIO {
00040 
00045 #if defined(DATAKIOSLAVE)
00046 class DataProtocol : public KIO::SlaveBase {
00047 #elif defined(TESTKIO)
00048 class DataProtocol : public TestSlave {
00049 #else
00050 class DataProtocol : public DataSlave {
00051 #endif
00052 
00053 public:
00054 #if defined(DATAKIOSLAVE)
00055   DataProtocol(const QByteArray &pool_socket, const QByteArray &app_socket);
00056 #else
00057   DataProtocol();
00058 #endif
00059   virtual ~DataProtocol();
00060   virtual void mimetype(const KUrl &url);
00061   virtual void get(const KUrl &url);
00062 #if defined(TESTKIO)
00063   void ref() {}
00064   void deref() {}
00065 #endif
00066 };
00067 
00068 }/*end namespace*/
00069 
00070 #endif

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • 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
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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