MythTV  master
Functions | Variables
archiveutil.cpp File Reference
#include <cerrno>
#include <cstdlib>
#include <iostream>
#include <sys/stat.h>
#include <unistd.h>
#include <QDomDocument>
#include <QDir>
#include <QCoreApplication>
#include <mythcontext.h>
#include <programinfo.h>
#include <mythmainwindow.h>
#include <mythdialogbox.h>
#include <mythdate.h>
#include <mythsystemlegacy.h>
#include <exitcodes.h>
#include <mythlogging.h>
#include "archiveutil.h"
Include dependency graph for archiveutil.cpp:

Go to the source code of this file.

Functions

QString formatSize (int64_t sizeKB, int prec)
 
QString getTempDirectory (bool showError)
 
void checkTempDirectory ()
 
QString getBaseName (const QString &filename)
 
bool extractDetailsFromFilename (const QString &inFile, QString &chanID, QString &startTime)
 
ProgramInfogetProgramInfoForFile (const QString &inFile)
 
bool getFileDetails (ArchiveItem *a)
 
void showWarningDialog (const QString &msg)
 
void recalcItemSize (ArchiveItem *item)
 

Variables

struct ArchiveDestination ArchiveDestinations []
 
int ArchiveDestinationsCount = sizeof(ArchiveDestinations) / sizeof(ArchiveDestinations[0])
 

Function Documentation

◆ formatSize()

QString formatSize ( int64_t  sizeKB,
int  prec 
)

Definition at line 50 of file archiveutil.cpp.

◆ getTempDirectory()

QString getTempDirectory ( bool  showError)

◆ checkTempDirectory()

void checkTempDirectory ( )

Definition at line 93 of file archiveutil.cpp.

Referenced by runCreateArchive(), runCreateDVD(), and runImportVideo().

◆ getBaseName()

QString getBaseName ( const QString &  filename)

◆ extractDetailsFromFilename()

bool extractDetailsFromFilename ( const QString &  inFile,
QString &  chanID,
QString &  startTime 
)

Definition at line 150 of file archiveutil.cpp.

Referenced by NativeArchive::exportRecording(), and getProgramInfoForFile().

◆ getProgramInfoForFile()

ProgramInfo* getProgramInfoForFile ( const QString &  inFile)

Definition at line 180 of file archiveutil.cpp.

Referenced by getCutFrames(), getFrameCount(), and ThumbFinder::loadCutList().

◆ getFileDetails()

bool getFileDetails ( ArchiveItem a)

Definition at line 215 of file archiveutil.cpp.

Referenced by ThumbFinder::getThumbImages(), and MythBurn::updateArchiveList().

◆ showWarningDialog()

void showWarningDialog ( const QString &  msg)

◆ recalcItemSize()

void recalcItemSize ( ArchiveItem item)

Variable Documentation

◆ ArchiveDestinations

struct ArchiveDestination ArchiveDestinations[]
Initial value:
=
{
QT_TRANSLATE_NOOP("SelectDestination", "Single Layer DVD"),
QT_TRANSLATE_NOOP("SelectDestination", "Single Layer DVD (4,482 MB)"),
4482*1024},
QT_TRANSLATE_NOOP("SelectDestination", "Dual Layer DVD"),
QT_TRANSLATE_NOOP("SelectDestination", "Dual Layer DVD (8,964 MB)"),
8964*1024},
QT_TRANSLATE_NOOP("SelectDestination", "DVD +/- RW"),
QT_TRANSLATE_NOOP("SelectDestination", "Rewritable DVD"),
4482*1024},
QT_TRANSLATE_NOOP("SelectDestination", "File"),
QT_TRANSLATE_NOOP("SelectDestination", "Any file accessable from your filesystem."),
-1},
}

Definition at line 28 of file archiveutil.cpp.

Referenced by SelectDestination::Create(), and SelectDestination::setDestination().

◆ ArchiveDestinationsCount

int ArchiveDestinationsCount = sizeof(ArchiveDestinations) / sizeof(ArchiveDestinations[0])

Definition at line 48 of file archiveutil.cpp.

Referenced by SelectDestination::Create(), and SelectDestination::setDestination().