D26935: context: add function to allow loading and unloading modules

2020-01-27 Thread Harald Sitter
sitter added inline comments. INLINE COMMENTS > context.cpp:600 > > +void Context::loadModule(const QString &name, const QString &argument) > +{ Should this maybe return a bool? If the operation as a whole fails it seems that should be reflected somehow. Or does this emit an error via event

D26935: context: add function to allow loading and unloading modules

2020-01-27 Thread Bhushan Shah
bshah updated this revision to Diff 74417. bshah added a comment. add ::unloadModule which takes Module* parameter REPOSITORY R994 Pulseaudio Qt Bindings CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D26935?vs=74414&id=74417 BRANCH add-load-unload-module REVISION DETAIL http

D26935: context: add function to allow loading and unloading modules

2020-01-27 Thread Bhushan Shah
bshah added a comment. > unloadModule should work with a Module* given the rest of the API deals with them rather than their index I think Yes, it does indeed make sense, maybe I can add a another signature of unloadModule which takes Module* as argument. > I was about to say someth

D26935: context: add function to allow loading and unloading modules

2020-01-27 Thread Bhushan Shah
bshah created this revision. bshah added reviewers: sitter, nicolasfella. Herald added a project: Plasma. Herald added a subscriber: plasma-devel. bshah requested review of this revision. REVISION SUMMARY Current usecase is dialer wanting to load the loopback modules during runtime. REPOSITOR

D26935: context: add function to allow loading and unloading modules

2020-01-27 Thread Nicolas Fella
nicolasfella added a comment. I was about to say something similar. Where would one get the index from? REPOSITORY R994 Pulseaudio Qt Bindings REVISION DETAIL https://phabricator.kde.org/D26935 To: bshah, sitter, nicolasfella Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, jraleigh

D26935: context: add function to allow loading and unloading modules

2020-01-27 Thread Harald Sitter
sitter added a comment. unloadModule should work with a Module* given the rest of the API deals with them rather than their index I think REPOSITORY R994 Pulseaudio Qt Bindings REVISION DETAIL https://phabricator.kde.org/D26935 To: bshah, sitter, nicolasfella Cc: plasma-devel, Orage, Le