Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KIO Extras
Commits
20173cbd
Commit
20173cbd
authored
Jul 23, 2022
by
Alexander Lohnau
Committed by
Luigi Toscano
Jul 30, 2022
Browse files
Restore comment from desktop file as docstring to class
parent
8d23a88b
Pipeline
#210652
passed with stage
in 3 minutes and 18 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
smb/kded/watcher.cpp
View file @
20173cbd
...
...
@@ -187,6 +187,20 @@ private:
QHash
<
QString
,
Notifier
*>
m_watches
;
// watcher is parent of procs
};
/*
In the json metadata we set:
X-KDE-Kded-phase=2
X-KDE-Kded-autoload=true
Because we need this module loaded all the time, lazy loading on worker use wouldn't
be sufficient as the kdirnotify signal is already out by the time the worker
is initalized so the first opened dir wouldn't be watched then.
It'd be better if we had a general monitor module that workers can register
with. The monitor would then listen to kdirnotify and check the schemes
to decide which watcher to load, and then simply forward the call to the watcher
in-process. Would also save us from having to connect to dbus in every watcher.
*/
class
SMBWatcherModule
:
public
KDEDModule
{
Q_OBJECT
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment