Commit Graph

87 Commits

Author SHA1 Message Date
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
94da57f819 put dataEngine() support into AbstractRunner, joining the ranks of Applet, ContainmentActions, Wallpaper and the private PlasmoidService
svn path=/trunk/KDE/kdelibs/; revision=1051212
2009-11-19 00:19:11 +00:00
Petri Damstén
c80e22969c Implement missing actionsForMatch.
Review: http://reviewboard.kde.org/r/2180/

svn path=/trunk/KDE/kdelibs/; revision=1049917
2009-11-16 07:24:39 +00:00
Petri Damstén
5b2b221562 * Add translation support for runner and dataengine packages
* Use pladmoid package for runners too.

svn path=/trunk/KDE/kdelibs/; revision=1047782
2009-11-12 06:38:16 +00:00
Aaron J. Seigo
b9ea759162 split out the private class into its own file
svn path=/trunk/KDE/kdelibs/; revision=1047325
2009-11-11 00:25:27 +00:00
Petri Damstén
0244d72222 Add missing functions to RunnerScript.
Review: http://reviewboard.kde.org/r/2054/

svn path=/trunk/KDE/kdelibs/; revision=1045443
2009-11-06 06:33:24 +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
Andreas Hartmetz
191256f279 don't forget to unlock that lock; hopefully fixes krunner hangs.
svn path=/trunk/KDE/kdelibs/; revision=1036628
2009-10-17 13:55:18 +00:00
Aaron J. Seigo
d8d346822e some light weight locking around the speed member
svn path=/trunk/KDE/kdelibs/; revision=1032959
2009-10-08 23:32:25 +00:00
Aaron J. Seigo
fad3e0814b move the elapsed time object into the performMatch method; this prevents access by multiple threads by putting a unique QTime object in each thread. thanks Hellgrind (and maelcum for running it)
svn path=/trunk/KDE/kdelibs/; revision=1032955
2009-10-08 23:23:52 +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
Ryan P. Bitanga
ef32813846 Move actionsFromMenu from AbstractRunner to plasma.h
svn path=/trunk/KDE/kdelibs/; revision=1002462
2009-07-26 02:51:21 +00:00
Ryan P. Bitanga
139c3abdc4 Ensure a menu pointer is passed to actionsFromMenu
svn path=/trunk/KDE/kdelibs/; revision=1002154
2009-07-25 08:09:26 +00:00
Ryan P. Bitanga
284bac4310 Add the convenience method for extracting actions from QMenus to AbstractRunner
svn path=/trunk/KDE/kdelibs/; revision=1002128
2009-07-25 04:42:52 +00:00
Aaron J. Seigo
88b5064525 remove an unused variable and initialize hasRunOptions
BUG:193017

svn path=/trunk/KDE/kdelibs/; revision=969403
2009-05-18 09:39:43 +00:00
Aaron J. Seigo
d7fdb6deb1 constification
svn path=/trunk/KDE/kdelibs/; revision=944561
2009-03-25 18:33:41 +00:00
Aaron J. Seigo
b2bb1b569c API review: clearSyntaxes gone; setSyntaxes in; small apidox fix
svn path=/trunk/KDE/kdelibs/; revision=944548
2009-03-25 17:41:15 +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
25a80b322c Create local copy of runnerContext in the runnerjob ctor
svn path=/trunk/KDE/kdelibs/; revision=938690
2009-03-12 17:25:13 +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
Aaron J. Seigo
dd4eeb685c dfaure is my hero for making sycoca stuff thread safe :)))
svn path=/trunk/KDE/kdelibs/; revision=935383
2009-03-04 23:09:16 +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
Aaron J. Seigo
93fc8cef68 don't count fast matches against short strings as a sign of being fast; will prevent pulling slow runners in and out of the pool too much
svn path=/trunk/KDE/kdelibs/; revision=934733
2009-03-03 17:37:22 +00:00
Aaron J. Seigo
dbce22540c make the bigLock publicly accessible; BIC, so thankfully caught before release!
svn path=/trunk/KDE/kdelibs/; revision=896193
2008-12-12 20:10:50 +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
Aaron J. Seigo
02ba0e68a1 delete the script before the package!
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=864836
2008-09-25 16:27:49 +00:00
Alex Merry
4e1a2de897 Fix memory leak.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=851434
2008-08-23 16:37:04 +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
Aaron J. Seigo
32705801ba SVN_SILENT: ws microfix that's sitting on my hd wanting me to commit it so i don't keep seeing it in svn stat
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=820382
2008-06-14 01:30:39 +00:00
Mark Kretschmann
6406af5f58 Proper fix for the mutex issue, using K_GLOBAL_STATIC.
Thanks to dfaure and ervin for helping.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=814552
2008-05-30 17:04:05 +00:00
Mark Kretschmann
b98775d66f Change bigLock QMutex from static to nonstatic. This fixes a nasty bug that caused Amarok to hang on exit.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=814540
2008-05-30 16:13:57 +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
Dan Meltzer
f57cc1c623 Lotsa little ebn fixes.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=805672
2008-05-09 05:32:15 +00:00
Aaron J. Seigo
6019dc7b27 huge patch, but it's needed to avoid crashes and i can't wait on other people's pending work forever. so...
QueryMatch by value! shared dptr == no copy of data either! so (nearly) all the speed love of pointers with none of the crash hate. woo!

RunnerContext also by value! die pointers die!

also get rid of tons of locking that just doesn't make sense anymore; get rid of data priority enum as well since it's completely meaningless.

speed, glory, stability! ftw!

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=805661
2008-05-09 03:49:11 +00:00
Aaron J. Seigo
6ea602b848 make RunnerManager a friend so we can do the happy-scripting-dance again
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=804739
2008-05-06 20:48:44 +00:00
Aaron J. Seigo
e2ec9b03db * get rid of Plasma-RunnerName; use Name and KPluginInfo's pluginName instead
* add AbstractRunner::id()
* add QueryMatch::id()

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=804670
2008-05-06 18:43:55 +00:00
Aaron J. Seigo
f3188fb672 SearchMatch -> QueryMatch
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803385
2008-05-02 18:46:05 +00:00
Aaron J. Seigo
f55bbb73f9 SearchContext -> RunnerContext
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803041
2008-05-01 18:40:10 +00:00
Jordi Polo
95157e20c4 Big patch with several internal changes to krunner:
-New RunnerManager class, it manages runners at high level 
and gives a simple API for interfaces to use. 
- AbstractRunners gains description, setIgnoredTypes, ignoredTypes methods. 
Now runners can specify what SearchContext::Types they are not going to process.
- SearchContext tries shared data between the original context and any local context.
It doesn't have its own completer no more.
- SearchMatch has a new type of match, CompleterMatch. Instead of using a hard coded 
completer in SearchContext
- Interface class on krunner has its own completer and other changes
done to accomodate the above changes in libplasma.
-A new configuration option blacklist for runnermanager and krunner 
instead of the whitelist of krunner. 


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802903
2008-05-01 07:51:59 +00:00
Aaron J. Seigo
9165b11235 at tokamak i said i regretted using the term "Language" to describe what is really "API". i meant it.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802486
2008-04-29 16:24:14 +00:00
Davide Bettio
c32f8a4511 Replacing exec() with run(): this change wasn't discussed during the tokamak meeting.
run() method is more obvious than exec() (don't forget that a runner run :) ).
Anyway during the meeting we have decided to replace createMatchOptions() with createRunOptions()
and (set)hasMatchOptions() with (set)hasRunOptions(), now with this commit we have a more coherent naming.
CCMAIL: panel-devel@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802143
2008-04-28 17:11:12 +00:00
Albert Astals Cid
4068f45cf9 const & in foreach
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801430
2008-04-26 16:19:00 +00:00
Davide Bettio
5ad0e12cdd API REVIEW: load() -> loadAll()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801377
2008-04-26 13:10:37 +00:00
Davide Bettio
444c2f6b49 API REVIEW: createMatchOptions() -> createRunOptions()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801372
2008-04-26 12:54:25 +00:00
Davide Bettio
e576ed397b API REVIEW: (set)hasMatchOptions -> (set)hasRunOptions()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801367
2008-04-26 12:41:16 +00:00