MythTV master
Functions | Variables
mythdirs.cpp File Reference
#include <iostream>
#include <cstdlib>
#include <QtGlobal>
#include <QtEnvironmentVariables>
#include <QtSystemDetection>
#include <QDir>
#include <QCoreApplication>
#include <QStandardPaths>
#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 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 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 cachedir
 
static QString remotecachedir
 
static QString themebasecachedir
 
static QString thumbnaildir
 
static const QString kPluginLibPrefix = "lib"
 
static const QString kPluginLibSuffix = ".dll"
 

Function Documentation

◆ FindPluginName()

QString FindPluginName ( const QString &  plugname)

◆ FindTranslation()

QString FindTranslation ( const QString &  translation)

Definition at line 347 of file mythdirs.cpp.

◆ GetAppBinDir()

QString GetAppBinDir ( void  )

◆ GetCacheDir()

QString GetCacheDir ( void  )

Returns the base directory for all cached files.

On linux this will default to ~/.mythtv/cache.

Definition at line 291 of file mythdirs.cpp.

Referenced by ThemeChooser::LoadVersion().

◆ GetConfDir()

QString GetConfDir ( void  )

Definition at line 282 of file mythdirs.cpp.

Referenced by NetBase::CleanCacheDir(), ImageSearchResultsDialog::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(), HardwareProfile::GetPrivateUUIDFromFile(), HardwareProfile::GetPublicUUIDFromFile(), GetScreenshotDir(), GetThumbnailFilename(), V2Channel::GetXMLTVIdList(), FillData::GrabData(), MainServer::HandleMusicSaveLyrics(), ImportIconsWizard::ImportIconsWizard(), 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(), Ripper::Ripper(), NAMThread::run(), CDRipperThread::run(), MythDownloadManager::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(), and Ripper::~Ripper().

◆ GetFontsDir()

QString GetFontsDir ( void  )

Definition at line 353 of file mythdirs.cpp.

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

◆ GetInstallPrefix()

QString GetInstallPrefix ( void  )

Definition at line 278 of file mythdirs.cpp.

Referenced by getDBParamters().

◆ GetLibraryDir()

QString GetLibraryDir ( void  )

Definition at line 281 of file mythdirs.cpp.

◆ GetPluginsDir()

QString GetPluginsDir ( void  )

Definition at line 284 of file mythdirs.cpp.

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

◆ GetPluginsNameFilter()

QString GetPluginsNameFilter ( void  )

Definition at line 332 of file mythdirs.cpp.

Referenced by MythPluginManager::MythPluginManager().

◆ 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 298 of file mythdirs.cpp.

Referenced by PreviewGeneratorQueue::GeneratePreviewImage(), MythUIHelper::getMythUI(), MythUIThemeCache::UpdateImageCache(), and MythUIThemeCache::~MythUIThemeCache().

◆ GetShareDir()

QString GetShareDir ( void  )

◆ 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 314 of file mythdirs.cpp.

Referenced by MythUIThemeCache::ClearOldImageCache(), MythUIHelper::getMythUI(), MythUIThemeCache::GetThemeCacheDir(), and MythUIThemeCache::RemoveCacheDir().

◆ GetThemesParentDir()

QString GetThemesParentDir ( void  )

◆ 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 306 of file mythdirs.cpp.

Referenced by MythUIThemeCache::GetCacheDirByUrl(), MythUIHelper::getMythUI(), MythUIThemeCache::UpdateImageCache(), and MythUIThemeCache::~MythUIThemeCache().

◆ GetTranslationsDir()

QString GetTranslationsDir ( void  )

◆ GetTranslationsNameFilter()

QString GetTranslationsNameFilter ( void  )

Definition at line 342 of file mythdirs.cpp.

◆ InitializeMythDirs()

void InitializeMythDirs ( void  )

Definition at line 35 of file mythdirs.cpp.

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

Variable Documentation

◆ appbindir

QString appbindir
static

Definition at line 23 of file mythdirs.cpp.

Referenced by GetAppBinDir(), and InitializeMythDirs().

◆ cachedir

QString cachedir
static

Definition at line 30 of file mythdirs.cpp.

Referenced by GetCacheDir(), and InitializeMythDirs().

◆ confdir

QString confdir
static

Definition at line 26 of file mythdirs.cpp.

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

◆ installprefix

QString installprefix
static

Definition at line 22 of file mythdirs.cpp.

Referenced by GetInstallPrefix(), and InitializeMythDirs().

◆ kPluginLibPrefix

const QString kPluginLibPrefix = "lib"
static

Definition at line 322 of file mythdirs.cpp.

Referenced by FindPluginName(), and GetPluginsNameFilter().

◆ kPluginLibSuffix

const QString kPluginLibSuffix = ".dll"
static

Definition at line 323 of file mythdirs.cpp.

Referenced by FindPluginName(), and GetPluginsNameFilter().

◆ libdir

QString libdir
static

Definition at line 25 of file mythdirs.cpp.

Referenced by GetLibraryDir(), and InitializeMythDirs().

◆ pluginsdir

QString pluginsdir
static

Definition at line 28 of file mythdirs.cpp.

Referenced by GetPluginsDir(), and InitializeMythDirs().

◆ remotecachedir

QString remotecachedir
static

◆ sharedir

QString sharedir
static

Definition at line 24 of file mythdirs.cpp.

Referenced by GetShareDir(), and InitializeMythDirs().

◆ themebasecachedir

QString themebasecachedir
static

Definition at line 32 of file mythdirs.cpp.

Referenced by GetThemeBaseCacheDir(), and InitializeMythDirs().

◆ themedir

QString themedir
static

◆ thumbnaildir

QString thumbnaildir
static

Definition at line 33 of file mythdirs.cpp.

Referenced by GetThumbnailDir(), and InitializeMythDirs().

◆ translationsdir

QString translationsdir
static

Definition at line 29 of file mythdirs.cpp.

Referenced by GetTranslationsDir(), and InitializeMythDirs().