#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.
◆ 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(), KviRegExp::indexIn(), insertMediaType(), kvi_matchWildExpr(), m, m_pMediaTypeList, KviMediaType::szCommandline, KviMediaType::szDescription, KviMediaType::szIanaType, and KviMediaType::szIcon.
Referenced by findMediaType().
◆ insertMediaType()
void KviMediaManager::insertMediaType |
( |
KviMediaType * | pType | ) |
|
◆ load()
void KviMediaManager::load |
( |
const QString & | szFilename | ) |
|
References findMediaTypeByFileMask(), KviCString::Format, g_defMediaTypes, i, insertMediaType(), KVI_ASSERT, KviMutex::locked(), m, KviCString::ptr(), KviConfigurationFile::Read, KviConfigurationFile::readEntry(), KviConfigurationFile::readUIntEntry(), KviConfigurationFile::setGroup(), KviCString::sprintf(), and u.
◆ mediaTypeList()
◆ removeMediaType()
bool KviMediaManager::removeMediaType |
( |
KviMediaType * | pType | ) |
|
|
inline |
◆ save()
void KviMediaManager::save |
( |
const QString & | szFilename | ) |
|
References KviConfigurationFile::clear(), KviCString::Format, KVI_ASSERT, KviMutex::locked(), m, m_pMediaTypeList, KviCString::ptr(), KviConfigurationFile::setGroup(), KviCString::sprintf(), KviConfigurationFile::Write, and KviConfigurationFile::writeEntry().
◆ m_pMediaTypeList
The documentation for this class was generated from the following files: