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 <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 "musicdbcheck.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 71 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 124 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by startDatabaseTree(), and startPlayback().

◆ startPlayback()

static void startPlayback ( void  )
static

Definition at line 148 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 179 of file mythplugins/mythmusic/mythmusic/main.cpp.

Referenced by MusicCallback(), and runMusicSelection().

◆ startRipper()

static void startRipper ( void  )
static

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

Referenced by MusicCallback().

◆ runScan()

static void runScan ( void  )
static

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

Referenced by MusicCallback(), and setupKeys().

◆ startImport()

static void startImport ( void  )
static

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

Referenced by MusicCallback().

◆ MusicCallback()

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

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

Referenced by runMenu().

◆ runMenu()

static int runMenu ( const QString &  which_menu)
static

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

Referenced by mythplugin_config(), and mythplugin_run().

◆ runMusicPlayback()

static void runMusicPlayback ( void  )
static

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

Referenced by handleMedia(), and setupKeys().

◆ runMusicStreamPlayback()

static void runMusicStreamPlayback ( void  )
static

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

Referenced by setupKeys().

◆ runMusicSelection()

static void runMusicSelection ( void  )
static

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

Referenced by setupKeys().

◆ runRipCD()

static void runRipCD ( void  )
static

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

Referenced by setupKeys().

◆ showMiniPlayer()

static void showMiniPlayer ( void  )
static

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

Referenced by setupKeys().

◆ GetMusicFilter()

static QStringList GetMusicFilter ( )
static

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

Referenced by handleMedia().

◆ BuildFileList()

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

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

Referenced by handleMedia().

◆ handleMedia()

static void handleMedia ( MythMediaDevice cd)
static

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

Referenced by setupKeys().

◆ handleCDMedia()

static void handleCDMedia ( MythMediaDevice )
static

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

Referenced by setupKeys().

◆ setupKeys()

static void setupKeys ( void  )
static

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

Referenced by mythplugin_init().

◆ mythplugin_init()

int mythplugin_init ( const char *  libversion)

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

◆ mythplugin_run()

int mythplugin_run ( void  )

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

◆ mythplugin_config()

int mythplugin_config ( void  )

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

◆ mythplugin_destroy()

void mythplugin_destroy ( void  )

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

Variable Documentation

◆ m_callback

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

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

Referenced by MusicCallback(), and runMenu().

◆ m_callbackdata

void* m_callbackdata = nullptr
static

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

Referenced by MusicCallback(), and runMenu().