MythTV  master
Functions | Variables
mythdirs.cpp File Reference
#include <iostream>
#include <cstdlib>
#include <QtGlobal>
#include <QDir>
#include <QCoreApplication>
#include "mythdirs.h"
#include "mythlogging.h"
Include dependency graph for mythdirs.cpp:

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"
 

Function Documentation

◆ InitializeMythDirs()

void InitializeMythDirs ( void  )

Definition at line 32 of file mythdirs.cpp.

Referenced by MythContext::Impl::Impl(), and main().

◆ GetInstallPrefix()

QString GetInstallPrefix ( void  )

Definition at line 259 of file mythdirs.cpp.

Referenced by getDBParamters().

◆ GetAppBinDir()

QString GetAppBinDir ( void  )

◆ GetShareDir()

QString GetShareDir ( void  )

◆ GetLibraryDir()

QString GetLibraryDir ( void  )

Definition at line 262 of file mythdirs.cpp.

◆ GetConfDir()

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().

◆ GetThemesParentDir()

QString GetThemesParentDir ( void  )

◆ GetPluginsDir()

QString GetPluginsDir ( void  )

Definition at line 265 of file mythdirs.cpp.

Referenced by FindPluginName(), and MythPluginManager::MythPluginManager().

◆ GetTranslationsDir()

QString GetTranslationsDir ( void  )

◆ GetFiltersDir()

QString GetFiltersDir ( void  )

Definition at line 267 of file mythdirs.cpp.

◆ GetCacheDir()

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().

◆ GetRemoteCacheDir()

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().

◆ GetThumbnailDir()

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().

◆ GetThemeBaseCacheDir()

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().

◆ GetFiltersNameFilter()

QString GetFiltersNameFilter ( void  )

Definition at line 322 of file mythdirs.cpp.

◆ GetPluginsNameFilter()

QString GetPluginsNameFilter ( void  )

Definition at line 327 of file mythdirs.cpp.

Referenced by MythPluginManager::MythPluginManager().

◆ FindPluginName()

QString FindPluginName ( const QString &  plugname)

◆ GetTranslationsNameFilter()

QString GetTranslationsNameFilter ( void  )

Definition at line 337 of file mythdirs.cpp.

◆ FindTranslation()

QString FindTranslation ( const QString &  translation)

Definition at line 342 of file mythdirs.cpp.

◆ GetFontsDir()

QString GetFontsDir ( void  )

Definition at line 348 of file mythdirs.cpp.

Referenced by MHIContext::LoadFont(), and MythThemeBase::MythThemeBase().

Variable Documentation

◆ installprefix

QString installprefix
static

Definition at line 18 of file mythdirs.cpp.

Referenced by GetInstallPrefix(), and InitializeMythDirs().

◆ appbindir

QString appbindir
static

Definition at line 19 of file mythdirs.cpp.

Referenced by GetAppBinDir(), and InitializeMythDirs().

◆ sharedir

QString sharedir
static

Definition at line 20 of file mythdirs.cpp.

Referenced by GetShareDir(), and InitializeMythDirs().

◆ libdir

QString libdir
static

Definition at line 21 of file mythdirs.cpp.

Referenced by GetLibraryDir(), and InitializeMythDirs().

◆ confdir

QString confdir
static

Definition at line 22 of file mythdirs.cpp.

Referenced by GetConfDir(), MythContext::Init(), and InitializeMythDirs().

◆ themedir

QString themedir
static

◆ pluginsdir

QString pluginsdir
static

Definition at line 24 of file mythdirs.cpp.

Referenced by GetPluginsDir(), and InitializeMythDirs().

◆ translationsdir

QString translationsdir
static

Definition at line 25 of file mythdirs.cpp.

Referenced by GetTranslationsDir(), and InitializeMythDirs().

◆ filtersdir

QString filtersdir
static

Definition at line 26 of file mythdirs.cpp.

Referenced by GetFiltersDir(), and InitializeMythDirs().

◆ cachedir

QString cachedir
static

Definition at line 27 of file mythdirs.cpp.

Referenced by GetCacheDir(), and InitializeMythDirs().

◆ remotecachedir

QString remotecachedir
static

◆ themebasecachedir

QString themebasecachedir
static

Definition at line 29 of file mythdirs.cpp.

Referenced by GetThemeBaseCacheDir(), and InitializeMythDirs().

◆ thumbnaildir

QString thumbnaildir
static

Definition at line 30 of file mythdirs.cpp.

Referenced by GetThumbnailDir(), and InitializeMythDirs().

◆ kPluginLibPrefix

const QString kPluginLibPrefix = "lib"
static

Definition at line 306 of file mythdirs.cpp.

Referenced by FindPluginName(), and GetPluginsNameFilter().

◆ kPluginLibSuffix

const QString kPluginLibSuffix = ".dll"
static

Definition at line 307 of file mythdirs.cpp.

Referenced by FindPluginName(), and GetPluginsNameFilter().

◆ kFilterLibPrefix

const QString kFilterLibPrefix = "lib"
static

Definition at line 308 of file mythdirs.cpp.

Referenced by GetFiltersNameFilter().

◆ kFilterLibSuffix

const QString kFilterLibSuffix = ".dll"
static

Definition at line 309 of file mythdirs.cpp.

Referenced by GetFiltersNameFilter().