From 9337294c49c89c5cb01db726835da60af566821f Mon Sep 17 00:00:00 2001 From: Jakob Haufe Date: Sat, 20 Feb 2021 17:48:45 +0000 Subject: [PATCH] New upstream version 3.8 --- README.md | 4 +- icons/dark/128/import_active.png | Bin 0 -> 2125 bytes icons/dark/128/import_active@2x.png | Bin 0 -> 4264 bytes icons/dark/128/import_disabled.png | Bin 0 -> 2537 bytes icons/dark/128/import_disabled@2x.png | Bin 0 -> 5141 bytes icons/dark/128/import_normal.png | Bin 0 -> 2560 bytes icons/dark/128/import_normal@2x.png | Bin 0 -> 5128 bytes icons/dark/32/close_active.png | Bin 0 -> 220 bytes icons/dark/32/close_active@2x.png | Bin 0 -> 343 bytes icons/dark/32/close_disabled.png | Bin 0 -> 377 bytes icons/dark/32/close_disabled@2x.png | Bin 0 -> 652 bytes icons/dark/32/close_normal.png | Bin 0 -> 381 bytes icons/dark/32/close_normal@2x.png | Bin 0 -> 553 bytes icons/light/128/import_active.png | Bin 0 -> 1868 bytes icons/light/128/import_active@2x.png | Bin 0 -> 3807 bytes icons/light/128/import_disabled.png | Bin 0 -> 2532 bytes icons/light/128/import_disabled@2x.png | Bin 0 -> 5137 bytes icons/light/128/import_normal.png | Bin 0 -> 2537 bytes icons/light/128/import_normal@2x.png | Bin 0 -> 5141 bytes icons/light/32/close_active.png | Bin 0 -> 216 bytes icons/light/32/close_active@2x.png | Bin 0 -> 327 bytes icons/light/32/close_disabled.png | Bin 0 -> 376 bytes icons/light/32/close_disabled@2x.png | Bin 0 -> 538 bytes icons/light/32/close_normal.png | Bin 0 -> 377 bytes icons/light/32/close_normal@2x.png | Bin 0 -> 652 bytes lib/http/.github/FUNDING.yml | 2 + lib/http/README.md | 14 + lib/http/src/cachedhttp.cpp | 2 +- lib/http/src/httpreply.h | 13 + lib/js/.gitignore | 2 + lib/js/COPYING | 674 ++++++++++++++++++ lib/js/js.cpp | 114 +++ lib/js/js.h | 105 +++ lib/js/js.pri | 14 + lib/js/jsnamfactory.cpp | 72 ++ lib/js/jsnamfactory.h | 41 ++ lib/js/jsresult.cpp | 39 + lib/js/jsresult.h | 35 + lib/media/.github/FUNDING.yml | 2 + lib/media/src/media.h | 1 + lib/media/src/mpv/mediampv.cpp | 10 +- lib/media/src/mpv/mediampv.h | 1 + lib/media/src/qtav/mediaqtav.cpp | 4 + lib/media/src/qtav/mediaqtav.h | 1 + lib/updater/.github/FUNDING.yml | 2 + lib/updater/README.md | 2 +- lib/updater/marketplace.json | 48 ++ lib/updater/src/impl/defaultupdater.cpp | 4 +- lib/updater/src/impl/openinstaller.cpp | 13 + lib/updater/src/impl/openinstaller.h | 20 + lib/updater/src/impl/runinstaller.cpp | 54 +- lib/updater/src/impl/runinstaller.h | 21 +- lib/updater/src/updater.cpp | 2 + lib/updater/src/updater.h | 7 + lib/updater/updater.pri | 8 +- locale/de_DE.ts | 22 +- locale/hu.ts | 8 +- locale/it.ts | 64 +- locale/ms_MY.ts | 64 +- locale/pt_BR.ts | 52 +- locale/tr.ts | 52 +- locale/zh_TW.ts | 52 +- minitube.appdata.xml | 20 - minitube.pro | 27 +- org.tordini.flavio.minitube.metainfo.xml | 63 ++ src/aboutview.cpp | 2 +- src/aboutview.h | 5 +- src/appwidget.cpp | 1 + src/channelaggregator.cpp | 14 +- src/channelmodel.cpp | 12 +- src/channelview.cpp | 2 + src/database.cpp | 1 - src/downloadview.h | 5 +- src/homeview.h | 4 - src/main.cpp | 4 +- src/mainwindow.cpp | 27 +- src/mainwindow.h | 1 + src/mediaview.cpp | 130 +--- src/playlistitemdelegate.cpp | 1 + src/playlistmodel.cpp | 39 +- src/searchview.cpp | 20 +- src/subscriptionimportview.cpp | 79 ++ src/subscriptionimportview.h | 17 + src/toolbarmenu.cpp | 5 + src/updateutils.cpp | 7 + src/video.cpp | 8 +- src/videoapi.h | 3 + src/view.h | 20 +- src/{ => yt}/invidious/invidious.cpp | 66 +- src/{ => yt}/invidious/invidious.h | 4 +- src/{ => yt}/invidious/invidious.pri | 0 src/{ => yt}/invidious/ivchannel.cpp | 5 + src/{ => yt}/invidious/ivchannel.h | 0 src/{ => yt}/invidious/ivchannelsource.cpp | 4 + src/{ => yt}/invidious/ivchannelsource.h | 0 src/{ => yt}/invidious/ivlistparser.cpp | 0 src/{ => yt}/invidious/ivlistparser.h | 0 src/{ => yt}/invidious/ivsearch.cpp | 4 + src/{ => yt}/invidious/ivsearch.h | 0 .../invidious/ivsinglevideosource.cpp | 14 +- src/{ => yt}/invidious/ivsinglevideosource.h | 0 src/{ => yt}/invidious/ivvideolist.cpp | 7 +- src/{ => yt}/invidious/ivvideolist.h | 0 src/{ => yt}/invidious/ivvideosource.cpp | 2 + src/{ => yt}/invidious/ivvideosource.h | 0 src/yt/searchvideosource.cpp | 89 +++ src/yt/searchvideosource.h | 32 + src/yt/singlevideosource.cpp | 95 +++ src/yt/singlevideosource.h | 42 ++ src/yt/yt.pri | 15 + src/{ => yt}/ytjs/ytjs.pri | 6 +- src/yt/ytjs/ytjschannel.cpp | 32 + src/{ => yt}/ytjs/ytjschannel.h | 0 src/yt/ytjs/ytjschannelsource.cpp | 167 +++++ src/{ => yt}/ytjs/ytjschannelsource.h | 1 + src/{ => yt}/ytjs/ytjssearch.cpp | 162 +++-- src/{ => yt}/ytjs/ytjssearch.h | 0 src/yt/ytjs/ytjssinglevideosource.cpp | 100 +++ src/{ => yt}/ytjs/ytjssinglevideosource.h | 0 src/yt/ytjs/ytjsvideo.cpp | 76 ++ src/{ => yt}/ytjs/ytjsvideo.h | 0 src/ytchannel.cpp | 5 +- src/ytchannel.h | 2 +- src/ytjs/ytjs.cpp | 98 --- src/ytjs/ytjs.h | 115 --- src/ytjs/ytjschannel.cpp | 50 -- src/ytjs/ytjschannelsource.cpp | 166 ----- src/ytjs/ytjsnamfactory.cpp | 57 -- src/ytjs/ytjsnamfactory.h | 32 - src/ytjs/ytjssinglevideosource.cpp | 98 --- src/ytjs/ytjsvideo.cpp | 90 --- 131 files changed, 2578 insertions(+), 1220 deletions(-) create mode 100644 icons/dark/128/import_active.png create mode 100644 icons/dark/128/import_active@2x.png create mode 100644 icons/dark/128/import_disabled.png create mode 100644 icons/dark/128/import_disabled@2x.png create mode 100644 icons/dark/128/import_normal.png create mode 100644 icons/dark/128/import_normal@2x.png create mode 100644 icons/dark/32/close_active.png create mode 100644 icons/dark/32/close_active@2x.png create mode 100644 icons/dark/32/close_disabled.png create mode 100644 icons/dark/32/close_disabled@2x.png create mode 100644 icons/dark/32/close_normal.png create mode 100644 icons/dark/32/close_normal@2x.png create mode 100644 icons/light/128/import_active.png create mode 100644 icons/light/128/import_active@2x.png create mode 100644 icons/light/128/import_disabled.png create mode 100644 icons/light/128/import_disabled@2x.png create mode 100644 icons/light/128/import_normal.png create mode 100644 icons/light/128/import_normal@2x.png create mode 100644 icons/light/32/close_active.png create mode 100644 icons/light/32/close_active@2x.png create mode 100644 icons/light/32/close_disabled.png create mode 100644 icons/light/32/close_disabled@2x.png create mode 100644 icons/light/32/close_normal.png create mode 100644 icons/light/32/close_normal@2x.png create mode 100644 lib/http/.github/FUNDING.yml create mode 100644 lib/js/.gitignore create mode 100644 lib/js/COPYING create mode 100644 lib/js/js.cpp create mode 100644 lib/js/js.h create mode 100644 lib/js/js.pri create mode 100644 lib/js/jsnamfactory.cpp create mode 100644 lib/js/jsnamfactory.h create mode 100644 lib/js/jsresult.cpp create mode 100644 lib/js/jsresult.h create mode 100644 lib/media/.github/FUNDING.yml create mode 100644 lib/updater/.github/FUNDING.yml create mode 100644 lib/updater/marketplace.json create mode 100644 lib/updater/src/impl/openinstaller.cpp create mode 100644 lib/updater/src/impl/openinstaller.h delete mode 100644 minitube.appdata.xml create mode 100644 org.tordini.flavio.minitube.metainfo.xml create mode 100644 src/subscriptionimportview.cpp create mode 100644 src/subscriptionimportview.h rename src/{ => yt}/invidious/invidious.cpp (73%) rename src/{ => yt}/invidious/invidious.h (91%) rename src/{ => yt}/invidious/invidious.pri (100%) rename src/{ => yt}/invidious/ivchannel.cpp (93%) rename src/{ => yt}/invidious/ivchannel.h (100%) rename src/{ => yt}/invidious/ivchannelsource.cpp (95%) rename src/{ => yt}/invidious/ivchannelsource.h (100%) rename src/{ => yt}/invidious/ivlistparser.cpp (100%) rename src/{ => yt}/invidious/ivlistparser.h (100%) rename src/{ => yt}/invidious/ivsearch.cpp (96%) rename src/{ => yt}/invidious/ivsearch.h (100%) rename src/{ => yt}/invidious/ivsinglevideosource.cpp (80%) rename src/{ => yt}/invidious/ivsinglevideosource.h (100%) rename src/{ => yt}/invidious/ivvideolist.cpp (81%) rename src/{ => yt}/invidious/ivvideolist.h (100%) rename src/{ => yt}/invidious/ivvideosource.cpp (90%) rename src/{ => yt}/invidious/ivvideosource.h (100%) create mode 100644 src/yt/searchvideosource.cpp create mode 100644 src/yt/searchvideosource.h create mode 100644 src/yt/singlevideosource.cpp create mode 100644 src/yt/singlevideosource.h create mode 100644 src/yt/yt.pri rename src/{ => yt}/ytjs/ytjs.pri (74%) create mode 100644 src/yt/ytjs/ytjschannel.cpp rename src/{ => yt}/ytjs/ytjschannel.h (100%) create mode 100644 src/yt/ytjs/ytjschannelsource.cpp rename src/{ => yt}/ytjs/ytjschannelsource.h (91%) rename src/{ => yt}/ytjs/ytjssearch.cpp (57%) rename src/{ => yt}/ytjs/ytjssearch.h (100%) create mode 100644 src/yt/ytjs/ytjssinglevideosource.cpp rename src/{ => yt}/ytjs/ytjssinglevideosource.h (100%) create mode 100644 src/yt/ytjs/ytjsvideo.cpp rename src/{ => yt}/ytjs/ytjsvideo.h (100%) delete mode 100644 src/ytjs/ytjs.cpp delete mode 100644 src/ytjs/ytjs.h delete mode 100644 src/ytjs/ytjschannel.cpp delete mode 100644 src/ytjs/ytjschannelsource.cpp delete mode 100644 src/ytjs/ytjsnamfactory.cpp delete mode 100644 src/ytjs/ytjsnamfactory.h delete mode 100644 src/ytjs/ytjssinglevideosource.cpp delete mode 100644 src/ytjs/ytjsvideo.cpp diff --git a/README.md b/README.md index 8dc2650..496030a 100644 --- a/README.md +++ b/README.md @@ -14,11 +14,11 @@ Clone from Github: git clone --recursive https://github.com/flaviotordini/minitube.git -You need Qt >= 5.10 and MPV >= 0.29.0. The following Qt modules are needed: core, gui, widgets, network, sql (using the Sqlite plugin), declarative, dbus, x11extras. +You need Qt >= 5.12 and MPV >= 0.29.0. The following Qt modules are needed: core, gui, widgets, network, sql (using the Sqlite plugin), declarative, dbus, x11extras. To be able to build on a Debian (or derivative) system: - sudo apt install build-essential qt5-default qttools5-dev-tools qt5-qmake qtdeclarative5-dev libqt5sql5-sqlite libqt5x11extras5-dev libmpv-dev + sudo apt install build-essential qt5-default qttools5-dev-tools qt5-qmake qtdeclarative5-dev libqt5sql5-sqlite libqt5x11extras5-dev qt5-image-formats-plugins libmpv-dev Compiling: diff --git a/icons/dark/128/import_active.png b/icons/dark/128/import_active.png new file mode 100644 index 0000000000000000000000000000000000000000..22c169892019cc922e6864d8f0b3c7df352232fd GIT binary patch literal 2125 zcmb_e{X5eO8~<*znX$ZuydBC|rjQBSDKF7!^RmNIQE1-2nY>I%PNYprC8gzUUZd5L zh-YGoV7W1r zK$A%>)J{a#NE)=J)S0&NPTjVr>$y~|jcea?_uu4b~ zq$t|ZmYKuMVO@g#4!tD*)t0Z7+8a0lB@wr+Sk1zvJ_CE(Kf(&=;O)+(hg>5jT8Itr zcx>AvJSwddBJc^dqlw@laS1!gXRB|RS-H_tutyJhiRLO^HrA*13XWL8NJMqP4a=5V z&I53X^b{bwu~Ng|@^*DXPIt&!opg2nKE}k{jWrD%h**<4+qEtQhqVo&2uOjGxP^^a zRa0KY&j!(kn2~l9-!!X|G7zqchIEbD4kzMy+~@%^FLOwc39vN*2i#!UVS+>UVx^UC zb|K_XbmnxIHcD|PK^I%>NFoCL6u~`w_%0hh?*g23TrQ&Av=}FW>~e1m^9B)i>D_wY zV@^SRvYvZsLyl(mx0a=9l<8s=4C%ix62q~S$O6N%W5(~bx$gis)TdvVNROjdfD?|rj^`z5K9J*~7>uBX!w&x@D^N6ONk1uhGOP^RfZsD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Ln_HTB8(Kc=GoX%zSKnN2g|~5=IS|x zm7XV+8R868wiS35s8a-%*8-*Hmpo}zEiL;~_-$W_#|J%}ot=Zvk$m2>La?)Mi#Tm0 zhRi7tT+90LS;1*;w&w9S*Jt~zK-0({Q$l0jj%D4*K)CnNKv^A(+?f4MhDxristOOU z{iRje?SA1EvzuXdT2#4?BccVar+G$Z_s5HuFJGQ#XAHVsY)a$y^b97($3MH%WV<7? z8v=gI&d#1nQn2@&R}0aTFz$lSDMu6#u3pcEjR#(mtBOgc=p24Dbh6~kVaY5e{_3v4 zwu`OGfY1daj>hD^?yXBh{!NxCatjU)_6rZ6C-IWaE7{jB%9hD?><65fPvdTKFzbwk uu$4hz-OV!&EZFG!^y$-|e}$2!w@wCDJabWAgH1~QZouV~JD%ehlKLMg(tP^> literal 0 HcmV?d00001 diff --git a/icons/dark/128/import_disabled@2x.png b/icons/dark/128/import_disabled@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..382b69726b354c3fe3a3bb835a631d0753652c1f GIT binary patch literal 5141 zcmds*`8(8K*vHQpW)wnMhHMQ|%4q5<(lFGZA(dq;89Ujtl(CIWDWS+xNw(70HkQ;h zB1==sz9hz)rHC4eXlSg@r|;kJ{P0}Q_4(m^uKPOsx$pP=Iw#@W855E1vfBXwBE(Y! zO8{WdFANAGpn@Dyd;uyDZe}I~u=V$QR9}=1z^*nT!O%K9`^RWhI5{*ExiBAf;o%Dj zf6J7QH0e*bq{ZxA*^(J1FFsAVIm!gzD|_6*%X#o{^oP^ISH;TTB8SX+hE*=@y^5pE zPChiLd;AtnVufl-!Ym>r3~fEor*sUOAAq-IkB~zB!^6Y?MmT6i^UstaKo#gW;L#Rty*omWvttY}W@+Km(JQzhuod z1~m~ES3S~HW`1cH`niJ_huk}`;3x8fg;#AF0u_sihrs#1KY#ux!gZQXlt`K=M*sGa;+%uK zffxHodObGf=gXII4$R_bP`!Z=hZ}@eJhYeo5y<(^ntF^P@vv&~y1F4ubBkNCVS59(uF@Jw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u9wGRLmK_;i_{^{T_Mqv}$6$pV5^1O}%|a z!Zax~x}NRJoZH9$4#lt_ZM7K&v2Ny zqaWASuDP^FDO!hxtyp5%>{S#fpU+k`yH72B`gGp@(kOIeSd3Rrt`;HFOTS{ldQcn0 zW?K-N%It_Pr$Iny1H$MWpZ%T2GG97(Z`zg6vy!m0Fscn<(~8jK$9#w|3?iqgcy-hb z1lFkS?0p0Eap^EEog_)$F3#(WX~k2845qLMklGB9m4Z7Ei?|K@KW2akFusq>-n*F4 z9t~+`G3VdXVS+v}&Ern#Fy;Ag>aHtVSB5*C@8{a|8@ZtREs4ic41sxhTcmyZss%;D`c+oL9^~2B9f} zMn4SVr3?sk%x94W@4eO8I zX{OM2sKFL~8sygujgE~qs3sYg@EbtS6ELc7k`qD0rM)R>ciyQd7QUhaBG)El0rfPh z=drmeaq;tuhXqpLL*2^*FHbM;VY$EU6^Hq8+kt$?tY)tX!!7-RH zBoe7;&AtWJ)k|gK4=-Pjud5(q#`D-96SL!diFFlB2hKWa-(`6BsydAU(alSS9D0d; z^)I63b?3n*#>%|*n6~N>)9P@^lk*;Wr#N1)9Udc90cW!#rZb;dSy@GhN2r3<$h~N! zgn?&wu3koRalr%AI9Vd8AF}_6)I&t&YtK2Pkm>pHHFJCAGdglW~qcenx6E4^O E2j_7;LI3~& literal 0 HcmV?d00001 diff --git a/icons/dark/128/import_normal.png b/icons/dark/128/import_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..ba59235a62ce60e33af4bd3efd4d66be27ee5cdf GIT binary patch literal 2560 zcmbuA`8ONb7r>wBLN)filte8FDrr!)w2?{el%SR}qCHJb%cy0jJ=I0D6=N%*mO(7F zS7~WPRM1vR(_)C)YDBa&qej&>{ic7w_m}VYyz}lo=e~27bMNQem+tOn4?UoM0001W zbifltn*8HR>=Vh}lfi=`weP&MJsy1jamu=?a{!QRbHv+vU3;)n9Cp>qM{VHy@PzL5 zRD}0F!|_*&+yjcYr=B?$nq&_>rnv35YJ2R@W|rmks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`j-2eap literal 0 HcmV?d00001 diff --git a/icons/dark/128/import_normal@2x.png b/icons/dark/128/import_normal@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..34f8c09212603381fe9eaf6b295e9ee90199e25a GIT binary patch literal 5128 zcmds*`9GB3-^b4wj6V1x#mL$i%SRd{Aq+BNNKwYtWSb&m36(WW`eca|eWL6o;=;%l zl1xpuETxQ*CCV0KO=FAPSNG#_{|EOE_v3zCKb-5F^SI7_yqzjnYjYSDy@i$B!*0NotG|?cVup3?32^2Co%Ts)QVVLLNUqDcbSK8;-kpnZN|FT zB~@GOfsCS#+_kQ%H}6oAv3rGLovH;rmUOSxmmG5`~+ zfuDAX>Bnj88k9!n-by8J83>4Bv{x3*{elv{j?iQf+afCK&t|`kmVnd?W>1yh{ttB{&%{Db*4>lKddG4Gjo#6d)R&j4+wd`u|wa z>1_lG0~BeIB(5EJpJWNfbU-@KcfO@K_4tA-#D3&JKbx)FSY5s14pvB9hJwIR#FgUN zFTl&&&^2=kQ6JW5Y>ei8U3l}@*DpE#`H*L_{&4~x>E03|zsW=EPMPvMe%AcF5F;!N ztC7%N4ZWCYk#rmG8yafV;e7R@eg?(%Y7J&0Mm2XkCtuvdI;&wi!AriO=q#~k{EV4< zJ29VIZ%b>OZHl-WbyRv4-edy<1C6!=h^nZAqucu!r|h|HrlLZ(+8N__jPaTy75>#e zB|x*a3l(TcD?pUJc|ICkL-7UKI85FFiKIO06BC&>$Ku&G1{la01?!KXF9$Kk0?eg{ zWvEPgkqFJIFzxI!chic5Y>~0^pt>rz#Jmjg?1_`QggMsd2@T>8lCc1Cd`R~fyTzPK zAvR(?1RW>tEK+m8CQ`yZEG$fe(sff%61UZmFpL~C8tZAcu;<>py|4uoFo_9dY7kbQ z7kcrR2_NHLkc^w=;lq8YTw8-rR}lHo?zZL6ii(QHd`o*lMQ22jgw7$UZ0$plt8^oObI=H&WI@LSqR(sb znvl#%6{t%C`y*<%Zz!xs4BDI#rop;Y1<7T3oq8-0d`zZIr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mJ>XU`q&`5-m@n{v{shXG;~#D8ev<(mI4If_Q~MThJ~+&z@f}(84GfS z6$Z7DuuH~}b%~rr6Wu3$@x|w^8QoU);bU}zuuz5GpME7Qs_(~(|5|~6JoGS_x}x5s zVmSQD%+1a1JseTEYWqP!0Ec3<{UbI%2*A#D|fQZEZ2)USyIdVb=yqo-?fw*?KJC{&?jDWB5`&>1Bdj6qT_1~=z zhCo@*V_iG#)2tzw7#cq&3ga)G|6{dq+l$vdvez`uWxGTS?!;>WeW1ox4r`t?X40Na>_bqYk;s)R1u&AO$Sh zr(YJm;4V)4a_o_Nl?-Nub)BhsO%Fcjz%ZMuPWW4@j72^0MzhSz$Z`t4$(jt_D1l92 zFQ9|F=Z!>C6(NY-ovFh~fY;?|wH$x@k_{tAtMw;Oy&U6BnfLyx?}=Dq&%un&wF^e= ztC=_e7-(&4LXQK>8pvdG4GG#yGBgeN8s}U?*z&icM#-YTk?!waT;;6h>iG6IV1n^9 zW_51-MUgEh0$o~Gw&_t_U7e5PyMS3R;JU|rQbC}{j&+a0VL&*qPrFf-oAmN$a)RL#$QLmz8|TrP(?M+j1F2jNTmHfO>5Rm7 zd1&@Em`ZBrkhls!7EIYh&qjZ?As(F29oh~h6LM|RCjJ)NP@+90aaCkxWpDV5){np0 aL3r!VJgU$gjexKA0MYy;fqu+A_P+oY$0}g} literal 0 HcmV?d00001 diff --git a/icons/dark/32/close_active.png b/icons/dark/32/close_active.png new file mode 100644 index 0000000000000000000000000000000000000000..f9429db41c5bf794ae0eb53d4d236c671441a9fb GIT binary patch literal 220 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzwj^(N7l!{JxM1({$v}~bo-U3d z5v^~h81gk6@VIK0Gfe$Ge?gORz_YXm7VDYilw8($m3p=Qo2_)TYkso2uX2mPBj*Or zh=zNeFLl$_C~nv=u}?*(a?^}--bTKP$R<&VIeV*jICwrvKWW_gXVvAr*g5?foqJxb z*UD$!o7b2=)p9GVJM;6seXmZ=-CNOF|D(e#;oGkqA>$7m;sQ<`r$4bxRB_JhUpHeC P&~Xf&u6{1-oD!M<4p3Hs literal 0 HcmV?d00001 diff --git a/icons/dark/32/close_active@2x.png b/icons/dark/32/close_active@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..b13aedda2d03648780f8313380bdd3f20f3ba4d5 GIT binary patch literal 343 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=Y)RhkE)4%caKYZ?lNlHoc|2Vl zLn`LHz2TjA$Uwv`@rvoi)B_z|jCT$DC3C+!Ej`>2;nKmzpF`7gmitHBtB{(#5h@titF8pSNjj4^dtmSas`(Fy>1z`!|IWm(qmC|&`BO{@yF0Bh|Scm-nT+)J9K=j~sTBxlaK zXCMZaK@i+)^Qu?S7K);%0xp3iFtpY-+izhQUgvrK{wD(9%cx^uv3ZVxg@}y0{PAl7 z;M*kNh|XIMG2xFiO>s^Jr_l>5|I%wU$55(`M~4xcut!S XLl=R3sF>y300000NkvXXu0mjf862W@ literal 0 HcmV?d00001 diff --git a/icons/dark/32/close_disabled@2x.png b/icons/dark/32/close_disabled@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..0c3043b9eaa610715e2c966d033cadf665e0d656 GIT binary patch literal 652 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=Y)RhkE)4%caKYZ?lNlJ896ene zLn`LHo#CA)>?q(6KQpIB_(s%OQ=SL~Zo$r+W4e9=y(Gq@Dmd+d z#Iy->Ot{k${zyLd{~n?7)oh#Fys)dq{-IwR7HM=Lq3xWVdlROmes_JsknlYx&)B<& zGnjba|L(+be747iYh}(H#}C96>b6{nDLU=uA}-)$!J@X*JKH;Aij9Hb#OWI!>Ff}$ zKKQWU$61MD){-CEI~Z-Uwnp7=Km71|>i6hu`F4SOMsxp^ay(pc|NZ`c+58elhI_wH zy9&8HIcUUL`DytX_5U>n5_6Vxn07Km#2?a|)ZW6BP|CU6OHSwvV|T=~gvA$s>|Fh1 zp&Da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(79VhPCrO`yX)($eYz~6u_kved36OpJkOxi5Wm`e+t;=<(LY=*q%?HIdJ9TzI!Hd{m++r2N`;KZw&jQ9hgQu&X%Q~loCIIgZ_!|HK literal 0 HcmV?d00001 diff --git a/icons/light/128/import_active.png b/icons/light/128/import_active.png new file mode 100644 index 0000000000000000000000000000000000000000..8395d052e568720f66425fc546d5d34c81b88634 GIT binary patch literal 1868 zcmbVNX;f1O6McChgb)^yuv3Zw#RMr3wy-D27SPBJT7p4CEhr&Uku{pI$RhM0OMwcq zTA~sR3L;49vw|e-pd!UBNT}=rLRCOg{C`!}(*S%M>aIcBLB0*2?0gfM9nlqiJhDd&QhfP)sVnK24Tcl|^lDDLwDfsPWWj$i#L z^czcXllz9thxXCo1zj~iXrf*sQ72fD&EtVC zg?31;;n6JiaFX!{%%-_BmzZok0NoW9TjH4DHg+3^54L>2ZDY9WRNJbNnMadpnLpBj zyalf@IjOd3Y0V|JOq<_{=_!`1=%sqKVGeVw#lGE65r3YE;NXg}^24&B_2aj162Ni) z42Z^=E22RwIqZ4&>yBLIpmws6sym=8X=w`gyfiRAwy7o-j%JyU z;-UM{26g+#rE^NEcu4p)FUR=V25`vS^@=T2RBeVl>kyr7bTPHFt{QY@ug&n}>^z+C z9+d;9in8mS1qbNt zXX;{h?-48erqnNkhdD($ToXv$t>Q1}*Z$hsK|CY!-69wPAK|5-qX8 zg)zl1%Ci{QCt>^=e{Yb}j2Z*|i`Ih;*sBAJ7c;kHw$S}xXAtuiY*t5;-%u&jvJVjU z;cju!MeEKmCU9&7&DvFpPHA}g_;Xe%#pY8|jrtC2C0kn!{QMu861k@mD@~b~3LX5= zj{)?(1=nkrC0`Cyg+>}K#KjFzwABTjk&EVCPD&Xm>Q&WxpLRv^BFFi>53RAZ5`E3{436n8MIJ#?P${@U?`I^bAbFr5kVU-jgn!S6fO@V`fg=fM1i< zyZLAP67pJYRnN_Q`)Ao6#P)Y9Xm0&YjCTQs2Jp5F_4p1}+?{EEH+6X=Vu<(mkjH9> z3LvKT+DPU&r+7>_A@TqUVA-##A31Uoj>NVm#!qYeG8%Sj2Fq%zP7gyE9pODcN!wJW za$KtItiV#RL&ZJ|BS=87>?Z$&R%J{d=;hX zZC6CF=d=&(9&#*xwZ7Fs}>>q zcYuyy^ZePUX0Q;|0q69ZPCdwHWNQT9@9?MTxmUjGh+6aTyVo=LbM)^G`frO9_7i+v z7SiY~4P+Zd>Te1%zwDCIL-3iLcOwI7r8*Xz!(GlqH&dM}xP^i`WrF{60%L)+kQP`J z3$(3YqZA`o0+Mui;c~GhW@~@#J Yql=HHStDq6JMR&oxKUjjUFfO*0-!5MN&o-= literal 0 HcmV?d00001 diff --git a/icons/light/128/import_active@2x.png b/icons/light/128/import_active@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..40894259053c9d3f1bec7389caec0f669e9d9937 GIT binary patch literal 3807 zcmdT{`9IX(_rI^#m>JoXv1KWWd~9V&A!`~^NJYt*i6o&JHI}S1Mc!@1(AYvXDrBkb zp;vE3-dSpRBkS~5#9%0f4Eav)@1OAf<@w%nDi|*nR=Ktx=S-j$vVWdxW z!=EBoE!s6!+v_Ge>Uz~Zk+B1Gkvc^?wzWrRrkw$AFRy;OF`pN3R+9OJz`eY*R}jG; z3E)-Pq_#sIFcUQ@q9(E%tfLw>?|F98KkbGW##=mi_^?2uqVmY?G_gI{$b@0u>O(%D zL@^F-_YX6w$jTDp>J6?NSUwgqwJGxvzmA-e)+_d@V(I-#YZIdApvB_t9Rrq}3uo0q z1bj)i&miz_T;3;PSa{6Wf#Yqtz33;InnwJ^O-cgyBt_7?IHn{p-|0u3l0lJbADIs@ z&EJ4KurXjE536OW| zw826rRQ47qKHi6kk&oO}(Yl=Dttn3H13`i75BSdrP_8-OBmO~#B4AVx(#0M73QX*e zB6Uba;5y8&YrJWhZ}WrhY%wQTs2dh*$XyueHL%1jtIQB9wpKE4*UdzH#i=gGUi)B$ zQZXNSWLV;C1~l{})o!bp|vqs)Lzc*Heo z^%y%vMYN%uU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uk^P3sXi2^HPpm1XC{zqo{6WQck7TqkR;F!98!DbH*ivh&nS z-J*&g_KljrQNg6iDXQ`aJ2?bS)*@KwmW@9}M(?vP-|q2ax(7}q)#CxcGLm8W<7%E$ zR|WKkPxho7m&hg;K7uB-X}^J{;83VspDr3c1f&T2%b z&L*#z&k!ARLUOAywVI9kGLJ rmo`mW{@TrM4z6L`<$5&(k5|8}iOk|<`mmyKj{$IUaM@pGN4oMqmd>+k literal 0 HcmV?d00001 diff --git a/icons/light/128/import_disabled.png b/icons/light/128/import_disabled.png new file mode 100644 index 0000000000000000000000000000000000000000..b78ecfd38d086ca40d71b1641ff6fe04ae8d48dd GIT binary patch literal 2532 zcmbVO`CAg`6MsP$)IV^Cgg!mig~fgDG|I&O<__fgSeuA%JiHN_F?IMF6OC{0O_qNfmRI=~r}*8T36A zcg}9|n6a}+if=}rTuGrBg%6)seDK*lIP$_aRXYpu%J#dIq zVYcI00l~rIjBKMiwm;-EBx!?ygDX5TMJFUc1W2X}M-g0GTbur>`A~1Vp%Zlm$|lw` z@GL%ZxLcG0FLV-a)WbK;zkjcgl8x%w#?bAo#eS^c4b4B)96Vo)jygX$H}~>>??-n> z2n+_Bx+a_)06*%di+7&cE`NE-dF^w6J*oe!{&n@j-z=Fu@$KukQ+B4iUeWSapl5J{ zACwMP=0q@4xQUDD6=l`_W?@1DpWY{|mQLWJG-`W0RHLc!5zFePhL2YiPVXxk zF;|K8hUa<^1xDF1`4hOX(smxDizjcH?Fa*>8h+LGj$_Rf^z`&-Fnum8p^{*65s4Tk zA5J^12B*IH*fF2FOA1GO5qDhU`0s){UEJW{_T|eLnbvdX8O;R*$bdOIUTiNWS`3|P zvSG46C4&Q3A88^iLT&W;`)Im9!;*mDBbd|7JsR}OFKgD4J^fJRu!h7r^S1{+tr>;j z5*|As@+ZUX2~Q(_S)Q-tqCf1nR3DN^T9IB^Bx0r|hraaj_cF=etu^Mr!Hz8KLpq64 z8i`#Ez=d0Xgk>m}zu}|#)&lp|1k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gpS$WTmH?ZJ6=-g1 z`X&D;pObgT<=(jJ&j9#VJ8(&z34eC7f@>l74v2KY9U0+#8=cIP(Oi@d9ye$YQ6M?wQUKzz*DKCh$T37f8?4dbg zuwGQ>leYBM-;Zw>+ZGf+5*lKA_D}m3C$>4}?0(xlX4|4Rgg}Ds{)#&YM?LkvDQqH! zA2GM<%4XAVbgF=V{6x`Bl<|p*irNS}={6eL!;I6+{t(rB6OcIIMDPFDFi-yvgPnmG ztW}XfqC`^}W1nMAG41z2($uG#whzCVsClf+Y6yi;)VFUAck784+l76cuR&NLCY==o zB?5nQNkLhF~h$Lk|%78q$6*Ao! z0ZtrykjpYh2l-u%?i&--qva;7oCWJu`oPWar&lFY)G}Tj2dEl0z~DhUq{o$%l$768 zyCMZTl&84oRBwJqtpdlfO4lQd@RO@|WWAHnc3{rEgT!-7lOrafh^{~dNF?&dsjCEM zqmk~4=Q=?-k8C73T`I@)j=6xES{bWmzC=764lmKg zn7sE>mwA*w^yspyU~8Pi2=h9!?T?MZ=Ve?rm179lRIYJAzF>%}Vw$|iutqYtR)1@H z5W*2*qDjq)#fYIej$S)j;d~G-IH2k%5*Qe`1>?Vnpefa6+>>>;C|+GNEqEVg&;9hv z=R61`qCpnd+#7{u$#*m(U=C4<*@0kEza4_7b8C~(diNZ$87g(MQekWcTaT2v+S8bl z&k+D{adYcvsHl8B#@~2cKZ&W0iI*jY?`<#22pxOi>Y>B+bod7CzDjo%i<7qYS~jZ23>R>$vudNlgX#>{Eg)4X zjZI1eKa6lXg8D9)oF~uSR@ke8cdYGhoIgWN`5F;z?!F{e%1c@8G~hc#VUr{%tIjuP d8|FKX;EJ@_mls~uXh8q?0M^(XQ(@>9^IyvDMs@%I literal 0 HcmV?d00001 diff --git a/icons/light/128/import_normal.png b/icons/light/128/import_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..58dade05d24826148b503ef497109fbae0195c51 GIT binary patch literal 2537 zcmbuB`#%%vAHbh&E*oVN3At@WCUSR>G^}KD$t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uziozf)06-7dPrsiX0hv>ro?7 zA;d$MG>vzm_4fA800Ln_HTB8(Kc=GoX%zSKnN2g|~5=IS|x zm7XV+8R868wiS35s8a-%*8-*Hmpo}zEiL;~_-$W_#|J%}ot=Zvk$m2>La?)Mi#Tm0 zhRi7tT+90LS;1*;w&w9S*Jt~zK-0({Q$l0jj%D4*K)CnNKv^A(+?f4MhDxristOOU z{iRje?SA1EvzuXdT2#4?BccVar+G$Z_s5HuFJGQ#XAHVsY)a$y^b97($3MH%WV<7? z8v=gI&d#1nQn2@&R}0aTFz$lSDMu6#u3pcEjR#(mtBOgc=p24Dbh6~kVaY5e{_3v4 zwu`OGfY1daj>hD^?yXBh{!NxCatjU)_6rZ6C-IWaE7{jB%9hD?><65fPvdTKFzbwk uu$4hz-OV!&EZFG!^y$-|e}$2!w@wCDJabWAgH1~QZouV~JD%ehlKLMg(tP^> literal 0 HcmV?d00001 diff --git a/icons/light/128/import_normal@2x.png b/icons/light/128/import_normal@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..382b69726b354c3fe3a3bb835a631d0753652c1f GIT binary patch literal 5141 zcmds*`8(8K*vHQpW)wnMhHMQ|%4q5<(lFGZA(dq;89Ujtl(CIWDWS+xNw(70HkQ;h zB1==sz9hz)rHC4eXlSg@r|;kJ{P0}Q_4(m^uKPOsx$pP=Iw#@W855E1vfBXwBE(Y! zO8{WdFANAGpn@Dyd;uyDZe}I~u=V$QR9}=1z^*nT!O%K9`^RWhI5{*ExiBAf;o%Dj zf6J7QH0e*bq{ZxA*^(J1FFsAVIm!gzD|_6*%X#o{^oP^ISH;TTB8SX+hE*=@y^5pE zPChiLd;AtnVufl-!Ym>r3~fEor*sUOAAq-IkB~zB!^6Y?MmT6i^UstaKo#gW;L#Rty*omWvttY}W@+Km(JQzhuod z1~m~ES3S~HW`1cH`niJ_huk}`;3x8fg;#AF0u_sihrs#1KY#ux!gZQXlt`K=M*sGa;+%uK zffxHodObGf=gXII4$R_bP`!Z=hZ}@eJhYeo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L)bGz-&l zfIay526)5J&-D}YV@{YpedmgDYAkql9u9wGRLmK_;i_{^{T_Mqv}$6$pV5^1O}%|a z!Zax~x}NRJoZH9$4#lt_ZM7K&v2Ny zqaWASuDP^FDO!hxtyp5%>{S#fpU+k`yH72B`gGp@(kOIeSd3Rrt`;HFOTS{ldQcn0 zW?K-N%It_Pr$Iny1H$MWpZ%T2GG97(Z`zg6vy!m0Fscn<(~8jK$9#w|3?iqgcy-hb z1lFkS?0p0Eap^EEog_)$F3#(WX~k2845qLMklGB9m4Z7Ei?|K@KW2akFusq>-n*F4 z9t~+`G3VdXVS+v}&Ern#Fy;Ag>aHtVSB5*C@8{a|8@ZtREs4ic41sxhTcmyZss%;D`c+oL9^~2B9f} zMn4SVr3?sk%x94W@4eO8I zX{OM2sKFL~8sygujgE~qs3sYg@EbtS6ELc7k`qD0rM)R>ciyQd7QUhaBG)El0rfPh z=drmeaq;tuhXqpLL*2^*FHbM;VY$EU6^Hq8+kt$?tY)tX!!7-RH zBoe7;&AtWJ)k|gK4=-Pjud5(q#`D-96SL!diFFlB2hKWa-(`6BsydAU(alSS9D0d; z^)I63b?3n*#>%|*n6~N>)9P@^lk*;Wr#N1)9Udc90cW!#rZb;dSy@GhN2r3<$h~N! zgn?&wu3koRalr%AI9Vd8AF}_6)I&t&YtK2Pkm>pHHFJCAGdglW~qcenx6E4^O E2j_7;LI3~& literal 0 HcmV?d00001 diff --git a/icons/light/32/close_active.png b/icons/light/32/close_active.png new file mode 100644 index 0000000000000000000000000000000000000000..edf63194818c0507da96d1c299871f2ba78b1d56 GIT binary patch literal 216 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzwj^(N7l!{JxM1({$v}}_PZ!6K zh}O4L9J!he1YGCub#|`)FWfOtF)dbH?s%ROi(zxZGN+&UqB9gftIcF-5pbH5&LSkx zGiO3E8-F9qngcNtIV`s^O>RFR{No7|_Xo2ieg4K-N6vTUPjR<>f9+b0$yx*)X>sG`xc2IgQDyeo6K?_+PIkj9me44 L>gTe~DWM4feS=Zb literal 0 HcmV?d00001 diff --git a/icons/light/32/close_active@2x.png b/icons/light/32/close_active@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..1784c92d84a2a700ed35122b67017ffd58a6b18a GIT binary patch literal 327 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=Y)RhkE)4%caKYZ?lYt_CJY5_^ zD(1Ys;hA^HLBQ?d@;RL{%wdi?hk6^|NW61WiFgpEqL%nw;LcyW&ZXVIPA}$C@tg!g zn&;FvFqR!Kaoj7p;eD2$(3R8g*ey!;D{tsnvGqk(OV#Ta@3?M!zFu%fVBO*Q4Y`Zt zHqR=&U2$LW4tKrES>4bh;@cVP8sDEezHh3c<0?-1FPtHlv=%8^{lG((@jb7hLg7LfOufZ_focdTOJHK~z|U?UON10#Oi#zn$=IfF$0)Vy!8Spd}_=frj01pv^WM!2&I% zu;Ktxa03k-VIT7>ganZ_1JPLUzVf}v%s(^#KqL~0oH~g$uq?|bpsA{Nd7dx!#S}%+ z5|METVVPxF&yrWH0)Qsa7LiF&6s?-#6QI40HDMOuoa+IvKq?|HWm%qY{zjwGnTR|C zDKKBHR`=Gt<`rxTRaG?sE`d4FanAYeH}C!Ra5#Mb69MpL)G07qKc~PTz9Qrm9!lhU@qHOI5w$b0rrcga>P0vw#r75}4NQInVQjs&;{Ck|YQDAQFj0PMZ(> Wl9&RG8%9F_0000kYZplRc(p z#EH+HxTwwZWY1g1kAKZ1T_yYPi}&YBy1>8_-Hlgxua(w5cqe$H@cUDKI{`i!`!8> zbB$+z|E}L~U-hCN_tVPEO6)4VK6!4qDpGVZOL2Kp=EGh6UAW`F8*3zV&zF2v_|Ts>AR?hVyjS-_L6oF&?-j&?U}a zS=O|^E3Pq!ziQ>=go)t^cfXaL*k;-KMmfQ1t{n6Imm39(zHb&dq?7)C6WfP5kD`-X zC+If#cIEd9I!$BvC30U&)~V0<;NfQytG}Pw_srpm#@Cq+K!JRom}@{Q-_;#@_3DFa zsC~5Mw1Yn{mA*IKtK3p~{r&G#hD=%y7=K*kxp_}|mRgJQ1NDOU@8$=64Tgof%e`gx YS|M7UyqBZ$fsxJN>FVdQ&MBb@061j!ApigX literal 0 HcmV?d00001 diff --git a/icons/light/32/close_normal.png b/icons/light/32/close_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..94497e987c08623f436745b172a8fe4ba145b0ec GIT binary patch literal 377 zcmV-<0fzpGP)pF`7gmitHBtB{(#5h@titF8pSNjj4^dtmSas`(Fy>1z`!|IWm(qmC|&`BO{@yF0Bh|Scm-nT+)J9K=j~sTBxlaK zXCMZaK@i+)^Qu?S7K);%0xp3iFtpY-+izhQUgvrK{wD(9%cx^uv3ZVxg@}y0{PAl7 z;M*kNh|XIMG2xFiO>s^Jr_l>5|I%wU$55(`M~4xcut!S XLl=R3sF>y300000NkvXXu0mjf862W@ literal 0 HcmV?d00001 diff --git a/icons/light/32/close_normal@2x.png b/icons/light/32/close_normal@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..0c3043b9eaa610715e2c966d033cadf665e0d656 GIT binary patch literal 652 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=Y)RhkE)4%caKYZ?lNlJ896ene zLn`LHo#CA)>?q(6KQpIB_(s%OQ=SL~Zo$r+W4e9=y(Gq@Dmd+d z#Iy->Ot{k${zyLd{~n?7)oh#Fys)dq{-IwR7HM=Lq3xWVdlROmes_JsknlYx&)B<& zGnjba|L(+be747iYh}(H#}C96>b6{nDLU=uA}-)$!J@X*JKH;Aij9Hb#OWI!>Ff}$ zKKQWU$61MD){-CEI~Z-Uwnp7=Km71|>i6hu`F4SOMsxp^ay(pc|NZ`c+58elhI_wH zy9&8HIcUUL`DytX_5U>n5_6Vxn07Km#2?a|)ZW6BP|CU6OHSwvV|T=~gvA$s>|Fh1 zp&DaA?9I>TZ)WX(KgW8t^13Dc4wCQxy1JHYY=5-q*8FRt;kir;HmQkR+4lDIk{K-j zwX^OriXPqYV1BU^SC;Su@q;%x^O^1#+*P`LY{taz{}%P_$f{)dRA0A^Ii_8J&*h2c z=k)f;I;ZDd6^#BQd*Suhc??r)>uzpH>G}C^@Bc|g`<5_$dLk~HvusuER2GGuEh$W4 zzWWlwg(h)CnEz~w_2|%3sBiz?$NKoKmT;V2B8yE*l+$gA&o`^>yCn0w%A4|U6m2U% zH@EYI-RHXxL)Tbv2W>f6`11EL_SsyVk5}E#_v(_pAS}oq)8&yqJ2+NvA#)7lbEQv8 jQ45eGw`= 5.15) - Redirection support (now supported by Qt >= 5.6) +- Disk-based cache implementation similar to Qt's but not strictly a HTTP cache, i.e. it ignores HTTP headers. This is good if want to cache successful requests irrespective of what the origin server says you should do. The cache also fallbacks to stale content when the server returns an error. ## Design @@ -98,6 +99,19 @@ connect(reply, &HttpReply::finished, this, [](auto &reply) { }); ``` +Or using two separate signals for success and failure: +``` +#include "http.h" + +auto reply = Http::instance().get("https://google.com/"); +connect(reply, &HttpReply::data, this, [](auto &bytes) { + qDebug() << "Feel the bytes!" << bytes; +}); +connect(reply, &HttpReply::error, this, [](auto &msg) { + qDebug() << "Something's wrong here" << msg; +}); +``` + This is a real-world example of building a Http object with more complex features. It throttles requests, uses a custom user agent and caches results: ``` diff --git a/lib/http/src/cachedhttp.cpp b/lib/http/src/cachedhttp.cpp index ad213b3..b0d3e72 100644 --- a/lib/http/src/cachedhttp.cpp +++ b/lib/http/src/cachedhttp.cpp @@ -97,7 +97,7 @@ HttpReply *CachedHttp::request(const HttpRequest &req) { qDebug() << "HIT" << key << req.url; return new CachedHttpReply(value, req.url); } - qDebug() << "MISS" << key << req.url; + // qDebug() << "MISS" << key << req.url; return new WrappedHttpReply(*this, cache, key, http.request(req)); } diff --git a/lib/http/src/httpreply.h b/lib/http/src/httpreply.h index 2d79ff6..2c8601f 100644 --- a/lib/http/src/httpreply.h +++ b/lib/http/src/httpreply.h @@ -16,6 +16,19 @@ public: virtual QByteArray header(const QByteArray &headerName) const; virtual QByteArray body() const = 0; + template HttpReply &onData(Functor lambda) { + connect(this, &HttpReply::data, this, lambda); + return *this; + } + template HttpReply &onError(Functor lambda) { + connect(this, &HttpReply::error, this, lambda); + return *this; + } + template HttpReply &onFinished(Functor lambda) { + connect(this, &HttpReply::finished, this, lambda); + return *this; + } + signals: void data(const QByteArray &bytes); void error(const QString &message); diff --git a/lib/js/.gitignore b/lib/js/.gitignore new file mode 100644 index 0000000..9bea433 --- /dev/null +++ b/lib/js/.gitignore @@ -0,0 +1,2 @@ + +.DS_Store diff --git a/lib/js/COPYING b/lib/js/COPYING new file mode 100644 index 0000000..94a9ed0 --- /dev/null +++ b/lib/js/COPYING @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/lib/js/js.cpp b/lib/js/js.cpp new file mode 100644 index 0000000..2390ef5 --- /dev/null +++ b/lib/js/js.cpp @@ -0,0 +1,114 @@ +#include "js.h" + +#include "cachedhttp.h" + +namespace { +Http &cachedHttp() { + static Http *h = [] { + CachedHttp *cachedHttp = new CachedHttp(Http::instance(), "js"); + cachedHttp->setMaxSeconds(3600); + // Avoid expiring the cached js + cachedHttp->setMaxSize(0); + + cachedHttp->getValidators().insert("application/javascript", [](const auto &reply) -> bool { + return !reply.body().isEmpty(); + }); + + return cachedHttp; + }(); + return *h; +} +} // namespace + +JS &JS::instance() { + static thread_local JS i; + return i; +} + +JS::JS(QObject *parent) : QObject(parent), engine(nullptr) {} + +void JS::initialize(const QUrl &url) { + this->url = url; + initialize(); +} + +bool JS::checkError(const QJSValue &value) { + if (value.isError()) { + qWarning() << "Error" << value.toString(); + qDebug() << value.property("stack").toString().splitRef('\n'); + return true; + } + return false; +} + +bool JS::isInitialized() { + if (ready) return true; + initialize(); + return false; +} + +JSResult &JS::callFunction(JSResult *result, const QString &name, const QJSValueList &args) { + if (!isInitialized()) { + qDebug() << "Not initialized"; + QTimer::singleShot(1000, this, + [this, result, name, args] { callFunction(result, name, args); }); + return *result; + } + + auto function = engine->evaluate(name); + if (!function.isCallable()) { + qWarning() << function.toString() << " is not callable"; + QTimer::singleShot(0, result, [result, function] { result->setError(function); }); + return *result; + } + + auto args2 = args; + args2.prepend(engine->newQObject(result)); + qDebug() << "Calling" << function.toString(); + auto v = function.call(args2); + if (checkError(v)) QTimer::singleShot(0, result, [result, v] { result->setError(v); }); + + return *result; +} + +void JS::initialize() { + if (url.isEmpty()) { + qDebug() << "No js url set"; + return; + } + + if (initializing) return; + initializing = true; + qDebug() << "Initializing"; + + if (engine) engine->deleteLater(); + engine = new QQmlEngine(this); + engine->setNetworkAccessManagerFactory(&namFactory); + engine->globalObject().setProperty("global", engine->globalObject()); + + QJSValue timer = engine->newQObject(new JSTimer(engine)); + engine->globalObject().setProperty("setTimeoutQt", timer.property("setTimeout")); + QJSValue setTimeoutWrapperFunction = + engine->evaluate("function setTimeout(cb, delay) {" + "const args = Array.prototype.slice.call(arguments, 2);" + "return setTimeoutQt(cb, delay, args);" + "}"); + checkError(setTimeoutWrapperFunction); + engine->globalObject().setProperty("clearTimeout", timer.property("clearTimeout")); + + connect(cachedHttp().get(url), &HttpReply::finished, this, [this](auto &reply) { + if (!reply.isSuccessful()) { + emit initFailed("Cannot load JS"); + qDebug() << "Cannot load JS"; + initializing = false; + return; + } + auto value = engine->evaluate(reply.body()); + if (!checkError(value)) { + qDebug() << "Initialized"; + ready = true; + emit initialized(); + } + initializing = false; + }); +} diff --git a/lib/js/js.h b/lib/js/js.h new file mode 100644 index 0000000..8f0e33a --- /dev/null +++ b/lib/js/js.h @@ -0,0 +1,105 @@ +#ifndef JS_H +#define JS_H + +#include + +#include "jsnamfactory.h" +#include "jsresult.h" + +class JSTimer : public QTimer { + Q_OBJECT + +public: + static auto &getTimers() { + static QHash timers; + return timers; + } + + auto getId() const { return id; } + + // This should be static but cannot bind static functions to QJSEngine + Q_INVOKABLE QJSValue clearTimeout(QJSValue id) { + auto timer = getTimers().take(id.toUInt()); + if (timer) { + timer->stop(); + timer->deleteLater(); + } else + qDebug() << "Unknown id" << id.toUInt(); + return QJSValue(); + } + // This should be static but cannot bind static functions to QJSEngine + Q_INVOKABLE QJSValue setTimeout(QJSValue callback, QJSValue delayTime, QJSValue args) { + qDebug() << callback.toString() << delayTime.toInt() << args.toString(); + + QJSValueList valueArgs; + if (args.isArray()) { + const int argsLength = args.property("length").toInt(); + for (int i = 0; i < argsLength; ++i) { + auto arg = args.property(i); + qDebug() << "Adding arg" << arg.toString(); + valueArgs << arg; + } + } + + auto timer = new JSTimer(); + timer->setInterval(delayTime.toInt()); + connect(timer, &JSTimer::timeout, this, [callback, valueArgs]() mutable { + qDebug() << "Calling" << callback.toString(); + if (!callback.isCallable()) qDebug() << callback.toString() << "is not callable"; + auto value = callback.call(valueArgs); + if (value.isError()) { + qWarning() << "Error" << value.toString(); + qDebug() << value.property("stack").toString().splitRef('\n'); + } + }); + timer->start(); + return timer->getId(); + } + + Q_INVOKABLE JSTimer(QObject *parent = nullptr) : QTimer(parent) { + setTimerType(Qt::CoarseTimer); + setSingleShot(true); + // avoid 0 + static uint counter = 1; + id = counter++; + connect(this, &JSTimer::destroyed, this, [id = id] { getTimers().remove(id); }); + connect(this, &JSTimer::timeout, this, &QTimer::deleteLater); + getTimers().insert(id, this); + } + +private: + uint id; +}; + +class JS : public QObject { + Q_OBJECT + +public: + static JS &instance(); + + explicit JS(QObject *parent = nullptr); + JSNAMFactory &getNamFactory() { return namFactory; }; + + void initialize(const QUrl &url); + bool checkError(const QJSValue &value); + + bool isInitialized(); + QQmlEngine &getEngine() { return *engine; } + + JSResult &callFunction(JSResult *result, const QString &name, const QJSValueList &args); + +signals: + void initialized(); + void initFailed(QString message); + +private: + void initialize(); + + QQmlEngine *engine; + JSNAMFactory namFactory; + bool initializing = false; + bool ready = false; + QUrl url; +}; + +#endif // JS_H diff --git a/lib/js/js.pri b/lib/js/js.pri new file mode 100644 index 0000000..62baf7f --- /dev/null +++ b/lib/js/js.pri @@ -0,0 +1,14 @@ +INCLUDEPATH += $$PWD +DEPENDPATH += $$PWD + +QT *= qml + +HEADERS += \ + $$PWD/js.h \ + $$PWD/jsnamfactory.h \ + $$PWD/jsresult.h + +SOURCES += \ + $$PWD/js.cpp \ + $$PWD/jsnamfactory.cpp \ + $$PWD/jsresult.cpp diff --git a/lib/js/jsnamfactory.cpp b/lib/js/jsnamfactory.cpp new file mode 100644 index 0000000..3490916 --- /dev/null +++ b/lib/js/jsnamfactory.cpp @@ -0,0 +1,72 @@ +#include "jsnamfactory.h" + +JSDiskCache::JSDiskCache(QObject *parent) : QNetworkDiskCache(parent) {} + +void JSDiskCache::updateMetaData(const QNetworkCacheMetaData &meta) { + auto meta2 = fixMetadata(meta); + QNetworkDiskCache::updateMetaData(meta2); +} + +QIODevice *JSDiskCache::prepare(const QNetworkCacheMetaData &meta) { + auto meta2 = fixMetadata(meta); + return QNetworkDiskCache::prepare(meta2); +} + +QNetworkCacheMetaData JSDiskCache::fixMetadata(const QNetworkCacheMetaData &meta) { + QNetworkCacheMetaData meta2 = meta; + + auto now = QDateTime::currentDateTimeUtc(); + if (meta2.expirationDate() < now) { + meta2.setExpirationDate(now.addSecs(3600)); + } + + // Remove caching headers + auto headers = meta2.rawHeaders(); + for (auto i = headers.begin(); i != headers.end(); ++i) { + // qDebug() << i->first << i->second; + static const QVector headersToRemove{"Cache-Control", "Expires", "Pragma"}; + if (headersToRemove.contains(i->first)) { + qDebug() << "Removing" << i->first << i->second; + headers.erase(i); + } + } + meta2.setRawHeaders(headers); + + return meta2; +} + +JSNAM::JSNAM(QObject *parent, const JSNAMFactory &factory) + : QNetworkAccessManager(parent), factory(factory) { + auto cache = new JSDiskCache(this); + cache->setCacheDirectory(QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + + "/js"); + setCache(cache); + setRedirectPolicy(QNetworkRequest::NoLessSafeRedirectPolicy); +#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) + setTransferTimeout(10000); +#endif +} + +QNetworkReply *JSNAM::createRequest(QNetworkAccessManager::Operation op, + const QNetworkRequest &request, + QIODevice *outgoingData) { + auto req2 = request; + req2.setAttribute(QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::PreferCache); + + auto end = factory.getRequestHeaders().cend(); + for (auto i = factory.getRequestHeaders().cbegin(); i != end; ++i) { + if (!req2.hasRawHeader(i.key())) + req2.setRawHeader(i.key(), i.value()); + else + qDebug() << "Request for" << req2.url() << "already contains header" << i.key() + << req2.rawHeader(i.key()); + } + + qDebug() << req2.url() << req2.rawHeaderList(); + return QNetworkAccessManager::createRequest(op, req2, outgoingData); +} + +QNetworkAccessManager *JSNAMFactory::create(QObject *parent) { + qDebug() << "Creating NAM"; + return new JSNAM(parent, *this); +} diff --git a/lib/js/jsnamfactory.h b/lib/js/jsnamfactory.h new file mode 100644 index 0000000..07b44bb --- /dev/null +++ b/lib/js/jsnamfactory.h @@ -0,0 +1,41 @@ +#ifndef YTJSNAMFACTORY_H +#define YTJSNAMFACTORY_H + +#include + +class JSNAMFactory : public QQmlNetworkAccessManagerFactory { +public: + QNetworkAccessManager *create(QObject *parent); + + void setRequestHeaders(QMap value) { requestHeaders = value; }; + const QMap &getRequestHeaders() const { return requestHeaders; } + +private: + QMap requestHeaders; +}; + +class JSNAM : public QNetworkAccessManager { + Q_OBJECT + +public: + JSNAM(QObject *parent, const JSNAMFactory &factory); + +protected: + QNetworkReply * + createRequest(Operation op, const QNetworkRequest &request, QIODevice *outgoingData); + +private: + const JSNAMFactory &factory; +}; + +class JSDiskCache : public QNetworkDiskCache { +public: + JSDiskCache(QObject *parent); + void updateMetaData(const QNetworkCacheMetaData &meta); + QIODevice *prepare(const QNetworkCacheMetaData &meta); + +private: + QNetworkCacheMetaData fixMetadata(const QNetworkCacheMetaData &meta); +}; + +#endif // YTJSNAMFACTORY_H diff --git a/lib/js/jsresult.cpp b/lib/js/jsresult.cpp new file mode 100644 index 0000000..fc48d6a --- /dev/null +++ b/lib/js/jsresult.cpp @@ -0,0 +1,39 @@ +#include "jsresult.h" + +QJSValue JSResult::setData(QJSValue value) { + qDebug() << "Success" << value.toString(); + + if (isSignalConnected(QMetaMethod::fromSignal(&JSResult::json))) { + if (value.isObject()) { + auto doc = QJsonDocument::fromVariant(value.toVariant()); + if (doc.isEmpty()) { + qDebug() << value.toString(); + emit error("Cannot parse JSON"); + return QJSValue(); + } + emit json(doc); + } + } + + if (isSignalConnected(QMetaMethod::fromSignal(&JSResult::string))) { + qDebug() << "Emitting string signal"; + if (value.isUndefined() || value.isNull()) + emit string(QString()); + else + emit string(value.toString()); + } + + // This object has JavascriptOwnership + // But it is deleted very late by the JS engine + deleteLater(); + + return QJSValue(); +} + +QJSValue JSResult::setError(QJSValue value) { + QString message = value.toString(); + qWarning() << "Error" << message; + qDebug() << value.property("stack").toString().splitRef('\n'); + emit error(message); + return QJSValue(); +} diff --git a/lib/js/jsresult.h b/lib/js/jsresult.h new file mode 100644 index 0000000..6fe64cf --- /dev/null +++ b/lib/js/jsresult.h @@ -0,0 +1,35 @@ +#ifndef JSRESULT_H +#define JSRESULT_H + +#include + +class JSResult : public QObject { + Q_OBJECT + +public: + JSResult(QObject *parent = nullptr) : QObject(parent) {} + ~JSResult() { qDebug() << "Destroying result"; } + + template JSResult &onString(Functor lambda) { + connect(this, &JSResult::string, this, lambda); + return *this; + } + template JSResult &onJson(Functor lambda) { + connect(this, &JSResult::json, this, lambda); + return *this; + } + template JSResult &onError(Functor lambda) { + connect(this, &JSResult::error, this, lambda); + return *this; + } + + Q_INVOKABLE QJSValue setData(QJSValue value); + Q_INVOKABLE QJSValue setError(QJSValue value); + +signals: + void json(const QJsonDocument &doc); + void string(const QString &data); + void error(const QString &message); +}; + +#endif // JSRESULT_H diff --git a/lib/media/.github/FUNDING.yml b/lib/media/.github/FUNDING.yml new file mode 100644 index 0000000..136a229 --- /dev/null +++ b/lib/media/.github/FUNDING.yml @@ -0,0 +1,2 @@ +github: flaviotordini +custom: https://flavio.tordini.org/donate diff --git a/lib/media/src/media.h b/lib/media/src/media.h index a14327f..68eb321 100644 --- a/lib/media/src/media.h +++ b/lib/media/src/media.h @@ -39,6 +39,7 @@ public: virtual void pause() = 0; virtual void stop() = 0; virtual void seek(qint64 ms) = 0; + virtual void relativeSeek(qint64 ms) = 0; virtual QString file() const = 0; virtual void setBufferMilliseconds(qint64 value) = 0; diff --git a/lib/media/src/mpv/mediampv.cpp b/lib/media/src/mpv/mediampv.cpp index 6291511..8a548b7 100644 --- a/lib/media/src/mpv/mediampv.cpp +++ b/lib/media/src/mpv/mediampv.cpp @@ -359,9 +359,17 @@ void MediaMPV::seek(qint64 ms) { sendCommand(args); } +void MediaMPV::relativeSeek(qint64 ms) { + double seconds = ms / 1000.; + QByteArray ba = QString::number(seconds).toUtf8(); + const char *args[] = {"seek", ba.constData(), "relative", nullptr}; + sendCommand(args); +} + QString MediaMPV::file() const { - char *path; + char *path = nullptr; mpv_get_property(mpv, "path", MPV_FORMAT_STRING, &path); + if (!path) return QString(); return QString::fromUtf8(path); } diff --git a/lib/media/src/mpv/mediampv.h b/lib/media/src/mpv/mediampv.h index 9f8e0c4..52ec572 100644 --- a/lib/media/src/mpv/mediampv.h +++ b/lib/media/src/mpv/mediampv.h @@ -26,6 +26,7 @@ public: void pause(); void stop(); void seek(qint64 ms); + void relativeSeek(qint64 ms); QString file() const; void setBufferMilliseconds(qint64 value); void setUserAgent(const QString &value); diff --git a/lib/media/src/qtav/mediaqtav.cpp b/lib/media/src/qtav/mediaqtav.cpp index c5a095b..26eb311 100644 --- a/lib/media/src/qtav/mediaqtav.cpp +++ b/lib/media/src/qtav/mediaqtav.cpp @@ -263,6 +263,10 @@ void MediaQtAV::seek(qint64 ms) { currentPlayer->setPosition(ms); } +void MediaQtAV::relativeSeek(qint64 ms) { + currentPlayer->setPosition(currentPlayer->position() + ms); +} + QtAV::AVPlayer *MediaQtAV::createPlayer(bool audioOnly) { QtAV::AVPlayer *p = new QtAV::AVPlayer(this); diff --git a/lib/media/src/qtav/mediaqtav.h b/lib/media/src/qtav/mediaqtav.h index d343790..cc90652 100644 --- a/lib/media/src/qtav/mediaqtav.h +++ b/lib/media/src/qtav/mediaqtav.h @@ -30,6 +30,7 @@ public: void pause(); void stop(); void seek(qint64 ms); + void relativeSeek(qint64 ms); QString file() const; void setBufferMilliseconds(qint64 value); diff --git a/lib/updater/.github/FUNDING.yml b/lib/updater/.github/FUNDING.yml new file mode 100644 index 0000000..136a229 --- /dev/null +++ b/lib/updater/.github/FUNDING.yml @@ -0,0 +1,2 @@ +github: flaviotordini +custom: https://flavio.tordini.org/donate diff --git a/lib/updater/README.md b/lib/updater/README.md index 76f3b7d..fcd1968 100644 --- a/lib/updater/README.md +++ b/lib/updater/README.md @@ -1,6 +1,6 @@ # An updater for Qt apps -This is an extensible updater for Qt apps. It can wrap Sparkle on macOS and use its own implementation on Windows and Linux. I use it in my apps at https://flavio.tordini.org . +This is an extensible updater for Qt apps. It can wrap [Sparkle](https://sparkle-project.org/) on macOS and use its own implementation on Windows and Linux. I use it in my apps at https://flavio.tordini.org . ## Design diff --git a/lib/updater/marketplace.json b/lib/updater/marketplace.json new file mode 100644 index 0000000..162b7e3 --- /dev/null +++ b/lib/updater/marketplace.json @@ -0,0 +1,48 @@ +{ + "$schema": "http://qt.io/schema/extension-schema-v1#", + "title": "Updater", + "extensionType": [ + "library" + ], + "version": "1", + "vendor": { + "name": "Flavio Tordini", + "url": "https://flavio.tordini.org" + }, + "contact": "Flavio Tordini ", + "copyright": [ + "Flavio Tordini" + ], + "author": "Flavio Tordini", + "icon": "https://flavio.tordini.org/favicon-196x196.png", + "licenses": [ + { + "licenseType": "GPLv3", + "licenseUrl": "https://opensource.org/licenses/GPL-3.0" + } + ], + "created": "2020-07-03", + "platforms": [ + "Windows", + "Linux", + "macOS" + ], + "qtVersions": [ + "5.10.0-or-later" + ], + "tags": [ + "updater,update,deploy,release,tools,utility" + ], + "price": { + "listprice": 0 + }, + "support": "flavio.tordini@gmail.com", + "bugUrl": "https://github.com/flaviotordini/updater/issues", + "sourceRepoUrl": "https://github.com/flaviotordini/updater", + "userManuals": [ + "https://github.com/flaviotordini/updater/blob/master/README.md" + ], + "dependencies": [ + "Network" + ] +} diff --git a/lib/updater/src/impl/defaultupdater.cpp b/lib/updater/src/impl/defaultupdater.cpp index 5c0e9aa..51dd7d3 100644 --- a/lib/updater/src/impl/defaultupdater.cpp +++ b/lib/updater/src/impl/defaultupdater.cpp @@ -4,8 +4,8 @@ #include "dialog.h" #include "downloader.h" #include "installer.h" +#include "openinstaller.h" #include "parser.h" -#include "runinstaller.h" namespace updater { @@ -89,7 +89,7 @@ void DefaultUpdater::checkWithoutUI() { void DefaultUpdater::update() { if (!installer) { - installer = new RunInstaller(); + installer = new OpenInstaller(); installer->setUpdater(this); } connect(installer, &Installer::error, this, [](auto message) { qWarning() << message; }); diff --git a/lib/updater/src/impl/openinstaller.cpp b/lib/updater/src/impl/openinstaller.cpp new file mode 100644 index 0000000..2b77373 --- /dev/null +++ b/lib/updater/src/impl/openinstaller.cpp @@ -0,0 +1,13 @@ +#include "openinstaller.h" + +#include + +namespace updater { + +OpenInstaller::OpenInstaller() {} + +void updater::OpenInstaller::start(const QString &filename) { + if (!QDesktopServices::openUrl(QUrl("file:///" + filename))) emit error("Cannot start update"); +} + +} // namespace updater diff --git a/lib/updater/src/impl/openinstaller.h b/lib/updater/src/impl/openinstaller.h new file mode 100644 index 0000000..1324f34 --- /dev/null +++ b/lib/updater/src/impl/openinstaller.h @@ -0,0 +1,20 @@ +#ifndef OPENINSTALLER_H +#define OPENINSTALLER_H + +#include + +#include "installer.h" + +namespace updater { + +/// Installer implementation that opens the downloaded update +class OpenInstaller : public Installer { + Q_OBJECT + +public: + OpenInstaller(); + void start(const QString &filename); +}; + +} // namespace updater +#endif // OPENINSTALLER_H diff --git a/lib/updater/src/impl/runinstaller.cpp b/lib/updater/src/impl/runinstaller.cpp index 67aa7f2..2e50d27 100644 --- a/lib/updater/src/impl/runinstaller.cpp +++ b/lib/updater/src/impl/runinstaller.cpp @@ -2,20 +2,58 @@ #include +#include "defaultupdater.h" + namespace updater { RunInstaller::RunInstaller() : Installer() {} void RunInstaller::start(const QString &filename) { - if (arguments.isEmpty()) { - if (!QDesktopServices::openUrl(QUrl("file:///" + filename))) - emit error("Cannot start update"); + auto processedArguments = arguments; + processedArguments << autoRestartArguments; + + if (command.isEmpty()) { + command = filename; + } else { + // replace markers + for (auto &arg : processedArguments) + arg.replace("%filename%", filename); +#ifdef Q_OS_LINUX + if (runAsAdmin) { + processedArguments.prepend(command); + command = "pkexec"; + } +#endif + } + + QProcess *process = new QProcess(); + QObject::connect(process, &QProcess::errorOccurred, this, [this](auto error) { + this->emit error("Update error: " + QVariant::fromValue(error).toString()); + }); + + if (autoRestart && updater->getRelaunchAfterInstall()) { + auto thread = new QThread; + process->moveToThread(thread); + connect(process, QOverload::of(&QProcess::finished), this, + [this](int exitCode, QProcess::ExitStatus exitStatus) { + qDebug() << "finished" << exitCode << exitStatus; + if (exitCode == 0 && exitStatus == QProcess::NormalExit) { + qDebug() << "Restarting" << qApp->applicationFilePath(); + QProcess *restartProcess = new QProcess(this); + restartProcess->startDetached(qApp->applicationFilePath(), {}); + } + }); + qDebug() << "Executing" << command << processedArguments; + process->start(command, processedArguments); + process->waitForFinished(60000); } else { - QProcess *process = new QProcess(this); - QObject::connect(process, &QProcess::errorOccurred, this, [this](auto error) { - this->emit error("Update error: " + QVariant::fromValue(error).toString()); - }); - process->startDetached(filename, arguments); + qDebug() << "Forking" << command << processedArguments; + if (!process->startDetached(command, processedArguments)) { + qWarning() << "Cannot execute" << command << processedArguments + << process->errorString(); + // Fallback to opening the downloaded payload + QDesktopServices::openUrl(QUrl("file:///" + filename)); + } } } diff --git a/lib/updater/src/impl/runinstaller.h b/lib/updater/src/impl/runinstaller.h index fbcc7ac..a9ec250 100644 --- a/lib/updater/src/impl/runinstaller.h +++ b/lib/updater/src/impl/runinstaller.h @@ -1,25 +1,42 @@ #ifndef UPDATER_IMPL_RUNINSTALLER_H #define UPDATER_IMPL_RUNINSTALLER_H -#include +#include #include "installer.h" namespace updater { /** - * Installer implementation that simply runs the downloaded update + * Installer implementation that executes a command with arguments */ class RunInstaller : public Installer { Q_OBJECT public: RunInstaller(); + void setCommand(const QString &value) { command = value; } void setArguments(const QStringList &value) { arguments = value; }; + /** + * Currently supported on Linux only using PackageKit (pkexec) + */ + void setRunAsAdmin(bool value) { runAsAdmin = value; } + /** + * This will cause the update process to run while the app is still running. Then the app will + * self-restart. + */ + void setAutoRestart(bool value) { autoRestart = value; } + + void setRelaunchArguments(const QStringList &value) { autoRestartArguments = value; } + void start(const QString &filename); private: + QString command; QStringList arguments; + bool runAsAdmin = false; + bool autoRestart = false; + QStringList autoRestartArguments; }; } // namespace updater diff --git a/lib/updater/src/updater.cpp b/lib/updater/src/updater.cpp index 0f63bf5..3efa41c 100644 --- a/lib/updater/src/updater.cpp +++ b/lib/updater/src/updater.cpp @@ -124,6 +124,8 @@ void Updater::setStatus(Status v) { void Updater::onUserAction() { if (status == Updater::Status::UpdateDownloaded) { + // tell Installer we want the app to be restarted + setRelaunchAfterInstall(true); // update will be installed on quit qApp->quit(); return; diff --git a/lib/updater/src/updater.h b/lib/updater/src/updater.h index 457b1cc..2d25faa 100644 --- a/lib/updater/src/updater.h +++ b/lib/updater/src/updater.h @@ -40,9 +40,15 @@ public: // This should be protected void setDisplayVersion(const QString &value) { displayVersion = value; } + /// true if the app can be stopped and relaunched without user interaction virtual bool getImmediateInstallAndRelaunch() const { return immediateInstallAndRelaunch; } virtual void setImmediateInstallAndRelaunch(bool value) { immediateInstallAndRelaunch = value; } + /// true if the app has to be relaunched after the update has completed + virtual bool getRelaunchAfterInstall() const { return relaunchAfterInstall; } + virtual void setRelaunchAfterInstall(bool value) { relaunchAfterInstall = value; } + + /// when true an available update will be downloaded without user interaction virtual bool getAutomaticDownload() const { return automaticDownload; } virtual void setAutomaticDownload(bool value) { automaticDownload = value; } @@ -65,6 +71,7 @@ private: bool automaticDownload = true; bool immediateInstallAndRelaunch = false; + bool relaunchAfterInstall = false; Status status = Status::UpToDate; QString version; QString displayVersion; diff --git a/lib/updater/updater.pri b/lib/updater/updater.pri index 5bd82b0..5a46789 100644 --- a/lib/updater/updater.pri +++ b/lib/updater/updater.pri @@ -16,7 +16,7 @@ macx:!contains(DEFINES, UPDATER_NO_SPARKLE) { OBJECTIVE_SOURCES += $$PWD/src/sparkle/sparkleupdater.mm } else { DEFINES += UPDATER_DEFAULT - QT *= network + QT *= network widgets INCLUDEPATH += $$PWD/src/impl DEPENDPATH += $$PWD/src/impl @@ -29,7 +29,8 @@ macx:!contains(DEFINES, UPDATER_NO_SPARKLE) { $$PWD/src/impl/parser.h \ $$PWD/src/impl/runinstaller.h \ $$PWD/src/impl/simplexmlparser.h \ - $$PWD/src/impl/appcastparser.h + $$PWD/src/impl/appcastparser.h \ + $$PWD/src/impl/openinstaller.h SOURCES += \ $$PWD/src/impl/checker.cpp \ @@ -38,5 +39,6 @@ macx:!contains(DEFINES, UPDATER_NO_SPARKLE) { $$PWD/src/impl/downloader.cpp \ $$PWD/src/impl/runinstaller.cpp \ $$PWD/src/impl/simplexmlparser.cpp \ - $$PWD/src/impl/appcastparser.cpp + $$PWD/src/impl/appcastparser.cpp \ + $$PWD/src/impl/openinstaller.cpp } diff --git a/locale/de_DE.ts b/locale/de_DE.ts index 4b85013..6908871 100644 --- a/locale/de_DE.ts +++ b/locale/de_DE.ts @@ -852,7 +852,7 @@ Rewind %1 seconds - + %1 Sekunden zurück Fast forward %1 seconds @@ -860,7 +860,7 @@ channel - + Kanal @@ -1038,7 +1038,7 @@ This year - + Dieses Jahr HD @@ -1099,11 +1099,11 @@ Remove - + Entfernen Need a remote control for %1? Try %2! - + Benötigen Sie eine Fernbedinung für %1? Versuchen Sie %2! I keep improving %1 to make it the best I can. Support this work! @@ -1171,19 +1171,19 @@ Music - + Musik News - + Nachrichten Movies - + Filme Gaming - + Spiele @@ -1201,7 +1201,7 @@ Updater Check for Updates... - + Auf Updates überprüfen... Version %1 is available... @@ -1461,7 +1461,7 @@ updater::DefaultUpdater There are currently no updates available. - + Momentan stehen keine Updates zur Verfügung. diff --git a/locale/hu.ts b/locale/hu.ts index 62cde13..7c81d49 100644 --- a/locale/hu.ts +++ b/locale/hu.ts @@ -3,7 +3,7 @@ AboutView There's life outside the browser! - Van élet a böngészőn kívül. + Van élet a böngészőn kívül! Version %1 @@ -15,7 +15,7 @@ %1 is Free Software but its development takes precious time. - A %1 szabad szoftver, de a fejlesztése értékes időt emészt fel. + A %1 egy ingyenes szoftver, de a fejlesztése értékes időt emészt fel. Please <a href='%1'>donate</a> to support the continued development of %2. @@ -85,7 +85,7 @@ Enter License - Liszensz begépelése + Liszensz megadása Buy License @@ -107,7 +107,7 @@ You have %n new video(s) - + %n új videód van%n új videód van diff --git a/locale/it.ts b/locale/it.ts index 49f2aa7..2dcd9fc 100644 --- a/locale/it.ts +++ b/locale/it.ts @@ -223,7 +223,7 @@ %n year(s) ago - + Un anno fa%n anni fa @@ -852,15 +852,15 @@ Rewind %1 seconds - + Indietro %1 secondi Fast forward %1 seconds - + Avanti veloce %1 secondi channel - + canale @@ -1038,19 +1038,19 @@ This year - + Quest'anno HD - + HD 4K - + 4K HDR - + HDR @@ -1099,19 +1099,19 @@ Remove - + Rimuovi Need a remote control for %1? Try %2! - + Hai bisogno di un telecomando per %1? Prova %2! I keep improving %1 to make it the best I can. Support this work! - + Continuo a migliorare %1 per renderlo migliore. Sostieni questo lavoro! An update is ready to be installed. Quit and install update. - + Un aggiornamento è pronto per essere installato. Esci e installa l'aggiornamento. @@ -1167,23 +1167,23 @@ Trending - + Di tendenza Music - + Musica News - + Notizie Movies - + Film Gaming - + Gaming @@ -1201,31 +1201,31 @@ Updater Check for Updates... - + Controllo aggiornamenti... Version %1 is available... - + La versione %1 è disponibile ... Downloading version %1... - + Download versione %1 ... Restart to Update - + Riavvia per aggiornare Version %1 download failed - + Download della versione %1 non riuscito Check for Updates - + Controlla aggiornamenti Download Update - + Scarica aggiornamento Downloading update... @@ -1233,19 +1233,19 @@ Retry Update Download - + Riprova a scaricare l'aggiornamento You have the latest version. - + Hai l'ultima versione. Version %1 is available. - + La versione %1 è disponibile. An update has been downloaded and is ready to be installed. - + È stato scaricato un aggiornamento ed è pronto per essere installato. @@ -1461,18 +1461,18 @@ updater::DefaultUpdater There are currently no updates available. - + Al momento non ci sono aggiornamenti disponibili. updater::Dialog You already have the latest version - + Hai già l'ultima versione Downloading %1 %2... - + Download di %1 %2... A new version of %1 is available! @@ -1492,7 +1492,7 @@ Download Update - + Scarica aggiornamento \ No newline at end of file diff --git a/locale/ms_MY.ts b/locale/ms_MY.ts index dcd53c2..5136a1c 100644 --- a/locale/ms_MY.ts +++ b/locale/ms_MY.ts @@ -223,7 +223,7 @@ %n year(s) ago - + %n tahun yang lalu @@ -852,15 +852,15 @@ Rewind %1 seconds - + Mandir %1 saat Fast forward %1 seconds - + Maju %1 saat channel - + saluran @@ -1038,19 +1038,19 @@ This year - + Tahun ini HD - + HD 4K - + 4K HDR - + HDR @@ -1099,19 +1099,19 @@ Remove - + Buang Need a remote control for %1? Try %2! - + Perlukan satu kawalan jauh untuk %1? Cubalah %2! I keep improving %1 to make it the best I can. Support this work! - + Saya masih kekal menambah baik %1 dengan sedaya upaya saya. Mohon sokong hasil kerja ini! An update is ready to be installed. Quit and install update. - + Satu kemas kini sedia dipasang. Keluar dan pasang kemas kini. @@ -1167,23 +1167,23 @@ Trending - + Sohor Kini Music - + Muzik News - + Berita Movies - + Cereka Gaming - + Permainan @@ -1201,31 +1201,31 @@ Updater Check for Updates... - + Periksa Kemas Kini... Version %1 is available... - + Versi %1 sudah tersedia... Downloading version %1... - + Memuat turun versi %1... Restart to Update - + Mula Semula untuk Kemas Kini Version %1 download failed - + Gagal memuat turun versi %1 Check for Updates - + Periksa Kemas Kini Download Update - + Muat Turun Kemas Kini Downloading update... @@ -1233,19 +1233,19 @@ Retry Update Download - + Cuba Lagi Muat Turun Kemas Kini You have the latest version. - + Anda sudah memiliki versi terkini. Version %1 is available. - + Versi %1 sudah tersedia. An update has been downloaded and is ready to be installed. - + Satu kemas kini telah dimuat turun dan sedia dipasang. @@ -1461,18 +1461,18 @@ updater::DefaultUpdater There are currently no updates available. - + Tiada kemas kini buat masa ini. updater::Dialog You already have the latest version - + Anda sudah memiliki versi terkini Downloading %1 %2... - + Memuat turun %1 %2... A new version of %1 is available! @@ -1492,7 +1492,7 @@ Download Update - + Muat Turun Kemas Kini \ No newline at end of file diff --git a/locale/pt_BR.ts b/locale/pt_BR.ts index 04cc35e..3cb23d5 100644 --- a/locale/pt_BR.ts +++ b/locale/pt_BR.ts @@ -223,7 +223,7 @@ %n year(s) ago - + %n ano atrás%n anos atrás @@ -1038,19 +1038,19 @@ This year - + Este Ano HD - + HD 4K - + 4K HDR - + HDR @@ -1111,7 +1111,7 @@ An update is ready to be installed. Quit and install update. - + Uma atualização está pronta para ser instalada. Sair e instalar a atualização. @@ -1167,23 +1167,23 @@ Trending - + Popular Music - + Música News - + Novidades Movies - + Filmes Gaming - + Jogos @@ -1201,31 +1201,31 @@ Updater Check for Updates... - + Verificar se há atualizações... Version %1 is available... - + A Versão %1 está disponível... Downloading version %1... - + Baixando a versão %1... Restart to Update - + Reiniciar para atualizar Version %1 download failed - + O download da versão %1 falhou Check for Updates - + Verificar se há atualizações Download Update - + Baixar Atualização Downloading update... @@ -1233,19 +1233,19 @@ Retry Update Download - + Tentar baixar novamente a atualização You have the latest version. - + Você possui a última versão. Version %1 is available. - + A Versão %1 já está disponível. An update has been downloaded and is ready to be installed. - + Uma atualização foi baixada e está pronta para ser instalada. @@ -1461,18 +1461,18 @@ updater::DefaultUpdater There are currently no updates available. - + Não há atualizações disponíveis no momento. updater::Dialog You already have the latest version - + Você já possui a última versão Downloading %1 %2... - + Baixando %1 %2... A new version of %1 is available! @@ -1492,7 +1492,7 @@ Download Update - + Baixar Atualização \ No newline at end of file diff --git a/locale/tr.ts b/locale/tr.ts index f04da13..b2f5c2a 100644 --- a/locale/tr.ts +++ b/locale/tr.ts @@ -223,7 +223,7 @@ %n year(s) ago - + %n yıl önce%n yıl önce @@ -1038,19 +1038,19 @@ This year - + Bu yıl HD - + HD 4K - + 4K HDR - + HDR @@ -1111,7 +1111,7 @@ An update is ready to be installed. Quit and install update. - + Bir güncelleme kurulmaya hazır. Güncellemek için çıkın ve kurun. @@ -1167,23 +1167,23 @@ Trending - + Trend Music - + Müzik News - + Yeniler Movies - + Filmler Gaming - + Oyun @@ -1201,31 +1201,31 @@ Updater Check for Updates... - + Güncellemeleri denetle... Version %1 is available... - + %1 sürümü mevcut... Downloading version %1... - + %1 sürümü indiriliyor... Restart to Update - + Güncellemek için Yeniden Başlat Version %1 download failed - + %1 sürümü indirilemedi Check for Updates - + Güncellemeleri denetle Download Update - + Güncellemeyi İndir Downloading update... @@ -1233,19 +1233,19 @@ Retry Update Download - + Güncellemeyi İndirmeyi Yeniden Dene You have the latest version. - + En son sürüme sahipsiniz. Version %1 is available. - + %1 sürümü mevcut. An update has been downloaded and is ready to be installed. - + Bir güncelleme indirildi ve kurulmaya hazır. @@ -1461,18 +1461,18 @@ updater::DefaultUpdater There are currently no updates available. - + Şu anda mevcut güncelleme yok. updater::Dialog You already have the latest version - + Zaten en son sürüme sahipsiniz Downloading %1 %2... - + İndiriliyor %1 %2... A new version of %1 is available! @@ -1492,7 +1492,7 @@ Download Update - + Güncellemeyi İndir \ No newline at end of file diff --git a/locale/zh_TW.ts b/locale/zh_TW.ts index 0e6644f..45a4be0 100644 --- a/locale/zh_TW.ts +++ b/locale/zh_TW.ts @@ -223,7 +223,7 @@ %n year(s) ago - + %n 年前 @@ -1038,19 +1038,19 @@ This year - + 今年 HD - + HD 4K - + 4K HDR - + HDR @@ -1111,7 +1111,7 @@ An update is ready to be installed. Quit and install update. - + 準備好安裝更新。結束並安裝更新。 @@ -1167,23 +1167,23 @@ Trending - + 發燒影片 Music - + 音樂 News - + 新聞 Movies - + 電影 Gaming - + 遊戲 @@ -1201,31 +1201,31 @@ Updater Check for Updates... - + 正在檢查更新…… Version %1 is available... - + 版本 %1 已可使用…… Downloading version %1... - + 正在下載 %1…… Restart to Update - + 重新啟動以更新 Version %1 download failed - + 版本 %1 下載失敗 Check for Updates - + 檢查更新 Download Update - + 下載更新 Downloading update... @@ -1233,19 +1233,19 @@ Retry Update Download - + 重試更新下載 You have the latest version. - + 您已有最新版本。 Version %1 is available. - + 版本 %1 已可使用。 An update has been downloaded and is ready to be installed. - + 更新已下載且已準備好安裝。 @@ -1461,18 +1461,18 @@ updater::DefaultUpdater There are currently no updates available. - + 目前沒有可用的更新。 updater::Dialog You already have the latest version - + 您已有最新版本 Downloading %1 %2... - + 正在下載 %1 %2…… A new version of %1 is available! @@ -1492,7 +1492,7 @@ Download Update - + 下載更新 \ No newline at end of file diff --git a/minitube.appdata.xml b/minitube.appdata.xml deleted file mode 100644 index 9789fa1..0000000 --- a/minitube.appdata.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - Minitube - org.tordini.flavio.minitube - CC0-1.0 - GPL-3.0+ - YouTube app - -

- Minitube is a YouTube desktop application. It is written in C++ using the Qt framework. -

-
- http://flavio.tordini.org/minitube - - http://flavio.tordini.org/files/minitube/minitube-04.jpg - http://flavio.tordini.org/files/minitube/minitube-03.jpg - http://flavio.tordini.org/files/minitube/minitube-02.jpg - http://flavio.tordini.org/files/minitube/minitube-01.jpg - -
diff --git a/minitube.pro b/minitube.pro index e75a41d..0521304 100644 --- a/minitube.pro +++ b/minitube.pro @@ -1,7 +1,7 @@ -CONFIG += c++17 exceptions_off rtti_off optimize_full object_parallel_to_source +CONFIG += c++17 exceptions_off rtti_off object_parallel_to_source TEMPLATE = app -VERSION = 3.6.1 +VERSION = 3.8 DEFINES += APP_VERSION="$$VERSION" APP_NAME = Minitube @@ -22,13 +22,14 @@ CONFIG(debug, debug|release): { CONFIG(release, debug|release): { message(Building for release) DEFINES *= QT_NO_DEBUG_OUTPUT + CONFIG += optimize_full } DEFINES *= QT_USE_QSTRINGBUILDER QT_STRICT_ITERATORS QT_DEPRECATED_WARNINGS -!contains(DEFINES, APP_GOOGLE_API_KEY=.+) { - warning("You need to specify a Google API Key, refer to the README.md file for details") -} +#!contains(DEFINES, APP_GOOGLE_API_KEY=.+) { +# warning("You need to specify a Google API Key, refer to the README.md file for details") +#} TARGET = $${APP_UNIX_NAME} @@ -36,13 +37,13 @@ QT += widgets network sql qml include(lib/http/http.pri) include(lib/idle/idle.pri) +include(lib/js/js.pri) DEFINES += MEDIA_MPV include(lib/media/media.pri) include(src/qtsingleapplication/qtsingleapplication.pri) -include(src/invidious/invidious.pri) -include(src/ytjs/ytjs.pri) +include(src/yt/yt.pri) INCLUDEPATH += $$PWD/src @@ -51,6 +52,7 @@ HEADERS += src/video.h \ src/spacer.h \ src/constants.h \ src/playlistitemdelegate.h \ + src/subscriptionimportview.h \ src/updateutils.h \ src/videoapi.h \ src/videomimedata.h \ @@ -127,6 +129,7 @@ HEADERS += src/video.h \ SOURCES += src/main.cpp \ src/messagebar.cpp \ src/spacer.cpp \ + src/subscriptionimportview.cpp \ src/updateutils.cpp \ src/video.cpp \ src/videomimedata.cpp \ @@ -252,8 +255,8 @@ unix:!mac { sounds.files += sounds/ desktop.path = $$DATADIR/applications desktop.files += minitube.desktop - appdata.path = $$DATADIR/appdata - appdata.files += minitube.appdata.xml + appdata.path = $$DATADIR/metainfo + appdata.files += org.tordini.flavio.minitube.metainfo.xml iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps iconsvg.files += data/minitube.svg icon16.path = $$DATADIR/icons/hicolor/16x16/apps @@ -276,11 +279,7 @@ unix:!mac { mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri) -!contains(DEFINES, APP_MAC_STORE) { - # DEFINES += UPDATER_NO_SPARKLE - include(lib/updater/updater.pri) -} - +message(QT: $$QT) message(CONFIG: $$CONFIG) message(DEFINES: $$DEFINES) message(QMAKE_CXXFLAGS: $$QMAKE_CXXFLAGS) diff --git a/org.tordini.flavio.minitube.metainfo.xml b/org.tordini.flavio.minitube.metainfo.xml new file mode 100644 index 0000000..9815df0 --- /dev/null +++ b/org.tordini.flavio.minitube.metainfo.xml @@ -0,0 +1,63 @@ + + + Minitube + org.tordini.flavio.minitube + CC0-1.0 + GPL-3.0-or-later + YouTube app + +

+ Watch YouTube videos in a new way: you type a keyword, Minitube gives you an endless video stream. Minitube is not about cloning the YouTube website, it aims to create a new TV-like experience. +

+
    +
  1. Light on your computer. By consuming less CPU and less memory than a web browser, Minitube preserves battery life and keeps your laptop cool.
  2. +
  3. Great for kids! Very easy to use and with filters for inappropriate content.
  4. +
  5. Channel subscriptions Subscribe to YouTube channels and be notified of new videos. No need to login with a YouTube account: more privacy!
  6. +
  7. Stop fiddling Just search for something. Minitube automatically plays videos one after another. Sit back and enjoy.
  8. +
+
+ http://flavio.tordini.org/minitube + + + http://flavio.tordini.org/files/minitube/minitube-04.jpg + + + http://flavio.tordini.org/files/minitube/minitube-03.jpg + + + http://flavio.tordini.org/files/minitube/minitube-02.jpg + + + http://flavio.tordini.org/files/minitube/minitube-01.jpg + + + Flavio Tordini + https://github.com/flaviotordini/minitube/issues + https://flavio.tordini.org/donate + https://www.transifex.com/flaviotordini/minitube/ + + + + + intense + intense + intense + intense + intense + moderate + moderate + intense + moderate + moderate + moderate + mild + intense + intense + intense + intense + intense + intense + intense + intense + +
diff --git a/src/aboutview.cpp b/src/aboutview.cpp index 48b7dff..afa4662 100644 --- a/src/aboutview.cpp +++ b/src/aboutview.cpp @@ -161,7 +161,7 @@ AboutView::AboutView(QWidget *parent) : View(parent) { updateLayout->setAlignment(Qt::AlignLeft); auto spinner = new WaitingSpinnerWidget(this, false, false); - spinner->setColor(palette().foreground().color()); + spinner->setColor(palette().windowText().color()); spinner->setLineLength(capHeight / 2); spinner->setNumberOfLines(spinner->lineLength() * 2); spinner->setInnerRadius(spinner->lineLength()); diff --git a/src/aboutview.h b/src/aboutview.h index 4d06db0..f10773d 100644 --- a/src/aboutview.h +++ b/src/aboutview.h @@ -32,10 +32,7 @@ class AboutView : public View { public: AboutView(QWidget *parent); void appear(); - const QString &getTitle() { - static const QString s = tr("About"); - return s; - } + QString getTitle() { return tr("About"); } private: QPushButton *closeButton; diff --git a/src/appwidget.cpp b/src/appwidget.cpp index 3c67e28..c9c5181 100644 --- a/src/appwidget.cpp +++ b/src/appwidget.cpp @@ -107,6 +107,7 @@ void AppWidget::mouseReleaseEvent(QMouseEvent *e) { void AppWidget::iconDownloaded(const QByteArray &bytes) { QPixmap pixmap; pixmap.loadFromData(bytes, "PNG"); + pixmap.setDevicePixelRatio(devicePixelRatioF()); icon->setPixmap(pixmap); } diff --git a/src/channelaggregator.cpp b/src/channelaggregator.cpp index 2fcf42b..d137792 100644 --- a/src/channelaggregator.cpp +++ b/src/channelaggregator.cpp @@ -81,9 +81,6 @@ void ChannelAggregator::run() { updatedChannels.clear(); updatedChannels.squeeze(); - if (!Database::instance().getConnection().transaction()) - qWarning() << "Transaction failed" << __PRETTY_FUNCTION__; - processNextChannel(); } @@ -175,9 +172,6 @@ void ChannelAggregator::reallyProcessChannel(YTChannel *channel) { void ChannelAggregator::finish() { currentChannel = 0; - QSqlDatabase db = Database::instance().getConnection(); - if (!db.commit()) qWarning() << "Commit failed" << __PRETTY_FUNCTION__; - #ifdef Q_OS_MAC if (newVideoCount > 0 && unwatchedCount > 0 && mac::canNotify()) { QString channelNames; @@ -207,8 +201,10 @@ void ChannelAggregator::videosLoaded(const QVector