Commit Graph

16 Commits

Author SHA1 Message Date
Aaron J. Seigo
003d75fadb allow the common properties implemented in ScriptEnv (for code sharing, consistency) to be assigned to any object (e.g. the m_self/m_iface script values created in the DataEngine and Runner ScriptEngines)
svn path=/trunk/KDE/kdebase/runtime/; revision=1159605
2010-08-05 19:05:37 +00:00
Aaron J. Seigo
7e92e302af correct signal connection
svn path=/trunk/KDE/kdebase/runtime/; revision=1159601
2010-08-05 18:44:51 +00:00
Aaron J. Seigo
814448e8ac it's ok if it is an array as well
svn path=/trunk/KDE/kdebase/runtime/; revision=1158468
2010-08-02 19:59:49 +00:00
Aaron J. Seigo
e36fc57156 include functionality
svn path=/trunk/KDE/kdebase/runtime/; revision=1144434
2010-06-29 22:11:15 +00:00
Aaron J. Seigo
b15e66d188 javascript dataengines now actually work
svn path=/trunk/KDE/kdebase/runtime/; revision=1141016
2010-06-22 01:55:53 +00:00
Aaron J. Seigo
cd753894be support setting full arrays of data
svn path=/trunk/KDE/kdebase/runtime/; revision=1128673
2010-05-19 22:22:52 +00:00
Aaron J. Seigo
a52bd2b9fb avoid an infinite loop
svn path=/trunk/KDE/kdebase/runtime/; revision=1128665
2010-05-19 21:58:18 +00:00
Aaron J. Seigo
d1451eeca0 report and clear exceptions, even when caused by a method connected to a signal
BUG:234811

svn path=/trunk/KDE/kdebase/runtime/; revision=1124155
2010-05-07 23:37:25 +00:00
Richard J. Moore
cc5c47e270 A fairly large patch, but mostly moving things. In order to allow
us to use QScriptEngines from other sources (such as QML) we need
to change the code so that we don't have a custom QScriptEngine
subclass - only one codebase can do that at a time. The scriptenv
is now a normal QObject and contains a QScriptEngine instead of
inheriting from it.

svn path=/trunk/KDE/kdebase/runtime/; revision=1094259
2010-02-22 11:33:21 +00:00
Aaron J. Seigo
58c8a6cc0a share the dataengine bindings between applet and dataengine
svn path=/trunk/KDE/kdebase/runtime/; revision=1089372
2010-02-13 00:53:46 +00:00
Aaron J. Seigo
10238e16af implementation of Service
svn path=/trunk/KDE/kdebase/runtime/; revision=1077832
2010-01-20 23:29:53 +00:00
Aaron J. Seigo
c1f3d903d8 * much simpler way of registering DataEngine::Data
* register the metatype by name with Qt so it can find it; this allows DataEngine::query() to work properly

svn path=/trunk/KDE/kdebase/runtime/; revision=1077821
2010-01-20 23:13:40 +00:00
Aaron J. Seigo
366ca646bd dataengines now support extensions (and network/local io), though without any access restrictions
svn path=/trunk/KDE/kdebase/runtime/; revision=1070944
2010-01-07 02:27:54 +00:00
Aaron J. Seigo
47deeea77c huge cleanup with lots of inter-twined changes, but this should be more or less ready for 4.4.0 at this point! changes include:
* discovered QByteArrays were completely opaque to the runtime, obviously not good seeing how many things use them. fortunately, Qt has bindings for them ... in the examples! so just pulled those over (license compatible, thankfully) and now that works
* implement the remaining security hooks so it knows the difference between different kinds of urls
* export KIO::Job into the runtime; i really wish we could have had more time to do something more elegant than just pushing the object wholesale into the runtime as it exposes a LOT of API, but this works, should be safe (security wise) and as we are in feature freeze there's really nothing better that can be done to replace it at this point in time
* move some of the utility bindings (i18n, DataEngine) into simplebindings/ for consistency
* break out the qvariant stuff that is used outside of the DataEngine bindings for clarity
* brea out a bunch of the bookkeeping setup stuff from simplejavascriptapplet.cpp (it was getting messy) and put it into a separate .cpp file

svn path=/trunk/KDE/kdebase/runtime/; revision=1063070
2009-12-16 22:05:46 +00:00
Burkhard Lück
36e0850ba5 typo fix
svn path=/trunk/KDE/kdebase/runtime/; revision=993303
2009-07-08 12:51:41 +00:00
Aaron J. Seigo
d7c89e409e initial draft of a ECMAScript driven DataEngine.
TODO:
* testing
* binding Plasma::Service

svn path=/trunk/KDE/kdebase/runtime/; revision=991101
2009-07-04 04:30:57 +00:00