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

Go to the source code of this file.

Functions

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

std::vector< ArchiveDestinationArchiveDestinations
 

Function Documentation

◆ getTempDirectory()

QString getTempDirectory ( bool  showError)

◆ checkTempDirectory()

void checkTempDirectory ( )

Definition at line 70 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 133 of file archiveutil.cpp.

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

◆ getProgramInfoForFile()

ProgramInfo* getProgramInfoForFile ( const QString &  inFile)

Definition at line 163 of file archiveutil.cpp.

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

◆ getFileDetails()

bool getFileDetails ( ArchiveItem a)

Definition at line 199 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

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

Definition at line 27 of file archiveutil.cpp.

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

AD_DVD_SL
@ AD_DVD_SL
Definition: archiveutil.h:18
AD_DVD_RW
@ AD_DVD_RW
Definition: archiveutil.h:20
AD_DVD_DL
@ AD_DVD_DL
Definition: archiveutil.h:19
AD_FILE
@ AD_FILE
Definition: archiveutil.h:21