diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-26 13:17:21 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-26 13:17:21 -0600 |
commit | dfe289850f068f19ba4a83ab4e7e22a7e09c13c9 (patch) | |
tree | c297348a55df66c571de4525646e0b9762427353 /tdecore/tdesycocatype.h | |
parent | b7658a0d5eca24a9d37c6e04f88298ef02389db0 (diff) | |
download | tdelibs-dfe289850f068f19ba4a83ab4e7e22a7e09c13c9.tar.gz tdelibs-dfe289850f068f19ba4a83ab4e7e22a7e09c13c9.zip |
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdecore/tdesycocatype.h')
-rw-r--r-- | tdecore/tdesycocatype.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/tdecore/tdesycocatype.h b/tdecore/tdesycocatype.h new file mode 100644 index 000000000..8407782fc --- /dev/null +++ b/tdecore/tdesycocatype.h @@ -0,0 +1,64 @@ +/* This file is part of the KDE project + Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> + 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 as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + 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., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef __tdesycocatype_h__ +#define __tdesycocatype_h__ + +/** + * \relates KSycocaEntry + * A KSycocaType is a code (out of the KSycocaType enum) assigned to each + * class type derived from KSycocaEntry . + * To use it, call the macro K_SYCOCATYPE( your_typecode, parent_class ) + * at the top of your class definition. + */ +enum KSycocaType { KST_KSycocaEntry = 0, KST_KService = 1, KST_KServiceType = 2, KST_KMimeType = 3, + KST_KFolderType = 4, KST_KDEDesktopMimeType = 5, KST_KExecMimeType = 6, + KST_KServiceGroup = 7, KST_KImageIOFormat = 8, KST_KProtocolInfo = 9, + KST_KServiceSeparator = 10, + KST_KCustom = 1000 }; + +#define K_SYCOCATYPE( type, baseclass ) \ +public: \ + virtual bool isType(KSycocaType t) const { if (t == type) return true; return baseclass::isType(t);} \ + virtual KSycocaType sycocaType() const { return type; } \ +private: + +/** + * \relates KSycocaFactory + * A KSycocaFactoryId is a code (out of the KSycocaFactoryId enum) + * assigned to each class type derived from KSycocaFactory. + * To use it, call the macro K_SYCOCAFACTORY( your_factory_id ) + * at the top of your class definition. + */ +enum KSycocaFactoryId { KST_KServiceFactory = 1, + KST_KServiceTypeFactory = 2, + KST_KServiceGroupFactory = 3, + KST_KImageIO = 4, + KST_KProtocolInfoFactory = 5, + KST_CTimeInfo = 100 }; + +#define K_SYCOCAFACTORY( factory_id ) \ +public: \ + virtual KSycocaFactoryId factoryId() const { return factory_id; } \ +private: + + + +#endif |