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

Nepomuk-Core

  • Nepomuk2
  • RemovableMediaCache
Classes | Signals | Public Member Functions | List of all members
Nepomuk2::RemovableMediaCache Class Reference

#include <removablemediacache.h>

Inheritance diagram for Nepomuk2::RemovableMediaCache:
Inheritance graph
[legend]

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.

void Nepomuk2::RemovableMediaCache::deviceAdded ( const Nepomuk2::RemovableMediaCache::Entry *  entry)
signal
void Nepomuk2::RemovableMediaCache::deviceMounted ( const Nepomuk2::RemovableMediaCache::Entry *  entry)
signal
void Nepomuk2::RemovableMediaCache::deviceRemoved ( const Nepomuk2::RemovableMediaCache::Entry *  entry)
signal
void Nepomuk2::RemovableMediaCache::deviceTeardownRequested ( const Nepomuk2::RemovableMediaCache::Entry *  entry)
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:
  • removablemediacache.h
  • removablemediacache.cpp
This file is part of the KDE documentation.
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.

Nepomuk-Core

Skip menu "Nepomuk-Core"
  • 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • 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