• 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
31class KSycoca;
32class KSycocaDict;
33
34class KServiceType;
35class KFolderType;
36class KDEDesktopMimeType;
37class KExecMimeType;
38
45class TDEIO_EXPORT KServiceTypeFactory : public KSycocaFactory
46{
47 K_SYCOCAFACTORY( KST_KServiceTypeFactory )
48public:
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
103protected:
104 virtual KServiceType *createEntry(int offset);
105
106private:
107 static KServiceTypeFactory *_self;
108
109protected:
110 int m_fastPatternOffset;
111 int m_otherPatternOffset;
112 TQMap<TQString,int> m_propertyTypeDict;
113
114private:
115 TQStringList m_patterns;
116 TQValueVector<TQ_INT32> m_pattern_offsets;
117protected:
118 virtual void virtual_hook( int id, void* data );
119private:
120 class KServiceTypeFactoryPrivate* d;
121};
122
123#endif
KDEDesktopMimeType
Mime type for desktop files.
Definition kmimetype.h:507
KExecMimeType
The mime type for executable files.
Definition kmimetype.h:623
KFolderType
Folder mime type.
Definition kmimetype.h:478
KMimeType
Represent a mime type, like "text/plain", and the data that is associated with it.
Definition kmimetype.h:48
KServiceType
A service type is the generic notion for a mimetype, a type of service instead of a type of file.
Definition kservicetype.h:46

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • Main Page
  • 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.9.8
This website is maintained by Timothy Pearson.