MythTV  master
Functions | Variables
videodbcheck.cpp File Reference
#include <QString>
#include <QStringList>
#include "videodbcheck.h"
#include "mythdb.h"
#include "mythcorecontext.h"
#include "mythlogging.h"
#include "remotefile.h"
#include "mythmiscutil.h"
#include "libmythmetadata/videoutils.h"
Include dependency graph for videodbcheck.cpp:

Go to the source code of this file.

Functions

static bool UpdateDBVersionNumber (const QString &field_name, const QString &newnumber)
 
static bool performActualUpdate (const QStringList &updates, const QString &version, QString &dbver, const QString &field_name)
 
static bool performActualUpdate (const QString updates[], const QString &version, QString &dbver, const QString &field_name)
 
static void AddFileType (const QString &extension, const QString &playCommand=QString("Internal"), bool ignored=false, bool useDefault=false)
 
static void UpdateHashes (void)
 
static bool InitializeVideoSchema (void)
 
bool doUpgradeVideoDatabaseSchema (void)
 

Variables

const QString minimumVideoDatabaseVersion = "1016"
 
const QString finalVideoDatabaseVersion = "1038"
 
const QString MythVideoVersionName = "mythvideo.DBSchemaVer"
 

Function Documentation

◆ UpdateDBVersionNumber()

static bool UpdateDBVersionNumber ( const QString &  field_name,
const QString &  newnumber 
)
static

Definition at line 21 of file videodbcheck.cpp.

Referenced by doUpgradeVideoDatabaseSchema(), and performActualUpdate().

◆ performActualUpdate() [1/2]

static bool performActualUpdate ( const QStringList &  updates,
const QString &  version,
QString &  dbver,
const QString &  field_name 
)
static

◆ performActualUpdate() [2/2]

static bool performActualUpdate ( const QString  updates[],
const QString &  version,
QString &  dbver,
const QString &  field_name 
)
static

Definition at line 71 of file videodbcheck.cpp.

◆ AddFileType()

static void AddFileType ( const QString &  extension,
const QString &  playCommand = QString("Internal"),
bool  ignored = false,
bool  useDefault = false 
)
static

Definition at line 84 of file videodbcheck.cpp.

Referenced by doUpgradeVideoDatabaseSchema().

◆ UpdateHashes()

static void UpdateHashes ( void  )
static

Definition at line 107 of file videodbcheck.cpp.

Referenced by doUpgradeVideoDatabaseSchema().

◆ InitializeVideoSchema()

static bool InitializeVideoSchema ( void  )
static

Definition at line 150 of file videodbcheck.cpp.

Referenced by doUpgradeVideoDatabaseSchema().

◆ doUpgradeVideoDatabaseSchema()

bool doUpgradeVideoDatabaseSchema ( void  )

Definition at line 345 of file videodbcheck.cpp.

Referenced by doUpgradeTVDatabaseSchema().

Variable Documentation

◆ minimumVideoDatabaseVersion

const QString minimumVideoDatabaseVersion = "1016"

Definition at line 17 of file videodbcheck.cpp.

Referenced by doUpgradeVideoDatabaseSchema().

◆ finalVideoDatabaseVersion

const QString finalVideoDatabaseVersion = "1038"

Definition at line 18 of file videodbcheck.cpp.

Referenced by doUpgradeVideoDatabaseSchema(), and InitializeVideoSchema().

◆ MythVideoVersionName

const QString MythVideoVersionName = "mythvideo.DBSchemaVer"

Definition at line 19 of file videodbcheck.cpp.

Referenced by doUpgradeVideoDatabaseSchema(), and InitializeVideoSchema().