MythTV  master
Functions | Variables
mythdirs.cpp File Reference
#include <iostream>
#include <cstdlib>
#include <QDir>
#include <QCoreApplication>
#include "mythconfig.h"
#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 30 of file mythdirs.cpp.

Referenced by MythContextPrivate::MythContextPrivate().

◆ GetInstallPrefix()

QString GetInstallPrefix ( void  )

Definition at line 220 of file mythdirs.cpp.

Referenced by getDBParamters().

◆ GetAppBinDir()

QString GetAppBinDir ( void  )

◆ GetShareDir()

QString GetShareDir ( void  )

◆ GetLibraryDir()

QString GetLibraryDir ( void  )

Definition at line 223 of file mythdirs.cpp.

◆ GetConfDir()

QString GetConfDir ( void  )

Definition at line 224 of file mythdirs.cpp.

Referenced by BDInfo::BDInfo(), ImageSearchResultsDialog::cleanCacheDir(), NetBase::CleanCacheDir(), MetadataResultsDialog::cleanCacheDir(), cleanThumbnailCacheDir(), DecoderHandler::createPlaylistFromRemoteUrl(), ThemeChooser::customEvent(), RSSEditPopup::DoFileBrowser(), 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(), ThumbGenerator::getThumbcacheDir(), GetThumbnailFilename(), Channel::GetXMLTVIdList(), FillData::GrabData(), MainServer::HandleMusicSaveLyrics(), ImportIconsWizard::ImportIconsWizard(), MythUIWebBrowser::Init(), ImportIconsWizard::initialLoad(), ChannelEditor::itemChanged(), MythLocale::LoadDefaultsFromXML(), MythBurn::loadEncoderProfiles(), MenuBase::LoadFileHelper(), MHIContext::LoadFont(), MythRAOPConnection::LoadKey(), ThemeUpdateTask::LoadVersion(), ThemeChooser::LoadVersion(), main(), MythMainWindow::MythMainWindow(), MythNews::MythNews(), BlurayMetadata::OpenDisc(), BDRingBuffer::OpenFile(), Device::RemoveThumbs(), GalleryUtil::Rename(), GalleryUtil::RenameDirectory(), Ripper::Ripper(), MythDownloadManager::run(), CDRipperThread::run(), NAMThread::run(), ThemeChooser::saveAndReload(), PreviewGenerator::SaveOutFile(), MythContextPrivate::saveSettingsCache(), EditMetadataCommon::searchForAlbumImages(), EditMetadataDialog::searchForArtistImages(), EditMetadataDialog::searchForGenreImages(), MythUIWebBrowser::SetDefaultSaveDirectory(), SetupIconCacheDirectory(), NetBase::ShowWebVideo(), MythMainWindow::StartLIRC(), StorageGroup::StaticInit(), WeatherSource::WeatherSource(), HardwareProfile::WritePrivateUUIDToFile(), XmlConfiguration::XmlConfiguration(), XMLTV_generic_config::XMLTV_generic_config(), MythWebPage::~MythWebPage(), and Ripper::~Ripper().

◆ GetThemesParentDir()

QString GetThemesParentDir ( void  )

◆ GetPluginsDir()

QString GetPluginsDir ( void  )

Definition at line 226 of file mythdirs.cpp.

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

◆ GetTranslationsDir()

QString GetTranslationsDir ( void  )

◆ GetFiltersDir()

QString GetFiltersDir ( void  )

Definition at line 228 of file mythdirs.cpp.

Referenced by FilterManager::FilterManager().

◆ GetCacheDir()

QString GetCacheDir ( void  )

Returns the base directory for all cached files.

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

Definition at line 234 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 241 of file mythdirs.cpp.

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

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

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

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

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

◆ GetFiltersNameFilter()

QString GetFiltersNameFilter ( void  )

Definition at line 283 of file mythdirs.cpp.

Referenced by FilterManager::FilterManager().

◆ GetPluginsNameFilter()

QString GetPluginsNameFilter ( void  )

Definition at line 288 of file mythdirs.cpp.

Referenced by MythPluginManager::MythPluginManager().

◆ FindPluginName()

QString FindPluginName ( const QString &  plugname)

◆ GetTranslationsNameFilter()

QString GetTranslationsNameFilter ( void  )

Definition at line 298 of file mythdirs.cpp.

◆ FindTranslation()

QString FindTranslation ( const QString &  translation)

Definition at line 303 of file mythdirs.cpp.

◆ GetFontsDir()

QString GetFontsDir ( void  )

Definition at line 309 of file mythdirs.cpp.

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

Variable Documentation

◆ installprefix

QString installprefix
static

Definition at line 16 of file mythdirs.cpp.

Referenced by GetInstallPrefix(), and InitializeMythDirs().

◆ appbindir

QString appbindir
static

Definition at line 17 of file mythdirs.cpp.

Referenced by GetAppBinDir(), and InitializeMythDirs().

◆ sharedir

QString sharedir
static

Definition at line 18 of file mythdirs.cpp.

Referenced by GetShareDir(), and InitializeMythDirs().

◆ libdir

QString libdir
static

Definition at line 19 of file mythdirs.cpp.

Referenced by GetLibraryDir(), and InitializeMythDirs().

◆ confdir

QString confdir
static

Definition at line 20 of file mythdirs.cpp.

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

◆ themedir

QString themedir
static

◆ pluginsdir

QString pluginsdir
static

Definition at line 22 of file mythdirs.cpp.

Referenced by GetPluginsDir(), and InitializeMythDirs().

◆ translationsdir

QString translationsdir
static

Definition at line 23 of file mythdirs.cpp.

Referenced by GetTranslationsDir(), and InitializeMythDirs().

◆ filtersdir

QString filtersdir
static

Definition at line 24 of file mythdirs.cpp.

Referenced by GetFiltersDir(), and InitializeMythDirs().

◆ cachedir

QString cachedir
static

Definition at line 25 of file mythdirs.cpp.

Referenced by GetCacheDir(), and InitializeMythDirs().

◆ remotecachedir

QString remotecachedir
static

◆ themebasecachedir

QString themebasecachedir
static

Definition at line 27 of file mythdirs.cpp.

Referenced by GetThemeBaseCacheDir(), and InitializeMythDirs().

◆ thumbnaildir

QString thumbnaildir
static

Definition at line 28 of file mythdirs.cpp.

Referenced by GetThumbnailDir(), and InitializeMythDirs().

◆ kPluginLibPrefix

const QString kPluginLibPrefix = "lib"
static

Definition at line 267 of file mythdirs.cpp.

Referenced by FindPluginName(), and GetPluginsNameFilter().

◆ kPluginLibSuffix

const QString kPluginLibSuffix = ".dll"
static

Definition at line 268 of file mythdirs.cpp.

Referenced by FindPluginName(), and GetPluginsNameFilter().

◆ kFilterLibPrefix

const QString kFilterLibPrefix = "lib"
static

Definition at line 269 of file mythdirs.cpp.

Referenced by GetFiltersNameFilter().

◆ kFilterLibSuffix

const QString kFilterLibSuffix = ".dll"
static

Definition at line 270 of file mythdirs.cpp.

Referenced by GetFiltersNameFilter().