Commit Graph

67 Commits

Author SHA1 Message Date
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
Ryan P. Bitanga
2da5f905d3 Change the queue policy for slow speed runners. They will now
wait 400ms before being executed by KRunner

svn path=/trunk/KDE/kdelibs/; revision=924670
2009-02-11 11:16:09 +00:00
Beat Wolf
50e22d6d09 revert last change, binary incompatible. need to find another way to solve the bug
svn path=/trunk/KDE/kdelibs/; revision=919638
2009-02-01 13:59:09 +00:00
Beat Wolf
2b43959d6b allow krunner to launch applications that have been launched before.
BUG:175176

svn path=/trunk/KDE/kdelibs/; revision=919611
2009-02-01 13:25:46 +00:00
Ryan P. Bitanga
60e3019818 Introduce a new queue policy for normal speed runners
svn path=/trunk/KDE/kdelibs/; revision=915163
2009-01-22 14:23:34 +00:00
Aaron J. Seigo
ee776a8367 better use of value and contains; thanks Hermier! =)
svn path=/trunk/KDE/kdelibs/; revision=895572
2008-12-11 02:50:06 +00:00
Aaron J. Seigo
2d6431cafa don't crash when a runner that doesn't exist is requested
BUGS:170989,177162

svn path=/trunk/KDE/kdelibs/; revision=894424
2008-12-08 15:59:05 +00:00
Aaron J. Seigo
df73771a1b ++compile
svn path=/trunk/KDE/kdelibs/; revision=879801
2008-11-04 02:55:37 +00:00
Aaron J. Seigo
4b08c03726 change KDE includes to use the .h style now that we're in libs
svn path=/trunk/KDE/kdelibs/; revision=879795
2008-11-04 02:04:34 +00:00
Aaron J. Seigo
1b523b9054 ok, this time JUST the plasma dir ;)
svn path=/trunk/KDE/kdelibs/; revision=879759
2008-11-03 23:08:39 +00:00
Aaron J. Seigo
fa5a2d87d9 bum-de-dum! plasma to kdelibs.
svn path=/trunk/KDE/kdelibs/; revision=879757
2008-11-03 23:03:26 +00:00
Aaron J. Seigo
7c7f8b098a actions for runners
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=879704
2008-11-03 20:56:43 +00:00
Allen Winter
a7aebfa60a a bunch more coding style fixes. still some lines longer than 100 chars.
this is definitely helping me find false positives in the Krazy style checker.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870161
2008-10-11 22:48:38 +00:00
Allen Winter
e88e2faa63 first batch of small coding style fixes.
these were found while testing the Krazy style checker, which I'm adapting
for the kdelibs style.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870051
2008-10-11 16:19:04 +00:00
Aaron J. Seigo
443a3b3352 * support TryExec
* fix include order

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866331
2008-09-30 15:41:21 +00:00
Dario Freddi
9556863db5 Fixing a typo that caused segfault, added a comment for reviewing config loading
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=864775
2008-09-25 12:40:13 +00:00
Aaron J. Seigo
e2b8fa258a use the config defined in the constructor for runner settings as well
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=864402
2008-09-24 18:13:21 +00:00
Ryan P. Bitanga
d0863e43e8 Remove cruft and fix style in RunnerManager
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=859706
2008-09-11 06:37:09 +00:00
Aaron J. Seigo
483e30d6b9 now that we re-use visual items as much as possible, update the matches more agressively (makes it feel less laggy now that the UI is doing the right thing)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=839872
2008-07-31 00:23:57 +00:00
Dirk Mueller
754b000b42 also implement the plugin version checks for the other plugin types
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833940
2008-07-17 16:26:29 +00:00
Marijn Kruisselbrink
21b148b963 change all ClassName::Private classes to ClassNamePrivate, and adjust friends accordingly; this makes plasma compilable with gcc < 4.2
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=826893
2008-07-01 18:56:43 +00:00
Pino Toscano
9c0bfd3e6f initialize in the correct order
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=822748
2008-06-21 10:39:03 +00:00
Frederik Gladhorn
b74e3dd632 at least initialize the mutex counter
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=814434
2008-05-30 10:08:45 +00:00
Ryan P. Bitanga
8fd721a8c4 Correctly read configuration for plugin selector.
The selector stores configuration in [Plugins] in KGlobal::config() while the 
code checked [PlasmaRunnerManager][Plugins]


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=813544
2008-05-28 03:54:34 +00:00
Aaron J. Seigo
3f3b74e48b these two slots were swapped around, making for a lot more GUI updates than intended
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=811013
2008-05-22 01:13:50 +00:00
Aaron J. Seigo
fb80125034 changes to allow integration with kpluginselector; based on patch by Ryan Bitanga
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809860
2008-05-19 17:02:15 +00:00
Jordi Polo
a709955f14 Load runners when asked to match directly, not only when launching matches
Optimally we should load only that runner...


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=807162
2008-05-13 05:18:51 +00:00