Commit Graph

109 Commits

Author SHA1 Message Date
David Faure
3e623699ce Merge remote-tracking branch 'origin/KDE/4.10' into frameworks
Conflicts:
	kdecore/services/kmimeglobsfileparser.cpp [whole file is gone]
	kdecore/sycoca/kprotocolinfo.cpp [rewritten in kio; hand-merged]
	kdeui/widgets/kmainwindow.cpp [geometry handling, code is gone]
	kfile/kfileplacesitem.cpp
	kio/kio/kfileitem.cpp [tons of kurl/qmimetype differences for the big if(!d) patch]
	kio/tests/kfileitemtest.cpp [kurl]
	plasma/private/applethandle.cpp [namespace]
	plasma/runnermanager.cpp
	staging/kservice/src/services/kservicetypetrader.h [i18n]
2012-10-30 19:53:28 +01:00
Aaron Seigo
8af1a4d2f1 prep newly loaded runners if we're running a match 2012-10-25 21:18:59 +02:00
Nicolas Lécureuil
d50d3a3162 Convert to makedefine01 2012-08-24 03:16:04 +02:00
Stephen Kelly
9d49500245 Merge remote-tracking branch 'origin/KDE/4.8' into frameworks
Conflicts:
	CMakeLists.txt
	interfaces/terminal/example/CMakeLists.txt
	kdecore/CMakeLists.txt
	kdeui/actions/ktogglefullscreenaction.cpp
	kdeui/widgets/khelpmenu.cpp
	kio/kio/accessmanager.cpp
	kio/kio/accessmanagerreply_p.cpp
	nepomuk/core/nepomukmainmodel.cpp
	nepomuk/core/resourcedata.cpp
	nepomuk/core/resourcemanager.cpp
	nepomuk/query/andterm_p.h
	nepomuk/query/comparisonterm.cpp
	nepomuk/query/comparisonterm_p.h
	nepomuk/query/literalterm.cpp
	nepomuk/query/literalterm_p.h
	nepomuk/query/negationterm.cpp
	nepomuk/query/negationterm_p.h
	nepomuk/query/optionalterm.cpp
	nepomuk/query/optionalterm_p.h
	nepomuk/query/orterm.cpp
	nepomuk/query/orterm_p.h
	nepomuk/query/query.cpp
	nepomuk/query/resourceterm.cpp
	nepomuk/query/resourceterm_p.h
	nepomuk/query/resourcetypeterm.cpp
	nepomuk/query/resourcetypeterm_p.h
	nepomuk/query/term_p.h
	plasma/package.cpp
	plasma/private/service_p.h
	plasma/runnermanager.cpp
	staging/kwidgets/autotests/kiconloader_unittest.cpp
	tier1/kcoreaddons/src/caching/kshareddatacache.cpp
	tier1/kdbusaddons/src/kdbusinterprocesslock.cpp
	tier1/solid/src/solid/backends/fstab/fstabmanager.cpp
	tier1/solid/src/solid/backends/wmi/wmicdrom.cpp
	tier1/solid/src/solid/backends/wmi/wmidevice.cpp
	tier1/solid/src/solid/backends/wmi/wmimanager.cpp
	tier1/solid/src/solid/backends/wmi/wmiopticaldisc.cpp
2012-06-16 13:40:47 +02:00
David Faure
907c6c2b02 KStandardDirs => QStandardPaths
(mostly using kf5/convert-kstandarddirs.pl)
2012-06-05 01:16:35 +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
Claus Christensen
658fad620a Replaced KGlobal::config() by KSharedConfig::openConfig()
Remodified:   kded/kdedadaptor.cpp
2012-03-24 19:33:54 +01:00
David Faure
9057ce0c70 Fix compilation with the new cmake automoc stuff. 2012-02-08 23:34:07 +01:00
Stephen Kelly
8d37df4b8f Remove moc includes that can be omitted.
Mostly these are "<name>.moc" style includes which are incorrect
compared to qmake and cmake automoc behaviour.
2012-01-31 22:44:36 +01:00
Stephen Kelly
6117d99a7b Make plasma build. 2011-11-22 22:56:29 +01:00
Aaron Seigo
3c55a5489a Merge remote-tracking branch 'origin/KDE/4.7' into frameworks
Conflicts:
	plasma/runnermanager.cpp
2011-11-22 12:56:16 +01: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 Seigo
82eee5c3b7 avoid compiling in debug strings when compiled without debug 2011-07-29 15:46:52 +02:00
Aaron Seigo
e40bb1bcdd adapt to changes in PackageStructure api 2011-07-19 21:53:03 +02:00
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