#include <KviMediaManager.h>
◆ KviMediaManager()
KviMediaManager::KviMediaManager |
( |
| ) |
|
◆ ~KviMediaManager()
KviMediaManager::~KviMediaManager |
( |
| ) |
|
◆ clear()
void KviMediaManager::clear |
( |
| ) |
|
|
inline |
◆ copyMediaType()
◆ findMediaType()
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_ISFIFO, KviMediaType::szDescription, KviMediaType::szIanaType, and KviMediaType::szIcon.
Referenced by DccBroker::chooseSaveFileName().
◆ findMediaTypeByFileMask()
KviMediaType * KviMediaManager::findMediaTypeByFileMask |
( |
const char * | pcFilemask | ) |
|
◆ findMediaTypeByIanaType()
KviMediaType * KviMediaManager::findMediaTypeByIanaType |
( |
const char * | pcIanaType | ) |
|
◆ findMediaTypeForRegularFile()
KviMediaType * KviMediaManager::findMediaTypeForRegularFile |
( |
const char * | pcFullPath, |
|
|
const char * | pcFileName, |
|
|
bool | bCheckMagic ) |
|
private |
References __tr, f, findMediaTypeByIanaType(), KviPointerList< T >::first(), KviRegExp::indexIn(), insertMediaType(), kvi_matchWildExpr(), m, m_pMediaTypeList, KviPointerList< T >::next(), KviMediaType::szCommandline, KviMediaType::szDescription, KviMediaType::szIanaType, and KviMediaType::szIcon.
Referenced by findMediaType().
◆ insertMediaType()
void KviMediaManager::insertMediaType |
( |
KviMediaType * | pType | ) |
|
References KviPointerList< T >::append(), KviPointerList< T >::first(), KviPointerList< T >::insert(), KVI_ASSERT, KviMutex::locked(), m, m_pMediaTypeList, and KviPointerList< T >::next().
Referenced by OptionsWidget_mediaTypes::commit(), findMediaType(), findMediaTypeForRegularFile(), and load().
◆ load()
void KviMediaManager::load |
( |
const QString & | szFilename | ) |
|
References KviDefaultMediaType::commandline, KviDefaultMediaType::description, KviDefaultMediaType::filemask, findMediaTypeByFileMask(), KviCString::Format, g_defMediaTypes, i, KviDefaultMediaType::ianatype, insertMediaType(), KVI_ASSERT, KviMutex::locked(), m, KviDefaultMediaType::magicbytes, KviCString::ptr(), KviConfigurationFile::Read, KviConfigurationFile::readEntry(), KviConfigurationFile::readUIntEntry(), KviConfigurationFile::setGroup(), KviCString::sprintf(), KviMediaType::szFileMask, and u.
Referenced by KviApplication::setup().
◆ mediaTypeList()
◆ removeMediaType()
bool KviMediaManager::removeMediaType |
( |
KviMediaType * | pType | ) |
|
|
inline |
◆ save()
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().
◆ m_pMediaTypeList
The documentation for this class was generated from the following files: