From c791858db3de3568f0ea2839c79b360a0dfb15ab Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 10 Sep 2025 11:32:28 +0200 Subject: Initial commit --- QSThingsPlugin/Helpers/SQLHelper.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 QSThingsPlugin/Helpers/SQLHelper.h (limited to 'QSThingsPlugin/Helpers/SQLHelper.h') diff --git a/QSThingsPlugin/Helpers/SQLHelper.h b/QSThingsPlugin/Helpers/SQLHelper.h new file mode 100644 index 0000000..fc63650 --- /dev/null +++ b/QSThingsPlugin/Helpers/SQLHelper.h @@ -0,0 +1,16 @@ +/** + Helper class to access the things sqlite database. + */ +@interface SQLHelper : NSObject +{ +} + +/** + Execute an SQL query on the things database + @param query the SQL query. Must contain output fieldnames "url" and "title". + @param path file path to the database + @returns an array of Task objects. Will return empty if an error occurs. + */ ++ (NSArray *) executeSql:(NSString *)query onFile:(NSString *)path; + +@end -- cgit