1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 15:29:42 +01:00

10692 Commits

Author SHA1 Message Date
Dominik Schmidt
343767f03c Make function not found message actually useful 2015-02-06 23:00:17 +01:00
Dominik Schmidt
c840dbbf78 Remove script objects automatically from ScriptAccount when they are deleted 2015-02-06 23:00:17 +01:00
Dominik Schmidt
3c1e1ea35c Remove info plugins automatically from InfoSystemWorker when they are deleted 2015-02-06 23:00:17 +01:00
Dominik Schmidt
de3cde4a38 Store scriptObject in a QPointer in ScriptPlugin 2015-02-06 23:00:17 +01:00
Dominik Schmidt
96a601d16f Delete ScriptInfoPlugin if underlying ScriptObject dies 2015-02-06 23:00:17 +01:00
Dominik Schmidt
07838afaa6 Port ScriptInfoPlugin to new generic script plugin infrastructure 2015-02-06 23:00:16 +01:00
Dominik Schmidt
5e5ff7938a Rename JSInfoPlugin to ScriptInfoPlugin 2015-02-06 23:00:16 +01:00
Dominik Schmidt
df4abb1ef1 Allow plugins to enforce reloading of the resolver, to invalidate old results 2015-02-06 23:00:16 +01:00
Dominik Schmidt
3b2ac21dbf Remove script collections before trying to add a new collection. If latter fails no invalid collections are removed 2015-02-06 23:00:16 +01:00
Dominik Schmidt
7d114ea0f3 Reset config widget data on Cancel 2015-02-06 23:00:16 +01:00
Dominik Schmidt
fffe3cbf1f Allow saving of invalid config on second try 2015-02-06 23:00:16 +01:00
Dominik Schmidt
e2fd7e5681 Move config data handling into AccountConfigWidget 2015-02-06 23:00:16 +01:00
Dominik Schmidt
d5c5eb1e44 Show inline error instead of error popup 2015-02-06 23:00:16 +01:00
Dominik Schmidt
132c7d4cd2 Add configTest to ResolverAccounts 2015-02-06 23:00:16 +01:00
Dominik Schmidt
7550d23431 Pass empty QVariantMap as default arguments to ScriptObject::invoke 2015-02-06 23:00:16 +01:00
Dominik Schmidt
e2593eddc7 Register the resolver as scriptObject 2015-02-06 23:00:15 +01:00
Dominik Schmidt
1c0deb7115 Pass account to DelegateConfigWrapper 2015-02-06 23:00:15 +01:00
Dominik Schmidt
fbc547f882 Add JS debug spam, to be removed later 2015-02-06 23:00:15 +01:00
Dominik Schmidt
fa832e3a36 Move ScriptPlugin initialization to own factory method 2015-02-06 23:00:15 +01:00
Dominik Schmidt
2890190c82 Remove LinkGeneratorPlugins from LinkGenerator on destruction 2015-02-06 23:00:15 +01:00
Dominik Schmidt
f751aa501c Use ScriptPlugin base class in ScriptLinkGeneratorPlugin 2015-02-06 23:00:15 +01:00
Dominik Schmidt
6a239e24d1 Add ScriptPlugin class 2015-02-06 23:00:15 +01:00
Dominik Schmidt
7adac470da Rename ScriptPlugin to ScriptAccount and JSPlugin to JSAccount 2015-02-06 23:00:15 +01:00
Dominik Schmidt
b59c272819 Set collection on (non-collection) search/resolve results if collectionId is set in script response 2015-02-06 23:00:15 +01:00
Dominik Schmidt
62731c7907 tbr: Add id to ScriptCollection 2015-02-06 23:00:14 +01:00
Dominik Schmidt
7e9cb98154 Link script collection results to their collection 2015-02-06 23:00:14 +01:00
Dominik Schmidt
f0e1248e3d Use LinkGenerator in AdiumPlugin too 2015-02-06 23:00:14 +01:00
Dominik Schmidt
dbd047b42a Move more JSPlugin implementations to their own file 2015-02-06 23:00:14 +01:00
Dominik Schmidt
b2c3ab8532 Use integers as object ids 2015-02-06 23:00:14 +01:00
Dominik Schmidt
3138ec9f40 Remove special case for shortened query links, toma.hk shortener only supports toma.hk/tomahawk:// links 2015-02-06 23:00:14 +01:00
Dominik Schmidt
dc502d61d2 Add artist name to generate album name request 2015-02-06 23:00:14 +01:00
Dominik Schmidt
8d15e12973 Handle scripts not returning promises 2015-02-06 23:00:14 +01:00
Dominik Schmidt
507df5317e Make sure the ScriptJob fails if script does not return an object for a request 2015-02-06 23:00:14 +01:00
Dominik Schmidt
558e6f5294 Handle ScriptJob errors gracefully 2015-02-06 23:00:14 +01:00
Dominik Schmidt
3d4cfa0161 Address simple issues raised in PR 2015-02-06 23:00:13 +01:00
Dominik Schmidt
8ecb67178b Handle ScriptJob tracking completely in the same class. Credits to xhochy for the idea. 2015-02-06 23:00:13 +01:00
Dominik Schmidt
cefa97af18 Add name() to JSPlugin.
This is more of a hack until JSResolver is ported to be a ScriptResolver
2015-02-06 23:00:13 +01:00
Dominik Schmidt
42343c81c4 Don't leak ScriptJob in XmppInfoPlugin 2015-02-06 23:00:13 +01:00
Dominik Schmidt
a59cdbe19f Implement request / script uuids 2015-02-06 23:00:13 +01:00
Dominik Schmidt
ec3f40718e Allow registering C++-plugins from JS, make them usable and use the new api in ScriptLinkGeneratorPlugin 2015-02-06 23:00:13 +01:00
Dominik Schmidt
166be08da3 Add addPlugin method to LinkGenerator 2015-02-06 23:00:13 +01:00
Dominik Schmidt
81fdc368a2 Move JSPlugin implementation to its own file 2015-02-06 23:00:13 +01:00
Dominik Schmidt
0a0cbd15ae Move JSPlugin and ScriptPlugin to their own headers 2015-02-06 23:00:13 +01:00
Dominik Schmidt
28dad3aef3 Add missing include 2015-02-06 23:00:12 +01:00
Dominik Schmidt
6a87492c07 Handle generic JS object serialization in JSPlugin 2015-02-06 23:00:12 +01:00
Dominik Schmidt
67fde57345 Fix style 2015-02-06 23:00:12 +01:00
Dominik Schmidt
cc9963935c Fix ScriptJob (c) 2015-02-06 23:00:12 +01:00
Dominik Schmidt
cd7ca26e78 Pluginify link generation 2015-02-06 23:00:12 +01:00
Dominik Schmidt
33d225233b Streamline link generation api and make it async
getShortUrl or rather its result "shorturl" was only ever used in
XmppInfo and even there was a fallback for creating the shorturl.
As I could not trigger getShortUrl in the InfoSystem and as it was
barely used, I removed it to reduce complexity.
2015-02-06 23:00:12 +01:00
Dominik Schmidt
9542aaffb4 Pull link generation out of GlobalActionManager 2015-02-06 23:00:12 +01:00