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

KDECore

  • sources
  • kde-4.14
  • kdelibs
  • kdecore
  • sycoca
ksycocaentry.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  *
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 version 2 as published by the Free Software Foundation;
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Library General Public License for more details.
12  *
13  * You should have received a copy of the GNU Library General Public License
14  * along with this library; see the file COPYING.LIB. If not, write to
15  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  * Boston, MA 02110-1301, USA.
17  **/
18 
19 #ifndef KSYCOCAENTRY_H
20 #define KSYCOCAENTRY_H
21 
22 #include <kglobal.h>
23 #include <ksycocatype.h>
24 #include <ksharedptr.h>
25 
26 #include <QtCore/QDataStream>
27 #include <QtCore/QStringList>
28 #include <QtCore/QVariant>
29 
30 class KSycocaEntryPrivate;
31 
41 class KDECORE_EXPORT KSycocaEntry : public KShared
42 {
43 
44 public:
45  /*
46  * constructs a invalid KSycocaEntry object
47  */
48  KSycocaEntry();
49 
50  virtual ~KSycocaEntry();
51 
55  bool isType(KSycocaType t) const;
59  KSycocaType sycocaType() const;
60 
61  typedef KSharedPtr<KSycocaEntry> Ptr;
62  typedef QList<Ptr> List;
63 
67 // explicit KSycocaEntry(const QString &path);
68 
72  static void read( QDataStream &s, QString &str );
73  static void read( QDataStream &s, QStringList &list );
74 
75 
79  QString name() const;
80 
86  QString entryPath() const;
87 
93  QString storageId() const;
94 
98  bool isValid() const;
99 
103  bool isDeleted() const;
104 
113  QVariant property(const QString &name) const;
114 
120  QStringList propertyNames() const;
121 
125  void setDeleted( bool deleted );
126 
127 
128  /*
129  * @returns true, if this is a separator
130  */
131  bool isSeparator() const;
132 
137  int offset() const;
138 
143  void save(QDataStream &s);
144 
145 // KSycocaEntry(const KSycocaEntry &copy);
146 // KSycocaEntry &operator=(const KSycocaEntry &right);
147 protected:
148  KSycocaEntry(KSycocaEntryPrivate &d);
149  KSycocaEntryPrivate *d_ptr;
150 
151 private:
152  Q_DISABLE_COPY(KSycocaEntry)
153 
154  Q_DECLARE_PRIVATE(KSycocaEntry)
155 };
156 
157 #endif
KSharedPtr
Can be used to control the lifetime of an object that has derived QSharedData.
Definition: kconfiggroup.h:38
ksharedptr.h
QDataStream
KSycocaEntry::d_ptr
KSycocaEntryPrivate * d_ptr
Definition: ksycocaentry.h:149
KSycocaEntry::List
QList< Ptr > List
Definition: ksycocaentry.h:62
ksycocatype.h
kglobal.h
QSharedData
KSycocaEntry::KSycocaType
KSycocaType
Definition: ksycocatype.h:31
KSycocaEntry
Base class for all Sycoca entries.
Definition: ksycocaentry.h:41
KSycocaEntry::Ptr
KSharedPtr< KSycocaEntry > Ptr
Definition: ksycocaentry.h:61
QString
QList< Ptr >
QStringList
KSycocaEntryPrivate
Definition: ksycocaentry_p.h:29
QVariant
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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

Search



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