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

KDECore

  • 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
30class KSycocaEntryPrivate;
31
41class KDECORE_EXPORT KSycocaEntry : public KShared
42{
43
44public:
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);
147protected:
148 KSycocaEntry(KSycocaEntryPrivate &d);
149 KSycocaEntryPrivate *d_ptr;
150
151private:
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: ksharedptr.h:64
KShared
KSycocaEntryPrivate
Definition: ksycocaentry_p.h:30
KSycocaEntry
Base class for all Sycoca entries.
Definition: ksycocaentry.h:42
KSycocaEntry::d_ptr
KSycocaEntryPrivate * d_ptr
Definition: ksycocaentry.h:149
KSycocaEntry::List
QList< Ptr > List
Definition: ksycocaentry.h:62
KSycocaEntry::KSycocaType
KSycocaType
A KSycocaType is a code (out of the KSycocaType enum) assigned to each class type derived from KSycoc...
Definition: ksycocatype.h:31
KSycocaEntry::Ptr
KSharedPtr< KSycocaEntry > Ptr
Definition: ksycocaentry.h:61
QList
Definition: kaboutdata.h:33
QStringList
QString
QVariant
kglobal.h
ksharedptr.h
ksycocatype.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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.14.38 API Reference

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