• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdeio
 

tdeio/tdeio

kservicetypefactory.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef __k_service_type_factory_h__
00021 #define __k_service_type_factory_h__
00022 
00023 #include <assert.h>
00024 
00025 #include <tqstringlist.h>
00026 #include <tqvaluevector.h>
00027 
00028 #include "tdesycocafactory.h"
00029 #include "kmimetype.h"
00030 
00031 class KSycoca;
00032 class KSycocaDict;
00033 
00034 class KServiceType;
00035 class KFolderType;
00036 class KDEDesktopMimeType;
00037 class KExecMimeType;
00038 
00045 class TDEIO_EXPORT KServiceTypeFactory : public KSycocaFactory
00046 {
00047   K_SYCOCAFACTORY( KST_KServiceTypeFactory )
00048 public:
00052   KServiceTypeFactory();
00053 
00054   virtual ~KServiceTypeFactory();
00055 
00059   virtual KSycocaEntry *createEntry(const TQString &, const char *)
00060     { assert(0); return 0; }
00061 
00066   virtual KServiceType * findServiceTypeByName(const TQString &_name);
00067 
00071   TQVariant::Type findPropertyTypeByName(const TQString &_name);
00072 
00078   KMimeType * findFromPattern(const TQString &_filename, TQString *match = 0);
00079 
00084   KMimeType::List allMimeTypes();
00085 
00090   KServiceType::List allServiceTypes();
00091 
00096   bool checkMimeTypes();
00097 
00101   static KServiceTypeFactory * self();
00102 
00103 protected:
00104   virtual KServiceType *createEntry(int offset);
00105 
00106 private:
00107   static KServiceTypeFactory *_self;
00108 
00109 protected:
00110   int m_fastPatternOffset;
00111   int m_otherPatternOffset;
00112   TQMap<TQString,int> m_propertyTypeDict;
00113 
00114 private:
00115   TQStringList m_patterns;
00116   TQValueVector<TQ_INT32> m_pattern_offsets;
00117 protected:
00118   virtual void virtual_hook( int id, void* data );
00119 private:
00120   class KServiceTypeFactoryPrivate* d;
00121 };
00122 
00123 #endif

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdeio by doxygen 1.6.3
This website is maintained by Timothy Pearson.