#include <KviMediaManager.h>
KviMediaManager::KviMediaManager |
( |
| ) |
|
KviMediaManager::~KviMediaManager |
( |
| ) |
|
void KviMediaManager::clear |
( |
| ) |
|
|
inline |
KviMediaType * KviMediaManager::findMediaType |
( |
const char * |
pcFilename, |
|
|
bool |
bCheckMagic = true |
|
) |
| |
References __tr, KviCString::cutToLast(), KviCString::ensureLastCharIs(), findMediaTypeByIanaType(), findMediaTypeForRegularFile(), insertMediaType(), KviFileUtils::isAbsolutePath(), KVI_ASSERT, KviMutex::locked(), KviCString::prepend(), KviCString::ptr(), S_ISCHR, S_ISDIR, S_ISFIFO, KviMediaType::szCommandline, KviMediaType::szDescription, KviMediaType::szIanaType, and KviMediaType::szIcon.
Referenced by DccBroker::chooseSaveFileName().
KviMediaType * KviMediaManager::findMediaTypeByFileMask |
( |
const char * |
pcFilemask | ) |
|
KviMediaType * KviMediaManager::findMediaTypeByIanaType |
( |
const char * |
pcIanaType | ) |
|
KviMediaType * KviMediaManager::findMediaTypeForRegularFile |
( |
const char * |
pcFullPath, |
|
|
const char * |
pcFileName, |
|
|
bool |
bCheckMagic |
|
) |
| |
|
private |
References __tr, f, findMediaTypeByIanaType(), KviPointerList< T >::first(), insertMediaType(), kvi_matchWildExpr(), m, m_pMediaTypeList, KviPointerList< T >::next(), KviMediaType::szCommandline, KviMediaType::szDescription, KviMediaType::szIanaType, and KviMediaType::szIcon.
Referenced by findMediaType().
void KviMediaManager::insertMediaType |
( |
KviMediaType * |
pType | ) |
|
References KviPointerList< T >::append(), KviPointerList< T >::first(), KviPointerList< T >::insert(), KVI_ASSERT, KviCString::len(), KviMutex::locked(), m_pMediaTypeList, KviPointerList< T >::next(), KviCString::occurrences(), and KviMediaType::szFileMask.
Referenced by OptionsWidget_mediaTypes::commit(), findMediaType(), findMediaTypeForRegularFile(), and load().
void KviMediaManager::load |
( |
const QString & |
szFilename | ) |
|
References _KviDefaultMediaType::commandline, _KviDefaultMediaType::description, _KviDefaultMediaType::filemask, findMediaTypeByFileMask(), KviCString::Format, i, _KviDefaultMediaType::ianatype, insertMediaType(), KVI_ASSERT, KviMutex::locked(), m, _KviDefaultMediaType::magicbytes, KviCString::ptr(), KviConfigurationFile::Read, KviConfigurationFile::readEntry(), KviConfigurationFile::readUIntEntry(), KviConfigurationFile::setGroup(), KviCString::sprintf(), KviMediaType::szCommandline, KviMediaType::szDescription, KviMediaType::szFileMask, KviMediaType::szIanaType, KviMediaType::szIcon, KviMediaType::szMagicBytes, KviMediaType::szRemoteExecCommandline, KviMediaType::szSavePath, and u.
Referenced by KviApplication::setup().
bool KviMediaManager::removeMediaType |
( |
KviMediaType * |
pType | ) |
|
|
inline |
void KviMediaManager::save |
( |
const QString & |
szFilename | ) |
|
References KviConfigurationFile::clear(), KviPointerList< T >::count(), KviPointerList< T >::first(), KviCString::Format, KVI_ASSERT, KviMutex::locked(), m, m_pMediaTypeList, KviPointerList< T >::next(), KviCString::ptr(), KviConfigurationFile::setGroup(), KviCString::sprintf(), KviConfigurationFile::Write, and KviConfigurationFile::writeEntry().
Referenced by KviApplication::saveMediaTypes().
The documentation for this class was generated from the following files: