MythTV  master
Functions | Variables
mythplugins/mythmusic/mythmusic/main.cpp File Reference
#include <cstdlib>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <QDir>
#include <QApplication>
#include <QRegExp>
#include <QScopedPointer>
#include <mythcontext.h>
#include <mythplugin.h>
#include <mythmediamonitor.h>
#include <mythdbcon.h>
#include <mythdb.h>
#include <mythpluginapi.h>
#include <mythversion.h>
#include <myththemedmenu.h>
#include <compat.h>
#include <mythuihelper.h>
#include <mythprogressdialog.h>
#include <lcddevice.h>
#include <musicmetadata.h>
#include <musicutils.h>
#include <musicfilescanner.h>
#include "musicdata.h"
#include "decoder.h"
#include "cddecoder.h"
#include "playlisteditorview.h"
#include "playlistview.h"
#include "streamview.h"
#include "playlistcontainer.h"
#include "dbcheck.h"
#include "musicplayer.h"
#include "config.h"
#include "mainvisual.h"
#include "generalsettings.h"
#include "playersettings.h"
#include "visualizationsettings.h"
#include "importsettings.h"
#include "ratingsettings.h"
#include "importmusic.h"
#include "metaio.h"
Include dependency graph for mythplugins/mythmusic/mythmusic/main.cpp:

Go to the source code of this file.

Functions

static bool checkStorageGroup (void)
 checks we have at least one music directory in the 'Music' storage group More...
 
static bool checkMusicAvailable (void)
 checks we have some tracks available More...
 
static void startPlayback (void)
 
static void startStreamPlayback (void)
 
static void startDatabaseTree (void)
 
static void startRipper (void)
 
static void runScan (void)
 
static void startImport (void)
 
static void MusicCallback (void *data, QString &selection)
 
static int runMenu (const QString &which_menu)
 
static void runMusicPlayback (void)
 
static void runMusicStreamPlayback (void)
 
static void runMusicSelection (void)
 
static void runRipCD (void)
 
static void showMiniPlayer (void)
 
static QStringList GetMusicFilter ()
 
static QStringList BuildFileList (const QString &dir, const QStringList &filters)
 
static void handleMedia (MythMediaDevice *cd)
 
static void handleCDMedia (MythMediaDevice *)
 
static void setupKeys (void)
 
int mythplugin_init (const char *libversion)
 
int mythplugin_run (void)
 
int mythplugin_config (void)
 
void mythplugin_destroy (void)
 

Variables

static void(* m_callback )(void *, QString &) = nullptr
 
static void * m_callbackdata = nullptr
 

Function Documentation

◆ checkStorageGroup()

static bool checkStorageGroup ( void  )
static

checks we have at least one music directory in the 'Music' storage group

Definition at line 72 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by runScan(), startDatabaseTree(), startImport(), startPlayback(), and startRipper().

◆ checkMusicAvailable()

static bool checkMusicAvailable ( void  )
static

checks we have some tracks available

Definition at line 125 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by startDatabaseTree(), and startPlayback().

◆ startPlayback()

static void startPlayback ( void  )
static

Definition at line 149 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by MusicCallback(), and runMusicPlayback().

◆ startStreamPlayback()

static void startStreamPlayback ( void  )
static

◆ startDatabaseTree()

static void startDatabaseTree ( void  )
static

Definition at line 180 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by MusicCallback(), and runMusicSelection().

◆ startRipper()

static void startRipper ( void  )
static

Definition at line 198 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by MusicCallback().

◆ runScan()

static void runScan ( void  )
static

Definition at line 227 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by MusicCallback(), and setupKeys().

◆ startImport()

static void startImport ( void  )
static

Definition at line 237 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by MusicCallback().

◆ MusicCallback()

static void MusicCallback ( void *  data,
QString &  selection 
)
static

Definition at line 263 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by runMenu().

◆ runMenu()

static int runMenu ( const QString &  which_menu)
static

Definition at line 346 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by mythplugin_config(), and mythplugin_run().

◆ runMusicPlayback()

static void runMusicPlayback ( void  )
static

Definition at line 393 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by handleMedia(), and setupKeys().

◆ runMusicStreamPlayback()

static void runMusicStreamPlayback ( void  )
static

Definition at line 400 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by setupKeys().

◆ runMusicSelection()

static void runMusicSelection ( void  )
static

Definition at line 407 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by setupKeys().

◆ runRipCD()

static void runRipCD ( void  )
static

Definition at line 414 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by setupKeys().

◆ showMiniPlayer()

static void showMiniPlayer ( void  )
static

Definition at line 437 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by setupKeys().

◆ GetMusicFilter()

static QStringList GetMusicFilter ( )
static

Definition at line 447 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by handleMedia().

◆ BuildFileList()

static QStringList BuildFileList ( const QString &  dir,
const QStringList &  filters 
)
static

Definition at line 454 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by handleMedia().

◆ handleMedia()

static void handleMedia ( MythMediaDevice cd)
static

Definition at line 488 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by setupKeys().

◆ handleCDMedia()

static void handleCDMedia ( MythMediaDevice )
static

Definition at line 785 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by setupKeys().

◆ setupKeys()

static void setupKeys ( void  )
static

Definition at line 792 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by mythplugin_init().

◆ mythplugin_init()

int mythplugin_init ( const char *  libversion)

Definition at line 877 of file mythplugins/mythmusic/mythmusic/main.cpp.

◆ mythplugin_run()

int mythplugin_run ( void  )

Definition at line 903 of file mythplugins/mythmusic/mythmusic/main.cpp.

◆ mythplugin_config()

int mythplugin_config ( void  )

Definition at line 908 of file mythplugins/mythmusic/mythmusic/main.cpp.

◆ mythplugin_destroy()

void mythplugin_destroy ( void  )

Definition at line 913 of file mythplugins/mythmusic/mythmusic/main.cpp.

Variable Documentation

◆ m_callback

void(* m_callback) (void *, QString &) = nullptr
static

Definition at line 260 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by MusicCallback(), and runMenu().

◆ m_callbackdata

void* m_callbackdata = nullptr
static

Definition at line 261 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by MusicCallback(), and runMenu().