Skip to content

Commit

Permalink
Add documentation about Utility::setupFavLink and Utility::removeFavL…
Browse files Browse the repository at this point in the history
…ink.

Signed-off-by: Camila Ayres <[email protected]>
  • Loading branch information
camilasan committed Nov 6, 2024
1 parent 3e46764 commit 9a88f10
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/common/utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,19 @@ namespace Utility {
OCSYNC_EXPORT void sleep(int sec);
OCSYNC_EXPORT void usleep(int usec);
OCSYNC_EXPORT QString formatFingerprint(const QByteArray &, bool colonSeparated = true);
/**
* @brief Creates the Desktop.ini file which contains the folder IconResource shown as a favorite link
*
* @param folder absolute file path to folder
*/
OCSYNC_EXPORT void setupFavLink(const QString &folder);
/**
* @brief Removes the Desktop.ini file which contains the folder IconResource shown as a favorite link
*
* @param folder absolute file path to folder
*/
OCSYNC_EXPORT void removeFavLink(const QString &folder);

OCSYNC_EXPORT bool writeRandomFile(const QString &fname, int size = -1);
OCSYNC_EXPORT QString octetsToString(const qint64 octets);
OCSYNC_EXPORT QByteArray userAgentString();
Expand Down

0 comments on commit 9a88f10

Please sign in to comment.