Aaron Seigo
8af1a4d2f1
prep newly loaded runners if we're running a match
2012-10-25 21:18:59 +02:00
Aaron Seigo
1808be9d38
clear the single runner pointer when loading runners; it may have been deleted on us
2012-05-28 19:42:25 +02:00
Aurélien Gâteau
162456d04a
Only dequeue our ThreadWeaver jobs
...
REVIEW-IN: 104973
2012-05-25 19:23:50 +02:00
Aaron Seigo
d47a6bf33b
constify
2011-11-22 12:20:14 +01:00
Aaron Seigo
f6f8d8b2ee
when setAllowedRunners is called, call loadRunners, which now also allows for being called while a search is in progress
...
loadRunners intelligently only unloads those runners with are no longer to be loaded, so this is a performance win.
it now also checks to see if there are pending jobs for the runners to be deleted (if any) and if so it creates a delayed
deleter for them -> no crashes
2011-11-22 12:17:06 +01:00
Aaron J. Seigo
99b57b9c65
allow runners to signal that matching should be suspended for them
...
svn path=/trunk/KDE/kdelibs/; revision=1171157
2010-09-02 22:18:03 +00:00
Aaron J. Seigo
4a2f04564b
offer info listing as a feature of the manager, use PluginLoader a bit here (needs work to be fully disentangled)
...
svn path=/trunk/KDE/kdelibs/; revision=1156226
2010-07-28 18:19:00 +00:00
Aaron J. Seigo
e3eda3ab65
increase the delay a bit; with more runners happening, this makes it all a littl less jerky; we need a better way to change this dynamically
...
svn path=/trunk/KDE/kdelibs/; revision=1128369
2010-05-19 04:22:18 +00:00
Kevin Ottens
6a3240b051
libplasma becomes our first lib with profiles support.
...
svn path=/trunk/KDE/kdelibs/; revision=1120434
2010-04-29 05:57:34 +00:00
Albert Astals Cid
8de16871a6
Calling values and then foreach on a QHash is slower and more memory intensive than just foreach the QHash, this changes the first to the second.
...
Acked by Chani
svn path=/trunk/KDE/kdelibs/; revision=1111048
2010-04-04 18:15:51 +00:00
Aaron J. Seigo
b16960c73b
allow loading of individual runners, including from packages
...
svn path=/trunk/KDE/kdelibs/; revision=1106782
2010-03-23 22:43:34 +00:00
Ivan Čukić
2e5064ca2f
Changed method name
...
svn path=/trunk/KDE/kdelibs/; revision=1093946
2010-02-21 19:30:11 +00:00
Ivan Čukić
da3fcc1b67
Mime ddata support in runners
...
svn path=/trunk/KDE/kdelibs/; revision=1093881
2010-02-21 17:06:10 +00:00
Aaron J. Seigo
5ae0574f54
turn this off in trunk
...
CCMAIL:chanika@gmail.com
svn path=/trunk/KDE/kdelibs/; revision=1091863
2010-02-17 18:26:28 +00:00
Aaron J. Seigo
048a814eb8
ifdef the measurement code so i can easily turn it back on again for future debugging
...
svn path=/trunk/KDE/kdelibs/; revision=1087402
2010-02-08 23:39:05 +00:00
Igor Trindade Oliveira
7c1ce3f4ec
RunnerManager: emit signal queryFinished when the search finished, it can be useful when creating animations
...
svn path=/trunk/KDE/kdelibs/; revision=1075406
2010-01-16 01:20:35 +00:00
Marco Martin
f38e7f4faf
enabledSingleModeRunnerIds() becomes singleModeAdvertisedRunnerIds()
...
because all runners can be lanched alone, but only a few are accessible like that with global shortcuts
svn path=/trunk/KDE/kdelibs/; revision=1062006
2009-12-13 14:57:06 +00:00
Marco Martin
bf19913adb
permit single runner anyways, the singlerunner-enabled- will become -advertised-
...
svn path=/trunk/KDE/kdelibs/; revision=1061996
2009-12-13 14:13:00 +00:00
Marco Martin
f8b4367934
if launchquery gets called without runner id and singlerunner was enabled, switch the manager to all runners again
...
svn path=/trunk/KDE/kdelibs/; revision=1061990
2009-12-13 13:49:22 +00:00
Aaron J. Seigo
4b4645f564
needs to be X-Plasma- as it's non-standard
...
svn path=/trunk/KDE/kdelibs/; revision=1054773
2009-11-26 18:42:24 +00:00
Aaron J. Seigo
e61aac9d91
only reset up the match if we are actually in single runner mode again
...
svn path=/trunk/KDE/kdelibs/; revision=1054462
2009-11-26 02:38:16 +00:00
Aaron J. Seigo
2e01927f69
consistency
...
svn path=/trunk/KDE/kdelibs/; revision=1054451
2009-11-26 01:57:02 +00:00
Aaron J. Seigo
4d9892e0a3
the API is more complex, but it's a lot less "modal". it preserves state nicely and obeys "principle of least surprise"; now we just need to decide whether or not the "enabled single runners thing" makes sense
...
svn path=/trunk/KDE/kdelibs/; revision=1054446
2009-11-26 01:52:23 +00:00
Jacopo De Simoi
7eb365fac2
Load single runners on the fly
...
svn path=/trunk/KDE/kdelibs/; revision=1054351
2009-11-25 22:31:56 +00:00
Jacopo De Simoi
132b963dbe
Single runner mode in libplasma
...
svn path=/trunk/KDE/kdelibs/; revision=1053993
2009-11-25 09:37:47 +00:00
Aaron J. Seigo
c43ef1bcb8
make sure that we don't get hung up with old jobs that aren't enqueued anymore by checking for that case more often
...
svn path=/trunk/KDE/kdelibs/; revision=1053930
2009-11-25 01:54:44 +00:00
Aaron J. Seigo
3e7c2125a8
call init() in runner manager so all runners get it called
...
svn path=/trunk/KDE/kdelibs/; revision=1041873
2009-10-28 18:15:23 +00:00
Aaron J. Seigo
8e9ad3cfcf
restore load/save behaviour for krunner; short term fix only, however. this needs to be fixed in krunner (and possibly have RunnerManager extended a bit to make this less error prone) but it would be nice for krunner to be useful to others while i work on fixing this up...
...
svn path=/trunk/KDE/kdelibs/; revision=1034974
2009-10-14 05:50:17 +00:00
Andreas Hartmetz
d0ecf4ae88
This hopefully fixes a double delete bug. I don't see what would prevent both
...
RunnerManager::jobDone() and DelayedJobCleaner::jobDone() from being invoked
if the JobDone() signal is emitted just at the right (wrong) time.
Both jobDone() slots delete (as in delete operator) the job.
CCMAIL:aseigo@kde.org
svn path=/trunk/KDE/kdelibs/; revision=1033035
2009-10-09 09:33:20 +00:00
Aaron J. Seigo
df3892d06d
avoid loading runners if the query is empty
...
svn path=/trunk/KDE/kdelibs/; revision=1029903
2009-10-01 00:58:24 +00:00
Aaron J. Seigo
d1c51d506d
put the whitelist in its own config key
...
svn path=/trunk/KDE/kdelibs/; revision=1022152
2009-09-10 22:26:14 +00:00
Aaron J. Seigo
a7336dc119
* if no config group is provided, use the app global one (compat with krunner, allows comfortable usage with e.g. plasmoids)
...
* allow setting the applet whitelist programmaticaly vs touching the config file directly
svn path=/trunk/KDE/kdelibs/; revision=1021048
2009-09-07 22:36:04 +00:00
Aaron J. Seigo
b32e268e15
meh; can't move these files into a subdir as-is; need to think of a more clever strategy
...
svn path=/trunk/KDE/kdelibs/; revision=1019657
2009-09-04 08:58:34 +00:00
Aaron J. Seigo
b711b96ee0
runner infra into a subdir
...
svn path=/trunk/KDE/kdelibs/; revision=1019561
2009-09-03 21:21:27 +00:00
Aaron J. Seigo
131c0b39de
don't actually do the tear down until we have no more jobs queued up; this way the setup/teardown do not need to be threadsafe and the runner can always assume that the data created in set up is really not needed anymore
...
svn path=/trunk/KDE/kdelibs/; revision=1004685
2009-07-30 18:14:40 +00:00
Aaron J. Seigo
5556939639
set the prepped state
...
svn path=/trunk/KDE/kdelibs/; revision=1003540
2009-07-28 10:03:16 +00:00
Aaron J. Seigo
73ba18b528
not needed twice i suppose :)
...
svn path=/trunk/KDE/kdelibs/; revision=1003356
2009-07-28 03:37:37 +00:00
Aaron J. Seigo
000d79016b
new setup/teardown api for runners so we don't hang onto tons of data and live connections when not matching
...
svn path=/trunk/KDE/kdelibs/; revision=1003355
2009-07-28 03:36:06 +00:00
Andreas Hartmetz
4c2c5a1813
Unbreak the build. I wonder how the breakage happened in the first place.
...
svn path=/trunk/KDE/kdelibs/; revision=967736
2009-05-13 20:51:03 +00:00
Ryan P. Bitanga
9b6304fcde
Add adaptive search for KRunner
...
svn path=/trunk/KDE/kdelibs/; revision=967705
2009-05-13 19:18:30 +00:00
Jacopo De Simoi
1b49180a0c
Trim the query term to avoid leading (or following) whitespace
...
BUG: 188665
svn path=/trunk/KDE/kdelibs/; revision=948747
2009-04-03 17:12:53 +00:00
Aaron J. Seigo
4b09b1a59b
SVN_SILENT: not useful these days
...
svn path=/trunk/KDE/kdelibs/; revision=946696
2009-03-30 03:41:11 +00:00
Aaron J. Seigo
acaa4108df
provide a way for runners to define their syntax; may experience some small api shifts yet, but nothing major and it works.
...
svn path=/trunk/KDE/kdelibs/; revision=944088
2009-03-25 01:08:08 +00:00
Jacopo De Simoi
282ee1b508
Compressing events timeout to 50ms; improves consistency of the resultScene
...
svn path=/trunk/KDE/kdelibs/; revision=943326
2009-03-23 17:11:53 +00:00
David Faure
9117a796eb
fix mistake detected by f_aichele on irc.
...
svn path=/trunk/KDE/kdelibs/; revision=938778
2009-03-12 23:25:45 +00:00
Aaron J. Seigo
5ac8aefd50
don't lower the number of threads if someone else has raised it higher already
...
svn path=/trunk/KDE/kdelibs/; revision=938756
2009-03-12 22:04:01 +00:00
Aaron J. Seigo
8c30031635
* let the weaver own the jobs, so we can cean up successfully without crashing when the manager is deleted
...
* listen to jobDone's in the clean up class
svn path=/trunk/KDE/kdelibs/; revision=938752
2009-03-12 22:01:22 +00:00
Aaron J. Seigo
3ecfa9f6d5
if the RunnerManager is deleted but jobs are still processing, create a helper object to wait it out and clean them up when possible
...
svn path=/trunk/KDE/kdelibs/; revision=938728
2009-03-12 20:25:52 +00:00
Aaron J. Seigo
50166207b9
need to clear this list when we delete all in it
...
svn path=/trunk/KDE/kdelibs/; revision=938709
2009-03-12 18:54:57 +00:00
Aaron J. Seigo
592ddc4e6e
* emit a signal when our jobs are done but we have no matches
...
* use QSets instead of QLists where we are doing lots of random access and no sequential
* get rid of the stale marking as all items in the oldMatches list are, by definition, stale
svn path=/trunk/KDE/kdelibs/; revision=938708
2009-03-12 18:53:22 +00:00