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

tdeio/tdeio

  • tdeio
  • tdeio
kservicetypefactory.h
1 /* This file is part of the KDE project
2  Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef __k_service_type_factory_h__
21 #define __k_service_type_factory_h__
22 
23 #include <assert.h>
24 
25 #include <tqstringlist.h>
26 #include <tqvaluevector.h>
27 
28 #include "tdesycocafactory.h"
29 #include "kmimetype.h"
30 
31 class KSycoca;
32 class KSycocaDict;
33 
34 class KServiceType;
35 class KFolderType;
36 class KDEDesktopMimeType;
37 class KExecMimeType;
38 
45 class TDEIO_EXPORT KServiceTypeFactory : public KSycocaFactory
46 {
47  K_SYCOCAFACTORY( KST_KServiceTypeFactory )
48 public:
52  KServiceTypeFactory();
53 
54  virtual ~KServiceTypeFactory();
55 
59  virtual KSycocaEntry *createEntry(const TQString &, const char *)
60  { assert(0); return 0; }
61 
66  virtual KServiceType * findServiceTypeByName(const TQString &_name);
67 
71  TQVariant::Type findPropertyTypeByName(const TQString &_name);
72 
78  KMimeType * findFromPattern(const TQString &_filename, TQString *match = 0);
79 
84  KMimeType::List allMimeTypes();
85 
90  KServiceType::List allServiceTypes();
91 
96  bool checkMimeTypes();
97 
101  static KServiceTypeFactory * self();
102 
103 protected:
104  virtual KServiceType *createEntry(int offset);
105 
106 private:
107  static KServiceTypeFactory *_self;
108 
109 protected:
110  int m_fastPatternOffset;
111  int m_otherPatternOffset;
112  TQMap<TQString,int> m_propertyTypeDict;
113 
114 private:
115  TQStringList m_patterns;
116  TQValueVector<TQ_INT32> m_pattern_offsets;
117 protected:
118  virtual void virtual_hook( int id, void* data );
119 private:
120  class KServiceTypeFactoryPrivate* d;
121 };
122 
123 #endif
KMimeType
Represent a mime type, like "text/plain", and the data that is associated with it.
Definition: kmimetype.h:47
KServiceType
A service type is the generic notion for a mimetype, a type of service instead of a type of file...
Definition: kservicetype.h:45
KDEDesktopMimeType
Mime type for desktop files.
Definition: kmimetype.h:506
KFolderType
Folder mime type.
Definition: kmimetype.h:477
KExecMimeType
The mime type for executable files.
Definition: kmimetype.h:622

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
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdeio by doxygen 1.8.8
This website is maintained by Timothy Pearson.