aboutsummaryrefslogtreecommitdiff
path: root/QSThingsPlugin/Helpers/SQLHelper.h
blob: fc63650b1f3c926d638e13c0ff6c3f4ff08d5f19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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