MythTV  master
Functions | Variables
mythtv/programs/mythtv-setup/main.cpp File Reference
#include <unistd.h>
#include <fcntl.h>
#include <iostream>
#include <memory>
#include <QString>
#include <QDir>
#include <QMap>
#include <QApplication>
#include <QFileInfo>
#include "mythconfig.h"
#include "mythcontext.h"
#include "mythdbcon.h"
#include "dbutil.h"
#include "loggingserver.h"
#include "mythlogging.h"
#include "mythversion.h"
#include "langsettings.h"
#include "mythtranslation.h"
#include "exitcodes.h"
#include "exitprompt.h"
#include "storagegroupeditor.h"
#include "myththemedmenu.h"
#include "mythuihelper.h"
#include "mythdirs.h"
#include "channelscanner_cli.h"
#include "scanwizardconfig.h"
#include "scaninfo.h"
#include "channelimporter.h"
#include "cardutil.h"
#include "dbcheck.h"
#include "videosource.h"
#include "channeleditor.h"
#include "remoteutil.h"
#include "backendsettings.h"
#include "checksetup.h"
#include "startprompt.h"
#include "mythsystemevent.h"
#include "expertsettingseditor.h"
#include "commandlineparser.h"
#include "profilegroup.h"
#include "signalhandling.h"
#include "mythmiscutil.h"
#include "ssdp.h"
#include "cleanupguard.h"
Include dependency graph for mythtv/programs/mythtv-setup/main.cpp:

Go to the source code of this file.

Functions

static void cleanup ()
 
static void SetupMenuCallback (void *, QString &selection)
 
static bool RunMenu (const QString &themedir, const QString &themename)
 
static bool resetTheme (QString themedir, const QString &badtheme)
 
static int reloadTheme (void)
 
int main (int argc, char *argv[])
 

Variables

ExitPrompterexitPrompt = nullptr
 
StartPrompterstartPrompt = nullptr
 
static MythThemedMenumenu
 
static QString logfile
 

Function Documentation

◆ cleanup()

static void cleanup ( void  )
static

Definition at line 60 of file mythtv/programs/mythtv-setup/main.cpp.

Referenced by main().

◆ SetupMenuCallback()

static void SetupMenuCallback ( void *  ,
QString &  selection 
)
static

Definition at line 72 of file mythtv/programs/mythtv-setup/main.cpp.

Referenced by RunMenu().

◆ RunMenu()

static bool RunMenu ( const QString &  themedir,
const QString &  themename 
)
static

Definition at line 180 of file mythtv/programs/mythtv-setup/main.cpp.

Referenced by main(), reloadTheme(), and resetTheme().

◆ resetTheme()

static bool resetTheme ( QString  themedir,
const QString &  badtheme 
)
static

Definition at line 203 of file mythtv/programs/mythtv-setup/main.cpp.

Referenced by main(), and reloadTheme().

◆ reloadTheme()

static int reloadTheme ( void  )
static

Definition at line 229 of file mythtv/programs/mythtv-setup/main.cpp.

Referenced by main().

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 266 of file mythtv/programs/mythtv-setup/main.cpp.

Variable Documentation

◆ exitPrompt

ExitPrompter* exitPrompt = nullptr

Definition at line 54 of file mythtv/programs/mythtv-setup/main.cpp.

Referenced by SetupMenuCallback().

◆ startPrompt

StartPrompter* startPrompt = nullptr

Definition at line 55 of file mythtv/programs/mythtv-setup/main.cpp.

Referenced by main().

◆ menu

MythThemedMenu* menu
static

Definition at line 57 of file mythtv/programs/mythtv-setup/main.cpp.

Referenced by IconView::CreateFileMenu(), LyricsView::createFindLyricsMenu(), VideoDialog::CreateInfoMenu(), PlaybackBox::createJobMenu(), MusicCommon::createMainMenu(), VideoDialog::CreateManageMenu(), IconView::CreateMarkingMenu(), VideoDialog::CreateMetadataBrowseMenu(), IconView::CreateMetadataMenu(), MusicCommon::createPlayerMenu(), PlaybackBox::createPlayFromMenu(), PlaybackBox::createPlaylistJobMenu(), MusicCommon::createPlaylistMenu(), PlaylistEditorView::createPlaylistMenu(), PlaybackBox::createPlaylistMenu(), MusicCommon::createPlaylistOptionsMenu(), PlaybackBox::createPlaylistStorageMenu(), VideoDialog::CreatePlayMenu(), MusicCommon::createQuickPlaylistsMenu(), PlaybackBox::createRecordingMenu(), MusicCommon::createRepeatMenu(), VideoDialog::CreateSettingsMenu(), NetTree::CreateShowManageMenu(), NetTree::CreateShowViewMenu(), MusicCommon::createShuffleMenu(), PlaylistEditorView::createSmartPlaylistMenu(), PlaybackBox::createStorageMenu(), MusicCommon::createSubMenu(), PlaybackBox::createTranscodingProfilesMenu(), VideoDialog::CreateViewMenu(), MusicCommon::createVisualizerMenu(), OSD::DialogAddButton(), VideoDialog::DisplayMenu(), MythThemedMenu::handleAction(), IconView::HandleMainMenu(), DVBCam::HandleUserIO(), TransportListEditor::Menu(), GalleryThumbView::MenuAction(), GallerySlideView::MenuMain(), GalleryThumbView::MenuMain(), GalleryThumbView::MenuMarked(), GalleryThumbView::MenuPaste(), GalleryThumbView::MenuShow(), GalleryThumbView::MenuSlideshow(), GalleryThumbView::MenuTransform(), GallerySlideView::MenuTransforms(), mythplugin_config(), TV::OSDDialogEvent(), TV::PlaybackMenuInit(), TV::PlaybackMenuShow(), MenuBase::ProcessIncludes(), reloadTheme(), runBurnDVD(), runMenu(), RunMenu(), MythDialogBox::SetMenuItems(), SmartPlaylistEditor::showCategoryMenu(), Ripper::ShowConflictMenu(), SmartPlaylistEditor::showCriteriaMenu(), MythWebView::showDownloadMenu(), MusicCommon::showExitMenu(), PrevRecordedList::ShowItemMenu(), VisualizerView::ShowMenu(), LyricsView::ShowMenu(), SearchView::ShowMenu(), StreamView::ShowMenu(), PrevRecordedList::ShowMenu(), PlaylistEditorView::ShowMenu(), ProgLister::ShowMenu(), ImportMusicDialog::ShowMenu(), EditMetadataDialog::showMenu(), NetTree::ShowMenu(), Ripper::ShowMenu(), EditAlbumartDialog::showMenu(), StandardSettingDialog::ShowMenu(), ProgLister::ShowOldRecordedMenu(), PlaybackSettingsDialog::ShowPlaybackProfileMenu(), MusicCommon::showPlaylistOptionsMenu(), EditMetadataCommon::showSaveMenu(), EditAlbumartDialog::showTypeMenu(), and VideoDialog::VideoMenu().

◆ logfile

QString logfile
static

Definition at line 58 of file mythtv/programs/mythtv-setup/main.cpp.