Baloo
kinotify.cpp
160 m_dirIter = std::make_unique<Baloo::FilteredDirIterator>(config, m_paths.takeFirst(), Baloo::FilteredDirIterator::DirsOnly);
321 // the event name only contains an interesting value if we get an event for a file/folder inside
326 // we cannot use event->len here since it contains the size of the buffer and not the length of the string
327 const QByteArray eventName = QByteArray::fromRawData(event->name, qstrnlen(event->name, event->len));
397 d->cookies[event->cookie] = Private::MovedFileCookie{ deadline, path, WatchFlags(event->mask) };
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const const
QByteArray fromRawData(const char *data, int size)
Q_EMITQ_EMIT
QAction * open(const QObject *recvr, const char *slot, QObject *parent)
QByteArray encodeName(const QString &fileName)
QString chopped(int len) const const
Forever
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QHash::iterator insert(const Key &key, const T &value)
T take(const Key &key)
T takeFirst()
void timeout()
bool isEmpty() const const
Active config class which emits signals if the config was changed, for example if the KCM saved the c...
Definition: fileindexerconfig.h:30
QAction * close(const QObject *recvr, const char *slot, QObject *parent)
QueuedConnection
bool isEmpty() const const
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
KSharedConfigPtr config()
A simple wrapper around inotify which only allows to add folders recursively.
Definition: kinotify.h:24
QDeadlineTimer current(Qt::TimerType timerType)
bool isEmpty() const const
int remove(const Key &key)
QString path(const QString &relativePath)
QString & insert(int position, QChar ch)
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
QVariant read(const QByteArray &data, int versionOverride=0)
int count(const Key &key) const const
bool contains(const Key &key) const const
void resetUserLimit()
Call this when the inotify limit has been increased.
Definition: kinotify.cpp:223
QObject * parent() const const
void activated(QSocketDescriptor socket, QSocketNotifier::Type type)
QString & append(QChar ch)
char * data()
QString decodeName(const QByteArray &localFileName)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 03:56:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 03:56:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.