pauseWatcher(3)

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

💖 pauseWatcher(3) 💖

okay bestie, welcome to Library Functions Manual — we're doing the pauseWatcher(3) page today and honestly? it's a short one but it ATE. 🎀


✨ NAME ✨

pauseWatcher — 暂停文件监听 (yes that's "pause file listening", you're welcome, multilingual queen 🌸)


🦋 SYNOPSIS 🦋

#include <libkyfilewatcher.hpp>

💜 Classes

  • class KYSDK_FILEWATCHER::FileWatcher

💜 Functions

  • void pauseWatcher();

and listen — you gotta link it like this, no skipping:

Link with -lkyfilewatcher.

💬 Detailed Description

so the main character function of this whole interface? it pauses file listening. that's the gig. that's the vibe. pause the listening, bestie. 👑


🔥 RETURN VALUE 🔥

No return value. nothing. silence. it gives absolutely nothing back and that's valid of it 💅 (ngl it's the strong silent type)


🌈 EXAMPLES 🌈

here's the whole thing, copy it exactly, don't freestyle:

#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;
}

see all those commented-out lines? they're just chilling there, waiting for their moment. main character energy in the wings. ✨


🧚 CONFORMING TO 🧚

These functions are as per the withdrawn POSIX.1e draft specification. (withdrawn! gone! but we still love her 🫶)

and psst — the following functions are Linux extensions: addWatchTargetRecursive(), addWatchTargetListRecursive(), removeWatchTargetRecursive(), clearWatchList() and restartWatcher(). not portable, just Linux things, iykyk 💀


👑 SEE ALSO 👑

go read these next, fr fr:


no cap, that's the whole page. short, sweet, and it understood the assignment. 🍓

and that's a wrap from My Project, version dated Wed Sep 20 2023 — mwah, kisses, bye bestie 💖✨🎀

📦 where this page comes from