Nepomuk-Core
#include <removablemediacache.h>
Classes | |
class | Entry |
Signals | |
void | deviceAdded (const Nepomuk2::RemovableMediaCache::Entry *entry) |
void | deviceMounted (const Nepomuk2::RemovableMediaCache::Entry *entry) |
void | deviceRemoved (const Nepomuk2::RemovableMediaCache::Entry *entry) |
void | deviceTeardownRequested (const Nepomuk2::RemovableMediaCache::Entry *entry) |
Public Member Functions | |
RemovableMediaCache (QObject *parent=0) | |
~RemovableMediaCache () | |
QList< const Entry * > | allMedia () const |
QList< const Entry * > | findEntriesByMountPath (const QString &path) const |
const Entry * | findEntryByFilePath (const QString &path) const |
const Entry * | findEntryByUrl (const KUrl &url) const |
bool | hasRemovableSchema (const KUrl &url) const |
bool | isEmpty () const |
Detailed Description
The removable media cache provides access to all removable media that are supported by Nepomuk.
It allows to convert URLs the way RemovableMediaModel requires it and provides more or less unique URIs for each device allowing to store device-specific configuration.
Definition at line 45 of file removablemediacache.h.
Constructor & Destructor Documentation
Nepomuk2::RemovableMediaCache::RemovableMediaCache | ( | QObject * | parent = 0 | ) |
Definition at line 67 of file removablemediacache.cpp.
Nepomuk2::RemovableMediaCache::~RemovableMediaCache | ( | ) |
Definition at line 80 of file removablemediacache.cpp.
Member Function Documentation
QList< const Nepomuk2::RemovableMediaCache::Entry * > Nepomuk2::RemovableMediaCache::allMedia | ( | ) | const |
Definition at line 101 of file removablemediacache.cpp.
|
signal |
|
signal |
|
signal |
|
signal |
QList< const Nepomuk2::RemovableMediaCache::Entry * > Nepomuk2::RemovableMediaCache::findEntriesByMountPath | ( | const QString & | path | ) | const |
Searches for entries which are mounted at a path which starts with the given one.
Example: a path
/media
will result in all entries which are mounted under /media
like /media/disk1
or /media/cdrom
.
Definition at line 175 of file removablemediacache.cpp.
const Nepomuk2::RemovableMediaCache::Entry * Nepomuk2::RemovableMediaCache::findEntryByFilePath | ( | const QString & | path | ) | const |
Definition at line 140 of file removablemediacache.cpp.
const Nepomuk2::RemovableMediaCache::Entry * Nepomuk2::RemovableMediaCache::findEntryByUrl | ( | const KUrl & | url | ) | const |
Definition at line 158 of file removablemediacache.cpp.
bool Nepomuk2::RemovableMediaCache::hasRemovableSchema | ( | const KUrl & | url | ) | const |
Returns true if the URL might be pointing to a file on a removable device as handled by this class, ie.
a non-local URL which can be converted to a local one. This method is primarily used for performance gain.
Definition at line 192 of file removablemediacache.cpp.
bool Nepomuk2::RemovableMediaCache::isEmpty | ( | ) | const |
Returns true if they are no devices in the RemoveableMediaCache.
Definition at line 198 of file removablemediacache.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.