305 |
* @param pProgress The progress used to monitor the scan process. |
* @param pProgress The progress used to monitor the scan process. |
306 |
* @throws Exception if the operation failed. |
* @throws Exception if the operation failed. |
307 |
*/ |
*/ |
308 |
void AddInstruments(String DbDir, String FilePath, int Index = -1, ScanProgress* pProgress = NULL); |
void AddInstruments(String DbDir, bool insDir, String FilePath, int Index = -1, ScanProgress* pProgress = NULL); |
309 |
|
|
310 |
/** |
/** |
311 |
* Adds all supported instruments in the specified file system |
* Adds all supported instruments in the specified file system |
331 |
* @param bBackground Determines whether |
* @param bBackground Determines whether |
332 |
* the task should be done in the background. |
* the task should be done in the background. |
333 |
* @returns If bBackground is true, the ID of the scan job; |
* @returns If bBackground is true, the ID of the scan job; |
334 |
|
* @param insDir if true a directory is added for each instrument file |
335 |
* -1 otherwise. |
* -1 otherwise. |
336 |
* @throws Exception if the operation failed. |
* @throws Exception if the operation failed. |
337 |
*/ |
*/ |
338 |
int AddInstruments(ScanMode Mode, String DbDir, String FsDir, bool bBackground); |
int AddInstruments(ScanMode Mode, String DbDir, String FsDir, bool bBackground, bool insDir = false); |
339 |
|
|
340 |
/** |
/** |
341 |
* Gets the number of instruments in the specified directory. |
* Gets the number of instruments in the specified directory. |
701 |
* All slashes in the directory names should be replaced with '\0'. |
* All slashes in the directory names should be replaced with '\0'. |
702 |
* @param FsDir The absolute path name of a directory in the file |
* @param FsDir The absolute path name of a directory in the file |
703 |
* system. |
* system. |
704 |
|
* @param insDir If true a directory will be create for each gig file |
705 |
* @param pProgress The progress used to monitor the scan process. |
* @param pProgress The progress used to monitor the scan process. |
706 |
* @throws Exception if the operation failed. |
* @throws Exception if the operation failed. |
707 |
*/ |
*/ |
708 |
void AddInstrumentsNonrecursive(String DbDir, String FsDir, ScanProgress* pProgress = NULL); |
void AddInstrumentsNonrecursive(String DbDir, String FsDir, bool insDir = false, ScanProgress* pProgress = NULL); |
709 |
|
|
710 |
/** |
/** |
711 |
* Adds all supported instruments in the specified file system |
* Adds all supported instruments in the specified file system |
724 |
* @param pProgress The progress used to monitor the scan process. |
* @param pProgress The progress used to monitor the scan process. |
725 |
* @throws Exception if the operation failed. |
* @throws Exception if the operation failed. |
726 |
*/ |
*/ |
727 |
void AddInstrumentsRecursive(String DbDir, String FsDir, bool Flat = false, ScanProgress* pProgress = NULL); |
void AddInstrumentsRecursive(String DbDir, String FsDir, bool Flat = false, bool insDir = false, ScanProgress* pProgress = NULL); |
728 |
|
|
729 |
/** |
/** |
730 |
* Adds the instruments in the specified file |
* Adds the instruments in the specified file |