# Source: kprotocolinfofactory.h |
Annotated List
Files
Globals
Hierarchy
Index

    /* This file is part of the KDE libraries
       Copyright (C) 1999 Torben Weis <weis@kde.org>
       Copyright (C) 2000 Waldo Bastian <bastian@kde.org>

       This library is free software; you can redistribute it and/or
       modify it under the terms of the GNU Library General Public
       License version 2 as published by the Free Software Foundation.

       This library is distributed in the hope that it will be useful,
       but WITHOUT ANY WARRANTY; without even the implied warranty of
       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       Library General Public License for more details.

       You should have received a copy of the GNU Library General Public License
       along with this library; see the file COPYING.LIB.  If not, write to
       the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
       Boston, MA 02111-1307, USA.
    */
    #ifndef __kprotocolinfofactory_h__
    #define __kprotocolinfofactory_h__

    #include "kprotocolinfo.h"
    #include "ksycocafactory.h"

    #include <qstring.h>
    #include <qstringlist.h>

    class KProtocolInfoPrivate;

    class KProtocolInfoFactory : public KSycocaFactory
    {
      K_SYCOCAFACTORY( KST_KProtocolInfoFactory )
    public:
      static KProtocolInfoFactory* self()
      { if ( !_self) new KProtocolInfoFactory(); return _self; }
      KProtocolInfoFactory();
      virtual ~KProtocolInfoFactory();

      KProtocolInfo *findProtocol(const QString &protocol);

      /**
       * @returns list of all known protocols
       */
      QStringList protocols();
    protected:

      /**
       * @internal Not used.
       */
      virtual KSycocaEntry *createEntry(const QString &, const char *)
        { return 0; }

      /**
       * @internal
       */
      virtual KProtocolInfo *createEntry(int offset);

    protected:
    //  void scanConfig( const QString& _dir );

      static KProtocolInfoFactory *_self;
    };

    #endif

Generated by: root@i386.ports.openbsd.org on Wed Apr 25 13:58:36 2001, using kdoc 2.0a53.