clearWatchList(3)

📦 version 3.0.1.4, in arch rolling, ubuntu resolute, ubuntu stonking

✨ 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 ⭐

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