Handle folder events

Refs #71
This commit is contained in:
M66B
2018-09-14 06:28:23 +00:00
parent cd41d6812a
commit cf6670a7d2
2 changed files with 21 additions and 3 deletions

View File

@@ -117,6 +117,9 @@ public interface DaoFolder {
@Query("UPDATE folder SET synchronize = :synchronize, unified = :unified, after = :after WHERE id = :id")
int setFolderProperties(long id, boolean synchronize, boolean unified, int after);
@Query("UPDATE folder SET name = :name WHERE account = :account AND name = :old")
int renameFolder(long account, String old, String name);
@Query("DELETE FROM folder WHERE account= :account AND name = :name")
void deleteFolder(Long account, String name);
}