• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • kdecore
  • services
kmimetype_p.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  * Copyright (C) 1999 Waldo Bastian <bastian@kde.org>
3  * David Faure <faure@kde.org>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License version 2 as published by the Free Software Foundation;
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 #ifndef __kmimetype_p_h__
20 #define __kmimetype_p_h__
21 
22 #include "kservicetype_p.h"
23 
24 class KMimeTypePrivate: public KServiceTypePrivate
25 {
26 public:
27  K_SYCOCATYPE( KST_KMimeType, KServiceTypePrivate )
28 
29  KMimeTypePrivate(const QString &path) : KServiceTypePrivate(path), m_xmlDataLoaded(false)
30  {}
31  KMimeTypePrivate(QDataStream &_str, int offset)
32  : KServiceTypePrivate(_str, offset), m_xmlDataLoaded(false)
33  {
34  }
35 
36  virtual void save(QDataStream &s);
37 
38  virtual QVariant property(const QString &name ) const;
39 
40  virtual QStringList propertyNames() const;
41 
42  virtual QString comment(const KUrl & = KUrl()) const
43  {
44  ensureXmlDataLoaded();
45  return m_strComment;
46  }
47 
48  // virtual because reimplemented in KFolderMimeType
49  virtual QString iconName(const KUrl &) const;
50 
51  bool inherits(const QString& mime) const;
52  void ensureXmlDataLoaded() const;
53  virtual int serviceOffersOffset() const;
54 
55  mutable QStringList m_lstPatterns;
56  mutable QString m_iconName; // user-specified
57  mutable bool m_xmlDataLoaded;
58 };
59 
60 #endif // __kmimetype_p_h__
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 17:47:33 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

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

kdelibs-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal