Nepomuk-Core
Go to the documentation of this file.
22 #ifndef NEPOMUK_REMOVABLEMEDIACACHE_H
23 #define NEPOMUK_REMOVABLEMEDIACACHE_H
27 #include <QtCore/QObject>
28 #include <QtCore/QMutex>
29 #include <QtCore/QSet>
31 #include <Solid/Device>
56 Entry(
const Solid::Device& device);
62 QString constructRelativeUrlString(
const QString& path )
const;
63 KUrl constructRelativeUrl(
const QString& path )
const;
64 KUrl constructLocalFileUrl(
const KUrl& filexUrl )
const;
66 Solid::Device
device()
const {
return m_device; }
67 QString
url()
const {
return m_urlPrefix; }
69 bool isMounted()
const;
70 QString mountPath()
const;
73 Solid::Device m_device;
79 const Entry* findEntryByFilePath(
const QString& path )
const;
80 const Entry* findEntryByUrl(
const KUrl& url)
const;
88 QList<const Entry*> findEntriesByMountPath(
const QString& path)
const;
90 QList<const Entry*> allMedia()
const;
98 bool hasRemovableSchema(
const KUrl& url)
const;
103 bool isEmpty()
const;
112 void slotSolidDeviceAdded(
const QString &udi);
113 void slotSolidDeviceRemoved(
const QString &udi);
114 void slotAccessibilityChanged(
bool accessible,
const QString &udi);
115 void slotTeardownRequested(
const QString& udi);
118 void initCacheEntries();
120 Entry* createCacheEntry(
const Solid::Device& dev );
128 QSet<QString> m_usedSchemas;
130 mutable QMutex m_entryCacheMutex;
135 #endif // NEPOMUK_REMOVABLEMEDIACACHE_H
Solid::Device device() const
#define NEPOMUKCOMMON_EXPORT
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:08 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.