MythTV  master
dirscan.h
Go to the documentation of this file.
1 #ifndef DIRSCAN_H_
2 #define DIRSCAN_H_
3 
4 #include "mythmetaexp.h"
5 
7 {
8  public:
9  virtual ~DirectoryHandler() = default;
10  virtual DirectoryHandler *newDir(const QString &dir_name,
11  const QString &fq_dir_name) = 0;
12  virtual void handleFile(const QString &file_name,
13  const QString &fq_file_name,
14  const QString &extension,
15  const QString &host) = 0;
16 };
17 
18 META_PUBLIC bool ScanVideoDirectory(const QString &start_path, DirectoryHandler *handler,
19  const FileAssociations::ext_ignore_list &ext_disposition,
20  bool list_unknown_extensions);
21 
22 #endif // DIRSCAN_H_
std::vector< std::pair< QString, bool > > ext_ignore_list
Definition: dbaccess.h:154
META_PUBLIC bool ScanVideoDirectory(const QString &start_path, DirectoryHandler *handler, const FileAssociations::ext_ignore_list &ext_disposition, bool list_unknown_extensions)
Definition: dirscan.cpp:226
#define META_PUBLIC
Definition: mythmetaexp.h:9