MythTV
master
|
#include <iostream>
#include <cstdlib>
#include <QtGlobal>
#include <QDir>
#include <QCoreApplication>
#include "mythdirs.h"
#include "mythlogging.h"
Go to the source code of this file.
Functions | |
void | InitializeMythDirs (void) |
QString | GetInstallPrefix (void) |
QString | GetAppBinDir (void) |
QString | GetShareDir (void) |
QString | GetLibraryDir (void) |
QString | GetConfDir (void) |
QString | GetThemesParentDir (void) |
QString | GetPluginsDir (void) |
QString | GetTranslationsDir (void) |
QString | GetFiltersDir (void) |
QString | GetCacheDir (void) |
Returns the base directory for all cached files. More... | |
QString | GetRemoteCacheDir (void) |
Returns the directory for all files cached from the backend. More... | |
QString | GetThumbnailDir (void) |
Returns the directory where all non-theme thumbnail files should be cached. More... | |
QString | GetThemeBaseCacheDir (void) |
Returns the base directory where all theme related files should be cached. More... | |
QString | GetFiltersNameFilter (void) |
QString | GetPluginsNameFilter (void) |
QString | FindPluginName (const QString &plugname) |
QString | GetTranslationsNameFilter (void) |
QString | FindTranslation (const QString &translation) |
QString | GetFontsDir (void) |
Variables | |
static QString | installprefix |
static QString | appbindir |
static QString | sharedir |
static QString | libdir |
static QString | confdir |
static QString | themedir |
static QString | pluginsdir |
static QString | translationsdir |
static QString | filtersdir |
static QString | cachedir |
static QString | remotecachedir |
static QString | themebasecachedir |
static QString | thumbnaildir |
static const QString | kPluginLibPrefix = "lib" |
static const QString | kPluginLibSuffix = ".dll" |
static const QString | kFilterLibPrefix = "lib" |
static const QString | kFilterLibSuffix = ".dll" |
void InitializeMythDirs | ( | void | ) |
Definition at line 32 of file mythdirs.cpp.
Referenced by MythContext::Impl::Impl(), and main().
QString GetInstallPrefix | ( | void | ) |
Definition at line 259 of file mythdirs.cpp.
Referenced by getDBParamters().
QString GetAppBinDir | ( | void | ) |
Definition at line 260 of file mythdirs.cpp.
Referenced by CheckRecordings(), ThumbThread< ImageDbSg >::CreateThumbnail(), JobQueue::DoFlagCommercialsThread(), JobQueue::DoMetadataLookupThread(), RadioStreamUpdateTask::DoRun(), ArtworkTask::DoRun(), MythFillDatabaseTask::DoRun(), JobQueue::DoTranscodeThread(), VideoMetaData::GetAllTags(), MainServer::HandleMusicCalcTrackLen(), MainServer::HandleMusicFindAlbumArt(), MainServer::HandleMusicFindLyrics(), MainServer::HandleMusicTagChangeImage(), MainServer::HandleMusicTagGetImage(), MainServer::HandleMusicTagUpdateVolatile(), MainServer::HandleScanMusic(), MythShutdownStartFECmd(), PreviewGenerator::Run(), HTTPLiveStreamThread::run(), startAppearWiz(), LCD::startLCDServer(), SourceUtil::UpdateChannelsFromListings(), and WelcomeDialog::WelcomeDialog().
QString GetShareDir | ( | void | ) |
Definition at line 261 of file mythdirs.cpp.
Referenced by DBUtil::BackupDB(), HardwareProfile::DeleteProfile(), NetEditorBase::FillGrabberButtonList(), NetSearch::FillGrabberButtonList(), NetTree::FillTree(), findAllDBSearchGrabbers(), findAllDBTreeGrabbers(), findAllDBTreeGrabbersByHost(), FindLyrics(), MythThemedMenu::findMenuFile(), MythUIThemeHelper::FindMenuThemeDir(), SourceManager::findScripts(), findSearchGrabberByCommand(), findTreeGrabberByCommand(), HardwareProfile::GenerateUUIDs(), ThumbFinder::getChapterCount(), GetFontsDir(), HardwareProfile::GetHardwareProfile(), InternetContent::GetInternetContent(), InternetContent::GetInternetSearch(), InternetContent::GetInternetSources(), MetaGrabberScript::GetList(), MetaGrabberScript::GetRelPath(), MetaGrabberScript::GetType(), MainServer::HandleMusicGetLyricGrabbers(), MythLocale::LoadDefaultsFromXML(), MythBurn::loadEncoderProfiles(), MHIContext::LoadFont(), loadScreens(), MetaGrabberScript::MetaGrabberScript(), MythArchiveShareDir(), MythHTTPServer::MythHTTPServer(), NetSearch::PopulateResultList(), MythNewsConfig::populateSites(), HttpConfig::ProcessRequest(), NetStream::Request(), MythBurn::runScript(), NetSearch::SetThumbnail(), HardwareProfile::SubmitProfile(), NetTree::UpdateCurrentItem(), NetTree::UpdateItem(), and NetTree::UpdateResultItem().
QString GetLibraryDir | ( | void | ) |
Definition at line 262 of file mythdirs.cpp.
QString GetConfDir | ( | void | ) |
Definition at line 263 of file mythdirs.cpp.
Referenced by ImageSearchResultsDialog::cleanCacheDir(), NetBase::CleanCacheDir(), MetadataResultsDialog::cleanCacheDir(), cleanThumbnailCacheDir(), V2Channel::CopyIconToBackend(), DecoderHandler::createPlaylistFromRemoteUrl(), ThemeChooser::customEvent(), RSSEditPopup::DoFileBrowser(), download_logo(), ChannelEditor::fillList(), XmltvID::fillSelections(), EditMetadataDialog::FindBanner(), EditRomInfoDialog::FindBoxart(), EditMetadataDialog::FindCoverArt(), EditRomInfoDialog::FindFanart(), EditMetadataDialog::FindFanart(), FindLyrics(), MythThemedMenu::findMenuFile(), EditRomInfoDialog::FindScreenshot(), EditMetadataDialog::FindScreenshot(), EditMetadataDialog::FindTrailer(), HardwareProfile::GenerateUUIDs(), ImageAdapterBase::GetAbsThumbPath(), HardwareProfile::GetAdminPasswordFromFile(), MusicMetadata::getAlbumArtFile(), GetBoxartDir(), getDownloadFilename(), GetFanartDir(), GetNetworkAccessManager(), HardwareProfile::GetPrivateUUIDFromFile(), HardwareProfile::GetPublicUUIDFromFile(), GetScreenshotDir(), GetThumbnailFilename(), V2Channel::GetXMLTVIdList(), FillData::GrabData(), MainServer::HandleMusicSaveLyrics(), ImportIconsWizard::ImportIconsWizard(), MythUIWebBrowser::Init(), ImportIconsWizard::initialLoad(), MythHTTPS::InitSSLServer(), ChannelEditor::itemChanged(), MythLocale::LoadDefaultsFromXML(), MythBurn::loadEncoderProfiles(), MHIContext::LoadFont(), MythTVMenu::LoadFromFile(), MythRAOPConnection::LoadKey(), ThemeUpdateTask::LoadVersion(), ThemeChooser::LoadVersion(), main(), MythBDInfo::MythBDInfo(), MythNews::MythNews(), BlurayMetadata::OpenDisc(), MythBDBuffer::OpenFile(), Device::RemoveThumbs(), Ripper::Ripper(), MythDownloadManager::run(), CDRipperThread::run(), NAMThread::run(), anonymous_namespace{mythcontext.cpp}::GUISettingsCache::save(), ThemeChooser::saveAndReload(), WaveForm::saveload(), PreviewGenerator::SaveOutFile(), EditMetadataCommon::searchForAlbumImages(), EditMetadataDialog::searchForArtistImages(), EditMetadataDialog::searchForGenreImages(), MythUIWebBrowser::SetDefaultSaveDirectory(), SetupIconCacheDirectory(), NetBase::ShowWebVideo(), MythInputDeviceHandler::Start(), StorageGroup::StaticInit(), anonymous_namespace{videoglobalsettings.cpp}::TrailerDirectory(), anonymous_namespace{videoglobalsettings.cpp}::VideoArtworkDirectory(), anonymous_namespace{videoglobalsettings.cpp}::VideoBannerDirectory(), anonymous_namespace{videoglobalsettings.cpp}::VideoFanartDirectory(), anonymous_namespace{videoglobalsettings.cpp}::VideoScreenshotDirectory(), WeatherSource::WeatherSource(), HardwareProfile::WritePrivateUUIDToFile(), XMLTV_generic_config::XMLTV_generic_config(), MythWebPage::~MythWebPage(), and Ripper::~Ripper().
QString GetThemesParentDir | ( | void | ) |
Definition at line 264 of file mythdirs.cpp.
Referenced by MythUIThemeHelper::FindMenuThemeDir(), MythUIThemeHelper::FindThemeDir(), MythUIThemeHelper::GetThemes(), MythUIThemeHelper::GetThemeSearchPath(), and ThemeChooser::Load().
QString GetPluginsDir | ( | void | ) |
Definition at line 265 of file mythdirs.cpp.
Referenced by FindPluginName(), and MythPluginManager::MythPluginManager().
QString GetTranslationsDir | ( | void | ) |
Definition at line 266 of file mythdirs.cpp.
Referenced by FindTranslation(), MythTranslation::getLanguages(), and MythTranslation::load().
QString GetFiltersDir | ( | void | ) |
Definition at line 267 of file mythdirs.cpp.
QString GetCacheDir | ( | void | ) |
Returns the base directory for all cached files.
On linux this will default to ~/.mythtv/cache.
Definition at line 273 of file mythdirs.cpp.
Referenced by ThemeChooser::LoadVersion().
QString GetRemoteCacheDir | ( | void | ) |
Returns the directory for all files cached from the backend.
On linux this will default to ~/.mythtv/cache/remotecache. Items in this directory will be expired after a certain amount of time.
Definition at line 280 of file mythdirs.cpp.
Referenced by PreviewGeneratorQueue::GeneratePreviewImage(), MythUIHelper::getMythUI(), MythUIThemeCache::UpdateImageCache(), and MythUIThemeCache::~MythUIThemeCache().
QString GetThumbnailDir | ( | void | ) |
Returns the directory where all non-theme thumbnail files should be cached.
On linux this will default to ~/.mythtv/cache/thumbnails. Items in this directory will be expired after a certain amount of time.
Definition at line 288 of file mythdirs.cpp.
Referenced by MythUIThemeCache::GetCacheDirByUrl(), MythUIHelper::getMythUI(), MythUIThemeCache::UpdateImageCache(), and MythUIThemeCache::~MythUIThemeCache().
QString GetThemeBaseCacheDir | ( | void | ) |
Returns the base directory where all theme related files should be cached.
On linux this will default to ~/.mythtv/cache/themecache. Within this directory, a sub-directory will be created for each theme used.
Definition at line 296 of file mythdirs.cpp.
Referenced by MythUIThemeCache::ClearOldImageCache(), MythUIHelper::getMythUI(), MythUIThemeCache::GetThemeCacheDir(), and MythUIThemeCache::RemoveCacheDir().
QString GetFiltersNameFilter | ( | void | ) |
Definition at line 322 of file mythdirs.cpp.
QString GetPluginsNameFilter | ( | void | ) |
Definition at line 327 of file mythdirs.cpp.
Referenced by MythPluginManager::MythPluginManager().
QString FindPluginName | ( | const QString & | plugname | ) |
Definition at line 332 of file mythdirs.cpp.
Referenced by MythPluginManager::config_plugin(), MythPluginManager::destroy_plugin(), MythPluginManager::GetPlugin(), MythPluginManager::init_plugin(), and MythPluginManager::run_plugin().
QString GetTranslationsNameFilter | ( | void | ) |
Definition at line 337 of file mythdirs.cpp.
QString FindTranslation | ( | const QString & | translation | ) |
Definition at line 342 of file mythdirs.cpp.
QString GetFontsDir | ( | void | ) |
Definition at line 348 of file mythdirs.cpp.
Referenced by MHIContext::LoadFont(), and MythThemeBase::MythThemeBase().
|
static |
Definition at line 18 of file mythdirs.cpp.
Referenced by GetInstallPrefix(), and InitializeMythDirs().
|
static |
Definition at line 19 of file mythdirs.cpp.
Referenced by GetAppBinDir(), and InitializeMythDirs().
|
static |
Definition at line 20 of file mythdirs.cpp.
Referenced by GetShareDir(), and InitializeMythDirs().
|
static |
Definition at line 21 of file mythdirs.cpp.
Referenced by GetLibraryDir(), and InitializeMythDirs().
|
static |
Definition at line 22 of file mythdirs.cpp.
Referenced by GetConfDir(), MythContext::Init(), and InitializeMythDirs().
|
static |
Definition at line 23 of file mythdirs.cpp.
Referenced by MythUIThemeHelper::GetThemeSearchPath(), GetThemesParentDir(), InitializeMythDirs(), MythUIThemeHelper::InitThemeHelper(), main(), mythplugin_config(), reloadTheme(), resetTheme(), runMenu(), and RunMenu().
|
static |
Definition at line 24 of file mythdirs.cpp.
Referenced by GetPluginsDir(), and InitializeMythDirs().
|
static |
Definition at line 25 of file mythdirs.cpp.
Referenced by GetTranslationsDir(), and InitializeMythDirs().
|
static |
Definition at line 26 of file mythdirs.cpp.
Referenced by GetFiltersDir(), and InitializeMythDirs().
|
static |
Definition at line 27 of file mythdirs.cpp.
Referenced by GetCacheDir(), and InitializeMythDirs().
|
static |
Definition at line 28 of file mythdirs.cpp.
Referenced by GetRemoteCacheDir(), InitializeMythDirs(), and PreviewGenerator::SaveOutFile().
|
static |
Definition at line 29 of file mythdirs.cpp.
Referenced by GetThemeBaseCacheDir(), and InitializeMythDirs().
|
static |
Definition at line 30 of file mythdirs.cpp.
Referenced by GetThumbnailDir(), and InitializeMythDirs().
|
static |
Definition at line 306 of file mythdirs.cpp.
Referenced by FindPluginName(), and GetPluginsNameFilter().
|
static |
Definition at line 307 of file mythdirs.cpp.
Referenced by FindPluginName(), and GetPluginsNameFilter().
|
static |
Definition at line 308 of file mythdirs.cpp.
Referenced by GetFiltersNameFilter().
|
static |
Definition at line 309 of file mythdirs.cpp.
Referenced by GetFiltersNameFilter().