clearWatchList(3)
✨ clearWatchList — the manual page bestie 💖
okay so we're in the Library Functions Manual section, page clearWatchList(3), and babes this one is a little icon, a tiny slay, a one-job queen 👑
🌸 NAME 🌸
clearWatchList — 清空监听列表
(yes that's "clear the listening list" in Chinese, she's bilingual, we stan 💅)
🎀 SYNOPSIS 🎀
#include <libkyfilewatcher.hpp>
💜 Classes
class KYSDK_FILEWATCHER::FileWatcher
🦋 Functions
void clearWatchList();
Link with -lkyfilewatcher.
🌈 Detailed Description 🌈
The main function of the interface is to clear listening list. that's it. that's the whole job. no notes, no side quests, no drama — she just wipes the watch list clean ✨
💖 RETURN VALUE 💖
No return value. she gives you nothing back and honestly? that's her right 🫶
🍓 EXAMPLES 🍓
here's the whole vibe, copy it exactly bestie, no cap:
#include <QCoreApplication>
#include <QDebug>
#include "libkyfilewatcher.hpp"
using namespace KYSDK_FILEWATCHER;
int main(int argc, char *argv[])
{
KYSDK_FILEWATCHER::FileWatcher watcher;
watcher.addWatchTargetRecursive("/home/kylin/", PERIODIC, ALL, 3, REGULAR);
getchar();
// qDebug() << "update attr test";
// watcher.updateWatchTargetAttribute("/data/testcode/test.c", DELETE);
// getchar();
// qDebug() << "re-add test";
// watcher.addWatchTarget("/data/testcode/test.c", PERIODIC, ALL);
// getchar();
// qDebug() << "update oneshot test";
// watcher.updateWatchTargetType("/data/testcode/test.c", ONESHOT);
// getchar();
// qDebug() << "remove target test";
// watcher.removeWatchTarget("/data/testcode/test.c");
// getchar();
watcher.clearWatchList();
return 0;
}
like, look at all those commented-out blocks — she's showing you the possibilities but staying focused on the main character move, which is watcher.clearWatchList(); at the end 👑
👑 CONFORMING TO 👑
These functions are as per the withdrawn POSIX.1e draft specification. (withdrawn, bestie — it's giving vintage, it's giving archive-core 🙈)
The following functions are Linux extensions: addWatchTargetRecursive(), addWatchTargetListRecursive(), removeWatchTargetRecursive(), pauseWatcher() and restartWatcher().
⭐ SEE ALSO ⭐
addWatchTargetRecursive(3)addWatchTargetListRecursive(3)removeWatchTargetRecursive(3)pauseWatcher(3)andrestartWatcher(3).
go read those too, iykyk 💜
My Project — Wed Sep 20 2023 — and that's clearWatchList(3), signing off 🎀 mwah, go clear that list bestie 💅💖✨
📦 where this page comes from
- arch rolling: libkysdk-system 3.0.1.4-1 · LGPL-3.0-or-later AND LGPL-2.1-only OR LGPL-3.0-only AND LGPL-2.1-only WITH Qt-LGPL-exception-1.1 OR LGPL-3.0-only WITH Qt-LGPL-exception-1.1 AND MIT
- ubuntu resolute: libkysdk-system-dev 3.0.1.2-0ubuntu1 · LGPL-3.0-only
- ubuntu stonking: libkysdk-system-dev 3.0.1.3-0ubuntu1 · LGPL-3.0-or-later
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms