MythTV  master
Classes | Functions
videolist.cpp File Reference
#include <algorithm>
#include <iterator>
#include <map>
#include <utility>
#include <QFileInfo>
#include <QList>
#include <QScopedPointer>
#include "libmythbase/mythcorecontext.h"
#include "libmythbase/mythdate.h"
#include "libmythbase/mythlogging.h"
#include "libmythbase/stringutil.h"
#include "libmythui/mythgenerictree.h"
#include "libmythmetadata/videometadatalistmanager.h"
#include "libmythmetadata/dbaccess.h"
#include "libmythmetadata/quicksp.h"
#include "libmythmetadata/dirscan.h"
#include "libmythmetadata/videoutils.h"
#include "libmythmetadata/parentalcontrols.h"
#include "upnpscanner.h"
#include "videodlg.h"
#include "videofilter.h"
#include "videolist.h"
Include dependency graph for videolist.cpp:

Go to the source code of this file.

Classes

class  TreeNodeDataPrivate
 
struct  metadata_sort
 metadata sort function More...
 
struct  metadata_path_sort
 
struct  to_metadata_ptr
 
class  VideoListImp
 
struct  call_tree_flat
 
class  dirhandler
 

Functions

static QString path_to_node_name (const QString &path)
 
static meta_dir_nodeAddMetadataToDir (VideoMetadata *metadata, meta_dir_node *dir, meta_dir_node *hint=nullptr)
 
static MythGenericTreeAddDirNode (MythGenericTree *where_to_add, const QString &name, QString fqPath, bool add_up_dirs, QString host="", QString prefix="")
 
int AddFileNode (MythGenericTree *where_to_add, const QString &name, VideoMetadata *metadata)
 
static void copy_entries (meta_dir_node &dst, meta_dir_node &src, const VideoFilterSettings &filter)
 
static void copy_filtered_tree (meta_dir_node &dst, meta_dir_node &src, const VideoFilterSettings &filter)
 
void tree_view_to_flat (meta_dir_node &tree, VideoListImp::metadata_view_list &flat)
 

Function Documentation

◆ path_to_node_name()

static QString path_to_node_name ( const QString &  path)
static

Definition at line 204 of file videolist.cpp.

Referenced by VideoListImp::buildFsysList().

◆ AddMetadataToDir()

static meta_dir_node* AddMetadataToDir ( VideoMetadata metadata,
meta_dir_node dir,
meta_dir_node hint = nullptr 
)
static

Definition at line 216 of file videolist.cpp.

Referenced by VideoListImp::buildDbList().

◆ AddDirNode()

static MythGenericTree* AddDirNode ( MythGenericTree where_to_add,
const QString &  name,
QString  fqPath,
bool  add_up_dirs,
QString  host = "",
QString  prefix = "" 
)
static

Definition at line 280 of file videolist.cpp.

Referenced by VideoListImp::build_generic_tree().

◆ AddFileNode()

int AddFileNode ( MythGenericTree where_to_add,
const QString &  name,
VideoMetadata metadata 
)

Definition at line 304 of file videolist.cpp.

Referenced by VideoListImp::build_generic_tree().

◆ copy_entries()

static void copy_entries ( meta_dir_node dst,
meta_dir_node src,
const VideoFilterSettings filter 
)
static

Definition at line 1050 of file videolist.cpp.

Referenced by copy_filtered_tree().

◆ copy_filtered_tree()

static void copy_filtered_tree ( meta_dir_node dst,
meta_dir_node src,
const VideoFilterSettings filter 
)
static

Definition at line 1063 of file videolist.cpp.

Referenced by VideoListImp::update_meta_view().

◆ tree_view_to_flat()

void tree_view_to_flat ( meta_dir_node tree,
VideoListImp::metadata_view_list flat 
)

Definition at line 1097 of file videolist.cpp.

Referenced by call_tree_flat::operator()(), and VideoListImp::update_meta_view().