Commit Graph

93 Commits

Author SHA1 Message Date
Aaron Seigo
f6bbda4258 the methods are now virtual, call directly 2011-05-20 09:01:36 +02: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
Jacopo De Simoi
0d12d6b3b8 Uff, I guess we will live with duplicates for some more time. My previous commit breaks krunner as it *only* runs stuff which is autocompleted. Will backrevert -
svn path=/trunk/KDE/kdelibs/; revision=935428
2009-03-05 06:02:11 +00:00
Jacopo De Simoi
8aa4045953 "...and they lived happily ever after with no more duplicate matches =)"
A local copy of the context is now created in the FindMatchesJob ctor, not anymore in AbstractRunner, this prevents old queries to be run with a valid dptr 

svn path=/trunk/KDE/kdelibs/; revision=935342
2009-03-04 21:03:33 +00:00
Jacopo De Simoi
235f81fa36 Added a stale flag to searchJobs; less pollution from old queries; fixed a misplaced brace in previous commit that made krunner unable to run any command :(
svn path=/trunk/KDE/kdelibs/; revision=934467
2009-03-03 08:02:13 +00:00
Jacopo De Simoi
218093c467 Prevents a deadlock when dealing with a deferredRun
BUG: 181057

svn path=/trunk/KDE/kdelibs/; revision=934417
2009-03-03 02:07:19 +00:00