Plasma5Support

filebrowserengine.h
1/*
2 SPDX-FileCopyrightText: 2007 Ivan Cukic <ivan.cukic+kde@gmail.com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <Plasma5Support/DataEngine>
10
11class KDirWatch;
12
13/**
14 * This class evaluates the basic expressions given in the interface.
15 */
17{
19
20public:
22 ~FileBrowserEngine() override;
23
24protected:
25 bool sourceRequestEvent(const QString &path) override;
26 void init();
27
28protected Q_SLOTS:
29 void dirDirty(const QString &path);
30 void dirCreated(const QString &path);
31 void dirDeleted(const QString &path);
32
33private:
34 enum EventType {
35 INIT,
36 DIRTY,
37 CREATED,
38 DELETED,
39 };
40 enum ObjectType {
41 NOTHING,
42 FILE,
43 DIRECTORY,
44 };
45
46 KDirWatch *const m_dirWatch;
47 void updateData(const QString &path, EventType event);
48 void clearData(const QString &path);
49
50 // QMap < QString, QStringList > m_regiteredListeners;
51};
This class evaluates the basic expressions given in the interface.
bool sourceRequestEvent(const QString &path) override
When a source that does not currently exist is requested by the consumer, this method is called to gi...
Data provider for plasmoids (Plasma plugins)
Definition dataengine.h:45
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
virtual bool event(QEvent *e)
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.