Commit Graph

164 Commits

Author SHA1 Message Date
Aaron Seigo
97a13a9dbe make DataEngineConsumer public API
this will become the prefered way to access DataEngines rather than
DataEngineManager which exposes implementation details that need to
be manually managed
2012-09-24 15:52:16 +02:00
David Faure
6c932bca0f Remove unused kglobal.h includes, thx to tsdgeos' magic bash line
Replace a few more KGlobal::locale with KLocale::global
2012-09-04 20:52:25 +02:00
Sune Vuorela
101a0b38f1 add some klocale includes to plasma to make it build 2012-03-24 11:51:32 +01:00
David Faure
083d157684 Merge remote-tracking branch 'origin/KDE/4.8' into origin-frameworks
Conflicts:
	kdecore/network/k3datagramsocket.cpp
	kdeui/actions/kstandardaction.cpp
	kdeui/dialogs/kconfigdialogmanager.cpp
	kdeui/icons/kicondialog.cpp
	kdeui/itemviews/kviewstatesaver.h
	kfile/knewfilemenu.cpp
	kio/misc/kpac/downloader.cpp
	kio/tests/kdirlistertest.cpp
	kparts/browserextension.cpp
	nepomuk/core/nepomukmainmodel.cpp
	nepomuk/query/queryserviceclient.cpp
	nepomuk/test/ratingpaintertestwidget.cpp
	nepomuk/ui/kedittagsdialog.cpp
	nepomuk/ui/ktagcloudwidget.cpp
	nepomuk/ui/ktagdisplaywidget.cpp
	nepomuk/ui/nepomukmassupdatejob.cpp
	nepomuk/ui/tagwidget.cpp
	nepomuk/utils/daterangeselectionwidget.cpp
	nepomuk/utils/facetwidget.cpp
	nepomuk/utils/searchwidget.cpp
	plasma/containment.cpp
	plasma/datacontainer.cpp
	plasma/deprecated/animator.cpp
	plasma/extenders/extender.cpp
	plasma/plasma.h
	plasma/scripting/wallpaperscript.cpp
	tier1/solid/tests/networkingclient.cpp
(signal/slot normalization changes conflicted with KUrl->QUrl changes
and with other changes in frameworks)
2012-02-14 12:32:25 +01:00
Dawit Alemayehu
fb0b49af8c Normalize all signal/slot connections.
REVIEW: 103728
2012-02-13 14:27:21 -05: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
Aaron Seigo
61cdb24cdb force of habit :) 2011-12-02 21:48:34 +01:00
Aaron Seigo
7074f1b74f grab the source name before removing the iterator
the previous fix, which i accidentally reverted while cleaning up this code,
was actually wrong (so in a way i'm glad i caught it): the signal MUST be emitted
AFTER the item is removed from the collection otherwise any code that checks to
see if that source exists will see that it does still exist even though it was
just signaled as being removed. order sometimes really matters :)

CCMAIL:kde@rusu.info
BUG:287795
2011-12-02 21:48:34 +01:00
Marco Martin
523ef55a7b remove the iterator after accessing it 2011-12-02 21:48:32 +01:00
Aaron Seigo
3c401cd360 force of habit :) 2011-11-30 15:19:58 +01:00
Aaron Seigo
b31a05c41e get rid of the source limiting; wasn't used, only overhead 2011-11-30 12:58:20 +01:00
Aaron Seigo
6cd33ae4a0 grab the source name before removing the iterator
the previous fix, which i accidentally reverted while cleaning up this code,
was actually wrong (so in a way i'm glad i caught it): the signal MUST be emitted
AFTER the item is removed from the collection otherwise any code that checks to
see if that source exists will see that it does still exist even though it was
just signaled as being removed. order sometimes really matters :)

CCMAIL:kde@rusu.info
BUG:287795
2011-11-30 09:23:03 +01:00
Marco Martin
58b6cc3e43 remove the iterator after accessing it 2011-11-29 15:53:17 +01:00
Aaron Seigo
5727ade508 Merge remote branch 'origin/KDE/4.7' into frameworks
Conflicts:
	kio/kfile/kfilemetadatareaderprocess.cpp
2011-11-28 11:00:27 +01:00
Aaron Seigo
e7ffcacf1f emit sourceRemoved when the container is deleted outside of removeSource 2011-11-28 10:42:40 +01:00
Aaron Seigo
e500cd4bd7 make removeAllSources match removeSource closer 2011-11-28 10:37:21 +01:00
Rolf Eike Beer
7d1a833fc1 Merge branch 'KDE/4.7' into frameworks 2011-10-07 18:47:11 +02:00
Valentin Rusu
03ff689d04 Fix crash due to assertion in Qt when using Qt 4.8
=6  0x00007f34dd379ab5 in raise (sig=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
=7  0x00007f34dd37afb6 in abort () at abort.c:92
=8  0x00007f34df37d208 in qt_message_output (msgType=QtFatalMsg,
buf=0x158b628 "ASSERT: \"item_exists()\" in file
/home/kde/include/QtCore/qhash.h, line 1037") at global/qglobal.cpp:2255
=9  0x00007f34df37d384 in qt_message(QtMsgType, const char *, typedef
__va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f34df542188
"ASSERT: \"%s\" in file %s, line %d", ap=0x7fff4835b7e0) at
global/qglobal.cpp:2301
=10 0x00007f34df37dbf2 in qFatal (msg=0x7f34df542188 "ASSERT: \"%s\" in
file %s, line %d") at global/qglobal.cpp:2484
=11 0x00007f34df37cdbb in qt_assert (assertion=0x7f34d5cc7311
"item_exists()", file=0x7f34d5cc72f0 "/home/kde/include/QtCore/qhash.h",
line=1037) at global/qglobal.cpp:1999
=12 0x00007f34d5b109ef in QMutableHashIterator<QString,
Plasma::DataContainer*>::key (this=0x7fff4835b920) at
/home/kde/include/QtCore/qhash.h:1037
=13 0x00007f34d5b0db4a in Plasma::DataEngine::removeAllSources
(this=0x1007a90) at /home/kde/work/kdelibs/plasma/dataengine.cpp:335
2011-10-05 23:10:54 +02:00
Valentin Rusu
830026d068 Fix crash due to assertion in Qt when using Qt 4.8
=6  0x00007f34dd379ab5 in raise (sig=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
=7  0x00007f34dd37afb6 in abort () at abort.c:92
=8  0x00007f34df37d208 in qt_message_output (msgType=QtFatalMsg,
buf=0x158b628 "ASSERT: \"item_exists()\" in file
/home/kde/include/QtCore/qhash.h, line 1037") at global/qglobal.cpp:2255
=9  0x00007f34df37d384 in qt_message(QtMsgType, const char *, typedef
__va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f34df542188
"ASSERT: \"%s\" in file %s, line %d", ap=0x7fff4835b7e0) at
global/qglobal.cpp:2301
=10 0x00007f34df37dbf2 in qFatal (msg=0x7f34df542188 "ASSERT: \"%s\" in
file %s, line %d") at global/qglobal.cpp:2484
=11 0x00007f34df37cdbb in qt_assert (assertion=0x7f34d5cc7311
"item_exists()", file=0x7f34d5cc72f0 "/home/kde/include/QtCore/qhash.h",
line=1037) at global/qglobal.cpp:1999
=12 0x00007f34d5b109ef in QMutableHashIterator<QString,
Plasma::DataContainer*>::key (this=0x7fff4835b920) at
/home/kde/include/QtCore/qhash.h:1037
=13 0x00007f34d5b0db4a in Plasma::DataEngine::removeAllSources
(this=0x1007a90) at /home/kde/work/kdelibs/plasma/dataengine.cpp:335
2011-10-05 23:03:37 +02:00
Aaron Seigo
81a320fe70 small performance improvement for the removeAllSources case 2011-10-04 16:47:04 +02:00
Aaron Seigo
28ab3be499 small performance improvement for the removeAllSources case 2011-10-03 14:07:19 +02:00
David Faure
24bd3d69eb Merge remote branch 'origin/KDE/4.7' into origin-frameworks 2011-09-02 10:08:03 +02:00
Aaron Seigo
423ce0c356 don't emit addSource for a source being added in a sourceRequest event until the event is over 2011-09-01 19:07:22 +02:00
Aaron Seigo
82eee5c3b7 avoid compiling in debug strings when compiled without debug 2011-07-29 15:46:52 +02:00
Aaron Seigo
35898d57f1 get rid of all Class:load(..) methods, use PluginLoader directrly. --apiBloat; 2011-07-19 22:04:22 +02:00
Aaron Seigo
e7106d2422 no longer provide access to the package from the class, let Package do that; adapt to Package merge 2011-07-15 13:01:17 +02:00
Aaron Seigo
ecbca8f142 add bool isUsed() const and remove checkUsage() 2011-06-03 16:04:50 +02:00
Aaron Seigo
03b775fe0c --PackageMetadata 2011-05-31 00:09:07 +02:00
Aaron Seigo
cd32321b68 Merge branch 'libplasma2_signedpackages' into libplasma2
Conflicts:
	plasma/package.cpp
2011-05-30 23:41:53 +02:00
Aaron Seigo
8a41ab7051 comment not accurate afaict 2011-05-06 12:02:46 +02:00
Aaron Seigo
9cdbf422ff consolidate remoting files, add signing gsoc 2011-04-29 15:18:35 +02:00
Marco Martin
15ac609228 after applet's dataupdated is called, dirty=false
in DataEnginePrivate::connectSource, if it's an immediate call, and QMetaObject::invokeMethod(visualization, "dataUpdated" is called, means the datacontainers' dirty bit must be set to false, otherwise we will get two subsequent dataUpdated

can it have countereffects?

CCMAIL:plasma-devel@kde.org
2011-03-02 22:08:16 +01:00
Marco Martin
b0472dc212 port the kconfig based storage service to Sqlite
make save and restore methods of datasource private for now
pu this early so performance/disk usage etc can be tested

svn path=/trunk/KDE/kdelibs/; revision=1181650
2010-10-01 16:58:15 +00:00
Aaron J. Seigo
5c72c867eb values less than zero are completely valid
svn path=/trunk/KDE/kdelibs/; revision=1173983
2010-09-11 01:20:40 +00:00
Marco Martin
db7227e7f4 setStorageEnabled() is a way more sensible function name
svn path=/trunk/KDE/kdelibs/; revision=1168023
2010-08-25 21:35:40 +00:00
Aaron J. Seigo
3af1f71492 really don't store things that shouldn't be stored.
svn path=/trunk/KDE/kdelibs/; revision=1168012
2010-08-25 21:17:54 +00:00
Aaron J. Seigo
36c90e7137 prep DataEngine::Private for direct loading of packages, ala plasmoids
svn path=/trunk/KDE/kdelibs/; revision=1159707
2010-08-06 01:26:11 +00:00
Brian David Pritchett
1259ea24cd Redid much of the storage capability and implemented many suggestions.
svn path=/trunk/KDE/kdelibs/; revision=1156347
2010-07-28 23:28:31 +00:00
Aaron J. Seigo
451049664e * various FIXME notes in dataengine.cpp; Brian, if you could look through them and ask if you have any questions regarding them
* only check for stored data if the DataContainer is thusly marked; removes a huge bottleneck for non-storage-backed engines; currently this probably breaks storage support (since marking the source as storage related probably happens after it is created and so this doesn't get calle?) but there is a FIXME note there that states what the fix should be
* some code clean ups

CCMAIL:batenkaitos@gmail.com

svn path=/trunk/KDE/kdelibs/; revision=1150416
2010-07-15 21:58:58 +00:00
Aaron J. Seigo
4c4996ac3b this id should not be reset
svn path=/trunk/KDE/kdelibs/; revision=1149949
2010-07-14 17:15:20 +00:00
Brian David Pritchett
53a227a43f This adds the first iteration of data caching for dataengines.
svn path=/trunk/KDE/kdelibs/; revision=1149185
2010-07-12 20:51:12 +00:00
Aaron J. Seigo
0b877bdbb8 unused
svn path=/trunk/KDE/kdelibs/; revision=1137107
2010-06-11 17:18:06 +00:00
Sebastian Kügler
daf79ebe98 fix signal / slot
svn path=/trunk/KDE/kdelibs/; revision=1136817
2010-06-10 20:38:36 +00:00
Aaron J. Seigo
81ac415af6 don't pay the penalty of checking through the collection when we removed it ourselves; use the iterator we already have when erasing on container deletion instead of making the hash do another lookup based on key
svn path=/trunk/KDE/kdelibs/; revision=1136422
2010-06-09 19:09:13 +00:00
Laurent Montel
ec543102a2 Fix iterator
svn path=/trunk/KDE/kdelibs/; revision=1136417
2010-06-09 18:41:23 +00:00
Marco Martin
3e3fd09aab clean up from the sources if somebody deletes a DataContainer
BUG:235881

svn path=/trunk/KDE/kdelibs/; revision=1136398
2010-06-09 18:04:28 +00:00
Aaron J. Seigo
fe70333098 never has been needed
svn path=/trunk/KDE/kdelibs/; revision=1128636
2010-05-19 20:02:31 +00:00
Shaun Reich
a5da2705a9 introduce setDefaultService(serviceName) and createDefaultService(QObject*). allows the dataengine (inheritor) to specify which service should probably be used. so applet users don't have to know those things if it's just 1
svn path=/trunk/KDE/kdelibs/; revision=1126712
2010-05-14 17:41:40 +00:00
Aaron J. Seigo
e56ec546f3 SVN_SILENT: ooh, old. tidy up.
svn path=/trunk/KDE/kdelibs/; revision=1122858
2010-05-04 21:15:10 +00:00