Logo Search packages:      
Sourcecode: bangarang version File versions  Download package

FileListEngine Class Reference

#include <filelistengine.h>

Inheritance diagram for FileListEngine:

NepomukListEngine ListEngine

List of all members.


Detailed Description

This ListEngine retrieves media files. It also automatically updates Music file information in the nepomuk data store. List Resource Identifiers handled are: files://audio files://video files://audio?getFiles||[filelist] files://audio?getFolder||[folder] files://video?getFiles||[filelist] files://video?getFolder||[folder]

Definition at line 46 of file filelistengine.h.


Signals

void percentComplete (int percent)
void results (QString m_requestSignature, QList< MediaItem > mediaList, MediaListProperties m_mediaListProperties, bool done, QString m_subRequestSignature)
void sourceInfoUpdated (MediaItem mediaItem)
void updateMediaItems (QList< MediaItem > mediaList)
void updateRemovalComplete ()
void updateRemovalStarted ()
void urlInfoRemoved (QString url)

Public Member Functions

void activateAction ()
void connectIndexer ()
 FileListEngine (ListEngineFactory *parent)
const MediaListPropertiesmediaListProperties () const
MediaItemModelmodel ()
virtual void removeSourceInfo (QList< MediaItem > mediaList)
const QString & requestSignature () const
void run ()
virtual void setFilterForSources (const QString &engineFilter)
void setMediaListProperties (const MediaListProperties &mediaListProperties)
void setModel (MediaItemModel *mediaItemModel)
void setRequestSignature (const QString &requestSignature)
void setSubRequestSignature (const QString &subRequestSignature)
const QString & subRequestSignature () const
virtual void updateSourceInfo (QList< MediaItem > mediaList)

Protected Attributes

Soprano::Model * m_mainModel
MediaIndexerm_mediaIndexer
QList< MediaItemm_mediaItemsInfoToRemove
QList< MediaItemm_mediaItemsInfoToUpdate
MediaListProperties m_mediaListProperties
bool m_nepomukInited
bool m_removeSourceInfo
QString m_requestSignature
QString m_subRequestSignature
bool m_updateSourceInfo

Private Member Functions

QFileInfoList crawlDir (const QDir &dir, const QStringList &mimeFilter)
QString engineFilterFromUrlList (const KUrl::List &fileList)
KUrl::List QFileInfoListToKUrlList (const QFileInfoList &fileInfoList)
QList< MediaItemreadAudioUrlList (const KUrl::List &fileList)
QList< MediaItemreadVideoUrlList (const KUrl::List &fileList)

Private Attributes

QString m_directoryPath
KUrl::List m_fileList
bool m_getFilesAction
bool m_getFolderAction
QList< MediaItemm_mediaListToIndex

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index