summaryrefslogtreecommitdiff
path: root/zen/recycler.h
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-10-11 11:16:39 -0400
committerB. Stack <bgstack15@gmail.com>2022-10-11 11:16:39 -0400
commitcab22f2dc3c5f41b5163f74cbb233e390edff6ff (patch)
treea49cfd729d9793681a57fa6f7409b0f0848e9ede /zen/recycler.h
parentMerge branch 'b11.25' into 'master' (diff)
downloadFreeFileSync-cab22f2dc3c5f41b5163f74cbb233e390edff6ff.tar.gz
FreeFileSync-cab22f2dc3c5f41b5163f74cbb233e390edff6ff.tar.bz2
FreeFileSync-cab22f2dc3c5f41b5163f74cbb233e390edff6ff.zip
add upstream 11.26
Diffstat (limited to 'zen/recycler.h')
-rw-r--r--zen/recycler.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/zen/recycler.h b/zen/recycler.h
index deb03a1c..79771321 100644
--- a/zen/recycler.h
+++ b/zen/recycler.h
@@ -18,23 +18,17 @@ namespace zen
|Recycle Bin Access|
--------------------
- Windows
- -------
- -> Recycler API (IFileOperation) always available
- -> COM needs to be initialized before calling any of these functions! CoInitializeEx/CoUninitialize
+ Windows: -> Recycler API (IFileOperation) always available
+ -> COM needs to be initialized before calling any of these functions! CoInitializeEx/CoUninitialize
- Linux
- -----
- Compiler flags: `pkg-config --cflags gio-2.0`
- Linker flags: `pkg-config --libs gio-2.0`
+ Linux: Compiler flags: `pkg-config --cflags gio-2.0`
+ Linker flags: `pkg-config --libs gio-2.0`
- Already included in package "gtk+-2.0"! */
-
-
-//move a file or folder to Recycle Bin (deletes permanently if recycler is not available) -> crappy semantics, but we have no choice thanks to Windows' design
-bool recycleOrDeleteIfExists(const Zstring& itemPath); //throw FileError, return "true" if file/dir was actually deleted
+ Already included in package "gtk+-2.0"! */
+//fails if item is not existing (anymore)
+void moveToRecycleBin(const Zstring& itemPath); //throw FileError, RecycleBinUnavailable
}
#endif //RECYCLER_H_18345067341545
bgstack15