433 |
* that match the search query. |
* that match the search query. |
434 |
*/ |
*/ |
435 |
StringListPtr FindInstruments(String Dir, SearchQuery* pQuery, bool Recursive); |
StringListPtr FindInstruments(String Dir, SearchQuery* pQuery, bool Recursive); |
436 |
|
|
437 |
|
/** |
438 |
|
* Checks all instrument files in the database and returns a list |
439 |
|
* of all files that dosn't exist in the filesystem. |
440 |
|
* @throws Exception - if database error occurs. |
441 |
|
* @returns The absolute path names of all lost instrument files. |
442 |
|
*/ |
443 |
|
StringListPtr FindLostInstrumentFiles(); |
444 |
|
|
445 |
|
/** |
446 |
|
* Substitutes all occurrences of the instrument file |
447 |
|
* OldPath in the database, with NewPath. |
448 |
|
* @throws Exception - If error occurs. |
449 |
|
*/ |
450 |
|
void SetInstrumentFilePath(String OldPath, String NewPath); |
451 |
|
|
452 |
|
/** |
453 |
|
* Gets a list of all instruments in the instruments database |
454 |
|
* that are located in the specified instrument file. |
455 |
|
* @param File The absolute path name of the instrument file. |
456 |
|
* @throws Exception If database error occurs. |
457 |
|
*/ |
458 |
|
StringListPtr GetInstrumentsByFile(String File); |
459 |
|
|
460 |
/** |
/** |
461 |
* Removes the old instruments datbase and re-creates |
* Removes the old instruments datbase and re-creates |
475 |
* <CR> and <LF> are replaced with \r and \n. |
* <CR> and <LF> are replaced with \r and \n. |
476 |
*/ |
*/ |
477 |
static String toEscapedText(String text); |
static String toEscapedText(String text); |
478 |
|
|
479 |
|
static String toNonEscapedText(String text); |
480 |
|
|
481 |
JobList Jobs; |
JobList Jobs; |
482 |
|
|
548 |
int GetDirectoryId(int ParentDirId, String DirName); |
int GetDirectoryId(int ParentDirId, String DirName); |
549 |
|
|
550 |
/** |
/** |
551 |
|
* Gets the ID of the directory, in which the specified instrument is located. |
552 |
|
* @param InstrId The ID of the instrument. |
553 |
|
* @returns The directory ID or -1 if the directory is not found. |
554 |
|
* @throws Exception - if database error occurs. |
555 |
|
*/ |
556 |
|
int GetDirectoryId(int InstrId); |
557 |
|
|
558 |
|
/** |
559 |
* Gets the name of the specified directory. |
* Gets the name of the specified directory. |
560 |
* @throws Exception - if the directory is not found |
* @throws Exception - if the directory is not found |
561 |
* or if database error occurs. |
* or if database error occurs. |
787 |
void ExecSql(String Sql, String Param); |
void ExecSql(String Sql, String Param); |
788 |
|
|
789 |
/** |
/** |
790 |
|
* Used to execute SQL commands which return empty result set. |
791 |
|
*/ |
792 |
|
void ExecSql(String Sql, std::vector<String>& Params); |
793 |
|
|
794 |
|
/** |
795 |
* Used to execute SQL commands which returns integer. |
* Used to execute SQL commands which returns integer. |
796 |
*/ |
*/ |
797 |
int ExecSqlInt(String Sql); |
int ExecSqlInt(String Sql); |
802 |
int ExecSqlInt(String Sql, String Param); |
int ExecSqlInt(String Sql, String Param); |
803 |
|
|
804 |
/** |
/** |
805 |
* Used to execute SQL commands which returns integer. |
* Used to execute SQL commands which returns string. |
806 |
*/ |
*/ |
807 |
String ExecSqlString(String Sql); |
String ExecSqlString(String Sql); |
808 |
|
|
812 |
IntListPtr ExecSqlIntList(String Sql); |
IntListPtr ExecSqlIntList(String Sql); |
813 |
|
|
814 |
/** |
/** |
815 |
|
* Used to execute SQL commands which returns integer list. |
816 |
|
*/ |
817 |
|
IntListPtr ExecSqlIntList(String Sql, String Param); |
818 |
|
|
819 |
|
/** |
820 |
|
* Used to execute SQL commands which returns integer list. |
821 |
|
*/ |
822 |
|
IntListPtr ExecSqlIntList(String Sql, std::vector<String>& Params); |
823 |
|
|
824 |
|
/** |
825 |
* Used to execute SQL commands which returns string list. |
* Used to execute SQL commands which returns string list. |
826 |
*/ |
*/ |
827 |
StringListPtr ExecSqlStringList(String Sql); |
StringListPtr ExecSqlStringList(String Sql); |
859 |
static String toAbstractName(String DbName); |
static String toAbstractName(String DbName); |
860 |
|
|
861 |
static String toEscapedFsPath(String FsPath); |
static String toEscapedFsPath(String FsPath); |
862 |
|
|
863 |
|
static String toNonEscapedFsPath(String FsPath); |
864 |
|
|
865 |
void FireDirectoryCountChanged(String Dir); |
void FireDirectoryCountChanged(String Dir); |
866 |
void FireDirectoryInfoChanged(String Dir); |
void FireDirectoryInfoChanged(String Dir); |