From 89fef6d7f49f7fc45456826c1499eea4154ce559 Mon Sep 17 00:00:00 2001 From: Chris Josten Date: Mon, 29 Mar 2021 14:27:37 +0200 Subject: [PATCH] WIP: Code cleanup, trying to debug Q_ENUM not visible from QML --- core/CMakeLists.txt | 2 + core/include/JellyfinQt/DTO/accessschedule.h | 101 - .../include/JellyfinQt/DTO/activitylogentry.h | 148 -- .../DTO/activitylogentryqueryresult.h | 89 - .../JellyfinQt/DTO/addvirtualfolderdto.h | 65 - core/include/JellyfinQt/DTO/albuminfo.h | 161 -- .../DTO/albuminforemotesearchquery.h | 90 - .../JellyfinQt/DTO/allthememediaresult.h | 75 - core/include/JellyfinQt/DTO/artistinfo.h | 143 -- .../DTO/artistinforemotesearchquery.h | 90 - .../JellyfinQt/DTO/authenticateuserbyname.h | 86 - .../JellyfinQt/DTO/authenticationinfo.h | 161 -- .../DTO/authenticationinfoqueryresult.h | 89 - core/include/JellyfinQt/DTO/baseitem.h | 124 -- core/include/JellyfinQt/DTO/baseitemdto.h | 1267 ------------ .../JellyfinQt/DTO/baseitemdtoqueryresult.h | 89 - core/include/JellyfinQt/DTO/baseitemperson.h | 113 -- .../JellyfinQt/DTO/basepluginconfiguration.h | 0 core/include/JellyfinQt/DTO/bookinfo.h | 139 -- .../DTO/bookinforemotesearchquery.h | 90 - core/include/JellyfinQt/DTO/boxsetinfo.h | 134 -- .../DTO/boxsetinforemotesearchquery.h | 90 - core/include/JellyfinQt/DTO/brandingoptions.h | 77 - .../include/JellyfinQt/DTO/bufferrequestdto.h | 96 - core/include/JellyfinQt/DTO/channelfeatures.h | 172 -- .../JellyfinQt/DTO/channelmappingoptionsdto.h | 101 - .../JellyfinQt/DTO/channelmediacontenttype.h | 66 - core/include/JellyfinQt/DTO/chapterinfo.h | 97 - .../JellyfinQt/DTO/clientcapabilities.h | 114 -- .../JellyfinQt/DTO/clientcapabilitiesdto.h | 150 -- core/include/JellyfinQt/DTO/codecprofile.h | 89 - .../JellyfinQt/DTO/collectioncreationresult.h | 64 - .../JellyfinQt/DTO/configurationpageinfo.h | 120 -- .../include/JellyfinQt/DTO/containerprofile.h | 79 - core/include/JellyfinQt/DTO/countryinfo.h | 95 - .../JellyfinQt/DTO/createplaylistdto.h | 98 - .../include/JellyfinQt/DTO/createuserbyname.h | 77 - core/include/JellyfinQt/DTO/culturedto.h | 102 - core/include/JellyfinQt/DTO/dayofweek.h | 65 - .../DTO/defaultdirectorybrowserinfodto.h | 68 - .../JellyfinQt/DTO/deviceidentification.h | 144 -- core/include/JellyfinQt/DTO/deviceinfo.h | 132 -- .../JellyfinQt/DTO/deviceinfoqueryresult.h | 89 - core/include/JellyfinQt/DTO/deviceprofile.h | 417 ---- .../JellyfinQt/DTO/deviceprofileinfo.h | 83 - .../JellyfinQt/DTO/deviceprofiletype.h | 60 - .../JellyfinQt/DTO/displaypreferencesdto.h | 179 -- core/include/JellyfinQt/DTO/dlnaprofiletype.h | 61 - core/include/JellyfinQt/DTO/encodingcontext.h | 60 - core/include/JellyfinQt/DTO/externalidinfo.h | 92 - .../JellyfinQt/DTO/externalidmediatype.h | 70 - core/include/JellyfinQt/DTO/externalurl.h | 77 - .../JellyfinQt/DTO/filesystementryinfo.h | 83 - .../JellyfinQt/DTO/filesystementrytype.h | 62 - core/include/JellyfinQt/DTO/fontfile.h | 96 - .../JellyfinQt/DTO/forgotpasswordaction.h | 61 - .../JellyfinQt/DTO/forgotpassworddto.h | 68 - .../JellyfinQt/DTO/forgotpasswordresult.h | 84 - .../JellyfinQt/DTO/generalcommandtype.h | 99 - core/include/JellyfinQt/DTO/getprogramsdto.h | 350 ---- core/include/JellyfinQt/DTO/groupinfodto.h | 105 - core/include/JellyfinQt/DTO/groupqueuemode.h | 60 - core/include/JellyfinQt/DTO/grouprepeatmode.h | 61 - .../include/JellyfinQt/DTO/groupshufflemode.h | 60 - core/include/JellyfinQt/DTO/groupstatetype.h | 62 - core/include/JellyfinQt/DTO/groupupdatetype.h | 69 - core/include/JellyfinQt/DTO/guideinfo.h | 77 - core/include/JellyfinQt/DTO/headermatchtype.h | 61 - .../JellyfinQt/DTO/ignorewaitrequestdto.h | 67 - core/include/JellyfinQt/DTO/imagebynameinfo.h | 104 - core/include/JellyfinQt/DTO/imageinfo.h | 128 -- core/include/JellyfinQt/DTO/imageoption.h | 82 - .../include/JellyfinQt/DTO/imageorientation.h | 66 - .../JellyfinQt/DTO/imageproviderinfo.h | 80 - core/include/JellyfinQt/DTO/imagetype.h | 71 - .../include/JellyfinQt/DTO/installationinfo.h | 112 -- core/include/JellyfinQt/DTO/iplugin.h | 121 -- core/include/JellyfinQt/DTO/itemcounts.h | 166 -- core/include/JellyfinQt/DTO/itemfields.h | 119 -- .../JellyfinQt/DTO/joingrouprequestdto.h | 68 - .../JellyfinQt/DTO/libraryoptioninfodto.h | 77 - core/include/JellyfinQt/DTO/libraryoptions.h | 197 -- .../JellyfinQt/DTO/libraryoptionsresultdto.h | 99 - .../JellyfinQt/DTO/librarytypeoptionsdto.h | 110 -- .../JellyfinQt/DTO/libraryupdateinfo.h | 116 -- .../JellyfinQt/DTO/listingsproviderinfo.h | 153 -- .../JellyfinQt/DTO/livestreamresponse.h | 65 - core/include/JellyfinQt/DTO/livetvinfo.h | 89 - .../JellyfinQt/DTO/livetvserviceinfo.h | 126 -- .../JellyfinQt/DTO/livetvservicestatus.h | 60 - core/include/JellyfinQt/DTO/locationtype.h | 62 - core/include/JellyfinQt/DTO/logfile.h | 96 - core/include/JellyfinQt/DTO/loglevel.h | 65 - core/include/JellyfinQt/DTO/mediaattachment.h | 122 -- .../JellyfinQt/DTO/mediaencoderpathdto.h | 77 - core/include/JellyfinQt/DTO/mediapathdto.h | 84 - core/include/JellyfinQt/DTO/mediaprotocol.h | 65 - core/include/JellyfinQt/DTO/mediasourceinfo.h | 284 --- core/include/JellyfinQt/DTO/mediasourcetype.h | 61 - core/include/JellyfinQt/DTO/mediastream.h | 448 ----- core/include/JellyfinQt/DTO/mediastreamtype.h | 62 - .../JellyfinQt/DTO/metadataeditorinfo.h | 97 - core/include/JellyfinQt/DTO/metadatafield.h | 67 - core/include/JellyfinQt/DTO/metadataoptions.h | 96 - .../JellyfinQt/DTO/metadatarefreshmode.h | 62 - .../DTO/moveplaylistitemrequestdto.h | 77 - core/include/JellyfinQt/DTO/movieinfo.h | 134 -- .../DTO/movieinforemotesearchquery.h | 90 - core/include/JellyfinQt/DTO/musicvideoinfo.h | 141 -- .../DTO/musicvideoinforemotesearchquery.h | 90 - core/include/JellyfinQt/DTO/nameidpair.h | 77 - core/include/JellyfinQt/DTO/namevaluepair.h | 77 - core/include/JellyfinQt/DTO/notificationdto.h | 129 -- .../JellyfinQt/DTO/notificationlevel.h | 61 - .../JellyfinQt/DTO/notificationresultdto.h | 80 - .../JellyfinQt/DTO/notificationssummarydto.h | 73 - .../JellyfinQt/DTO/objectgroupupdate.h | 84 - .../JellyfinQt/DTO/openlivestreamdto.h | 178 -- core/include/JellyfinQt/DTO/packageinfo.h | 137 -- core/include/JellyfinQt/DTO/parentalrating.h | 77 - .../include/JellyfinQt/DTO/pathsubstitution.h | 77 - .../include/JellyfinQt/DTO/personlookupinfo.h | 134 -- .../DTO/personlookupinforemotesearchquery.h | 90 - core/include/JellyfinQt/DTO/pinredeemresult.h | 79 - .../JellyfinQt/DTO/playbackerrorcode.h | 61 - core/include/JellyfinQt/DTO/playbackinfodto.h | 193 -- .../JellyfinQt/DTO/playbackprogressinfo.h | 215 -- .../JellyfinQt/DTO/playbackstartinfo.h | 215 -- .../include/JellyfinQt/DTO/playbackstopinfo.h | 148 -- core/include/JellyfinQt/DTO/playcommand.h | 63 - core/include/JellyfinQt/DTO/playerstateinfo.h | 143 -- core/include/JellyfinQt/DTO/playmethod.h | 61 - core/include/JellyfinQt/DTO/playrequest.h | 115 -- core/include/JellyfinQt/DTO/playrequestdto.h | 88 - .../include/JellyfinQt/DTO/playstatecommand.h | 67 - .../include/JellyfinQt/DTO/playstaterequest.h | 79 - core/include/JellyfinQt/DTO/plugininfo.h | 127 -- .../JellyfinQt/DTO/pluginsecurityinfo.h | 77 - .../JellyfinQt/DTO/previousitemrequestdto.h | 68 - .../include/JellyfinQt/DTO/profilecondition.h | 81 - .../JellyfinQt/DTO/profileconditiontype.h | 63 - .../JellyfinQt/DTO/profileconditionvalue.h | 81 - core/include/JellyfinQt/DTO/programaudio.h | 64 - .../include/JellyfinQt/DTO/publicsysteminfo.h | 122 -- core/include/JellyfinQt/DTO/queryfilters.h | 72 - .../JellyfinQt/DTO/queryfilterslegacy.h | 81 - core/include/JellyfinQt/DTO/queueitem.h | 70 - core/include/JellyfinQt/DTO/queuerequestdto.h | 76 - core/include/JellyfinQt/DTO/quickconnectdto.h | 68 - .../JellyfinQt/DTO/quickconnectresult.h | 114 -- .../JellyfinQt/DTO/quickconnectstate.h | 61 - core/include/JellyfinQt/DTO/readyrequestdto.h | 96 - .../JellyfinQt/DTO/recommendationdto.h | 85 - .../JellyfinQt/DTO/recommendationtype.h | 64 - core/include/JellyfinQt/DTO/recordingstatus.h | 65 - core/include/JellyfinQt/DTO/remoteimageinfo.h | 143 -- .../JellyfinQt/DTO/remoteimageresult.h | 89 - .../JellyfinQt/DTO/remotesearchresult.h | 135 -- .../JellyfinQt/DTO/remotesubtitleinfo.h | 115 -- .../DTO/removefromplaylistrequestdto.h | 70 - core/include/JellyfinQt/DTO/repeatmode.h | 61 - core/include/JellyfinQt/DTO/repositoryinfo.h | 86 - core/include/JellyfinQt/DTO/responseprofile.h | 99 - core/include/JellyfinQt/DTO/scrolldirection.h | 60 - core/include/JellyfinQt/DTO/searchhint.h | 300 --- .../include/JellyfinQt/DTO/searchhintresult.h | 80 - core/include/JellyfinQt/DTO/seekrequestdto.h | 67 - core/include/JellyfinQt/DTO/sendcommand.h | 111 -- core/include/JellyfinQt/DTO/sendcommandtype.h | 62 - core/include/JellyfinQt/DTO/seriesinfo.h | 134 -- .../DTO/seriesinforemotesearchquery.h | 90 - core/include/JellyfinQt/DTO/seriesstatus.h | 60 - .../JellyfinQt/DTO/seriestimerinfodto.h | 357 ---- .../DTO/seriestimerinfodtoqueryresult.h | 89 - .../JellyfinQt/DTO/serverconfiguration.h | 751 ------- core/include/JellyfinQt/DTO/sessioninfo.h | 268 --- core/include/JellyfinQt/DTO/sessionuserinfo.h | 78 - .../JellyfinQt/DTO/setchannelmappingdto.h | 86 - .../JellyfinQt/DTO/setrepeatmoderequestdto.h | 64 - .../JellyfinQt/DTO/setshufflemoderequestdto.h | 64 - core/include/JellyfinQt/DTO/songinfo.h | 151 -- .../JellyfinQt/DTO/specialviewoptiondto.h | 77 - .../JellyfinQt/DTO/startupconfigurationdto.h | 86 - core/include/JellyfinQt/DTO/startupuserdto.h | 77 - .../JellyfinQt/DTO/subtitledeliverymethod.h | 62 - .../JellyfinQt/DTO/subtitleplaybackmode.h | 63 - .../JellyfinQt/DTO/syncplayuseraccesstype.h | 61 - core/include/JellyfinQt/DTO/systeminfo.h | 283 --- core/include/JellyfinQt/DTO/taskinfo.h | 147 -- core/include/JellyfinQt/DTO/taskresult.h | 129 -- core/include/JellyfinQt/DTO/taskstate.h | 61 - core/include/JellyfinQt/DTO/tasktriggerinfo.h | 101 - .../include/JellyfinQt/DTO/thememediaresult.h | 99 - core/include/JellyfinQt/DTO/timereventinfo.h | 70 - core/include/JellyfinQt/DTO/timerinfodto.h | 299 --- .../JellyfinQt/DTO/timerinfodtoqueryresult.h | 89 - core/include/JellyfinQt/DTO/trailerinfo.h | 134 -- .../DTO/trailerinforemotesearchquery.h | 90 - core/include/JellyfinQt/DTO/transcodereason.h | 81 - .../JellyfinQt/DTO/transcodeseekinfo.h | 60 - core/include/JellyfinQt/DTO/transcodinginfo.h | 122 -- .../JellyfinQt/DTO/transcodingprofile.h | 137 -- .../JellyfinQt/DTO/transportstreamtimestamp.h | 61 - .../JellyfinQt/DTO/tunerchannelmapping.h | 79 - core/include/JellyfinQt/DTO/tunerhostinfo.h | 114 -- core/include/JellyfinQt/DTO/typeoptions.h | 93 - core/include/JellyfinQt/DTO/unrateditem.h | 67 - .../JellyfinQt/DTO/updatelibraryoptionsdto.h | 75 - .../JellyfinQt/DTO/updateusereasypassword.h | 86 - .../JellyfinQt/DTO/updateuserpassword.h | 95 - .../JellyfinQt/DTO/uploadsubtitledto.h | 95 - .../JellyfinQt/DTO/userconfiguration.h | 149 -- core/include/JellyfinQt/DTO/userdto.h | 184 -- core/include/JellyfinQt/DTO/useritemdatadto.h | 159 -- core/include/JellyfinQt/DTO/userpolicy.h | 281 --- core/include/JellyfinQt/DTO/utctimeresponse.h | 77 - core/include/JellyfinQt/DTO/validatepathdto.h | 86 - core/include/JellyfinQt/DTO/versioninfo.h | 138 -- core/include/JellyfinQt/DTO/video3dformat.h | 63 - core/include/JellyfinQt/DTO/videotype.h | 62 - .../JellyfinQt/DTO/virtualfolderinfo.h | 123 -- core/include/JellyfinQt/DTO/wakeonlaninfo.h | 77 - core/include/JellyfinQt/DTO/xmlattribute.h | 77 - core/include/JellyfinQt/apimodel.h | 47 +- core/include/JellyfinQt/jellyfin.h | 36 +- core/include/JellyfinQt/viewmodel/itemmodel.h | 3 +- .../JellyfinQt/viewmodel/modelstatus.h | 78 + core/src/apimodel.cpp | 6 +- core/src/jellyfin.cpp | 15 +- core/src/loader/activateparams.cpp | 41 + .../loader/addlistingproviderparams.cpp} | 111 +- core/src/loader/addmediapathparams.cpp | 62 + core/src/loader/addtocollectionparams.cpp | 59 + .../loader/addtoplaylistparams.cpp} | 84 +- core/src/loader/addtunerhostparams.cpp | 41 + core/src/loader/addusertosessionparams.cpp | 59 + core/src/loader/addvirtualfolderparams.cpp | 125 ++ .../loader/applysearchcriteriaparams.cpp} | 66 +- .../loader/authenticateuserbynameparams.cpp | 41 + core/src/loader/authenticateuserparams.cpp | 80 + .../authenticatewithquickconnectparams.cpp | 41 + .../loader/authorizeparams.cpp} | 40 +- core/src/loader/availableparams.cpp | 62 + .../cancelpackageinstallationparams.cpp} | 40 +- .../loader/cancelseriestimerparams.cpp} | 40 +- .../loader/canceltimerparams.cpp} | 40 +- core/src/loader/closelivestreamparams.cpp | 50 + core/src/loader/completewizardparams.cpp | 41 + core/src/loader/connectparams.cpp | 50 + .../loader/createadminnotificationparams.cpp | 125 ++ core/src/loader/createcollectionparams.cpp | 125 ++ core/src/loader/createkeyparams.cpp | 50 + core/src/loader/createplaylistparams.cpp | 125 ++ core/src/loader/createprofileparams.cpp | 41 + core/src/loader/createseriestimerparams.cpp | 41 + core/src/loader/createtimerparams.cpp | 41 + core/src/loader/createuserbynameparams.cpp | 41 + core/src/loader/deauthorizeparams.cpp | 41 + .../loader/deletealternatesourcesparams.cpp | 50 + core/src/loader/deletedeviceparams.cpp | 50 + .../loader/deleteitemimagebyindexparams.cpp | 68 + core/src/loader/deleteitemimageparams.cpp | 80 + core/src/loader/deleteitemparams.cpp | 50 + core/src/loader/deleteitemsparams.cpp | 62 + .../loader/deletelistingproviderparams.cpp | 62 + core/src/loader/deleteprofileparams.cpp | 50 + core/src/loader/deleterecordingparams.cpp | 50 + .../loader/deletesubtitleparams.cpp} | 52 +- core/src/loader/deletetunerhostparams.cpp | 62 + .../loader/deleteuserimagebyindexparams.cpp | 68 + core/src/loader/deleteuserimageparams.cpp | 80 + .../src/loader/deleteuseritemratingparams.cpp | 59 + core/src/loader/deleteuserparams.cpp | 50 + core/src/loader/disablepluginparams.cpp | 59 + .../loader/discovertunersparams.cpp} | 60 +- core/src/loader/discvovertunersparams.cpp | 62 + core/src/loader/displaycontentparams.cpp | 77 + core/src/loader/downloadremoteimageparams.cpp | 80 + .../loader/downloadremotesubtitlesparams.cpp | 59 + core/src/loader/enablepluginparams.cpp | 59 + core/src/loader/forgotpasswordparams.cpp | 41 + core/src/loader/forgotpasswordpinparams.cpp | 41 + .../loader/getadditionalpartparams.cpp} | 61 +- core/src/loader/getalbumartistsparams.cpp | 671 +++++++ .../loader/getallchannelfeaturesparams.cpp | 41 + core/src/loader/getancestorsparams.cpp | 71 + core/src/loader/getartistbynameparams.cpp | 71 + core/src/loader/getartistimageparams.cpp | 362 ++++ core/src/loader/getartistsparams.cpp | 671 +++++++ core/src/loader/getattachmentparams.cpp | 68 + .../getaudiostreambycontainerparams.cpp | 1046 ++++++++++ core/src/loader/getaudiostreamparams.cpp | 1058 ++++++++++ core/src/loader/getauthprovidersparams.cpp | 41 + core/src/loader/getbitratetestbytesparams.cpp | 62 + .../getbookremotesearchresultsparams.cpp | 41 + .../getboxsetremotesearchresultsparams.cpp | 41 + core/src/loader/getbrandingcss_2params.cpp | 41 + core/src/loader/getbrandingcssparams.cpp | 41 + core/src/loader/getbrandingoptionsparams.cpp | 41 + core/src/loader/getchannelfeaturesparams.cpp | 50 + core/src/loader/getchannelitemsparams.cpp | 218 +++ .../loader/getchannelmappingoptionsparams.cpp | 62 + .../loader/getchannelparams.cpp} | 59 +- core/src/loader/getchannelsparams.cpp | 167 ++ .../loader/getconfigurationpagesparams.cpp | 83 + core/src/loader/getconfigurationparams.cpp | 41 + .../loader/getconnectionmanager_2params.cpp | 50 + .../loader/getconnectionmanager_3params.cpp | 50 + .../src/loader/getconnectionmanagerparams.cpp | 50 + .../loader/getcontentdirectory_2params.cpp | 50 + .../loader/getcontentdirectory_3params.cpp | 50 + core/src/loader/getcontentdirectoryparams.cpp | 50 + core/src/loader/getcountriesparams.cpp | 41 + core/src/loader/getcriticreviewsparams.cpp | 50 + core/src/loader/getculturesparams.cpp | 41 + core/src/loader/getcurrentuserparams.cpp | 41 + .../getdashboardconfigurationpageparams.cpp | 62 + .../getdefaultdirectorybrowserparams.cpp | 41 + .../getdefaultlistingproviderparams.cpp | 41 + .../getdefaultmetadataoptionsparams.cpp | 41 + core/src/loader/getdefaultprofileparams.cpp | 41 + core/src/loader/getdefaulttimerparams.cpp | 62 + core/src/loader/getdescriptionxml_2params.cpp | 50 + core/src/loader/getdescriptionxmlparams.cpp | 50 + core/src/loader/getdeviceinfoparams.cpp | 50 + core/src/loader/getdeviceoptionsparams.cpp | 50 + core/src/loader/getdevicesparams.cpp | 83 + .../loader/getdirectorycontentsparams.cpp} | 92 +- .../loader/getdisplaypreferencesparams.cpp | 68 + core/src/loader/getdownloadparams.cpp | 50 + core/src/loader/getdrivesparams.cpp | 41 + core/src/loader/getendpointinfoparams.cpp | 41 + core/src/loader/getepisodesparams.cpp | 344 ++++ core/src/loader/getexternalidinfosparams.cpp | 50 + core/src/loader/getfallbackfontlistparams.cpp | 41 + core/src/loader/getfallbackfontparams.cpp | 50 + core/src/loader/getfileparams.cpp | 50 + core/src/loader/getfirstuser_2params.cpp | 41 + core/src/loader/getfirstuserparams.cpp | 41 + .../loader/getgeneralimageparams.cpp} | 50 +- core/src/loader/getgeneralimagesparams.cpp | 41 + .../src/loader/getgenreimagebyindexparams.cpp | 362 ++++ core/src/loader/getgenreimageparams.cpp | 374 ++++ core/src/loader/getgenreparams.cpp | 71 + core/src/loader/getgenresparams.cpp | 377 ++++ core/src/loader/getgroupingoptionsparams.cpp | 50 + core/src/loader/getguideinfoparams.cpp | 41 + .../gethlsaudiosegmentlegacyaacparams.cpp | 59 + .../gethlsaudiosegmentlegacymp3params.cpp | 59 + core/src/loader/gethlsaudiosegmentparams.cpp | 1085 +++++++++++ .../src/loader/gethlsplaylistlegacyparams.cpp | 59 + .../gethlsvideosegmentlegacyparams.cpp} | 73 +- core/src/loader/gethlsvideosegmentparams.cpp | 1064 ++++++++++ core/src/loader/geticonidparams.cpp | 59 + core/src/loader/geticonparams.cpp | 50 + .../loader/getinstantmixfromalbumparams.cpp | 197 ++ .../loader/getinstantmixfromartistsparams.cpp | 197 ++ .../loader/getinstantmixfromitemparams.cpp | 197 ++ .../getinstantmixfrommusicgenreparams.cpp | 197 ++ .../getinstantmixfrommusicgenresparams.cpp | 197 ++ .../getinstantmixfromplaylistparams.cpp | 197 ++ .../loader/getinstantmixfromsongparams.cpp | 197 ++ .../loader/getintrosparams.cpp} | 49 +- .../loader/getitemcountsparams.cpp} | 76 +- core/src/loader/getitemimage2params.cpp | 290 +++ core/src/loader/getitemimagebyindexparams.cpp | 362 ++++ core/src/loader/getitemimageinfosparams.cpp | 50 + core/src/loader/getitemimageparams.cpp | 374 ++++ core/src/loader/getitemparams.cpp | 59 + core/src/loader/getitemsbyuseridparams.cpp | 1709 ++++++++++++++++ core/src/loader/getitemsparams.cpp | 1721 +++++++++++++++++ core/src/loader/getkeysparams.cpp | 41 + .../loader/getlatestchannelitemsparams.cpp | 167 ++ core/src/loader/getlatestmediaparams.cpp | 260 +++ .../loader/getlibraryoptionsinfoparams.cpp} | 85 +- core/src/loader/getlineupsparams.cpp | 125 ++ core/src/loader/getlivehlsstreamparams.cpp | 1121 +++++++++++ .../src/loader/getliverecordingfileparams.cpp | 50 + .../loader/getlivestreamfileparams.cpp} | 49 +- core/src/loader/getlivetvchannelsparams.cpp | 482 +++++ core/src/loader/getlivetvinfoparams.cpp | 41 + core/src/loader/getlivetvprogramsparams.cpp | 608 ++++++ .../loader/getlocalizationoptionsparams.cpp | 41 + core/src/loader/getlocaltrailersparams.cpp | 59 + core/src/loader/getlogentriesparams.cpp | 125 ++ core/src/loader/getlogfileparams.cpp | 50 + .../getmasterhlsaudioplaylistparams.cpp | 1067 ++++++++++ .../getmasterhlsvideoplaylistparams.cpp | 1046 ++++++++++ core/src/loader/getmediafoldersparams.cpp | 62 + .../loader/getmediainfoimageparams.cpp} | 52 +- core/src/loader/getmediainfoimagesparams.cpp | 41 + .../getmediareceiverregistrar_2params.cpp | 50 + .../getmediareceiverregistrar_3params.cpp | 50 + .../getmediareceiverregistrarparams.cpp | 50 + .../loader/getmetadataeditorinfoparams.cpp | 50 + .../loader/getmovierecommendationsparams.cpp | 146 ++ .../getmovieremotesearchresultsparams.cpp | 41 + ...getmusicalbumremotesearchresultsparams.cpp | 41 + ...etmusicartistremotesearchresultsparams.cpp | 41 + .../getmusicgenreimagebyindexparams.cpp | 362 ++++ core/src/loader/getmusicgenreimageparams.cpp | 374 ++++ .../loader/getmusicgenreparams.cpp} | 64 +- core/src/loader/getmusicgenresparams.cpp | 377 ++++ ...getmusicvideoremotesearchresultsparams.cpp | 41 + .../loader/getnamedconfigurationparams.cpp | 50 + core/src/loader/getnetworksharesparams.cpp | 41 + core/src/loader/getnextupparams.cpp | 293 +++ .../loader/getnotificationservicesparams.cpp | 41 + core/src/loader/getnotificationsparams.cpp | 50 + .../loader/getnotificationssummaryparams.cpp | 50 + .../src/loader/getnotificationtypesparams.cpp | 41 + .../loader/getpackageinfoparams.cpp} | 60 +- core/src/loader/getpackagesparams.cpp | 41 + core/src/loader/getparams.cpp | 407 ++++ core/src/loader/getparentalratingsparams.cpp | 41 + core/src/loader/getparentpathparams.cpp | 50 + .../getpasswordresetprovidersparams.cpp | 41 + .../loader/getpersonimagebyindexparams.cpp | 362 ++++ core/src/loader/getpersonimageparams.cpp | 374 ++++ .../loader/getpersonparams.cpp} | 57 +- .../getpersonremotesearchresultsparams.cpp | 41 + core/src/loader/getpersonsparams.cpp | 314 +++ core/src/loader/getphysicalpathsparams.cpp | 41 + core/src/loader/getpingsystemparams.cpp | 41 + core/src/loader/getplaybackinfoparams.cpp | 59 + core/src/loader/getplaylistitemsparams.cpp | 206 ++ .../loader/getpluginconfigurationparams.cpp | 50 + core/src/loader/getpluginimageparams.cpp | 59 + core/src/loader/getpluginmanifestparams.cpp | 50 + core/src/loader/getpluginsparams.cpp | 41 + .../loader/getpostedplaybackinfoparams.cpp | 344 ++++ core/src/loader/getprofileinfosparams.cpp | 41 + core/src/loader/getprofileparams.cpp | 50 + core/src/loader/getprogramparams.cpp | 71 + core/src/loader/getprogramsparams.cpp | 41 + core/src/loader/getpublicsysteminfoparams.cpp | 41 + core/src/loader/getpublicusersparams.cpp | 41 + .../loader/getqueryfilterslegacyparams.cpp | 125 ++ core/src/loader/getqueryfiltersparams.cpp | 251 +++ .../loader/getratingimageparams.cpp} | 50 +- core/src/loader/getratingimagesparams.cpp | 41 + .../loader/getrecommendedprogramsparams.cpp | 377 ++++ core/src/loader/getrecordingfoldersparams.cpp | 62 + core/src/loader/getrecordinggroupparams.cpp | 50 + .../loader/getrecordinggroupsparams.cpp} | 52 +- core/src/loader/getrecordingparams.cpp | 71 + core/src/loader/getrecordingsparams.cpp | 440 +++++ core/src/loader/getrecordingsseriesparams.cpp | 335 ++++ core/src/loader/getremoteimageparams.cpp | 50 + .../loader/getremoteimageprovidersparams.cpp | 50 + core/src/loader/getremoteimagesparams.cpp | 155 ++ .../loader/getremotesearchimageparams.cpp} | 54 +- core/src/loader/getremotesubtitlesparams.cpp | 50 + core/src/loader/getrepositoriesparams.cpp | 41 + core/src/loader/getresumeitemsparams.cpp | 323 ++++ core/src/loader/getrootfolderparams.cpp | 50 + .../getschedulesdirectcountriesparams.cpp | 41 + core/src/loader/getseasonsparams.cpp | 239 +++ .../getseriesremotesearchresultsparams.cpp | 41 + core/src/loader/getseriestimerparams.cpp | 50 + .../loader/getseriestimersparams.cpp} | 85 +- core/src/loader/getserverlogsparams.cpp | 41 + core/src/loader/getsessionsparams.cpp | 104 + core/src/loader/getsimilaralbumsparams.cpp | 134 ++ core/src/loader/getsimilarartistsparams.cpp | 134 ++ core/src/loader/getsimilaritemsparams.cpp | 134 ++ core/src/loader/getsimilarmoviesparams.cpp | 134 ++ core/src/loader/getsimilarshowsparams.cpp | 134 ++ core/src/loader/getsimilartrailersparams.cpp | 134 ++ core/src/loader/getspecialfeaturesparams.cpp | 59 + .../loader/getstartupconfigurationparams.cpp | 41 + core/src/loader/getstatusparams.cpp | 41 + .../loader/getstudioimagebyindexparams.cpp | 362 ++++ core/src/loader/getstudioimageparams.cpp | 374 ++++ .../loader/getstudioparams.cpp} | 63 +- core/src/loader/getstudiosparams.cpp | 398 ++++ core/src/loader/getsubtitleparams.cpp | 161 ++ core/src/loader/getsubtitleplaylistparams.cpp | 77 + .../src/loader/getsubtitlewithticksparams.cpp | 149 ++ core/src/loader/getsuggestionsparams.cpp | 155 ++ core/src/loader/getsysteminfoparams.cpp | 41 + core/src/loader/gettaskparams.cpp | 50 + core/src/loader/gettasksparams.cpp | 83 + core/src/loader/getthememediaparams.cpp | 92 + core/src/loader/getthemesongsparams.cpp | 92 + core/src/loader/getthemevideosparams.cpp | 92 + core/src/loader/gettimerparams.cpp | 50 + core/src/loader/gettimersparams.cpp | 125 ++ .../gettrailerremotesearchresultsparams.cpp | 41 + core/src/loader/gettrailersparams.cpp | 1700 ++++++++++++++++ core/src/loader/gettunerhosttypesparams.cpp | 41 + .../loader/getuniversalaudiostreamparams.cpp | 407 ++++ core/src/loader/getupcomingepisodesparams.cpp | 230 +++ core/src/loader/getuserbyidparams.cpp | 50 + core/src/loader/getuserimagebyindexparams.cpp | 362 ++++ core/src/loader/getuserimageparams.cpp | 374 ++++ core/src/loader/getusersparams.cpp | 83 + core/src/loader/getuserviewsparams.cpp | 113 ++ core/src/loader/getutctimeparams.cpp | 41 + .../getvarianthlsaudioplaylistparams.cpp | 1058 ++++++++++ .../getvarianthlsvideoplaylistparams.cpp | 1037 ++++++++++ .../getvideostreambycontainerparams.cpp | 1055 ++++++++++ core/src/loader/getvideostreamparams.cpp | 1058 ++++++++++ core/src/loader/getvirtualfoldersparams.cpp | 41 + core/src/loader/getwakeonlaninfoparams.cpp | 41 + .../loader/getyearparams.cpp} | 66 +- core/src/loader/getyearsparams.cpp | 356 ++++ core/src/loader/headartistimageparams.cpp | 362 ++++ .../headaudiostreambycontainerparams.cpp | 1046 ++++++++++ core/src/loader/headaudiostreamparams.cpp | 1058 ++++++++++ .../loader/headgenreimagebyindexparams.cpp | 362 ++++ core/src/loader/headgenreimageparams.cpp | 374 ++++ core/src/loader/headitemimage2params.cpp | 290 +++ .../src/loader/headitemimagebyindexparams.cpp | 362 ++++ core/src/loader/headitemimageparams.cpp | 374 ++++ .../headmasterhlsaudioplaylistparams.cpp | 1067 ++++++++++ .../headmasterhlsvideoplaylistparams.cpp | 1046 ++++++++++ .../headmusicgenreimagebyindexparams.cpp | 362 ++++ core/src/loader/headmusicgenreimageparams.cpp | 374 ++++ .../loader/headpersonimagebyindexparams.cpp | 362 ++++ core/src/loader/headpersonimageparams.cpp | 374 ++++ .../loader/headstudioimagebyindexparams.cpp | 362 ++++ core/src/loader/headstudioimageparams.cpp | 374 ++++ .../loader/headuniversalaudiostreamparams.cpp | 407 ++++ .../src/loader/headuserimagebyindexparams.cpp | 362 ++++ core/src/loader/headuserimageparams.cpp | 374 ++++ .../headvideostreambycontainerparams.cpp | 1055 ++++++++++ core/src/loader/headvideostreamparams.cpp | 1058 ++++++++++ core/src/loader/initiateparams.cpp | 41 + core/src/loader/installpackageparams.cpp | 113 ++ core/src/loader/markfavoriteitemparams.cpp | 59 + core/src/loader/markplayeditemparams.cpp | 80 + core/src/loader/markunplayeditemparams.cpp | 59 + core/src/loader/mergeversionsparams.cpp | 50 + .../loader/moveitemparams.cpp} | 57 +- core/src/loader/onplaybackprogressparams.cpp | 290 +++ core/src/loader/onplaybackstartparams.cpp | 206 ++ core/src/loader/onplaybackstoppedparams.cpp | 164 ++ core/src/loader/openlivestreamparams.cpp | 272 +++ core/src/loader/pingplaybacksessionparams.cpp | 62 + .../loader/playparams.cpp} | 94 +- core/src/loader/postaddedmoviesparams.cpp | 83 + core/src/loader/postaddedseriesparams.cpp | 62 + core/src/loader/postcapabilitiesparams.cpp | 167 ++ .../src/loader/postfullcapabilitiesparams.cpp | 62 + core/src/loader/postparams.cpp | 134 ++ core/src/loader/postpingsystemparams.cpp | 41 + core/src/loader/postupdatedmediaparams.cpp | 41 + core/src/loader/postupdatedmoviesparams.cpp | 83 + core/src/loader/postupdatedseriesparams.cpp | 62 + .../loader/postuserimagebyindexparams.cpp} | 57 +- core/src/loader/postuserimageparams.cpp | 80 + ...sconnectionmanagercontrolrequestparams.cpp | 50 + ...sscontentdirectorycontrolrequestparams.cpp | 50 + ...areceiverregistrarcontrolrequestparams.cpp | 50 + core/src/loader/refreshlibraryparams.cpp | 41 + .../src/loader/removefromcollectionparams.cpp | 59 + core/src/loader/removefromplaylistparams.cpp | 71 + .../loader/removemediapathparams.cpp} | 94 +- .../loader/removeuserfromsessionparams.cpp | 59 + .../loader/removevirtualfolderparams.cpp} | 89 +- .../loader/renamevirtualfolderparams.cpp} | 107 +- .../loader/reportplaybackprogressparams.cpp | 41 + core/src/loader/reportplaybackstartparams.cpp | 41 + .../loader/reportplaybackstoppedparams.cpp | 41 + core/src/loader/reportsessionendedparams.cpp | 41 + .../loader/reportviewingparams.cpp} | 57 +- .../loader/resettunerparams.cpp} | 42 +- core/src/loader/restartapplicationparams.cpp | 41 + core/src/loader/revokekeyparams.cpp | 50 + .../loader/searchremotesubtitlesparams.cpp} | 72 +- .../loader/sendfullgeneralcommandparams.cpp | 50 + core/src/loader/sendgeneralcommandparams.cpp | 59 + .../loader/sendmessagecommandparams.cpp} | 93 +- .../src/loader/sendplaystatecommandparams.cpp | 101 + core/src/loader/sendsystemcommandparams.cpp | 59 + core/src/loader/setchannelmappingparams.cpp | 41 + core/src/loader/setitemimagebyindexparams.cpp | 68 + core/src/loader/setitemimageparams.cpp | 59 + core/src/loader/setreadparams.cpp | 50 + core/src/loader/setremoteaccessparams.cpp | 41 + core/src/loader/setrepositoriesparams.cpp | 41 + core/src/loader/setunreadparams.cpp | 50 + core/src/loader/shutdownapplicationparams.cpp | 41 + core/src/loader/starttaskparams.cpp | 50 + .../loader/stopencodingprocessparams.cpp} | 81 +- core/src/loader/stoptaskparams.cpp | 50 + core/src/loader/syncplaybufferingparams.cpp | 41 + core/src/loader/syncplaycreategroupparams.cpp | 41 + core/src/loader/syncplaygetgroupsparams.cpp | 41 + core/src/loader/syncplayjoingroupparams.cpp | 41 + core/src/loader/syncplayleavegroupparams.cpp | 41 + .../loader/syncplaymoveplaylistitemparams.cpp | 41 + core/src/loader/syncplaynextitemparams.cpp | 41 + core/src/loader/syncplaypauseparams.cpp | 41 + core/src/loader/syncplaypingparams.cpp | 41 + .../src/loader/syncplaypreviousitemparams.cpp | 41 + core/src/loader/syncplayqueueparams.cpp | 41 + core/src/loader/syncplayreadyparams.cpp | 41 + .../syncplayremovefromplaylistparams.cpp | 41 + core/src/loader/syncplayseekparams.cpp | 41 + .../loader/syncplaysetignorewaitparams.cpp | 41 + core/src/loader/syncplaysetnewqueueparams.cpp | 41 + .../loader/syncplaysetplaylistitemparams.cpp | 41 + .../loader/syncplaysetrepeatmodeparams.cpp | 41 + .../loader/syncplaysetshufflemodeparams.cpp | 41 + core/src/loader/syncplaystopparams.cpp | 41 + core/src/loader/syncplayunpauseparams.cpp | 41 + .../uninstallpluginbyversionparams.cpp} | 56 +- core/src/loader/uninstallpluginparams.cpp | 50 + core/src/loader/unmarkfavoriteitemparams.cpp | 59 + core/src/loader/updateconfigurationparams.cpp | 41 + core/src/loader/updatedeviceoptionsparams.cpp | 50 + .../updatedisplaypreferencesparams.cpp} | 60 +- .../updateinitialconfigurationparams.cpp | 41 + .../loader/updateitemcontenttypeparams.cpp | 71 + .../src/loader/updateitemimageindexparams.cpp | 89 + core/src/loader/updateitemparams.cpp | 50 + .../src/loader/updatelibraryoptionsparams.cpp | 41 + .../loader/updatemediaencoderpathparams.cpp | 41 + .../loader/updatemediapathparams.cpp} | 53 +- .../loader/updatenamedconfigurationparams.cpp | 50 + .../updatepluginconfigurationparams.cpp | 50 + .../loader/updatepluginsecurityinfoparams.cpp | 41 + core/src/loader/updateprofileparams.cpp | 50 + core/src/loader/updateseriestimerparams.cpp | 50 + core/src/loader/updatestartupuserparams.cpp | 41 + core/src/loader/updatetaskparams.cpp | 50 + core/src/loader/updatetimerparams.cpp | 50 + .../loader/updateuserconfigurationparams.cpp | 50 + .../loader/updateusereasypasswordparams.cpp | 50 + .../src/loader/updateuseritemratingparams.cpp | 80 + core/src/loader/updateuserparams.cpp | 50 + core/src/loader/updateuserpasswordparams.cpp | 50 + core/src/loader/updateuserpolicyparams.cpp | 50 + core/src/loader/uploadsubtitleparams.cpp | 50 + core/src/loader/validatepathparams.cpp | 41 + core/src/viewmodel/modelstatus.cpp | 28 + core/src/viewmodel/playbackmanager.cpp | 2 +- core/src/websocket.cpp | 2 +- qtquick/qml/pages/MainPage.qml | 14 + qtquick/src/main.cpp | 5 +- 642 files changed, 63194 insertions(+), 26509 deletions(-) delete mode 100644 core/include/JellyfinQt/DTO/accessschedule.h delete mode 100644 core/include/JellyfinQt/DTO/activitylogentry.h delete mode 100644 core/include/JellyfinQt/DTO/activitylogentryqueryresult.h delete mode 100644 core/include/JellyfinQt/DTO/addvirtualfolderdto.h delete mode 100644 core/include/JellyfinQt/DTO/albuminfo.h delete mode 100644 core/include/JellyfinQt/DTO/albuminforemotesearchquery.h delete mode 100644 core/include/JellyfinQt/DTO/allthememediaresult.h delete mode 100644 core/include/JellyfinQt/DTO/artistinfo.h delete mode 100644 core/include/JellyfinQt/DTO/artistinforemotesearchquery.h delete mode 100644 core/include/JellyfinQt/DTO/authenticateuserbyname.h delete mode 100644 core/include/JellyfinQt/DTO/authenticationinfo.h delete mode 100644 core/include/JellyfinQt/DTO/authenticationinfoqueryresult.h delete mode 100644 core/include/JellyfinQt/DTO/baseitem.h delete mode 100644 core/include/JellyfinQt/DTO/baseitemdto.h delete mode 100644 core/include/JellyfinQt/DTO/baseitemdtoqueryresult.h delete mode 100644 core/include/JellyfinQt/DTO/baseitemperson.h delete mode 100644 core/include/JellyfinQt/DTO/basepluginconfiguration.h delete mode 100644 core/include/JellyfinQt/DTO/bookinfo.h delete mode 100644 core/include/JellyfinQt/DTO/bookinforemotesearchquery.h delete mode 100644 core/include/JellyfinQt/DTO/boxsetinfo.h delete mode 100644 core/include/JellyfinQt/DTO/boxsetinforemotesearchquery.h delete mode 100644 core/include/JellyfinQt/DTO/brandingoptions.h delete mode 100644 core/include/JellyfinQt/DTO/bufferrequestdto.h delete mode 100644 core/include/JellyfinQt/DTO/channelfeatures.h delete mode 100644 core/include/JellyfinQt/DTO/channelmappingoptionsdto.h delete mode 100644 core/include/JellyfinQt/DTO/channelmediacontenttype.h delete mode 100644 core/include/JellyfinQt/DTO/chapterinfo.h delete mode 100644 core/include/JellyfinQt/DTO/clientcapabilities.h delete mode 100644 core/include/JellyfinQt/DTO/clientcapabilitiesdto.h delete mode 100644 core/include/JellyfinQt/DTO/codecprofile.h delete mode 100644 core/include/JellyfinQt/DTO/collectioncreationresult.h delete mode 100644 core/include/JellyfinQt/DTO/configurationpageinfo.h delete mode 100644 core/include/JellyfinQt/DTO/containerprofile.h delete mode 100644 core/include/JellyfinQt/DTO/countryinfo.h delete mode 100644 core/include/JellyfinQt/DTO/createplaylistdto.h delete mode 100644 core/include/JellyfinQt/DTO/createuserbyname.h delete mode 100644 core/include/JellyfinQt/DTO/culturedto.h delete mode 100644 core/include/JellyfinQt/DTO/dayofweek.h delete mode 100644 core/include/JellyfinQt/DTO/defaultdirectorybrowserinfodto.h delete mode 100644 core/include/JellyfinQt/DTO/deviceidentification.h delete mode 100644 core/include/JellyfinQt/DTO/deviceinfo.h delete mode 100644 core/include/JellyfinQt/DTO/deviceinfoqueryresult.h delete mode 100644 core/include/JellyfinQt/DTO/deviceprofile.h delete mode 100644 core/include/JellyfinQt/DTO/deviceprofileinfo.h delete mode 100644 core/include/JellyfinQt/DTO/deviceprofiletype.h delete mode 100644 core/include/JellyfinQt/DTO/displaypreferencesdto.h delete mode 100644 core/include/JellyfinQt/DTO/dlnaprofiletype.h delete mode 100644 core/include/JellyfinQt/DTO/encodingcontext.h delete mode 100644 core/include/JellyfinQt/DTO/externalidinfo.h delete mode 100644 core/include/JellyfinQt/DTO/externalidmediatype.h delete mode 100644 core/include/JellyfinQt/DTO/externalurl.h delete mode 100644 core/include/JellyfinQt/DTO/filesystementryinfo.h delete mode 100644 core/include/JellyfinQt/DTO/filesystementrytype.h delete mode 100644 core/include/JellyfinQt/DTO/fontfile.h delete mode 100644 core/include/JellyfinQt/DTO/forgotpasswordaction.h delete mode 100644 core/include/JellyfinQt/DTO/forgotpassworddto.h delete mode 100644 core/include/JellyfinQt/DTO/forgotpasswordresult.h delete mode 100644 core/include/JellyfinQt/DTO/generalcommandtype.h delete mode 100644 core/include/JellyfinQt/DTO/getprogramsdto.h delete mode 100644 core/include/JellyfinQt/DTO/groupinfodto.h delete mode 100644 core/include/JellyfinQt/DTO/groupqueuemode.h delete mode 100644 core/include/JellyfinQt/DTO/grouprepeatmode.h delete mode 100644 core/include/JellyfinQt/DTO/groupshufflemode.h delete mode 100644 core/include/JellyfinQt/DTO/groupstatetype.h delete mode 100644 core/include/JellyfinQt/DTO/groupupdatetype.h delete mode 100644 core/include/JellyfinQt/DTO/guideinfo.h delete mode 100644 core/include/JellyfinQt/DTO/headermatchtype.h delete mode 100644 core/include/JellyfinQt/DTO/ignorewaitrequestdto.h delete mode 100644 core/include/JellyfinQt/DTO/imagebynameinfo.h delete mode 100644 core/include/JellyfinQt/DTO/imageinfo.h delete mode 100644 core/include/JellyfinQt/DTO/imageoption.h delete mode 100644 core/include/JellyfinQt/DTO/imageorientation.h delete mode 100644 core/include/JellyfinQt/DTO/imageproviderinfo.h delete mode 100644 core/include/JellyfinQt/DTO/imagetype.h delete mode 100644 core/include/JellyfinQt/DTO/installationinfo.h delete mode 100644 core/include/JellyfinQt/DTO/iplugin.h delete mode 100644 core/include/JellyfinQt/DTO/itemcounts.h delete mode 100644 core/include/JellyfinQt/DTO/itemfields.h delete mode 100644 core/include/JellyfinQt/DTO/joingrouprequestdto.h delete mode 100644 core/include/JellyfinQt/DTO/libraryoptioninfodto.h delete mode 100644 core/include/JellyfinQt/DTO/libraryoptions.h delete mode 100644 core/include/JellyfinQt/DTO/libraryoptionsresultdto.h delete mode 100644 core/include/JellyfinQt/DTO/librarytypeoptionsdto.h delete mode 100644 core/include/JellyfinQt/DTO/libraryupdateinfo.h delete mode 100644 core/include/JellyfinQt/DTO/listingsproviderinfo.h delete mode 100644 core/include/JellyfinQt/DTO/livestreamresponse.h delete mode 100644 core/include/JellyfinQt/DTO/livetvinfo.h delete mode 100644 core/include/JellyfinQt/DTO/livetvserviceinfo.h delete mode 100644 core/include/JellyfinQt/DTO/livetvservicestatus.h delete mode 100644 core/include/JellyfinQt/DTO/locationtype.h delete mode 100644 core/include/JellyfinQt/DTO/logfile.h delete mode 100644 core/include/JellyfinQt/DTO/loglevel.h delete mode 100644 core/include/JellyfinQt/DTO/mediaattachment.h delete mode 100644 core/include/JellyfinQt/DTO/mediaencoderpathdto.h delete mode 100644 core/include/JellyfinQt/DTO/mediapathdto.h delete mode 100644 core/include/JellyfinQt/DTO/mediaprotocol.h delete mode 100644 core/include/JellyfinQt/DTO/mediasourceinfo.h delete mode 100644 core/include/JellyfinQt/DTO/mediasourcetype.h delete mode 100644 core/include/JellyfinQt/DTO/mediastream.h delete mode 100644 core/include/JellyfinQt/DTO/mediastreamtype.h delete mode 100644 core/include/JellyfinQt/DTO/metadataeditorinfo.h delete mode 100644 core/include/JellyfinQt/DTO/metadatafield.h delete mode 100644 core/include/JellyfinQt/DTO/metadataoptions.h delete mode 100644 core/include/JellyfinQt/DTO/metadatarefreshmode.h delete mode 100644 core/include/JellyfinQt/DTO/moveplaylistitemrequestdto.h delete mode 100644 core/include/JellyfinQt/DTO/movieinfo.h delete mode 100644 core/include/JellyfinQt/DTO/movieinforemotesearchquery.h delete mode 100644 core/include/JellyfinQt/DTO/musicvideoinfo.h delete mode 100644 core/include/JellyfinQt/DTO/musicvideoinforemotesearchquery.h delete mode 100644 core/include/JellyfinQt/DTO/nameidpair.h delete mode 100644 core/include/JellyfinQt/DTO/namevaluepair.h delete mode 100644 core/include/JellyfinQt/DTO/notificationdto.h delete mode 100644 core/include/JellyfinQt/DTO/notificationlevel.h delete mode 100644 core/include/JellyfinQt/DTO/notificationresultdto.h delete mode 100644 core/include/JellyfinQt/DTO/notificationssummarydto.h delete mode 100644 core/include/JellyfinQt/DTO/objectgroupupdate.h delete mode 100644 core/include/JellyfinQt/DTO/openlivestreamdto.h delete mode 100644 core/include/JellyfinQt/DTO/packageinfo.h delete mode 100644 core/include/JellyfinQt/DTO/parentalrating.h delete mode 100644 core/include/JellyfinQt/DTO/pathsubstitution.h delete mode 100644 core/include/JellyfinQt/DTO/personlookupinfo.h delete mode 100644 core/include/JellyfinQt/DTO/personlookupinforemotesearchquery.h delete mode 100644 core/include/JellyfinQt/DTO/pinredeemresult.h delete mode 100644 core/include/JellyfinQt/DTO/playbackerrorcode.h delete mode 100644 core/include/JellyfinQt/DTO/playbackinfodto.h delete mode 100644 core/include/JellyfinQt/DTO/playbackprogressinfo.h delete mode 100644 core/include/JellyfinQt/DTO/playbackstartinfo.h delete mode 100644 core/include/JellyfinQt/DTO/playbackstopinfo.h delete mode 100644 core/include/JellyfinQt/DTO/playcommand.h delete mode 100644 core/include/JellyfinQt/DTO/playerstateinfo.h delete mode 100644 core/include/JellyfinQt/DTO/playmethod.h delete mode 100644 core/include/JellyfinQt/DTO/playrequest.h delete mode 100644 core/include/JellyfinQt/DTO/playrequestdto.h delete mode 100644 core/include/JellyfinQt/DTO/playstatecommand.h delete mode 100644 core/include/JellyfinQt/DTO/playstaterequest.h delete mode 100644 core/include/JellyfinQt/DTO/plugininfo.h delete mode 100644 core/include/JellyfinQt/DTO/pluginsecurityinfo.h delete mode 100644 core/include/JellyfinQt/DTO/previousitemrequestdto.h delete mode 100644 core/include/JellyfinQt/DTO/profilecondition.h delete mode 100644 core/include/JellyfinQt/DTO/profileconditiontype.h delete mode 100644 core/include/JellyfinQt/DTO/profileconditionvalue.h delete mode 100644 core/include/JellyfinQt/DTO/programaudio.h delete mode 100644 core/include/JellyfinQt/DTO/publicsysteminfo.h delete mode 100644 core/include/JellyfinQt/DTO/queryfilters.h delete mode 100644 core/include/JellyfinQt/DTO/queryfilterslegacy.h delete mode 100644 core/include/JellyfinQt/DTO/queueitem.h delete mode 100644 core/include/JellyfinQt/DTO/queuerequestdto.h delete mode 100644 core/include/JellyfinQt/DTO/quickconnectdto.h delete mode 100644 core/include/JellyfinQt/DTO/quickconnectresult.h delete mode 100644 core/include/JellyfinQt/DTO/quickconnectstate.h delete mode 100644 core/include/JellyfinQt/DTO/readyrequestdto.h delete mode 100644 core/include/JellyfinQt/DTO/recommendationdto.h delete mode 100644 core/include/JellyfinQt/DTO/recommendationtype.h delete mode 100644 core/include/JellyfinQt/DTO/recordingstatus.h delete mode 100644 core/include/JellyfinQt/DTO/remoteimageinfo.h delete mode 100644 core/include/JellyfinQt/DTO/remoteimageresult.h delete mode 100644 core/include/JellyfinQt/DTO/remotesearchresult.h delete mode 100644 core/include/JellyfinQt/DTO/remotesubtitleinfo.h delete mode 100644 core/include/JellyfinQt/DTO/removefromplaylistrequestdto.h delete mode 100644 core/include/JellyfinQt/DTO/repeatmode.h delete mode 100644 core/include/JellyfinQt/DTO/repositoryinfo.h delete mode 100644 core/include/JellyfinQt/DTO/responseprofile.h delete mode 100644 core/include/JellyfinQt/DTO/scrolldirection.h delete mode 100644 core/include/JellyfinQt/DTO/searchhint.h delete mode 100644 core/include/JellyfinQt/DTO/searchhintresult.h delete mode 100644 core/include/JellyfinQt/DTO/seekrequestdto.h delete mode 100644 core/include/JellyfinQt/DTO/sendcommand.h delete mode 100644 core/include/JellyfinQt/DTO/sendcommandtype.h delete mode 100644 core/include/JellyfinQt/DTO/seriesinfo.h delete mode 100644 core/include/JellyfinQt/DTO/seriesinforemotesearchquery.h delete mode 100644 core/include/JellyfinQt/DTO/seriesstatus.h delete mode 100644 core/include/JellyfinQt/DTO/seriestimerinfodto.h delete mode 100644 core/include/JellyfinQt/DTO/seriestimerinfodtoqueryresult.h delete mode 100644 core/include/JellyfinQt/DTO/serverconfiguration.h delete mode 100644 core/include/JellyfinQt/DTO/sessioninfo.h delete mode 100644 core/include/JellyfinQt/DTO/sessionuserinfo.h delete mode 100644 core/include/JellyfinQt/DTO/setchannelmappingdto.h delete mode 100644 core/include/JellyfinQt/DTO/setrepeatmoderequestdto.h delete mode 100644 core/include/JellyfinQt/DTO/setshufflemoderequestdto.h delete mode 100644 core/include/JellyfinQt/DTO/songinfo.h delete mode 100644 core/include/JellyfinQt/DTO/specialviewoptiondto.h delete mode 100644 core/include/JellyfinQt/DTO/startupconfigurationdto.h delete mode 100644 core/include/JellyfinQt/DTO/startupuserdto.h delete mode 100644 core/include/JellyfinQt/DTO/subtitledeliverymethod.h delete mode 100644 core/include/JellyfinQt/DTO/subtitleplaybackmode.h delete mode 100644 core/include/JellyfinQt/DTO/syncplayuseraccesstype.h delete mode 100644 core/include/JellyfinQt/DTO/systeminfo.h delete mode 100644 core/include/JellyfinQt/DTO/taskinfo.h delete mode 100644 core/include/JellyfinQt/DTO/taskresult.h delete mode 100644 core/include/JellyfinQt/DTO/taskstate.h delete mode 100644 core/include/JellyfinQt/DTO/tasktriggerinfo.h delete mode 100644 core/include/JellyfinQt/DTO/thememediaresult.h delete mode 100644 core/include/JellyfinQt/DTO/timereventinfo.h delete mode 100644 core/include/JellyfinQt/DTO/timerinfodto.h delete mode 100644 core/include/JellyfinQt/DTO/timerinfodtoqueryresult.h delete mode 100644 core/include/JellyfinQt/DTO/trailerinfo.h delete mode 100644 core/include/JellyfinQt/DTO/trailerinforemotesearchquery.h delete mode 100644 core/include/JellyfinQt/DTO/transcodereason.h delete mode 100644 core/include/JellyfinQt/DTO/transcodeseekinfo.h delete mode 100644 core/include/JellyfinQt/DTO/transcodinginfo.h delete mode 100644 core/include/JellyfinQt/DTO/transcodingprofile.h delete mode 100644 core/include/JellyfinQt/DTO/transportstreamtimestamp.h delete mode 100644 core/include/JellyfinQt/DTO/tunerchannelmapping.h delete mode 100644 core/include/JellyfinQt/DTO/tunerhostinfo.h delete mode 100644 core/include/JellyfinQt/DTO/typeoptions.h delete mode 100644 core/include/JellyfinQt/DTO/unrateditem.h delete mode 100644 core/include/JellyfinQt/DTO/updatelibraryoptionsdto.h delete mode 100644 core/include/JellyfinQt/DTO/updateusereasypassword.h delete mode 100644 core/include/JellyfinQt/DTO/updateuserpassword.h delete mode 100644 core/include/JellyfinQt/DTO/uploadsubtitledto.h delete mode 100644 core/include/JellyfinQt/DTO/userconfiguration.h delete mode 100644 core/include/JellyfinQt/DTO/userdto.h delete mode 100644 core/include/JellyfinQt/DTO/useritemdatadto.h delete mode 100644 core/include/JellyfinQt/DTO/userpolicy.h delete mode 100644 core/include/JellyfinQt/DTO/utctimeresponse.h delete mode 100644 core/include/JellyfinQt/DTO/validatepathdto.h delete mode 100644 core/include/JellyfinQt/DTO/versioninfo.h delete mode 100644 core/include/JellyfinQt/DTO/video3dformat.h delete mode 100644 core/include/JellyfinQt/DTO/videotype.h delete mode 100644 core/include/JellyfinQt/DTO/virtualfolderinfo.h delete mode 100644 core/include/JellyfinQt/DTO/wakeonlaninfo.h delete mode 100644 core/include/JellyfinQt/DTO/xmlattribute.h create mode 100644 core/include/JellyfinQt/viewmodel/modelstatus.h create mode 100644 core/src/loader/activateparams.cpp rename core/{include/JellyfinQt/DTO/playbackinforesponse.h => src/loader/addlistingproviderparams.cpp} (50%) create mode 100644 core/src/loader/addmediapathparams.cpp create mode 100644 core/src/loader/addtocollectionparams.cpp rename core/{include/JellyfinQt/DTO/nextitemrequestdto.h => src/loader/addtoplaylistparams.cpp} (58%) create mode 100644 core/src/loader/addtunerhostparams.cpp create mode 100644 core/src/loader/addusertosessionparams.cpp create mode 100644 core/src/loader/addvirtualfolderparams.cpp rename core/{include/JellyfinQt/DTO/httpheaderinfo.h => src/loader/applysearchcriteriaparams.cpp} (63%) create mode 100644 core/src/loader/authenticateuserbynameparams.cpp create mode 100644 core/src/loader/authenticateuserparams.cpp create mode 100644 core/src/loader/authenticatewithquickconnectparams.cpp rename core/{include/JellyfinQt/DTO/isotype.h => src/loader/authorizeparams.cpp} (77%) create mode 100644 core/src/loader/availableparams.cpp rename core/{include/JellyfinQt/DTO/playaccess.h => src/loader/cancelpackageinstallationparams.cpp} (76%) rename core/{include/JellyfinQt/DTO/ratingtype.h => src/loader/cancelseriestimerparams.cpp} (76%) rename core/{include/JellyfinQt/DTO/sortorder.h => src/loader/canceltimerparams.cpp} (76%) create mode 100644 core/src/loader/closelivestreamparams.cpp create mode 100644 core/src/loader/completewizardparams.cpp create mode 100644 core/src/loader/connectparams.cpp create mode 100644 core/src/loader/createadminnotificationparams.cpp create mode 100644 core/src/loader/createcollectionparams.cpp create mode 100644 core/src/loader/createkeyparams.cpp create mode 100644 core/src/loader/createplaylistparams.cpp create mode 100644 core/src/loader/createprofileparams.cpp create mode 100644 core/src/loader/createseriestimerparams.cpp create mode 100644 core/src/loader/createtimerparams.cpp create mode 100644 core/src/loader/createuserbynameparams.cpp create mode 100644 core/src/loader/deauthorizeparams.cpp create mode 100644 core/src/loader/deletealternatesourcesparams.cpp create mode 100644 core/src/loader/deletedeviceparams.cpp create mode 100644 core/src/loader/deleteitemimagebyindexparams.cpp create mode 100644 core/src/loader/deleteitemimageparams.cpp create mode 100644 core/src/loader/deleteitemparams.cpp create mode 100644 core/src/loader/deleteitemsparams.cpp create mode 100644 core/src/loader/deletelistingproviderparams.cpp create mode 100644 core/src/loader/deleteprofileparams.cpp create mode 100644 core/src/loader/deleterecordingparams.cpp rename core/{include/JellyfinQt/DTO/imageformat.h => src/loader/deletesubtitleparams.cpp} (75%) create mode 100644 core/src/loader/deletetunerhostparams.cpp create mode 100644 core/src/loader/deleteuserimagebyindexparams.cpp create mode 100644 core/src/loader/deleteuserimageparams.cpp create mode 100644 core/src/loader/deleteuseritemratingparams.cpp create mode 100644 core/src/loader/deleteuserparams.cpp create mode 100644 core/src/loader/disablepluginparams.cpp rename core/{include/JellyfinQt/DTO/dynamicdayofweek.h => src/loader/discovertunersparams.cpp} (71%) create mode 100644 core/src/loader/discvovertunersparams.cpp create mode 100644 core/src/loader/displaycontentparams.cpp create mode 100644 core/src/loader/downloadremoteimageparams.cpp create mode 100644 core/src/loader/downloadremotesubtitlesparams.cpp create mode 100644 core/src/loader/enablepluginparams.cpp create mode 100644 core/src/loader/forgotpasswordparams.cpp create mode 100644 core/src/loader/forgotpasswordpinparams.cpp rename core/{include/JellyfinQt/DTO/nameguidpair.h => src/loader/getadditionalpartparams.cpp} (67%) create mode 100644 core/src/loader/getalbumartistsparams.cpp create mode 100644 core/src/loader/getallchannelfeaturesparams.cpp create mode 100644 core/src/loader/getancestorsparams.cpp create mode 100644 core/src/loader/getartistbynameparams.cpp create mode 100644 core/src/loader/getartistimageparams.cpp create mode 100644 core/src/loader/getartistsparams.cpp create mode 100644 core/src/loader/getattachmentparams.cpp create mode 100644 core/src/loader/getaudiostreambycontainerparams.cpp create mode 100644 core/src/loader/getaudiostreamparams.cpp create mode 100644 core/src/loader/getauthprovidersparams.cpp create mode 100644 core/src/loader/getbitratetestbytesparams.cpp create mode 100644 core/src/loader/getbookremotesearchresultsparams.cpp create mode 100644 core/src/loader/getboxsetremotesearchresultsparams.cpp create mode 100644 core/src/loader/getbrandingcss_2params.cpp create mode 100644 core/src/loader/getbrandingcssparams.cpp create mode 100644 core/src/loader/getbrandingoptionsparams.cpp create mode 100644 core/src/loader/getchannelfeaturesparams.cpp create mode 100644 core/src/loader/getchannelitemsparams.cpp create mode 100644 core/src/loader/getchannelmappingoptionsparams.cpp rename core/{include/JellyfinQt/DTO/endpointinfo.h => src/loader/getchannelparams.cpp} (68%) create mode 100644 core/src/loader/getchannelsparams.cpp create mode 100644 core/src/loader/getconfigurationpagesparams.cpp create mode 100644 core/src/loader/getconfigurationparams.cpp create mode 100644 core/src/loader/getconnectionmanager_2params.cpp create mode 100644 core/src/loader/getconnectionmanager_3params.cpp create mode 100644 core/src/loader/getconnectionmanagerparams.cpp create mode 100644 core/src/loader/getcontentdirectory_2params.cpp create mode 100644 core/src/loader/getcontentdirectory_3params.cpp create mode 100644 core/src/loader/getcontentdirectoryparams.cpp create mode 100644 core/src/loader/getcountriesparams.cpp create mode 100644 core/src/loader/getcriticreviewsparams.cpp create mode 100644 core/src/loader/getculturesparams.cpp create mode 100644 core/src/loader/getcurrentuserparams.cpp create mode 100644 core/src/loader/getdashboardconfigurationpageparams.cpp create mode 100644 core/src/loader/getdefaultdirectorybrowserparams.cpp create mode 100644 core/src/loader/getdefaultlistingproviderparams.cpp create mode 100644 core/src/loader/getdefaultmetadataoptionsparams.cpp create mode 100644 core/src/loader/getdefaultprofileparams.cpp create mode 100644 core/src/loader/getdefaulttimerparams.cpp create mode 100644 core/src/loader/getdescriptionxml_2params.cpp create mode 100644 core/src/loader/getdescriptionxmlparams.cpp create mode 100644 core/src/loader/getdeviceinfoparams.cpp create mode 100644 core/src/loader/getdeviceoptionsparams.cpp create mode 100644 core/src/loader/getdevicesparams.cpp rename core/{include/JellyfinQt/DTO/startupremoteaccessdto.h => src/loader/getdirectorycontentsparams.cpp} (52%) create mode 100644 core/src/loader/getdisplaypreferencesparams.cpp create mode 100644 core/src/loader/getdownloadparams.cpp create mode 100644 core/src/loader/getdrivesparams.cpp create mode 100644 core/src/loader/getendpointinfoparams.cpp create mode 100644 core/src/loader/getepisodesparams.cpp create mode 100644 core/src/loader/getexternalidinfosparams.cpp create mode 100644 core/src/loader/getfallbackfontlistparams.cpp create mode 100644 core/src/loader/getfallbackfontparams.cpp create mode 100644 core/src/loader/getfileparams.cpp create mode 100644 core/src/loader/getfirstuser_2params.cpp create mode 100644 core/src/loader/getfirstuserparams.cpp rename core/{include/JellyfinQt/DTO/codectype.h => src/loader/getgeneralimageparams.cpp} (75%) create mode 100644 core/src/loader/getgeneralimagesparams.cpp create mode 100644 core/src/loader/getgenreimagebyindexparams.cpp create mode 100644 core/src/loader/getgenreimageparams.cpp create mode 100644 core/src/loader/getgenreparams.cpp create mode 100644 core/src/loader/getgenresparams.cpp create mode 100644 core/src/loader/getgroupingoptionsparams.cpp create mode 100644 core/src/loader/getguideinfoparams.cpp create mode 100644 core/src/loader/gethlsaudiosegmentlegacyaacparams.cpp create mode 100644 core/src/loader/gethlsaudiosegmentlegacymp3params.cpp create mode 100644 core/src/loader/gethlsaudiosegmentparams.cpp create mode 100644 core/src/loader/gethlsplaylistlegacyparams.cpp rename core/{include/JellyfinQt/DTO/setplaylistitemrequestdto.h => src/loader/gethlsvideosegmentlegacyparams.cpp} (59%) create mode 100644 core/src/loader/gethlsvideosegmentparams.cpp create mode 100644 core/src/loader/geticonidparams.cpp create mode 100644 core/src/loader/geticonparams.cpp create mode 100644 core/src/loader/getinstantmixfromalbumparams.cpp create mode 100644 core/src/loader/getinstantmixfromartistsparams.cpp create mode 100644 core/src/loader/getinstantmixfromitemparams.cpp create mode 100644 core/src/loader/getinstantmixfrommusicgenreparams.cpp create mode 100644 core/src/loader/getinstantmixfrommusicgenresparams.cpp create mode 100644 core/src/loader/getinstantmixfromplaylistparams.cpp create mode 100644 core/src/loader/getinstantmixfromsongparams.cpp rename core/{include/JellyfinQt/DTO/channeltype.h => src/loader/getintrosparams.cpp} (76%) rename core/{include/JellyfinQt/DTO/generalcommand.h => src/loader/getitemcountsparams.cpp} (61%) create mode 100644 core/src/loader/getitemimage2params.cpp create mode 100644 core/src/loader/getitemimagebyindexparams.cpp create mode 100644 core/src/loader/getitemimageinfosparams.cpp create mode 100644 core/src/loader/getitemimageparams.cpp create mode 100644 core/src/loader/getitemparams.cpp create mode 100644 core/src/loader/getitemsbyuseridparams.cpp create mode 100644 core/src/loader/getitemsparams.cpp create mode 100644 core/src/loader/getkeysparams.cpp create mode 100644 core/src/loader/getlatestchannelitemsparams.cpp create mode 100644 core/src/loader/getlatestmediaparams.cpp rename core/{include/JellyfinQt/DTO/notificationtypeinfo.h => src/loader/getlibraryoptionsinfoparams.cpp} (55%) create mode 100644 core/src/loader/getlineupsparams.cpp create mode 100644 core/src/loader/getlivehlsstreamparams.cpp create mode 100644 core/src/loader/getliverecordingfileparams.cpp rename core/{include/JellyfinQt/DTO/imagesavingconvention.h => src/loader/getlivestreamfileparams.cpp} (72%) create mode 100644 core/src/loader/getlivetvchannelsparams.cpp create mode 100644 core/src/loader/getlivetvinfoparams.cpp create mode 100644 core/src/loader/getlivetvprogramsparams.cpp create mode 100644 core/src/loader/getlocalizationoptionsparams.cpp create mode 100644 core/src/loader/getlocaltrailersparams.cpp create mode 100644 core/src/loader/getlogentriesparams.cpp create mode 100644 core/src/loader/getlogfileparams.cpp create mode 100644 core/src/loader/getmasterhlsaudioplaylistparams.cpp create mode 100644 core/src/loader/getmasterhlsvideoplaylistparams.cpp create mode 100644 core/src/loader/getmediafoldersparams.cpp rename core/{include/JellyfinQt/DTO/architecture.h => src/loader/getmediainfoimageparams.cpp} (74%) create mode 100644 core/src/loader/getmediainfoimagesparams.cpp create mode 100644 core/src/loader/getmediareceiverregistrar_2params.cpp create mode 100644 core/src/loader/getmediareceiverregistrar_3params.cpp create mode 100644 core/src/loader/getmediareceiverregistrarparams.cpp create mode 100644 core/src/loader/getmetadataeditorinfoparams.cpp create mode 100644 core/src/loader/getmovierecommendationsparams.cpp create mode 100644 core/src/loader/getmovieremotesearchresultsparams.cpp create mode 100644 core/src/loader/getmusicalbumremotesearchresultsparams.cpp create mode 100644 core/src/loader/getmusicartistremotesearchresultsparams.cpp create mode 100644 core/src/loader/getmusicgenreimagebyindexparams.cpp create mode 100644 core/src/loader/getmusicgenreimageparams.cpp rename core/{include/JellyfinQt/DTO/pingrequestdto.h => src/loader/getmusicgenreparams.cpp} (67%) create mode 100644 core/src/loader/getmusicgenresparams.cpp create mode 100644 core/src/loader/getmusicvideoremotesearchresultsparams.cpp create mode 100644 core/src/loader/getnamedconfigurationparams.cpp create mode 100644 core/src/loader/getnetworksharesparams.cpp create mode 100644 core/src/loader/getnextupparams.cpp create mode 100644 core/src/loader/getnotificationservicesparams.cpp create mode 100644 core/src/loader/getnotificationsparams.cpp create mode 100644 core/src/loader/getnotificationssummaryparams.cpp create mode 100644 core/src/loader/getnotificationtypesparams.cpp rename core/{include/JellyfinQt/DTO/localizationoption.h => src/loader/getpackageinfoparams.cpp} (66%) create mode 100644 core/src/loader/getpackagesparams.cpp create mode 100644 core/src/loader/getparams.cpp create mode 100644 core/src/loader/getparentalratingsparams.cpp create mode 100644 core/src/loader/getparentpathparams.cpp create mode 100644 core/src/loader/getpasswordresetprovidersparams.cpp create mode 100644 core/src/loader/getpersonimagebyindexparams.cpp create mode 100644 core/src/loader/getpersonimageparams.cpp rename core/{include/JellyfinQt/DTO/deviceoptions.h => src/loader/getpersonparams.cpp} (69%) create mode 100644 core/src/loader/getpersonremotesearchresultsparams.cpp create mode 100644 core/src/loader/getpersonsparams.cpp create mode 100644 core/src/loader/getphysicalpathsparams.cpp create mode 100644 core/src/loader/getpingsystemparams.cpp create mode 100644 core/src/loader/getplaybackinfoparams.cpp create mode 100644 core/src/loader/getplaylistitemsparams.cpp create mode 100644 core/src/loader/getpluginconfigurationparams.cpp create mode 100644 core/src/loader/getpluginimageparams.cpp create mode 100644 core/src/loader/getpluginmanifestparams.cpp create mode 100644 core/src/loader/getpluginsparams.cpp create mode 100644 core/src/loader/getpostedplaybackinfoparams.cpp create mode 100644 core/src/loader/getprofileinfosparams.cpp create mode 100644 core/src/loader/getprofileparams.cpp create mode 100644 core/src/loader/getprogramparams.cpp create mode 100644 core/src/loader/getprogramsparams.cpp create mode 100644 core/src/loader/getpublicsysteminfoparams.cpp create mode 100644 core/src/loader/getpublicusersparams.cpp create mode 100644 core/src/loader/getqueryfilterslegacyparams.cpp create mode 100644 core/src/loader/getqueryfiltersparams.cpp rename core/{include/JellyfinQt/DTO/daypattern.h => src/loader/getratingimageparams.cpp} (75%) create mode 100644 core/src/loader/getratingimagesparams.cpp create mode 100644 core/src/loader/getrecommendedprogramsparams.cpp create mode 100644 core/src/loader/getrecordingfoldersparams.cpp create mode 100644 core/src/loader/getrecordinggroupparams.cpp rename core/{include/JellyfinQt/DTO/configurationpagetype.h => src/loader/getrecordinggroupsparams.cpp} (72%) create mode 100644 core/src/loader/getrecordingparams.cpp create mode 100644 core/src/loader/getrecordingsparams.cpp create mode 100644 core/src/loader/getrecordingsseriesparams.cpp create mode 100644 core/src/loader/getremoteimageparams.cpp create mode 100644 core/src/loader/getremoteimageprovidersparams.cpp create mode 100644 core/src/loader/getremoteimagesparams.cpp rename core/{include/JellyfinQt/DTO/pluginstatus.h => src/loader/getremotesearchimageparams.cpp} (72%) create mode 100644 core/src/loader/getremotesubtitlesparams.cpp create mode 100644 core/src/loader/getrepositoriesparams.cpp create mode 100644 core/src/loader/getresumeitemsparams.cpp create mode 100644 core/src/loader/getrootfolderparams.cpp create mode 100644 core/src/loader/getschedulesdirectcountriesparams.cpp create mode 100644 core/src/loader/getseasonsparams.cpp create mode 100644 core/src/loader/getseriesremotesearchresultsparams.cpp create mode 100644 core/src/loader/getseriestimerparams.cpp rename core/{include/JellyfinQt/DTO/problemdetails.h => src/loader/getseriestimersparams.cpp} (60%) create mode 100644 core/src/loader/getserverlogsparams.cpp create mode 100644 core/src/loader/getsessionsparams.cpp create mode 100644 core/src/loader/getsimilaralbumsparams.cpp create mode 100644 core/src/loader/getsimilarartistsparams.cpp create mode 100644 core/src/loader/getsimilaritemsparams.cpp create mode 100644 core/src/loader/getsimilarmoviesparams.cpp create mode 100644 core/src/loader/getsimilarshowsparams.cpp create mode 100644 core/src/loader/getsimilartrailersparams.cpp create mode 100644 core/src/loader/getspecialfeaturesparams.cpp create mode 100644 core/src/loader/getstartupconfigurationparams.cpp create mode 100644 core/src/loader/getstatusparams.cpp create mode 100644 core/src/loader/getstudioimagebyindexparams.cpp create mode 100644 core/src/loader/getstudioimageparams.cpp rename core/{include/JellyfinQt/DTO/ffmpeglocation.h => src/loader/getstudioparams.cpp} (70%) create mode 100644 core/src/loader/getstudiosparams.cpp create mode 100644 core/src/loader/getsubtitleparams.cpp create mode 100644 core/src/loader/getsubtitleplaylistparams.cpp create mode 100644 core/src/loader/getsubtitlewithticksparams.cpp create mode 100644 core/src/loader/getsuggestionsparams.cpp create mode 100644 core/src/loader/getsysteminfoparams.cpp create mode 100644 core/src/loader/gettaskparams.cpp create mode 100644 core/src/loader/gettasksparams.cpp create mode 100644 core/src/loader/getthememediaparams.cpp create mode 100644 core/src/loader/getthemesongsparams.cpp create mode 100644 core/src/loader/getthemevideosparams.cpp create mode 100644 core/src/loader/gettimerparams.cpp create mode 100644 core/src/loader/gettimersparams.cpp create mode 100644 core/src/loader/gettrailerremotesearchresultsparams.cpp create mode 100644 core/src/loader/gettrailersparams.cpp create mode 100644 core/src/loader/gettunerhosttypesparams.cpp create mode 100644 core/src/loader/getuniversalaudiostreamparams.cpp create mode 100644 core/src/loader/getupcomingepisodesparams.cpp create mode 100644 core/src/loader/getuserbyidparams.cpp create mode 100644 core/src/loader/getuserimagebyindexparams.cpp create mode 100644 core/src/loader/getuserimageparams.cpp create mode 100644 core/src/loader/getusersparams.cpp create mode 100644 core/src/loader/getuserviewsparams.cpp create mode 100644 core/src/loader/getutctimeparams.cpp create mode 100644 core/src/loader/getvarianthlsaudioplaylistparams.cpp create mode 100644 core/src/loader/getvarianthlsvideoplaylistparams.cpp create mode 100644 core/src/loader/getvideostreambycontainerparams.cpp create mode 100644 core/src/loader/getvideostreamparams.cpp create mode 100644 core/src/loader/getvirtualfoldersparams.cpp create mode 100644 core/src/loader/getwakeonlaninfoparams.cpp rename core/{include/JellyfinQt/DTO/channelitemsortfield.h => src/loader/getyearparams.cpp} (70%) create mode 100644 core/src/loader/getyearsparams.cpp create mode 100644 core/src/loader/headartistimageparams.cpp create mode 100644 core/src/loader/headaudiostreambycontainerparams.cpp create mode 100644 core/src/loader/headaudiostreamparams.cpp create mode 100644 core/src/loader/headgenreimagebyindexparams.cpp create mode 100644 core/src/loader/headgenreimageparams.cpp create mode 100644 core/src/loader/headitemimage2params.cpp create mode 100644 core/src/loader/headitemimagebyindexparams.cpp create mode 100644 core/src/loader/headitemimageparams.cpp create mode 100644 core/src/loader/headmasterhlsaudioplaylistparams.cpp create mode 100644 core/src/loader/headmasterhlsvideoplaylistparams.cpp create mode 100644 core/src/loader/headmusicgenreimagebyindexparams.cpp create mode 100644 core/src/loader/headmusicgenreimageparams.cpp create mode 100644 core/src/loader/headpersonimagebyindexparams.cpp create mode 100644 core/src/loader/headpersonimageparams.cpp create mode 100644 core/src/loader/headstudioimagebyindexparams.cpp create mode 100644 core/src/loader/headstudioimageparams.cpp create mode 100644 core/src/loader/headuniversalaudiostreamparams.cpp create mode 100644 core/src/loader/headuserimagebyindexparams.cpp create mode 100644 core/src/loader/headuserimageparams.cpp create mode 100644 core/src/loader/headvideostreambycontainerparams.cpp create mode 100644 core/src/loader/headvideostreamparams.cpp create mode 100644 core/src/loader/initiateparams.cpp create mode 100644 core/src/loader/installpackageparams.cpp create mode 100644 core/src/loader/markfavoriteitemparams.cpp create mode 100644 core/src/loader/markplayeditemparams.cpp create mode 100644 core/src/loader/markunplayeditemparams.cpp create mode 100644 core/src/loader/mergeversionsparams.cpp rename core/{include/JellyfinQt/DTO/mediaurl.h => src/loader/moveitemparams.cpp} (69%) create mode 100644 core/src/loader/onplaybackprogressparams.cpp create mode 100644 core/src/loader/onplaybackstartparams.cpp create mode 100644 core/src/loader/onplaybackstoppedparams.cpp create mode 100644 core/src/loader/openlivestreamparams.cpp create mode 100644 core/src/loader/pingplaybacksessionparams.cpp rename core/{include/JellyfinQt/DTO/subtitleprofile.h => src/loader/playparams.cpp} (56%) create mode 100644 core/src/loader/postaddedmoviesparams.cpp create mode 100644 core/src/loader/postaddedseriesparams.cpp create mode 100644 core/src/loader/postcapabilitiesparams.cpp create mode 100644 core/src/loader/postfullcapabilitiesparams.cpp create mode 100644 core/src/loader/postparams.cpp create mode 100644 core/src/loader/postpingsystemparams.cpp create mode 100644 core/src/loader/postupdatedmediaparams.cpp create mode 100644 core/src/loader/postupdatedmoviesparams.cpp create mode 100644 core/src/loader/postupdatedseriesparams.cpp rename core/{include/JellyfinQt/DTO/mediapathinfo.h => src/loader/postuserimagebyindexparams.cpp} (66%) create mode 100644 core/src/loader/postuserimageparams.cpp create mode 100644 core/src/loader/processconnectionmanagercontrolrequestparams.cpp create mode 100644 core/src/loader/processcontentdirectorycontrolrequestparams.cpp create mode 100644 core/src/loader/processmediareceiverregistrarcontrolrequestparams.cpp create mode 100644 core/src/loader/refreshlibraryparams.cpp create mode 100644 core/src/loader/removefromcollectionparams.cpp create mode 100644 core/src/loader/removefromplaylistparams.cpp rename core/{include/JellyfinQt/DTO/authenticationresult.h => src/loader/removemediapathparams.cpp} (53%) create mode 100644 core/src/loader/removeuserfromsessionparams.cpp rename core/{include/JellyfinQt/DTO/version.h => src/loader/removevirtualfolderparams.cpp} (59%) rename core/{include/JellyfinQt/DTO/mediaupdateinfodto.h => src/loader/renamevirtualfolderparams.cpp} (51%) create mode 100644 core/src/loader/reportplaybackprogressparams.cpp create mode 100644 core/src/loader/reportplaybackstartparams.cpp create mode 100644 core/src/loader/reportplaybackstoppedparams.cpp create mode 100644 core/src/loader/reportsessionendedparams.cpp rename core/{include/JellyfinQt/DTO/playlistcreationresult.h => src/loader/reportviewingparams.cpp} (67%) rename core/{include/JellyfinQt/DTO/keepuntil.h => src/loader/resettunerparams.cpp} (76%) create mode 100644 core/src/loader/restartapplicationparams.cpp create mode 100644 core/src/loader/revokekeyparams.cpp rename core/{include/JellyfinQt/DTO/taskcompletionstatus.h => src/loader/searchremotesubtitlesparams.cpp} (59%) create mode 100644 core/src/loader/sendfullgeneralcommandparams.cpp create mode 100644 core/src/loader/sendgeneralcommandparams.cpp rename core/{include/JellyfinQt/DTO/newgrouprequestdto.h => src/loader/sendmessagecommandparams.cpp} (52%) create mode 100644 core/src/loader/sendplaystatecommandparams.cpp create mode 100644 core/src/loader/sendsystemcommandparams.cpp create mode 100644 core/src/loader/setchannelmappingparams.cpp create mode 100644 core/src/loader/setitemimagebyindexparams.cpp create mode 100644 core/src/loader/setitemimageparams.cpp create mode 100644 core/src/loader/setreadparams.cpp create mode 100644 core/src/loader/setremoteaccessparams.cpp create mode 100644 core/src/loader/setrepositoriesparams.cpp create mode 100644 core/src/loader/setunreadparams.cpp create mode 100644 core/src/loader/shutdownapplicationparams.cpp create mode 100644 core/src/loader/starttaskparams.cpp rename core/{include/JellyfinQt/DTO/directplayprofile.h => src/loader/stopencodingprocessparams.cpp} (58%) create mode 100644 core/src/loader/stoptaskparams.cpp create mode 100644 core/src/loader/syncplaybufferingparams.cpp create mode 100644 core/src/loader/syncplaycreategroupparams.cpp create mode 100644 core/src/loader/syncplaygetgroupsparams.cpp create mode 100644 core/src/loader/syncplayjoingroupparams.cpp create mode 100644 core/src/loader/syncplayleavegroupparams.cpp create mode 100644 core/src/loader/syncplaymoveplaylistitemparams.cpp create mode 100644 core/src/loader/syncplaynextitemparams.cpp create mode 100644 core/src/loader/syncplaypauseparams.cpp create mode 100644 core/src/loader/syncplaypingparams.cpp create mode 100644 core/src/loader/syncplaypreviousitemparams.cpp create mode 100644 core/src/loader/syncplayqueueparams.cpp create mode 100644 core/src/loader/syncplayreadyparams.cpp create mode 100644 core/src/loader/syncplayremovefromplaylistparams.cpp create mode 100644 core/src/loader/syncplayseekparams.cpp create mode 100644 core/src/loader/syncplaysetignorewaitparams.cpp create mode 100644 core/src/loader/syncplaysetnewqueueparams.cpp create mode 100644 core/src/loader/syncplaysetplaylistitemparams.cpp create mode 100644 core/src/loader/syncplaysetrepeatmodeparams.cpp create mode 100644 core/src/loader/syncplaysetshufflemodeparams.cpp create mode 100644 core/src/loader/syncplaystopparams.cpp create mode 100644 core/src/loader/syncplayunpauseparams.cpp rename core/{include/JellyfinQt/DTO/itemfilter.h => src/loader/uninstallpluginbyversionparams.cpp} (71%) create mode 100644 core/src/loader/uninstallpluginparams.cpp create mode 100644 core/src/loader/unmarkfavoriteitemparams.cpp create mode 100644 core/src/loader/updateconfigurationparams.cpp create mode 100644 core/src/loader/updatedeviceoptionsparams.cpp rename core/{include/JellyfinQt/DTO/controlresponse.h => src/loader/updatedisplaypreferencesparams.cpp} (63%) create mode 100644 core/src/loader/updateinitialconfigurationparams.cpp create mode 100644 core/src/loader/updateitemcontenttypeparams.cpp create mode 100644 core/src/loader/updateitemimageindexparams.cpp create mode 100644 core/src/loader/updateitemparams.cpp create mode 100644 core/src/loader/updatelibraryoptionsparams.cpp create mode 100644 core/src/loader/updatemediaencoderpathparams.cpp rename core/{include/JellyfinQt/DTO/channelmediatype.h => src/loader/updatemediapathparams.cpp} (74%) create mode 100644 core/src/loader/updatenamedconfigurationparams.cpp create mode 100644 core/src/loader/updatepluginconfigurationparams.cpp create mode 100644 core/src/loader/updatepluginsecurityinfoparams.cpp create mode 100644 core/src/loader/updateprofileparams.cpp create mode 100644 core/src/loader/updateseriestimerparams.cpp create mode 100644 core/src/loader/updatestartupuserparams.cpp create mode 100644 core/src/loader/updatetaskparams.cpp create mode 100644 core/src/loader/updatetimerparams.cpp create mode 100644 core/src/loader/updateuserconfigurationparams.cpp create mode 100644 core/src/loader/updateusereasypasswordparams.cpp create mode 100644 core/src/loader/updateuseritemratingparams.cpp create mode 100644 core/src/loader/updateuserparams.cpp create mode 100644 core/src/loader/updateuserpasswordparams.cpp create mode 100644 core/src/loader/updateuserpolicyparams.cpp create mode 100644 core/src/loader/uploadsubtitleparams.cpp create mode 100644 core/src/loader/validatepathparams.cpp create mode 100644 core/src/viewmodel/modelstatus.cpp diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 5a36568..f5db19f 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -12,6 +12,7 @@ set(JellyfinQt_SOURCES src/viewmodel/item.cpp src/viewmodel/itemmodel.cpp src/viewmodel/loader.cpp + src/viewmodel/modelstatus.cpp src/viewmodel/playbackmanager.cpp src/apiclient.cpp src/apimodel.cpp @@ -32,6 +33,7 @@ set(JellyfinQt_HEADERS include/JellyfinQt/viewmodel/item.h include/JellyfinQt/viewmodel/itemmodel.h include/JellyfinQt/viewmodel/loader.h + include/JellyfinQt/viewmodel/modelstatus.h include/JellyfinQt/viewmodel/propertyhelper.h include/JellyfinQt/viewmodel/playbackmanager.h include/JellyfinQt/apiclient.h diff --git a/core/include/JellyfinQt/DTO/accessschedule.h b/core/include/JellyfinQt/DTO/accessschedule.h deleted file mode 100644 index 27d0eba..0000000 --- a/core/include/JellyfinQt/DTO/accessschedule.h +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_ACCESSSCHEDULE_H -#define JELLYFIN_DTO_ACCESSSCHEDULE_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/dynamicdayofweek.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class AccessSchedule { -public:AccessSchedule();AccessSchedule(const AccessSchedule &other); - - static AccessSchedule fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the id of this instance. - */ - qint32 jellyfinId() const; - /** - * @brief Gets or sets the id of this instance. - */ - void setJellyfinId(qint32 newJellyfinId); - /** - * @brief Gets or sets the id of the associated user. - */ - QUuid userId() const; - /** - * @brief Gets or sets the id of the associated user. - */ - void setUserId(QUuid newUserId); - - DynamicDayOfWeek dayOfWeek() const; - - void setDayOfWeek(DynamicDayOfWeek newDayOfWeek); - /** - * @brief Gets or sets the start hour. - */ - double startHour() const; - /** - * @brief Gets or sets the start hour. - */ - void setStartHour(double newStartHour); - /** - * @brief Gets or sets the end hour. - */ - double endHour() const; - /** - * @brief Gets or sets the end hour. - */ - void setEndHour(double newEndHour); - -protected: - qint32 m_jellyfinId; - QUuid m_userId; - DynamicDayOfWeek m_dayOfWeek; - double m_startHour; - double m_endHour; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_ACCESSSCHEDULE_H diff --git a/core/include/JellyfinQt/DTO/activitylogentry.h b/core/include/JellyfinQt/DTO/activitylogentry.h deleted file mode 100644 index 6c6755f..0000000 --- a/core/include/JellyfinQt/DTO/activitylogentry.h +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_ACTIVITYLOGENTRY_H -#define JELLYFIN_DTO_ACTIVITYLOGENTRY_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/loglevel.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ActivityLogEntry { -public:ActivityLogEntry();ActivityLogEntry(const ActivityLogEntry &other); - - static ActivityLogEntry fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the identifier. - */ - qint64 jellyfinId() const; - /** - * @brief Gets or sets the identifier. - */ - void setJellyfinId(qint64 newJellyfinId); - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the overview. - */ - QString overview() const; - /** - * @brief Gets or sets the overview. - */ - void setOverview(QString newOverview); - /** - * @brief Gets or sets the short overview. - */ - QString shortOverview() const; - /** - * @brief Gets or sets the short overview. - */ - void setShortOverview(QString newShortOverview); - /** - * @brief Gets or sets the type. - */ - QString type() const; - /** - * @brief Gets or sets the type. - */ - void setType(QString newType); - /** - * @brief Gets or sets the item identifier. - */ - QString itemId() const; - /** - * @brief Gets or sets the item identifier. - */ - void setItemId(QString newItemId); - /** - * @brief Gets or sets the date. - */ - QDateTime date() const; - /** - * @brief Gets or sets the date. - */ - void setDate(QDateTime newDate); - /** - * @brief Gets or sets the user identifier. - */ - QUuid userId() const; - /** - * @brief Gets or sets the user identifier. - */ - void setUserId(QUuid newUserId); - /** - * @brief Gets or sets the user primary image tag. - */ - QString userPrimaryImageTag() const; - /** - * @brief Gets or sets the user primary image tag. - */ - void setUserPrimaryImageTag(QString newUserPrimaryImageTag); - - LogLevel severity() const; - - void setSeverity(LogLevel newSeverity); - -protected: - qint64 m_jellyfinId; - QString m_name; - QString m_overview; - QString m_shortOverview; - QString m_type; - QString m_itemId; - QDateTime m_date; - QUuid m_userId; - QString m_userPrimaryImageTag; - LogLevel m_severity; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_ACTIVITYLOGENTRY_H diff --git a/core/include/JellyfinQt/DTO/activitylogentryqueryresult.h b/core/include/JellyfinQt/DTO/activitylogentryqueryresult.h deleted file mode 100644 index 8ea5ce6..0000000 --- a/core/include/JellyfinQt/DTO/activitylogentryqueryresult.h +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_ACTIVITYLOGENTRYQUERYRESULT_H -#define JELLYFIN_DTO_ACTIVITYLOGENTRYQUERYRESULT_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/activitylogentry.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ActivityLogEntryQueryResult { -public:ActivityLogEntryQueryResult();ActivityLogEntryQueryResult(const ActivityLogEntryQueryResult &other); - - static ActivityLogEntryQueryResult fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the items. - */ - QList> items() const; - /** - * @brief Gets or sets the items. - */ - void setItems(QList> newItems); - /** - * @brief The total number of records available. - */ - qint32 totalRecordCount() const; - /** - * @brief The total number of records available. - */ - void setTotalRecordCount(qint32 newTotalRecordCount); - /** - * @brief The index of the first record in Items. - */ - qint32 startIndex() const; - /** - * @brief The index of the first record in Items. - */ - void setStartIndex(qint32 newStartIndex); - -protected: - QList> m_items; - qint32 m_totalRecordCount; - qint32 m_startIndex; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_ACTIVITYLOGENTRYQUERYRESULT_H diff --git a/core/include/JellyfinQt/DTO/addvirtualfolderdto.h b/core/include/JellyfinQt/DTO/addvirtualfolderdto.h deleted file mode 100644 index 6fe13fb..0000000 --- a/core/include/JellyfinQt/DTO/addvirtualfolderdto.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_ADDVIRTUALFOLDERDTO_H -#define JELLYFIN_DTO_ADDVIRTUALFOLDERDTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/libraryoptions.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class AddVirtualFolderDto { -public:AddVirtualFolderDto();AddVirtualFolderDto(const AddVirtualFolderDto &other); - - static AddVirtualFolderDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QSharedPointer libraryOptions() const; - - void setLibraryOptions(QSharedPointer newLibraryOptions); - -protected: - QSharedPointer m_libraryOptions = nullptr; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_ADDVIRTUALFOLDERDTO_H diff --git a/core/include/JellyfinQt/DTO/albuminfo.h b/core/include/JellyfinQt/DTO/albuminfo.h deleted file mode 100644 index 380fcbf..0000000 --- a/core/include/JellyfinQt/DTO/albuminfo.h +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_ALBUMINFO_H -#define JELLYFIN_DTO_ALBUMINFO_H - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/songinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class AlbumInfo { -public:AlbumInfo();AlbumInfo(const AlbumInfo &other); - - static AlbumInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the path. - */ - QString path() const; - /** - * @brief Gets or sets the path. - */ - void setPath(QString newPath); - /** - * @brief Gets or sets the metadata language. - */ - QString metadataLanguage() const; - /** - * @brief Gets or sets the metadata language. - */ - void setMetadataLanguage(QString newMetadataLanguage); - /** - * @brief Gets or sets the metadata country code. - */ - QString metadataCountryCode() const; - /** - * @brief Gets or sets the metadata country code. - */ - void setMetadataCountryCode(QString newMetadataCountryCode); - /** - * @brief Gets or sets the provider ids. - */ - QJsonObject providerIds() const; - /** - * @brief Gets or sets the provider ids. - */ - void setProviderIds(QJsonObject newProviderIds); - /** - * @brief Gets or sets the year. - */ - qint32 year() const; - /** - * @brief Gets or sets the year. - */ - void setYear(qint32 newYear); - - qint32 indexNumber() const; - - void setIndexNumber(qint32 newIndexNumber); - - qint32 parentIndexNumber() const; - - void setParentIndexNumber(qint32 newParentIndexNumber); - - QDateTime premiereDate() const; - - void setPremiereDate(QDateTime newPremiereDate); - - bool isAutomated() const; - - void setIsAutomated(bool newIsAutomated); - /** - * @brief Gets or sets the album artist. - */ - QStringList albumArtists() const; - /** - * @brief Gets or sets the album artist. - */ - void setAlbumArtists(QStringList newAlbumArtists); - /** - * @brief Gets or sets the artist provider ids. - */ - QJsonObject artistProviderIds() const; - /** - * @brief Gets or sets the artist provider ids. - */ - void setArtistProviderIds(QJsonObject newArtistProviderIds); - - QList> songInfos() const; - - void setSongInfos(QList> newSongInfos); - -protected: - QString m_name; - QString m_path; - QString m_metadataLanguage; - QString m_metadataCountryCode; - QJsonObject m_providerIds; - qint32 m_year; - qint32 m_indexNumber; - qint32 m_parentIndexNumber; - QDateTime m_premiereDate; - bool m_isAutomated; - QStringList m_albumArtists; - QJsonObject m_artistProviderIds; - QList> m_songInfos; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_ALBUMINFO_H diff --git a/core/include/JellyfinQt/DTO/albuminforemotesearchquery.h b/core/include/JellyfinQt/DTO/albuminforemotesearchquery.h deleted file mode 100644 index 5f0eefd..0000000 --- a/core/include/JellyfinQt/DTO/albuminforemotesearchquery.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_ALBUMINFOREMOTESEARCHQUERY_H -#define JELLYFIN_DTO_ALBUMINFOREMOTESEARCHQUERY_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/albuminfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class AlbumInfoRemoteSearchQuery { -public:AlbumInfoRemoteSearchQuery();AlbumInfoRemoteSearchQuery(const AlbumInfoRemoteSearchQuery &other); - - static AlbumInfoRemoteSearchQuery fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QSharedPointer searchInfo() const; - - void setSearchInfo(QSharedPointer newSearchInfo); - - QUuid itemId() const; - - void setItemId(QUuid newItemId); - /** - * @brief Will only search within the given provider when set. - */ - QString searchProviderName() const; - /** - * @brief Will only search within the given provider when set. - */ - void setSearchProviderName(QString newSearchProviderName); - /** - * @brief Gets or sets a value indicating whether disabled providers should be included. - */ - bool includeDisabledProviders() const; - /** - * @brief Gets or sets a value indicating whether disabled providers should be included. - */ - void setIncludeDisabledProviders(bool newIncludeDisabledProviders); - -protected: - QSharedPointer m_searchInfo = nullptr; - QUuid m_itemId; - QString m_searchProviderName; - bool m_includeDisabledProviders; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_ALBUMINFOREMOTESEARCHQUERY_H diff --git a/core/include/JellyfinQt/DTO/allthememediaresult.h b/core/include/JellyfinQt/DTO/allthememediaresult.h deleted file mode 100644 index 69371b3..0000000 --- a/core/include/JellyfinQt/DTO/allthememediaresult.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_ALLTHEMEMEDIARESULT_H -#define JELLYFIN_DTO_ALLTHEMEMEDIARESULT_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/thememediaresult.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class AllThemeMediaResult { -public:AllThemeMediaResult();AllThemeMediaResult(const AllThemeMediaResult &other); - - static AllThemeMediaResult fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QSharedPointer themeVideosResult() const; - - void setThemeVideosResult(QSharedPointer newThemeVideosResult); - - QSharedPointer themeSongsResult() const; - - void setThemeSongsResult(QSharedPointer newThemeSongsResult); - - QSharedPointer soundtrackSongsResult() const; - - void setSoundtrackSongsResult(QSharedPointer newSoundtrackSongsResult); - -protected: - QSharedPointer m_themeVideosResult = nullptr; - QSharedPointer m_themeSongsResult = nullptr; - QSharedPointer m_soundtrackSongsResult = nullptr; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_ALLTHEMEMEDIARESULT_H diff --git a/core/include/JellyfinQt/DTO/artistinfo.h b/core/include/JellyfinQt/DTO/artistinfo.h deleted file mode 100644 index 116bbfa..0000000 --- a/core/include/JellyfinQt/DTO/artistinfo.h +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_ARTISTINFO_H -#define JELLYFIN_DTO_ARTISTINFO_H - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/songinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ArtistInfo { -public:ArtistInfo();ArtistInfo(const ArtistInfo &other); - - static ArtistInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the path. - */ - QString path() const; - /** - * @brief Gets or sets the path. - */ - void setPath(QString newPath); - /** - * @brief Gets or sets the metadata language. - */ - QString metadataLanguage() const; - /** - * @brief Gets or sets the metadata language. - */ - void setMetadataLanguage(QString newMetadataLanguage); - /** - * @brief Gets or sets the metadata country code. - */ - QString metadataCountryCode() const; - /** - * @brief Gets or sets the metadata country code. - */ - void setMetadataCountryCode(QString newMetadataCountryCode); - /** - * @brief Gets or sets the provider ids. - */ - QJsonObject providerIds() const; - /** - * @brief Gets or sets the provider ids. - */ - void setProviderIds(QJsonObject newProviderIds); - /** - * @brief Gets or sets the year. - */ - qint32 year() const; - /** - * @brief Gets or sets the year. - */ - void setYear(qint32 newYear); - - qint32 indexNumber() const; - - void setIndexNumber(qint32 newIndexNumber); - - qint32 parentIndexNumber() const; - - void setParentIndexNumber(qint32 newParentIndexNumber); - - QDateTime premiereDate() const; - - void setPremiereDate(QDateTime newPremiereDate); - - bool isAutomated() const; - - void setIsAutomated(bool newIsAutomated); - - QList> songInfos() const; - - void setSongInfos(QList> newSongInfos); - -protected: - QString m_name; - QString m_path; - QString m_metadataLanguage; - QString m_metadataCountryCode; - QJsonObject m_providerIds; - qint32 m_year; - qint32 m_indexNumber; - qint32 m_parentIndexNumber; - QDateTime m_premiereDate; - bool m_isAutomated; - QList> m_songInfos; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_ARTISTINFO_H diff --git a/core/include/JellyfinQt/DTO/artistinforemotesearchquery.h b/core/include/JellyfinQt/DTO/artistinforemotesearchquery.h deleted file mode 100644 index d56b1ef..0000000 --- a/core/include/JellyfinQt/DTO/artistinforemotesearchquery.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_ARTISTINFOREMOTESEARCHQUERY_H -#define JELLYFIN_DTO_ARTISTINFOREMOTESEARCHQUERY_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/artistinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ArtistInfoRemoteSearchQuery { -public:ArtistInfoRemoteSearchQuery();ArtistInfoRemoteSearchQuery(const ArtistInfoRemoteSearchQuery &other); - - static ArtistInfoRemoteSearchQuery fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QSharedPointer searchInfo() const; - - void setSearchInfo(QSharedPointer newSearchInfo); - - QUuid itemId() const; - - void setItemId(QUuid newItemId); - /** - * @brief Will only search within the given provider when set. - */ - QString searchProviderName() const; - /** - * @brief Will only search within the given provider when set. - */ - void setSearchProviderName(QString newSearchProviderName); - /** - * @brief Gets or sets a value indicating whether disabled providers should be included. - */ - bool includeDisabledProviders() const; - /** - * @brief Gets or sets a value indicating whether disabled providers should be included. - */ - void setIncludeDisabledProviders(bool newIncludeDisabledProviders); - -protected: - QSharedPointer m_searchInfo = nullptr; - QUuid m_itemId; - QString m_searchProviderName; - bool m_includeDisabledProviders; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_ARTISTINFOREMOTESEARCHQUERY_H diff --git a/core/include/JellyfinQt/DTO/authenticateuserbyname.h b/core/include/JellyfinQt/DTO/authenticateuserbyname.h deleted file mode 100644 index 2157a9c..0000000 --- a/core/include/JellyfinQt/DTO/authenticateuserbyname.h +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_AUTHENTICATEUSERBYNAME_H -#define JELLYFIN_DTO_AUTHENTICATEUSERBYNAME_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class AuthenticateUserByName { -public:AuthenticateUserByName();AuthenticateUserByName(const AuthenticateUserByName &other); - - static AuthenticateUserByName fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the username. - */ - QString username() const; - /** - * @brief Gets or sets the username. - */ - void setUsername(QString newUsername); - /** - * @brief Gets or sets the plain text password. - */ - QString pw() const; - /** - * @brief Gets or sets the plain text password. - */ - void setPw(QString newPw); - /** - * @brief Gets or sets the sha1-hashed password. - */ - QString password() const; - /** - * @brief Gets or sets the sha1-hashed password. - */ - void setPassword(QString newPassword); - -protected: - QString m_username; - QString m_pw; - QString m_password; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_AUTHENTICATEUSERBYNAME_H diff --git a/core/include/JellyfinQt/DTO/authenticationinfo.h b/core/include/JellyfinQt/DTO/authenticationinfo.h deleted file mode 100644 index 0c591fc..0000000 --- a/core/include/JellyfinQt/DTO/authenticationinfo.h +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_AUTHENTICATIONINFO_H -#define JELLYFIN_DTO_AUTHENTICATIONINFO_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class AuthenticationInfo { -public:AuthenticationInfo();AuthenticationInfo(const AuthenticationInfo &other); - - static AuthenticationInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the identifier. - */ - qint64 jellyfinId() const; - /** - * @brief Gets or sets the identifier. - */ - void setJellyfinId(qint64 newJellyfinId); - /** - * @brief Gets or sets the access token. - */ - QString accessToken() const; - /** - * @brief Gets or sets the access token. - */ - void setAccessToken(QString newAccessToken); - /** - * @brief Gets or sets the device identifier. - */ - QString deviceId() const; - /** - * @brief Gets or sets the device identifier. - */ - void setDeviceId(QString newDeviceId); - /** - * @brief Gets or sets the name of the application. - */ - QString appName() const; - /** - * @brief Gets or sets the name of the application. - */ - void setAppName(QString newAppName); - /** - * @brief Gets or sets the application version. - */ - QString appVersion() const; - /** - * @brief Gets or sets the application version. - */ - void setAppVersion(QString newAppVersion); - /** - * @brief Gets or sets the name of the device. - */ - QString deviceName() const; - /** - * @brief Gets or sets the name of the device. - */ - void setDeviceName(QString newDeviceName); - /** - * @brief Gets or sets the user identifier. - */ - QUuid userId() const; - /** - * @brief Gets or sets the user identifier. - */ - void setUserId(QUuid newUserId); - /** - * @brief Gets or sets a value indicating whether this instance is active. - */ - bool isActive() const; - /** - * @brief Gets or sets a value indicating whether this instance is active. - */ - void setIsActive(bool newIsActive); - /** - * @brief Gets or sets the date created. - */ - QDateTime dateCreated() const; - /** - * @brief Gets or sets the date created. - */ - void setDateCreated(QDateTime newDateCreated); - /** - * @brief Gets or sets the date revoked. - */ - QDateTime dateRevoked() const; - /** - * @brief Gets or sets the date revoked. - */ - void setDateRevoked(QDateTime newDateRevoked); - - QDateTime dateLastActivity() const; - - void setDateLastActivity(QDateTime newDateLastActivity); - - QString userName() const; - - void setUserName(QString newUserName); - -protected: - qint64 m_jellyfinId; - QString m_accessToken; - QString m_deviceId; - QString m_appName; - QString m_appVersion; - QString m_deviceName; - QUuid m_userId; - bool m_isActive; - QDateTime m_dateCreated; - QDateTime m_dateRevoked; - QDateTime m_dateLastActivity; - QString m_userName; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_AUTHENTICATIONINFO_H diff --git a/core/include/JellyfinQt/DTO/authenticationinfoqueryresult.h b/core/include/JellyfinQt/DTO/authenticationinfoqueryresult.h deleted file mode 100644 index c59465a..0000000 --- a/core/include/JellyfinQt/DTO/authenticationinfoqueryresult.h +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_AUTHENTICATIONINFOQUERYRESULT_H -#define JELLYFIN_DTO_AUTHENTICATIONINFOQUERYRESULT_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/authenticationinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class AuthenticationInfoQueryResult { -public:AuthenticationInfoQueryResult();AuthenticationInfoQueryResult(const AuthenticationInfoQueryResult &other); - - static AuthenticationInfoQueryResult fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the items. - */ - QList> items() const; - /** - * @brief Gets or sets the items. - */ - void setItems(QList> newItems); - /** - * @brief The total number of records available. - */ - qint32 totalRecordCount() const; - /** - * @brief The total number of records available. - */ - void setTotalRecordCount(qint32 newTotalRecordCount); - /** - * @brief The index of the first record in Items. - */ - qint32 startIndex() const; - /** - * @brief The index of the first record in Items. - */ - void setStartIndex(qint32 newStartIndex); - -protected: - QList> m_items; - qint32 m_totalRecordCount; - qint32 m_startIndex; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_AUTHENTICATIONINFOQUERYRESULT_H diff --git a/core/include/JellyfinQt/DTO/baseitem.h b/core/include/JellyfinQt/DTO/baseitem.h deleted file mode 100644 index 7162d42..0000000 --- a/core/include/JellyfinQt/DTO/baseitem.h +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_BASEITEM_H -#define JELLYFIN_DTO_BASEITEM_H - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/mediaurl.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class BaseItem { -public:BaseItem();BaseItem(const BaseItem &other); - - static BaseItem fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - qint64 size() const; - - void setSize(qint64 newSize); - - QString container() const; - - void setContainer(QString newContainer); - - QDateTime dateLastSaved() const; - - void setDateLastSaved(QDateTime newDateLastSaved); - /** - * @brief Gets or sets the remote trailers. - */ - QList> remoteTrailers() const; - /** - * @brief Gets or sets the remote trailers. - */ - void setRemoteTrailers(QList> newRemoteTrailers); - - bool isHD() const; - - void setIsHD(bool newIsHD); - - bool isShortcut() const; - - void setIsShortcut(bool newIsShortcut); - - QString shortcutPath() const; - - void setShortcutPath(QString newShortcutPath); - - qint32 width() const; - - void setWidth(qint32 newWidth); - - qint32 height() const; - - void setHeight(qint32 newHeight); - - QList extraIds() const; - - void setExtraIds(QList newExtraIds); - - bool supportsExternalTransfer() const; - - void setSupportsExternalTransfer(bool newSupportsExternalTransfer); - -protected: - qint64 m_size; - QString m_container; - QDateTime m_dateLastSaved; - QList> m_remoteTrailers; - bool m_isHD; - bool m_isShortcut; - QString m_shortcutPath; - qint32 m_width; - qint32 m_height; - QList m_extraIds; - bool m_supportsExternalTransfer; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_BASEITEM_H diff --git a/core/include/JellyfinQt/DTO/baseitemdto.h b/core/include/JellyfinQt/DTO/baseitemdto.h deleted file mode 100644 index f6cbddb..0000000 --- a/core/include/JellyfinQt/DTO/baseitemdto.h +++ /dev/null @@ -1,1267 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_BASEITEMDTO_H -#define JELLYFIN_DTO_BASEITEMDTO_H - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/baseitemperson.h" -#include "JellyfinQt/DTO/channeltype.h" -#include "JellyfinQt/DTO/chapterinfo.h" -#include "JellyfinQt/DTO/dayofweek.h" -#include "JellyfinQt/DTO/externalurl.h" -#include "JellyfinQt/DTO/imageorientation.h" -#include "JellyfinQt/DTO/isotype.h" -#include "JellyfinQt/DTO/locationtype.h" -#include "JellyfinQt/DTO/mediasourceinfo.h" -#include "JellyfinQt/DTO/mediastream.h" -#include "JellyfinQt/DTO/mediaurl.h" -#include "JellyfinQt/DTO/metadatafield.h" -#include "JellyfinQt/DTO/nameguidpair.h" -#include "JellyfinQt/DTO/playaccess.h" -#include "JellyfinQt/DTO/programaudio.h" -#include "JellyfinQt/DTO/useritemdatadto.h" -#include "JellyfinQt/DTO/video3dformat.h" -#include "JellyfinQt/DTO/videotype.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class BaseItemDto { -public:BaseItemDto();BaseItemDto(const BaseItemDto &other); - - static BaseItemDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - - QString originalTitle() const; - - void setOriginalTitle(QString newOriginalTitle); - /** - * @brief Gets or sets the server identifier. - */ - QString serverId() const; - /** - * @brief Gets or sets the server identifier. - */ - void setServerId(QString newServerId); - /** - * @brief Gets or sets the id. - */ - QUuid jellyfinId() const; - /** - * @brief Gets or sets the id. - */ - void setJellyfinId(QUuid newJellyfinId); - /** - * @brief Gets or sets the etag. - */ - QString etag() const; - /** - * @brief Gets or sets the etag. - */ - void setEtag(QString newEtag); - /** - * @brief Gets or sets the type of the source. - */ - QString sourceType() const; - /** - * @brief Gets or sets the type of the source. - */ - void setSourceType(QString newSourceType); - /** - * @brief Gets or sets the playlist item identifier. - */ - QString playlistItemId() const; - /** - * @brief Gets or sets the playlist item identifier. - */ - void setPlaylistItemId(QString newPlaylistItemId); - /** - * @brief Gets or sets the date created. - */ - QDateTime dateCreated() const; - /** - * @brief Gets or sets the date created. - */ - void setDateCreated(QDateTime newDateCreated); - - QDateTime dateLastMediaAdded() const; - - void setDateLastMediaAdded(QDateTime newDateLastMediaAdded); - - QString extraType() const; - - void setExtraType(QString newExtraType); - - qint32 airsBeforeSeasonNumber() const; - - void setAirsBeforeSeasonNumber(qint32 newAirsBeforeSeasonNumber); - - qint32 airsAfterSeasonNumber() const; - - void setAirsAfterSeasonNumber(qint32 newAirsAfterSeasonNumber); - - qint32 airsBeforeEpisodeNumber() const; - - void setAirsBeforeEpisodeNumber(qint32 newAirsBeforeEpisodeNumber); - - bool canDelete() const; - - void setCanDelete(bool newCanDelete); - - bool canDownload() const; - - void setCanDownload(bool newCanDownload); - - bool hasSubtitles() const; - - void setHasSubtitles(bool newHasSubtitles); - - QString preferredMetadataLanguage() const; - - void setPreferredMetadataLanguage(QString newPreferredMetadataLanguage); - - QString preferredMetadataCountryCode() const; - - void setPreferredMetadataCountryCode(QString newPreferredMetadataCountryCode); - /** - * @brief Gets or sets a value indicating whether [supports synchronize]. - */ - bool supportsSync() const; - /** - * @brief Gets or sets a value indicating whether [supports synchronize]. - */ - void setSupportsSync(bool newSupportsSync); - - QString container() const; - - void setContainer(QString newContainer); - /** - * @brief Gets or sets the name of the sort. - */ - QString sortName() const; - /** - * @brief Gets or sets the name of the sort. - */ - void setSortName(QString newSortName); - - QString forcedSortName() const; - - void setForcedSortName(QString newForcedSortName); - - Video3DFormat video3DFormat() const; - - void setVideo3DFormat(Video3DFormat newVideo3DFormat); - /** - * @brief Gets or sets the premiere date. - */ - QDateTime premiereDate() const; - /** - * @brief Gets or sets the premiere date. - */ - void setPremiereDate(QDateTime newPremiereDate); - /** - * @brief Gets or sets the external urls. - */ - QList> externalUrls() const; - /** - * @brief Gets or sets the external urls. - */ - void setExternalUrls(QList> newExternalUrls); - /** - * @brief Gets or sets the media versions. - */ - QList> mediaSources() const; - /** - * @brief Gets or sets the media versions. - */ - void setMediaSources(QList> newMediaSources); - /** - * @brief Gets or sets the critic rating. - */ - float criticRating() const; - /** - * @brief Gets or sets the critic rating. - */ - void setCriticRating(float newCriticRating); - - QStringList productionLocations() const; - - void setProductionLocations(QStringList newProductionLocations); - /** - * @brief Gets or sets the path. - */ - QString path() const; - /** - * @brief Gets or sets the path. - */ - void setPath(QString newPath); - - bool enableMediaSourceDisplay() const; - - void setEnableMediaSourceDisplay(bool newEnableMediaSourceDisplay); - /** - * @brief Gets or sets the official rating. - */ - QString officialRating() const; - /** - * @brief Gets or sets the official rating. - */ - void setOfficialRating(QString newOfficialRating); - /** - * @brief Gets or sets the custom rating. - */ - QString customRating() const; - /** - * @brief Gets or sets the custom rating. - */ - void setCustomRating(QString newCustomRating); - /** - * @brief Gets or sets the channel identifier. - */ - QUuid channelId() const; - /** - * @brief Gets or sets the channel identifier. - */ - void setChannelId(QUuid newChannelId); - - QString channelName() const; - - void setChannelName(QString newChannelName); - /** - * @brief Gets or sets the overview. - */ - QString overview() const; - /** - * @brief Gets or sets the overview. - */ - void setOverview(QString newOverview); - /** - * @brief Gets or sets the taglines. - */ - QStringList taglines() const; - /** - * @brief Gets or sets the taglines. - */ - void setTaglines(QStringList newTaglines); - /** - * @brief Gets or sets the genres. - */ - QStringList genres() const; - /** - * @brief Gets or sets the genres. - */ - void setGenres(QStringList newGenres); - /** - * @brief Gets or sets the community rating. - */ - float communityRating() const; - /** - * @brief Gets or sets the community rating. - */ - void setCommunityRating(float newCommunityRating); - /** - * @brief Gets or sets the cumulative run time ticks. - */ - qint64 cumulativeRunTimeTicks() const; - /** - * @brief Gets or sets the cumulative run time ticks. - */ - void setCumulativeRunTimeTicks(qint64 newCumulativeRunTimeTicks); - /** - * @brief Gets or sets the run time ticks. - */ - qint64 runTimeTicks() const; - /** - * @brief Gets or sets the run time ticks. - */ - void setRunTimeTicks(qint64 newRunTimeTicks); - - PlayAccess playAccess() const; - - void setPlayAccess(PlayAccess newPlayAccess); - /** - * @brief Gets or sets the aspect ratio. - */ - QString aspectRatio() const; - /** - * @brief Gets or sets the aspect ratio. - */ - void setAspectRatio(QString newAspectRatio); - /** - * @brief Gets or sets the production year. - */ - qint32 productionYear() const; - /** - * @brief Gets or sets the production year. - */ - void setProductionYear(qint32 newProductionYear); - /** - * @brief Gets or sets a value indicating whether this instance is place holder. - */ - bool isPlaceHolder() const; - /** - * @brief Gets or sets a value indicating whether this instance is place holder. - */ - void setIsPlaceHolder(bool newIsPlaceHolder); - /** - * @brief Gets or sets the number. - */ - QString number() const; - /** - * @brief Gets or sets the number. - */ - void setNumber(QString newNumber); - - QString channelNumber() const; - - void setChannelNumber(QString newChannelNumber); - /** - * @brief Gets or sets the index number. - */ - qint32 indexNumber() const; - /** - * @brief Gets or sets the index number. - */ - void setIndexNumber(qint32 newIndexNumber); - /** - * @brief Gets or sets the index number end. - */ - qint32 indexNumberEnd() const; - /** - * @brief Gets or sets the index number end. - */ - void setIndexNumberEnd(qint32 newIndexNumberEnd); - /** - * @brief Gets or sets the parent index number. - */ - qint32 parentIndexNumber() const; - /** - * @brief Gets or sets the parent index number. - */ - void setParentIndexNumber(qint32 newParentIndexNumber); - /** - * @brief Gets or sets the trailer urls. - */ - QList> remoteTrailers() const; - /** - * @brief Gets or sets the trailer urls. - */ - void setRemoteTrailers(QList> newRemoteTrailers); - /** - * @brief Gets or sets the provider ids. - */ - QJsonObject providerIds() const; - /** - * @brief Gets or sets the provider ids. - */ - void setProviderIds(QJsonObject newProviderIds); - /** - * @brief Gets or sets a value indicating whether this instance is HD. - */ - bool isHD() const; - /** - * @brief Gets or sets a value indicating whether this instance is HD. - */ - void setIsHD(bool newIsHD); - /** - * @brief Gets or sets a value indicating whether this instance is folder. - */ - bool isFolder() const; - /** - * @brief Gets or sets a value indicating whether this instance is folder. - */ - void setIsFolder(bool newIsFolder); - /** - * @brief Gets or sets the parent id. - */ - QUuid parentId() const; - /** - * @brief Gets or sets the parent id. - */ - void setParentId(QUuid newParentId); - /** - * @brief Gets or sets the type. - */ - QString type() const; - /** - * @brief Gets or sets the type. - */ - void setType(QString newType); - /** - * @brief Gets or sets the people. - */ - QList> people() const; - /** - * @brief Gets or sets the people. - */ - void setPeople(QList> newPeople); - /** - * @brief Gets or sets the studios. - */ - QList> studios() const; - /** - * @brief Gets or sets the studios. - */ - void setStudios(QList> newStudios); - - QList> genreItems() const; - - void setGenreItems(QList> newGenreItems); - /** - * @brief If the item does not have a logo, this will hold the Id of the Parent that has one. - */ - QString parentLogoItemId() const; - /** - * @brief If the item does not have a logo, this will hold the Id of the Parent that has one. - */ - void setParentLogoItemId(QString newParentLogoItemId); - /** - * @brief If the item does not have any backdrops, this will hold the Id of the Parent that has one. - */ - QString parentBackdropItemId() const; - /** - * @brief If the item does not have any backdrops, this will hold the Id of the Parent that has one. - */ - void setParentBackdropItemId(QString newParentBackdropItemId); - /** - * @brief Gets or sets the parent backdrop image tags. - */ - QStringList parentBackdropImageTags() const; - /** - * @brief Gets or sets the parent backdrop image tags. - */ - void setParentBackdropImageTags(QStringList newParentBackdropImageTags); - /** - * @brief Gets or sets the local trailer count. - */ - qint32 localTrailerCount() const; - /** - * @brief Gets or sets the local trailer count. - */ - void setLocalTrailerCount(qint32 newLocalTrailerCount); - - QSharedPointer userData() const; - - void setUserData(QSharedPointer newUserData); - /** - * @brief Gets or sets the recursive item count. - */ - qint32 recursiveItemCount() const; - /** - * @brief Gets or sets the recursive item count. - */ - void setRecursiveItemCount(qint32 newRecursiveItemCount); - /** - * @brief Gets or sets the child count. - */ - qint32 childCount() const; - /** - * @brief Gets or sets the child count. - */ - void setChildCount(qint32 newChildCount); - /** - * @brief Gets or sets the name of the series. - */ - QString seriesName() const; - /** - * @brief Gets or sets the name of the series. - */ - void setSeriesName(QString newSeriesName); - /** - * @brief Gets or sets the series id. - */ - QUuid seriesId() const; - /** - * @brief Gets or sets the series id. - */ - void setSeriesId(QUuid newSeriesId); - /** - * @brief Gets or sets the season identifier. - */ - QUuid seasonId() const; - /** - * @brief Gets or sets the season identifier. - */ - void setSeasonId(QUuid newSeasonId); - /** - * @brief Gets or sets the special feature count. - */ - qint32 specialFeatureCount() const; - /** - * @brief Gets or sets the special feature count. - */ - void setSpecialFeatureCount(qint32 newSpecialFeatureCount); - /** - * @brief Gets or sets the display preferences id. - */ - QString displayPreferencesId() const; - /** - * @brief Gets or sets the display preferences id. - */ - void setDisplayPreferencesId(QString newDisplayPreferencesId); - /** - * @brief Gets or sets the status. - */ - QString status() const; - /** - * @brief Gets or sets the status. - */ - void setStatus(QString newStatus); - /** - * @brief Gets or sets the air time. - */ - QString airTime() const; - /** - * @brief Gets or sets the air time. - */ - void setAirTime(QString newAirTime); - /** - * @brief Gets or sets the air days. - */ - QList airDays() const; - /** - * @brief Gets or sets the air days. - */ - void setAirDays(QList newAirDays); - /** - * @brief Gets or sets the tags. - */ - QStringList tags() const; - /** - * @brief Gets or sets the tags. - */ - void setTags(QStringList newTags); - /** - * @brief Gets or sets the primary image aspect ratio, after image enhancements. - */ - double primaryImageAspectRatio() const; - /** - * @brief Gets or sets the primary image aspect ratio, after image enhancements. - */ - void setPrimaryImageAspectRatio(double newPrimaryImageAspectRatio); - /** - * @brief Gets or sets the artists. - */ - QStringList artists() const; - /** - * @brief Gets or sets the artists. - */ - void setArtists(QStringList newArtists); - /** - * @brief Gets or sets the artist items. - */ - QList> artistItems() const; - /** - * @brief Gets or sets the artist items. - */ - void setArtistItems(QList> newArtistItems); - /** - * @brief Gets or sets the album. - */ - QString album() const; - /** - * @brief Gets or sets the album. - */ - void setAlbum(QString newAlbum); - /** - * @brief Gets or sets the type of the collection. - */ - QString collectionType() const; - /** - * @brief Gets or sets the type of the collection. - */ - void setCollectionType(QString newCollectionType); - /** - * @brief Gets or sets the display order. - */ - QString displayOrder() const; - /** - * @brief Gets or sets the display order. - */ - void setDisplayOrder(QString newDisplayOrder); - /** - * @brief Gets or sets the album id. - */ - QUuid albumId() const; - /** - * @brief Gets or sets the album id. - */ - void setAlbumId(QUuid newAlbumId); - /** - * @brief Gets or sets the album image tag. - */ - QString albumPrimaryImageTag() const; - /** - * @brief Gets or sets the album image tag. - */ - void setAlbumPrimaryImageTag(QString newAlbumPrimaryImageTag); - /** - * @brief Gets or sets the series primary image tag. - */ - QString seriesPrimaryImageTag() const; - /** - * @brief Gets or sets the series primary image tag. - */ - void setSeriesPrimaryImageTag(QString newSeriesPrimaryImageTag); - /** - * @brief Gets or sets the album artist. - */ - QString albumArtist() const; - /** - * @brief Gets or sets the album artist. - */ - void setAlbumArtist(QString newAlbumArtist); - /** - * @brief Gets or sets the album artists. - */ - QList> albumArtists() const; - /** - * @brief Gets or sets the album artists. - */ - void setAlbumArtists(QList> newAlbumArtists); - /** - * @brief Gets or sets the name of the season. - */ - QString seasonName() const; - /** - * @brief Gets or sets the name of the season. - */ - void setSeasonName(QString newSeasonName); - /** - * @brief Gets or sets the media streams. - */ - QList> mediaStreams() const; - /** - * @brief Gets or sets the media streams. - */ - void setMediaStreams(QList> newMediaStreams); - - VideoType videoType() const; - - void setVideoType(VideoType newVideoType); - /** - * @brief Gets or sets the part count. - */ - qint32 partCount() const; - /** - * @brief Gets or sets the part count. - */ - void setPartCount(qint32 newPartCount); - - qint32 mediaSourceCount() const; - - void setMediaSourceCount(qint32 newMediaSourceCount); - /** - * @brief Gets or sets the image tags. - */ - QJsonObject imageTags() const; - /** - * @brief Gets or sets the image tags. - */ - void setImageTags(QJsonObject newImageTags); - /** - * @brief Gets or sets the backdrop image tags. - */ - QStringList backdropImageTags() const; - /** - * @brief Gets or sets the backdrop image tags. - */ - void setBackdropImageTags(QStringList newBackdropImageTags); - /** - * @brief Gets or sets the screenshot image tags. - */ - QStringList screenshotImageTags() const; - /** - * @brief Gets or sets the screenshot image tags. - */ - void setScreenshotImageTags(QStringList newScreenshotImageTags); - /** - * @brief Gets or sets the parent logo image tag. - */ - QString parentLogoImageTag() const; - /** - * @brief Gets or sets the parent logo image tag. - */ - void setParentLogoImageTag(QString newParentLogoImageTag); - /** - * @brief If the item does not have a art, this will hold the Id of the Parent that has one. - */ - QString parentArtItemId() const; - /** - * @brief If the item does not have a art, this will hold the Id of the Parent that has one. - */ - void setParentArtItemId(QString newParentArtItemId); - /** - * @brief Gets or sets the parent art image tag. - */ - QString parentArtImageTag() const; - /** - * @brief Gets or sets the parent art image tag. - */ - void setParentArtImageTag(QString newParentArtImageTag); - /** - * @brief Gets or sets the series thumb image tag. - */ - QString seriesThumbImageTag() const; - /** - * @brief Gets or sets the series thumb image tag. - */ - void setSeriesThumbImageTag(QString newSeriesThumbImageTag); - /** - * @brief Gets or sets the blurhashes for the image tags. -Maps image type to dictionary mapping image tag to blurhash value. - */ - QJsonObject imageBlurHashes() const; - /** - * @brief Gets or sets the blurhashes for the image tags. -Maps image type to dictionary mapping image tag to blurhash value. - */ - void setImageBlurHashes(QJsonObject newImageBlurHashes); - /** - * @brief Gets or sets the series studio. - */ - QString seriesStudio() const; - /** - * @brief Gets or sets the series studio. - */ - void setSeriesStudio(QString newSeriesStudio); - /** - * @brief Gets or sets the parent thumb item id. - */ - QString parentThumbItemId() const; - /** - * @brief Gets or sets the parent thumb item id. - */ - void setParentThumbItemId(QString newParentThumbItemId); - /** - * @brief Gets or sets the parent thumb image tag. - */ - QString parentThumbImageTag() const; - /** - * @brief Gets or sets the parent thumb image tag. - */ - void setParentThumbImageTag(QString newParentThumbImageTag); - /** - * @brief Gets or sets the parent primary image item identifier. - */ - QString parentPrimaryImageItemId() const; - /** - * @brief Gets or sets the parent primary image item identifier. - */ - void setParentPrimaryImageItemId(QString newParentPrimaryImageItemId); - /** - * @brief Gets or sets the parent primary image tag. - */ - QString parentPrimaryImageTag() const; - /** - * @brief Gets or sets the parent primary image tag. - */ - void setParentPrimaryImageTag(QString newParentPrimaryImageTag); - /** - * @brief Gets or sets the chapters. - */ - QList> chapters() const; - /** - * @brief Gets or sets the chapters. - */ - void setChapters(QList> newChapters); - - LocationType locationType() const; - - void setLocationType(LocationType newLocationType); - - IsoType isoType() const; - - void setIsoType(IsoType newIsoType); - /** - * @brief Gets or sets the type of the media. - */ - QString mediaType() const; - /** - * @brief Gets or sets the type of the media. - */ - void setMediaType(QString newMediaType); - /** - * @brief Gets or sets the end date. - */ - QDateTime endDate() const; - /** - * @brief Gets or sets the end date. - */ - void setEndDate(QDateTime newEndDate); - /** - * @brief Gets or sets the locked fields. - */ - QList lockedFields() const; - /** - * @brief Gets or sets the locked fields. - */ - void setLockedFields(QList newLockedFields); - /** - * @brief Gets or sets the trailer count. - */ - qint32 trailerCount() const; - /** - * @brief Gets or sets the trailer count. - */ - void setTrailerCount(qint32 newTrailerCount); - /** - * @brief Gets or sets the movie count. - */ - qint32 movieCount() const; - /** - * @brief Gets or sets the movie count. - */ - void setMovieCount(qint32 newMovieCount); - /** - * @brief Gets or sets the series count. - */ - qint32 seriesCount() const; - /** - * @brief Gets or sets the series count. - */ - void setSeriesCount(qint32 newSeriesCount); - - qint32 programCount() const; - - void setProgramCount(qint32 newProgramCount); - /** - * @brief Gets or sets the episode count. - */ - qint32 episodeCount() const; - /** - * @brief Gets or sets the episode count. - */ - void setEpisodeCount(qint32 newEpisodeCount); - /** - * @brief Gets or sets the song count. - */ - qint32 songCount() const; - /** - * @brief Gets or sets the song count. - */ - void setSongCount(qint32 newSongCount); - /** - * @brief Gets or sets the album count. - */ - qint32 albumCount() const; - /** - * @brief Gets or sets the album count. - */ - void setAlbumCount(qint32 newAlbumCount); - - qint32 artistCount() const; - - void setArtistCount(qint32 newArtistCount); - /** - * @brief Gets or sets the music video count. - */ - qint32 musicVideoCount() const; - /** - * @brief Gets or sets the music video count. - */ - void setMusicVideoCount(qint32 newMusicVideoCount); - /** - * @brief Gets or sets a value indicating whether [enable internet providers]. - */ - bool lockData() const; - /** - * @brief Gets or sets a value indicating whether [enable internet providers]. - */ - void setLockData(bool newLockData); - - qint32 width() const; - - void setWidth(qint32 newWidth); - - qint32 height() const; - - void setHeight(qint32 newHeight); - - QString cameraMake() const; - - void setCameraMake(QString newCameraMake); - - QString cameraModel() const; - - void setCameraModel(QString newCameraModel); - - QString software() const; - - void setSoftware(QString newSoftware); - - double exposureTime() const; - - void setExposureTime(double newExposureTime); - - double focalLength() const; - - void setFocalLength(double newFocalLength); - - ImageOrientation imageOrientation() const; - - void setImageOrientation(ImageOrientation newImageOrientation); - - double aperture() const; - - void setAperture(double newAperture); - - double shutterSpeed() const; - - void setShutterSpeed(double newShutterSpeed); - - double latitude() const; - - void setLatitude(double newLatitude); - - double longitude() const; - - void setLongitude(double newLongitude); - - double altitude() const; - - void setAltitude(double newAltitude); - - qint32 isoSpeedRating() const; - - void setIsoSpeedRating(qint32 newIsoSpeedRating); - /** - * @brief Gets or sets the series timer identifier. - */ - QString seriesTimerId() const; - /** - * @brief Gets or sets the series timer identifier. - */ - void setSeriesTimerId(QString newSeriesTimerId); - /** - * @brief Gets or sets the program identifier. - */ - QString programId() const; - /** - * @brief Gets or sets the program identifier. - */ - void setProgramId(QString newProgramId); - /** - * @brief Gets or sets the channel primary image tag. - */ - QString channelPrimaryImageTag() const; - /** - * @brief Gets or sets the channel primary image tag. - */ - void setChannelPrimaryImageTag(QString newChannelPrimaryImageTag); - /** - * @brief The start date of the recording, in UTC. - */ - QDateTime startDate() const; - /** - * @brief The start date of the recording, in UTC. - */ - void setStartDate(QDateTime newStartDate); - /** - * @brief Gets or sets the completion percentage. - */ - double completionPercentage() const; - /** - * @brief Gets or sets the completion percentage. - */ - void setCompletionPercentage(double newCompletionPercentage); - /** - * @brief Gets or sets a value indicating whether this instance is repeat. - */ - bool isRepeat() const; - /** - * @brief Gets or sets a value indicating whether this instance is repeat. - */ - void setIsRepeat(bool newIsRepeat); - /** - * @brief Gets or sets the episode title. - */ - QString episodeTitle() const; - /** - * @brief Gets or sets the episode title. - */ - void setEpisodeTitle(QString newEpisodeTitle); - - ChannelType channelType() const; - - void setChannelType(ChannelType newChannelType); - - ProgramAudio audio() const; - - void setAudio(ProgramAudio newAudio); - /** - * @brief Gets or sets a value indicating whether this instance is movie. - */ - bool isMovie() const; - /** - * @brief Gets or sets a value indicating whether this instance is movie. - */ - void setIsMovie(bool newIsMovie); - /** - * @brief Gets or sets a value indicating whether this instance is sports. - */ - bool isSports() const; - /** - * @brief Gets or sets a value indicating whether this instance is sports. - */ - void setIsSports(bool newIsSports); - /** - * @brief Gets or sets a value indicating whether this instance is series. - */ - bool isSeries() const; - /** - * @brief Gets or sets a value indicating whether this instance is series. - */ - void setIsSeries(bool newIsSeries); - /** - * @brief Gets or sets a value indicating whether this instance is live. - */ - bool isLive() const; - /** - * @brief Gets or sets a value indicating whether this instance is live. - */ - void setIsLive(bool newIsLive); - /** - * @brief Gets or sets a value indicating whether this instance is news. - */ - bool isNews() const; - /** - * @brief Gets or sets a value indicating whether this instance is news. - */ - void setIsNews(bool newIsNews); - /** - * @brief Gets or sets a value indicating whether this instance is kids. - */ - bool isKids() const; - /** - * @brief Gets or sets a value indicating whether this instance is kids. - */ - void setIsKids(bool newIsKids); - /** - * @brief Gets or sets a value indicating whether this instance is premiere. - */ - bool isPremiere() const; - /** - * @brief Gets or sets a value indicating whether this instance is premiere. - */ - void setIsPremiere(bool newIsPremiere); - /** - * @brief Gets or sets the timer identifier. - */ - QString timerId() const; - /** - * @brief Gets or sets the timer identifier. - */ - void setTimerId(QString newTimerId); - - QSharedPointer currentProgram() const; - - void setCurrentProgram(QSharedPointer newCurrentProgram); - -protected: - QString m_name; - QString m_originalTitle; - QString m_serverId; - QUuid m_jellyfinId; - QString m_etag; - QString m_sourceType; - QString m_playlistItemId; - QDateTime m_dateCreated; - QDateTime m_dateLastMediaAdded; - QString m_extraType; - qint32 m_airsBeforeSeasonNumber; - qint32 m_airsAfterSeasonNumber; - qint32 m_airsBeforeEpisodeNumber; - bool m_canDelete; - bool m_canDownload; - bool m_hasSubtitles; - QString m_preferredMetadataLanguage; - QString m_preferredMetadataCountryCode; - bool m_supportsSync; - QString m_container; - QString m_sortName; - QString m_forcedSortName; - Video3DFormat m_video3DFormat; - QDateTime m_premiereDate; - QList> m_externalUrls; - QList> m_mediaSources; - float m_criticRating; - QStringList m_productionLocations; - QString m_path; - bool m_enableMediaSourceDisplay; - QString m_officialRating; - QString m_customRating; - QUuid m_channelId; - QString m_channelName; - QString m_overview; - QStringList m_taglines; - QStringList m_genres; - float m_communityRating; - qint64 m_cumulativeRunTimeTicks; - qint64 m_runTimeTicks; - PlayAccess m_playAccess; - QString m_aspectRatio; - qint32 m_productionYear; - bool m_isPlaceHolder; - QString m_number; - QString m_channelNumber; - qint32 m_indexNumber; - qint32 m_indexNumberEnd; - qint32 m_parentIndexNumber; - QList> m_remoteTrailers; - QJsonObject m_providerIds; - bool m_isHD; - bool m_isFolder; - QUuid m_parentId; - QString m_type; - QList> m_people; - QList> m_studios; - QList> m_genreItems; - QString m_parentLogoItemId; - QString m_parentBackdropItemId; - QStringList m_parentBackdropImageTags; - qint32 m_localTrailerCount; - QSharedPointer m_userData = nullptr; - qint32 m_recursiveItemCount; - qint32 m_childCount; - QString m_seriesName; - QUuid m_seriesId; - QUuid m_seasonId; - qint32 m_specialFeatureCount; - QString m_displayPreferencesId; - QString m_status; - QString m_airTime; - QList m_airDays; - QStringList m_tags; - double m_primaryImageAspectRatio; - QStringList m_artists; - QList> m_artistItems; - QString m_album; - QString m_collectionType; - QString m_displayOrder; - QUuid m_albumId; - QString m_albumPrimaryImageTag; - QString m_seriesPrimaryImageTag; - QString m_albumArtist; - QList> m_albumArtists; - QString m_seasonName; - QList> m_mediaStreams; - VideoType m_videoType; - qint32 m_partCount; - qint32 m_mediaSourceCount; - QJsonObject m_imageTags; - QStringList m_backdropImageTags; - QStringList m_screenshotImageTags; - QString m_parentLogoImageTag; - QString m_parentArtItemId; - QString m_parentArtImageTag; - QString m_seriesThumbImageTag; - QJsonObject m_imageBlurHashes; - QString m_seriesStudio; - QString m_parentThumbItemId; - QString m_parentThumbImageTag; - QString m_parentPrimaryImageItemId; - QString m_parentPrimaryImageTag; - QList> m_chapters; - LocationType m_locationType; - IsoType m_isoType; - QString m_mediaType; - QDateTime m_endDate; - QList m_lockedFields; - qint32 m_trailerCount; - qint32 m_movieCount; - qint32 m_seriesCount; - qint32 m_programCount; - qint32 m_episodeCount; - qint32 m_songCount; - qint32 m_albumCount; - qint32 m_artistCount; - qint32 m_musicVideoCount; - bool m_lockData; - qint32 m_width; - qint32 m_height; - QString m_cameraMake; - QString m_cameraModel; - QString m_software; - double m_exposureTime; - double m_focalLength; - ImageOrientation m_imageOrientation; - double m_aperture; - double m_shutterSpeed; - double m_latitude; - double m_longitude; - double m_altitude; - qint32 m_isoSpeedRating; - QString m_seriesTimerId; - QString m_programId; - QString m_channelPrimaryImageTag; - QDateTime m_startDate; - double m_completionPercentage; - bool m_isRepeat; - QString m_episodeTitle; - ChannelType m_channelType; - ProgramAudio m_audio; - bool m_isMovie; - bool m_isSports; - bool m_isSeries; - bool m_isLive; - bool m_isNews; - bool m_isKids; - bool m_isPremiere; - QString m_timerId; - QSharedPointer m_currentProgram = nullptr; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_BASEITEMDTO_H diff --git a/core/include/JellyfinQt/DTO/baseitemdtoqueryresult.h b/core/include/JellyfinQt/DTO/baseitemdtoqueryresult.h deleted file mode 100644 index 697cf6c..0000000 --- a/core/include/JellyfinQt/DTO/baseitemdtoqueryresult.h +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_BASEITEMDTOQUERYRESULT_H -#define JELLYFIN_DTO_BASEITEMDTOQUERYRESULT_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/baseitemdto.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class BaseItemDtoQueryResult { -public:BaseItemDtoQueryResult();BaseItemDtoQueryResult(const BaseItemDtoQueryResult &other); - - static BaseItemDtoQueryResult fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the items. - */ - QList> items() const; - /** - * @brief Gets or sets the items. - */ - void setItems(QList> newItems); - /** - * @brief The total number of records available. - */ - qint32 totalRecordCount() const; - /** - * @brief The total number of records available. - */ - void setTotalRecordCount(qint32 newTotalRecordCount); - /** - * @brief The index of the first record in Items. - */ - qint32 startIndex() const; - /** - * @brief The index of the first record in Items. - */ - void setStartIndex(qint32 newStartIndex); - -protected: - QList> m_items; - qint32 m_totalRecordCount; - qint32 m_startIndex; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_BASEITEMDTOQUERYRESULT_H diff --git a/core/include/JellyfinQt/DTO/baseitemperson.h b/core/include/JellyfinQt/DTO/baseitemperson.h deleted file mode 100644 index 74e1cb8..0000000 --- a/core/include/JellyfinQt/DTO/baseitemperson.h +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_BASEITEMPERSON_H -#define JELLYFIN_DTO_BASEITEMPERSON_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class BaseItemPerson { -public:BaseItemPerson();BaseItemPerson(const BaseItemPerson &other); - - static BaseItemPerson fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the identifier. - */ - QString jellyfinId() const; - /** - * @brief Gets or sets the identifier. - */ - void setJellyfinId(QString newJellyfinId); - /** - * @brief Gets or sets the role. - */ - QString role() const; - /** - * @brief Gets or sets the role. - */ - void setRole(QString newRole); - /** - * @brief Gets or sets the type. - */ - QString type() const; - /** - * @brief Gets or sets the type. - */ - void setType(QString newType); - /** - * @brief Gets or sets the primary image tag. - */ - QString primaryImageTag() const; - /** - * @brief Gets or sets the primary image tag. - */ - void setPrimaryImageTag(QString newPrimaryImageTag); - /** - * @brief Gets or sets the primary image blurhash. - */ - QJsonObject imageBlurHashes() const; - /** - * @brief Gets or sets the primary image blurhash. - */ - void setImageBlurHashes(QJsonObject newImageBlurHashes); - -protected: - QString m_name; - QString m_jellyfinId; - QString m_role; - QString m_type; - QString m_primaryImageTag; - QJsonObject m_imageBlurHashes; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_BASEITEMPERSON_H diff --git a/core/include/JellyfinQt/DTO/basepluginconfiguration.h b/core/include/JellyfinQt/DTO/basepluginconfiguration.h deleted file mode 100644 index e69de29..0000000 diff --git a/core/include/JellyfinQt/DTO/bookinfo.h b/core/include/JellyfinQt/DTO/bookinfo.h deleted file mode 100644 index 716a95c..0000000 --- a/core/include/JellyfinQt/DTO/bookinfo.h +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_BOOKINFO_H -#define JELLYFIN_DTO_BOOKINFO_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class BookInfo { -public:BookInfo();BookInfo(const BookInfo &other); - - static BookInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the path. - */ - QString path() const; - /** - * @brief Gets or sets the path. - */ - void setPath(QString newPath); - /** - * @brief Gets or sets the metadata language. - */ - QString metadataLanguage() const; - /** - * @brief Gets or sets the metadata language. - */ - void setMetadataLanguage(QString newMetadataLanguage); - /** - * @brief Gets or sets the metadata country code. - */ - QString metadataCountryCode() const; - /** - * @brief Gets or sets the metadata country code. - */ - void setMetadataCountryCode(QString newMetadataCountryCode); - /** - * @brief Gets or sets the provider ids. - */ - QJsonObject providerIds() const; - /** - * @brief Gets or sets the provider ids. - */ - void setProviderIds(QJsonObject newProviderIds); - /** - * @brief Gets or sets the year. - */ - qint32 year() const; - /** - * @brief Gets or sets the year. - */ - void setYear(qint32 newYear); - - qint32 indexNumber() const; - - void setIndexNumber(qint32 newIndexNumber); - - qint32 parentIndexNumber() const; - - void setParentIndexNumber(qint32 newParentIndexNumber); - - QDateTime premiereDate() const; - - void setPremiereDate(QDateTime newPremiereDate); - - bool isAutomated() const; - - void setIsAutomated(bool newIsAutomated); - - QString seriesName() const; - - void setSeriesName(QString newSeriesName); - -protected: - QString m_name; - QString m_path; - QString m_metadataLanguage; - QString m_metadataCountryCode; - QJsonObject m_providerIds; - qint32 m_year; - qint32 m_indexNumber; - qint32 m_parentIndexNumber; - QDateTime m_premiereDate; - bool m_isAutomated; - QString m_seriesName; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_BOOKINFO_H diff --git a/core/include/JellyfinQt/DTO/bookinforemotesearchquery.h b/core/include/JellyfinQt/DTO/bookinforemotesearchquery.h deleted file mode 100644 index 826f63c..0000000 --- a/core/include/JellyfinQt/DTO/bookinforemotesearchquery.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_BOOKINFOREMOTESEARCHQUERY_H -#define JELLYFIN_DTO_BOOKINFOREMOTESEARCHQUERY_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/bookinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class BookInfoRemoteSearchQuery { -public:BookInfoRemoteSearchQuery();BookInfoRemoteSearchQuery(const BookInfoRemoteSearchQuery &other); - - static BookInfoRemoteSearchQuery fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QSharedPointer searchInfo() const; - - void setSearchInfo(QSharedPointer newSearchInfo); - - QUuid itemId() const; - - void setItemId(QUuid newItemId); - /** - * @brief Will only search within the given provider when set. - */ - QString searchProviderName() const; - /** - * @brief Will only search within the given provider when set. - */ - void setSearchProviderName(QString newSearchProviderName); - /** - * @brief Gets or sets a value indicating whether disabled providers should be included. - */ - bool includeDisabledProviders() const; - /** - * @brief Gets or sets a value indicating whether disabled providers should be included. - */ - void setIncludeDisabledProviders(bool newIncludeDisabledProviders); - -protected: - QSharedPointer m_searchInfo = nullptr; - QUuid m_itemId; - QString m_searchProviderName; - bool m_includeDisabledProviders; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_BOOKINFOREMOTESEARCHQUERY_H diff --git a/core/include/JellyfinQt/DTO/boxsetinfo.h b/core/include/JellyfinQt/DTO/boxsetinfo.h deleted file mode 100644 index b27f6fe..0000000 --- a/core/include/JellyfinQt/DTO/boxsetinfo.h +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_BOXSETINFO_H -#define JELLYFIN_DTO_BOXSETINFO_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class BoxSetInfo { -public:BoxSetInfo();BoxSetInfo(const BoxSetInfo &other); - - static BoxSetInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the path. - */ - QString path() const; - /** - * @brief Gets or sets the path. - */ - void setPath(QString newPath); - /** - * @brief Gets or sets the metadata language. - */ - QString metadataLanguage() const; - /** - * @brief Gets or sets the metadata language. - */ - void setMetadataLanguage(QString newMetadataLanguage); - /** - * @brief Gets or sets the metadata country code. - */ - QString metadataCountryCode() const; - /** - * @brief Gets or sets the metadata country code. - */ - void setMetadataCountryCode(QString newMetadataCountryCode); - /** - * @brief Gets or sets the provider ids. - */ - QJsonObject providerIds() const; - /** - * @brief Gets or sets the provider ids. - */ - void setProviderIds(QJsonObject newProviderIds); - /** - * @brief Gets or sets the year. - */ - qint32 year() const; - /** - * @brief Gets or sets the year. - */ - void setYear(qint32 newYear); - - qint32 indexNumber() const; - - void setIndexNumber(qint32 newIndexNumber); - - qint32 parentIndexNumber() const; - - void setParentIndexNumber(qint32 newParentIndexNumber); - - QDateTime premiereDate() const; - - void setPremiereDate(QDateTime newPremiereDate); - - bool isAutomated() const; - - void setIsAutomated(bool newIsAutomated); - -protected: - QString m_name; - QString m_path; - QString m_metadataLanguage; - QString m_metadataCountryCode; - QJsonObject m_providerIds; - qint32 m_year; - qint32 m_indexNumber; - qint32 m_parentIndexNumber; - QDateTime m_premiereDate; - bool m_isAutomated; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_BOXSETINFO_H diff --git a/core/include/JellyfinQt/DTO/boxsetinforemotesearchquery.h b/core/include/JellyfinQt/DTO/boxsetinforemotesearchquery.h deleted file mode 100644 index e94618d..0000000 --- a/core/include/JellyfinQt/DTO/boxsetinforemotesearchquery.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_BOXSETINFOREMOTESEARCHQUERY_H -#define JELLYFIN_DTO_BOXSETINFOREMOTESEARCHQUERY_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/boxsetinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class BoxSetInfoRemoteSearchQuery { -public:BoxSetInfoRemoteSearchQuery();BoxSetInfoRemoteSearchQuery(const BoxSetInfoRemoteSearchQuery &other); - - static BoxSetInfoRemoteSearchQuery fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QSharedPointer searchInfo() const; - - void setSearchInfo(QSharedPointer newSearchInfo); - - QUuid itemId() const; - - void setItemId(QUuid newItemId); - /** - * @brief Will only search within the given provider when set. - */ - QString searchProviderName() const; - /** - * @brief Will only search within the given provider when set. - */ - void setSearchProviderName(QString newSearchProviderName); - /** - * @brief Gets or sets a value indicating whether disabled providers should be included. - */ - bool includeDisabledProviders() const; - /** - * @brief Gets or sets a value indicating whether disabled providers should be included. - */ - void setIncludeDisabledProviders(bool newIncludeDisabledProviders); - -protected: - QSharedPointer m_searchInfo = nullptr; - QUuid m_itemId; - QString m_searchProviderName; - bool m_includeDisabledProviders; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_BOXSETINFOREMOTESEARCHQUERY_H diff --git a/core/include/JellyfinQt/DTO/brandingoptions.h b/core/include/JellyfinQt/DTO/brandingoptions.h deleted file mode 100644 index 9169c7c..0000000 --- a/core/include/JellyfinQt/DTO/brandingoptions.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_BRANDINGOPTIONS_H -#define JELLYFIN_DTO_BRANDINGOPTIONS_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class BrandingOptions { -public:BrandingOptions();BrandingOptions(const BrandingOptions &other); - - static BrandingOptions fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the login disclaimer. - */ - QString loginDisclaimer() const; - /** - * @brief Gets or sets the login disclaimer. - */ - void setLoginDisclaimer(QString newLoginDisclaimer); - /** - * @brief Gets or sets the custom CSS. - */ - QString customCss() const; - /** - * @brief Gets or sets the custom CSS. - */ - void setCustomCss(QString newCustomCss); - -protected: - QString m_loginDisclaimer; - QString m_customCss; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_BRANDINGOPTIONS_H diff --git a/core/include/JellyfinQt/DTO/bufferrequestdto.h b/core/include/JellyfinQt/DTO/bufferrequestdto.h deleted file mode 100644 index d859b46..0000000 --- a/core/include/JellyfinQt/DTO/bufferrequestdto.h +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_BUFFERREQUESTDTO_H -#define JELLYFIN_DTO_BUFFERREQUESTDTO_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class BufferRequestDto { -public:BufferRequestDto();BufferRequestDto(const BufferRequestDto &other); - - static BufferRequestDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets when the request has been made by the client. - */ - QDateTime when() const; - /** - * @brief Gets or sets when the request has been made by the client. - */ - void setWhen(QDateTime newWhen); - /** - * @brief Gets or sets the position ticks. - */ - qint64 positionTicks() const; - /** - * @brief Gets or sets the position ticks. - */ - void setPositionTicks(qint64 newPositionTicks); - /** - * @brief Gets or sets a value indicating whether the client playback is unpaused. - */ - bool isPlaying() const; - /** - * @brief Gets or sets a value indicating whether the client playback is unpaused. - */ - void setIsPlaying(bool newIsPlaying); - /** - * @brief Gets or sets the playlist item identifier of the playing item. - */ - QUuid playlistItemId() const; - /** - * @brief Gets or sets the playlist item identifier of the playing item. - */ - void setPlaylistItemId(QUuid newPlaylistItemId); - -protected: - QDateTime m_when; - qint64 m_positionTicks; - bool m_isPlaying; - QUuid m_playlistItemId; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_BUFFERREQUESTDTO_H diff --git a/core/include/JellyfinQt/DTO/channelfeatures.h b/core/include/JellyfinQt/DTO/channelfeatures.h deleted file mode 100644 index 9ddcf7d..0000000 --- a/core/include/JellyfinQt/DTO/channelfeatures.h +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_CHANNELFEATURES_H -#define JELLYFIN_DTO_CHANNELFEATURES_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/channelitemsortfield.h" -#include "JellyfinQt/DTO/channelmediacontenttype.h" -#include "JellyfinQt/DTO/channelmediatype.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ChannelFeatures { -public:ChannelFeatures();ChannelFeatures(const ChannelFeatures &other); - - static ChannelFeatures fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the identifier. - */ - QString jellyfinId() const; - /** - * @brief Gets or sets the identifier. - */ - void setJellyfinId(QString newJellyfinId); - /** - * @brief Gets or sets a value indicating whether this instance can search. - */ - bool canSearch() const; - /** - * @brief Gets or sets a value indicating whether this instance can search. - */ - void setCanSearch(bool newCanSearch); - /** - * @brief Gets or sets the media types. - */ - QList mediaTypes() const; - /** - * @brief Gets or sets the media types. - */ - void setMediaTypes(QList newMediaTypes); - /** - * @brief Gets or sets the content types. - */ - QList contentTypes() const; - /** - * @brief Gets or sets the content types. - */ - void setContentTypes(QList newContentTypes); - /** - * @brief Represents the maximum number of records the channel allows retrieving at a time. - */ - qint32 maxPageSize() const; - /** - * @brief Represents the maximum number of records the channel allows retrieving at a time. - */ - void setMaxPageSize(qint32 newMaxPageSize); - /** - * @brief Gets or sets the automatic refresh levels. - */ - qint32 autoRefreshLevels() const; - /** - * @brief Gets or sets the automatic refresh levels. - */ - void setAutoRefreshLevels(qint32 newAutoRefreshLevels); - /** - * @brief Gets or sets the default sort orders. - */ - QList defaultSortFields() const; - /** - * @brief Gets or sets the default sort orders. - */ - void setDefaultSortFields(QList newDefaultSortFields); - /** - * @brief Indicates if a sort ascending/descending toggle is supported or not. - */ - bool supportsSortOrderToggle() const; - /** - * @brief Indicates if a sort ascending/descending toggle is supported or not. - */ - void setSupportsSortOrderToggle(bool newSupportsSortOrderToggle); - /** - * @brief Gets or sets a value indicating whether [supports latest media]. - */ - bool supportsLatestMedia() const; - /** - * @brief Gets or sets a value indicating whether [supports latest media]. - */ - void setSupportsLatestMedia(bool newSupportsLatestMedia); - /** - * @brief Gets or sets a value indicating whether this instance can filter. - */ - bool canFilter() const; - /** - * @brief Gets or sets a value indicating whether this instance can filter. - */ - void setCanFilter(bool newCanFilter); - /** - * @brief Gets or sets a value indicating whether [supports content downloading]. - */ - bool supportsContentDownloading() const; - /** - * @brief Gets or sets a value indicating whether [supports content downloading]. - */ - void setSupportsContentDownloading(bool newSupportsContentDownloading); - -protected: - QString m_name; - QString m_jellyfinId; - bool m_canSearch; - QList m_mediaTypes; - QList m_contentTypes; - qint32 m_maxPageSize; - qint32 m_autoRefreshLevels; - QList m_defaultSortFields; - bool m_supportsSortOrderToggle; - bool m_supportsLatestMedia; - bool m_canFilter; - bool m_supportsContentDownloading; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_CHANNELFEATURES_H diff --git a/core/include/JellyfinQt/DTO/channelmappingoptionsdto.h b/core/include/JellyfinQt/DTO/channelmappingoptionsdto.h deleted file mode 100644 index ac4cc9d..0000000 --- a/core/include/JellyfinQt/DTO/channelmappingoptionsdto.h +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_CHANNELMAPPINGOPTIONSDTO_H -#define JELLYFIN_DTO_CHANNELMAPPINGOPTIONSDTO_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/nameidpair.h" -#include "JellyfinQt/DTO/namevaluepair.h" -#include "JellyfinQt/DTO/tunerchannelmapping.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ChannelMappingOptionsDto { -public:ChannelMappingOptionsDto();ChannelMappingOptionsDto(const ChannelMappingOptionsDto &other); - - static ChannelMappingOptionsDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets list of tuner channels. - */ - QList> tunerChannels() const; - /** - * @brief Gets or sets list of tuner channels. - */ - void setTunerChannels(QList> newTunerChannels); - /** - * @brief Gets or sets list of provider channels. - */ - QList> providerChannels() const; - /** - * @brief Gets or sets list of provider channels. - */ - void setProviderChannels(QList> newProviderChannels); - /** - * @brief Gets or sets list of mappings. - */ - QList> mappings() const; - /** - * @brief Gets or sets list of mappings. - */ - void setMappings(QList> newMappings); - /** - * @brief Gets or sets provider name. - */ - QString providerName() const; - /** - * @brief Gets or sets provider name. - */ - void setProviderName(QString newProviderName); - -protected: - QList> m_tunerChannels; - QList> m_providerChannels; - QList> m_mappings; - QString m_providerName; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_CHANNELMAPPINGOPTIONSDTO_H diff --git a/core/include/JellyfinQt/DTO/channelmediacontenttype.h b/core/include/JellyfinQt/DTO/channelmediacontenttype.h deleted file mode 100644 index c77fa66..0000000 --- a/core/include/JellyfinQt/DTO/channelmediacontenttype.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_CHANNELMEDIACONTENTTYPE_H -#define JELLYFIN_DTO_CHANNELMEDIACONTENTTYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class ChannelMediaContentTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Clip, - Podcast, - Trailer, - Movie, - Episode, - Song, - MovieExtra, - TvExtra, - }; - Q_ENUM(Value) -private: - explicit ChannelMediaContentTypeClass(); -}; - -typedef ChannelMediaContentTypeClass::Value ChannelMediaContentType; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_CHANNELMEDIACONTENTTYPE_H diff --git a/core/include/JellyfinQt/DTO/chapterinfo.h b/core/include/JellyfinQt/DTO/chapterinfo.h deleted file mode 100644 index a5a757a..0000000 --- a/core/include/JellyfinQt/DTO/chapterinfo.h +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_CHAPTERINFO_H -#define JELLYFIN_DTO_CHAPTERINFO_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ChapterInfo { -public:ChapterInfo();ChapterInfo(const ChapterInfo &other); - - static ChapterInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the start position ticks. - */ - qint64 startPositionTicks() const; - /** - * @brief Gets or sets the start position ticks. - */ - void setStartPositionTicks(qint64 newStartPositionTicks); - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the image path. - */ - QString imagePath() const; - /** - * @brief Gets or sets the image path. - */ - void setImagePath(QString newImagePath); - - QDateTime imageDateModified() const; - - void setImageDateModified(QDateTime newImageDateModified); - - QString imageTag() const; - - void setImageTag(QString newImageTag); - -protected: - qint64 m_startPositionTicks; - QString m_name; - QString m_imagePath; - QDateTime m_imageDateModified; - QString m_imageTag; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_CHAPTERINFO_H diff --git a/core/include/JellyfinQt/DTO/clientcapabilities.h b/core/include/JellyfinQt/DTO/clientcapabilities.h deleted file mode 100644 index 50ca4c6..0000000 --- a/core/include/JellyfinQt/DTO/clientcapabilities.h +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_CLIENTCAPABILITIES_H -#define JELLYFIN_DTO_CLIENTCAPABILITIES_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/deviceprofile.h" -#include "JellyfinQt/DTO/generalcommandtype.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ClientCapabilities { -public:ClientCapabilities();ClientCapabilities(const ClientCapabilities &other); - - static ClientCapabilities fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QStringList playableMediaTypes() const; - - void setPlayableMediaTypes(QStringList newPlayableMediaTypes); - - QList supportedCommands() const; - - void setSupportedCommands(QList newSupportedCommands); - - bool supportsMediaControl() const; - - void setSupportsMediaControl(bool newSupportsMediaControl); - - bool supportsContentUploading() const; - - void setSupportsContentUploading(bool newSupportsContentUploading); - - QString messageCallbackUrl() const; - - void setMessageCallbackUrl(QString newMessageCallbackUrl); - - bool supportsPersistentIdentifier() const; - - void setSupportsPersistentIdentifier(bool newSupportsPersistentIdentifier); - - bool supportsSync() const; - - void setSupportsSync(bool newSupportsSync); - - QSharedPointer deviceProfile() const; - - void setDeviceProfile(QSharedPointer newDeviceProfile); - - QString appStoreUrl() const; - - void setAppStoreUrl(QString newAppStoreUrl); - - QString iconUrl() const; - - void setIconUrl(QString newIconUrl); - -protected: - QStringList m_playableMediaTypes; - QList m_supportedCommands; - bool m_supportsMediaControl; - bool m_supportsContentUploading; - QString m_messageCallbackUrl; - bool m_supportsPersistentIdentifier; - bool m_supportsSync; - QSharedPointer m_deviceProfile = nullptr; - QString m_appStoreUrl; - QString m_iconUrl; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_CLIENTCAPABILITIES_H diff --git a/core/include/JellyfinQt/DTO/clientcapabilitiesdto.h b/core/include/JellyfinQt/DTO/clientcapabilitiesdto.h deleted file mode 100644 index 2d6861f..0000000 --- a/core/include/JellyfinQt/DTO/clientcapabilitiesdto.h +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_CLIENTCAPABILITIESDTO_H -#define JELLYFIN_DTO_CLIENTCAPABILITIESDTO_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/deviceprofile.h" -#include "JellyfinQt/DTO/generalcommandtype.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ClientCapabilitiesDto { -public:ClientCapabilitiesDto();ClientCapabilitiesDto(const ClientCapabilitiesDto &other); - - static ClientCapabilitiesDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the list of playable media types. - */ - QStringList playableMediaTypes() const; - /** - * @brief Gets or sets the list of playable media types. - */ - void setPlayableMediaTypes(QStringList newPlayableMediaTypes); - /** - * @brief Gets or sets the list of supported commands. - */ - QList supportedCommands() const; - /** - * @brief Gets or sets the list of supported commands. - */ - void setSupportedCommands(QList newSupportedCommands); - /** - * @brief Gets or sets a value indicating whether session supports media control. - */ - bool supportsMediaControl() const; - /** - * @brief Gets or sets a value indicating whether session supports media control. - */ - void setSupportsMediaControl(bool newSupportsMediaControl); - /** - * @brief Gets or sets a value indicating whether session supports content uploading. - */ - bool supportsContentUploading() const; - /** - * @brief Gets or sets a value indicating whether session supports content uploading. - */ - void setSupportsContentUploading(bool newSupportsContentUploading); - /** - * @brief Gets or sets the message callback url. - */ - QString messageCallbackUrl() const; - /** - * @brief Gets or sets the message callback url. - */ - void setMessageCallbackUrl(QString newMessageCallbackUrl); - /** - * @brief Gets or sets a value indicating whether session supports a persistent identifier. - */ - bool supportsPersistentIdentifier() const; - /** - * @brief Gets or sets a value indicating whether session supports a persistent identifier. - */ - void setSupportsPersistentIdentifier(bool newSupportsPersistentIdentifier); - /** - * @brief Gets or sets a value indicating whether session supports sync. - */ - bool supportsSync() const; - /** - * @brief Gets or sets a value indicating whether session supports sync. - */ - void setSupportsSync(bool newSupportsSync); - - QSharedPointer deviceProfile() const; - - void setDeviceProfile(QSharedPointer newDeviceProfile); - /** - * @brief Gets or sets the app store url. - */ - QString appStoreUrl() const; - /** - * @brief Gets or sets the app store url. - */ - void setAppStoreUrl(QString newAppStoreUrl); - /** - * @brief Gets or sets the icon url. - */ - QString iconUrl() const; - /** - * @brief Gets or sets the icon url. - */ - void setIconUrl(QString newIconUrl); - -protected: - QStringList m_playableMediaTypes; - QList m_supportedCommands; - bool m_supportsMediaControl; - bool m_supportsContentUploading; - QString m_messageCallbackUrl; - bool m_supportsPersistentIdentifier; - bool m_supportsSync; - QSharedPointer m_deviceProfile = nullptr; - QString m_appStoreUrl; - QString m_iconUrl; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_CLIENTCAPABILITIESDTO_H diff --git a/core/include/JellyfinQt/DTO/codecprofile.h b/core/include/JellyfinQt/DTO/codecprofile.h deleted file mode 100644 index 57fa12b..0000000 --- a/core/include/JellyfinQt/DTO/codecprofile.h +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_CODECPROFILE_H -#define JELLYFIN_DTO_CODECPROFILE_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/codectype.h" -#include "JellyfinQt/DTO/profilecondition.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class CodecProfile { -public:CodecProfile();CodecProfile(const CodecProfile &other); - - static CodecProfile fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - CodecType type() const; - - void setType(CodecType newType); - - QList> conditions() const; - - void setConditions(QList> newConditions); - - QList> applyConditions() const; - - void setApplyConditions(QList> newApplyConditions); - - QString codec() const; - - void setCodec(QString newCodec); - - QString container() const; - - void setContainer(QString newContainer); - -protected: - CodecType m_type; - QList> m_conditions; - QList> m_applyConditions; - QString m_codec; - QString m_container; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_CODECPROFILE_H diff --git a/core/include/JellyfinQt/DTO/collectioncreationresult.h b/core/include/JellyfinQt/DTO/collectioncreationresult.h deleted file mode 100644 index b971b78..0000000 --- a/core/include/JellyfinQt/DTO/collectioncreationresult.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_COLLECTIONCREATIONRESULT_H -#define JELLYFIN_DTO_COLLECTIONCREATIONRESULT_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class CollectionCreationResult { -public:CollectionCreationResult();CollectionCreationResult(const CollectionCreationResult &other); - - static CollectionCreationResult fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QUuid jellyfinId() const; - - void setJellyfinId(QUuid newJellyfinId); - -protected: - QUuid m_jellyfinId; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_COLLECTIONCREATIONRESULT_H diff --git a/core/include/JellyfinQt/DTO/configurationpageinfo.h b/core/include/JellyfinQt/DTO/configurationpageinfo.h deleted file mode 100644 index 9171fc8..0000000 --- a/core/include/JellyfinQt/DTO/configurationpageinfo.h +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_CONFIGURATIONPAGEINFO_H -#define JELLYFIN_DTO_CONFIGURATIONPAGEINFO_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/configurationpagetype.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ConfigurationPageInfo { -public:ConfigurationPageInfo();ConfigurationPageInfo(const ConfigurationPageInfo &other); - - static ConfigurationPageInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets a value indicating whether the configurations page is enabled in the main menu. - */ - bool enableInMainMenu() const; - /** - * @brief Gets or sets a value indicating whether the configurations page is enabled in the main menu. - */ - void setEnableInMainMenu(bool newEnableInMainMenu); - /** - * @brief Gets or sets the menu section. - */ - QString menuSection() const; - /** - * @brief Gets or sets the menu section. - */ - void setMenuSection(QString newMenuSection); - /** - * @brief Gets or sets the menu icon. - */ - QString menuIcon() const; - /** - * @brief Gets or sets the menu icon. - */ - void setMenuIcon(QString newMenuIcon); - /** - * @brief Gets or sets the display name. - */ - QString displayName() const; - /** - * @brief Gets or sets the display name. - */ - void setDisplayName(QString newDisplayName); - - ConfigurationPageType configurationPageType() const; - - void setConfigurationPageType(ConfigurationPageType newConfigurationPageType); - /** - * @brief Gets or sets the plugin id. - */ - QUuid pluginId() const; - /** - * @brief Gets or sets the plugin id. - */ - void setPluginId(QUuid newPluginId); - -protected: - QString m_name; - bool m_enableInMainMenu; - QString m_menuSection; - QString m_menuIcon; - QString m_displayName; - ConfigurationPageType m_configurationPageType; - QUuid m_pluginId; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_CONFIGURATIONPAGEINFO_H diff --git a/core/include/JellyfinQt/DTO/containerprofile.h b/core/include/JellyfinQt/DTO/containerprofile.h deleted file mode 100644 index f473204..0000000 --- a/core/include/JellyfinQt/DTO/containerprofile.h +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_CONTAINERPROFILE_H -#define JELLYFIN_DTO_CONTAINERPROFILE_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/dlnaprofiletype.h" -#include "JellyfinQt/DTO/profilecondition.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ContainerProfile { -public:ContainerProfile();ContainerProfile(const ContainerProfile &other); - - static ContainerProfile fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - DlnaProfileType type() const; - - void setType(DlnaProfileType newType); - - QList> conditions() const; - - void setConditions(QList> newConditions); - - QString container() const; - - void setContainer(QString newContainer); - -protected: - DlnaProfileType m_type; - QList> m_conditions; - QString m_container; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_CONTAINERPROFILE_H diff --git a/core/include/JellyfinQt/DTO/countryinfo.h b/core/include/JellyfinQt/DTO/countryinfo.h deleted file mode 100644 index 133d26f..0000000 --- a/core/include/JellyfinQt/DTO/countryinfo.h +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_COUNTRYINFO_H -#define JELLYFIN_DTO_COUNTRYINFO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class CountryInfo { -public:CountryInfo();CountryInfo(const CountryInfo &other); - - static CountryInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the display name. - */ - QString displayName() const; - /** - * @brief Gets or sets the display name. - */ - void setDisplayName(QString newDisplayName); - /** - * @brief Gets or sets the name of the two letter ISO region. - */ - QString twoLetterISORegionName() const; - /** - * @brief Gets or sets the name of the two letter ISO region. - */ - void setTwoLetterISORegionName(QString newTwoLetterISORegionName); - /** - * @brief Gets or sets the name of the three letter ISO region. - */ - QString threeLetterISORegionName() const; - /** - * @brief Gets or sets the name of the three letter ISO region. - */ - void setThreeLetterISORegionName(QString newThreeLetterISORegionName); - -protected: - QString m_name; - QString m_displayName; - QString m_twoLetterISORegionName; - QString m_threeLetterISORegionName; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_COUNTRYINFO_H diff --git a/core/include/JellyfinQt/DTO/createplaylistdto.h b/core/include/JellyfinQt/DTO/createplaylistdto.h deleted file mode 100644 index a2ee46c..0000000 --- a/core/include/JellyfinQt/DTO/createplaylistdto.h +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_CREATEPLAYLISTDTO_H -#define JELLYFIN_DTO_CREATEPLAYLISTDTO_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class CreatePlaylistDto { -public:CreatePlaylistDto();CreatePlaylistDto(const CreatePlaylistDto &other); - - static CreatePlaylistDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name of the new playlist. - */ - QString name() const; - /** - * @brief Gets or sets the name of the new playlist. - */ - void setName(QString newName); - /** - * @brief Gets or sets item ids to add to the playlist. - */ - QList ids() const; - /** - * @brief Gets or sets item ids to add to the playlist. - */ - void setIds(QList newIds); - /** - * @brief Gets or sets the user id. - */ - QUuid userId() const; - /** - * @brief Gets or sets the user id. - */ - void setUserId(QUuid newUserId); - /** - * @brief Gets or sets the media type. - */ - QString mediaType() const; - /** - * @brief Gets or sets the media type. - */ - void setMediaType(QString newMediaType); - -protected: - QString m_name; - QList m_ids; - QUuid m_userId; - QString m_mediaType; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_CREATEPLAYLISTDTO_H diff --git a/core/include/JellyfinQt/DTO/createuserbyname.h b/core/include/JellyfinQt/DTO/createuserbyname.h deleted file mode 100644 index 959b533..0000000 --- a/core/include/JellyfinQt/DTO/createuserbyname.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_CREATEUSERBYNAME_H -#define JELLYFIN_DTO_CREATEUSERBYNAME_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class CreateUserByName { -public:CreateUserByName();CreateUserByName(const CreateUserByName &other); - - static CreateUserByName fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the username. - */ - QString name() const; - /** - * @brief Gets or sets the username. - */ - void setName(QString newName); - /** - * @brief Gets or sets the password. - */ - QString password() const; - /** - * @brief Gets or sets the password. - */ - void setPassword(QString newPassword); - -protected: - QString m_name; - QString m_password; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_CREATEUSERBYNAME_H diff --git a/core/include/JellyfinQt/DTO/culturedto.h b/core/include/JellyfinQt/DTO/culturedto.h deleted file mode 100644 index a313820..0000000 --- a/core/include/JellyfinQt/DTO/culturedto.h +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_CULTUREDTO_H -#define JELLYFIN_DTO_CULTUREDTO_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class CultureDto { -public:CultureDto();CultureDto(const CultureDto &other); - - static CultureDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the display name. - */ - QString displayName() const; - /** - * @brief Gets or sets the display name. - */ - void setDisplayName(QString newDisplayName); - /** - * @brief Gets or sets the name of the two letter ISO language. - */ - QString twoLetterISOLanguageName() const; - /** - * @brief Gets or sets the name of the two letter ISO language. - */ - void setTwoLetterISOLanguageName(QString newTwoLetterISOLanguageName); - /** - * @brief Gets or sets the name of the three letter ISO language. - */ - QString threeLetterISOLanguageName() const; - /** - * @brief Gets or sets the name of the three letter ISO language. - */ - void setThreeLetterISOLanguageName(QString newThreeLetterISOLanguageName); - - QStringList threeLetterISOLanguageNames() const; - - void setThreeLetterISOLanguageNames(QStringList newThreeLetterISOLanguageNames); - -protected: - QString m_name; - QString m_displayName; - QString m_twoLetterISOLanguageName; - QString m_threeLetterISOLanguageName; - QStringList m_threeLetterISOLanguageNames; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_CULTUREDTO_H diff --git a/core/include/JellyfinQt/DTO/dayofweek.h b/core/include/JellyfinQt/DTO/dayofweek.h deleted file mode 100644 index c16d5f0..0000000 --- a/core/include/JellyfinQt/DTO/dayofweek.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_DAYOFWEEK_H -#define JELLYFIN_DTO_DAYOFWEEK_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class DayOfWeekClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Sunday, - Monday, - Tuesday, - Wednesday, - Thursday, - Friday, - Saturday, - }; - Q_ENUM(Value) -private: - explicit DayOfWeekClass(); -}; - -typedef DayOfWeekClass::Value DayOfWeek; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_DAYOFWEEK_H diff --git a/core/include/JellyfinQt/DTO/defaultdirectorybrowserinfodto.h b/core/include/JellyfinQt/DTO/defaultdirectorybrowserinfodto.h deleted file mode 100644 index 3d404e9..0000000 --- a/core/include/JellyfinQt/DTO/defaultdirectorybrowserinfodto.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_DEFAULTDIRECTORYBROWSERINFODTO_H -#define JELLYFIN_DTO_DEFAULTDIRECTORYBROWSERINFODTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class DefaultDirectoryBrowserInfoDto { -public:DefaultDirectoryBrowserInfoDto();DefaultDirectoryBrowserInfoDto(const DefaultDirectoryBrowserInfoDto &other); - - static DefaultDirectoryBrowserInfoDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the path. - */ - QString path() const; - /** - * @brief Gets or sets the path. - */ - void setPath(QString newPath); - -protected: - QString m_path; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_DEFAULTDIRECTORYBROWSERINFODTO_H diff --git a/core/include/JellyfinQt/DTO/deviceidentification.h b/core/include/JellyfinQt/DTO/deviceidentification.h deleted file mode 100644 index ff3d5fb..0000000 --- a/core/include/JellyfinQt/DTO/deviceidentification.h +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_DEVICEIDENTIFICATION_H -#define JELLYFIN_DTO_DEVICEIDENTIFICATION_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/httpheaderinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class DeviceIdentification { -public:DeviceIdentification();DeviceIdentification(const DeviceIdentification &other); - - static DeviceIdentification fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name of the friendly. - */ - QString friendlyName() const; - /** - * @brief Gets or sets the name of the friendly. - */ - void setFriendlyName(QString newFriendlyName); - /** - * @brief Gets or sets the model number. - */ - QString modelNumber() const; - /** - * @brief Gets or sets the model number. - */ - void setModelNumber(QString newModelNumber); - /** - * @brief Gets or sets the serial number. - */ - QString serialNumber() const; - /** - * @brief Gets or sets the serial number. - */ - void setSerialNumber(QString newSerialNumber); - /** - * @brief Gets or sets the name of the model. - */ - QString modelName() const; - /** - * @brief Gets or sets the name of the model. - */ - void setModelName(QString newModelName); - /** - * @brief Gets or sets the model description. - */ - QString modelDescription() const; - /** - * @brief Gets or sets the model description. - */ - void setModelDescription(QString newModelDescription); - /** - * @brief Gets or sets the model URL. - */ - QString modelUrl() const; - /** - * @brief Gets or sets the model URL. - */ - void setModelUrl(QString newModelUrl); - /** - * @brief Gets or sets the manufacturer. - */ - QString manufacturer() const; - /** - * @brief Gets or sets the manufacturer. - */ - void setManufacturer(QString newManufacturer); - /** - * @brief Gets or sets the manufacturer URL. - */ - QString manufacturerUrl() const; - /** - * @brief Gets or sets the manufacturer URL. - */ - void setManufacturerUrl(QString newManufacturerUrl); - /** - * @brief Gets or sets the headers. - */ - QList> headers() const; - /** - * @brief Gets or sets the headers. - */ - void setHeaders(QList> newHeaders); - -protected: - QString m_friendlyName; - QString m_modelNumber; - QString m_serialNumber; - QString m_modelName; - QString m_modelDescription; - QString m_modelUrl; - QString m_manufacturer; - QString m_manufacturerUrl; - QList> m_headers; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_DEVICEIDENTIFICATION_H diff --git a/core/include/JellyfinQt/DTO/deviceinfo.h b/core/include/JellyfinQt/DTO/deviceinfo.h deleted file mode 100644 index 71fd36f..0000000 --- a/core/include/JellyfinQt/DTO/deviceinfo.h +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_DEVICEINFO_H -#define JELLYFIN_DTO_DEVICEINFO_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/clientcapabilities.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class DeviceInfo { -public:DeviceInfo();DeviceInfo(const DeviceInfo &other); - - static DeviceInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QString name() const; - - void setName(QString newName); - /** - * @brief Gets or sets the identifier. - */ - QString jellyfinId() const; - /** - * @brief Gets or sets the identifier. - */ - void setJellyfinId(QString newJellyfinId); - /** - * @brief Gets or sets the last name of the user. - */ - QString lastUserName() const; - /** - * @brief Gets or sets the last name of the user. - */ - void setLastUserName(QString newLastUserName); - /** - * @brief Gets or sets the name of the application. - */ - QString appName() const; - /** - * @brief Gets or sets the name of the application. - */ - void setAppName(QString newAppName); - /** - * @brief Gets or sets the application version. - */ - QString appVersion() const; - /** - * @brief Gets or sets the application version. - */ - void setAppVersion(QString newAppVersion); - /** - * @brief Gets or sets the last user identifier. - */ - QUuid lastUserId() const; - /** - * @brief Gets or sets the last user identifier. - */ - void setLastUserId(QUuid newLastUserId); - /** - * @brief Gets or sets the date last modified. - */ - QDateTime dateLastActivity() const; - /** - * @brief Gets or sets the date last modified. - */ - void setDateLastActivity(QDateTime newDateLastActivity); - - QSharedPointer capabilities() const; - - void setCapabilities(QSharedPointer newCapabilities); - - QString iconUrl() const; - - void setIconUrl(QString newIconUrl); - -protected: - QString m_name; - QString m_jellyfinId; - QString m_lastUserName; - QString m_appName; - QString m_appVersion; - QUuid m_lastUserId; - QDateTime m_dateLastActivity; - QSharedPointer m_capabilities = nullptr; - QString m_iconUrl; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_DEVICEINFO_H diff --git a/core/include/JellyfinQt/DTO/deviceinfoqueryresult.h b/core/include/JellyfinQt/DTO/deviceinfoqueryresult.h deleted file mode 100644 index ce43f01..0000000 --- a/core/include/JellyfinQt/DTO/deviceinfoqueryresult.h +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_DEVICEINFOQUERYRESULT_H -#define JELLYFIN_DTO_DEVICEINFOQUERYRESULT_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/deviceinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class DeviceInfoQueryResult { -public:DeviceInfoQueryResult();DeviceInfoQueryResult(const DeviceInfoQueryResult &other); - - static DeviceInfoQueryResult fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the items. - */ - QList> items() const; - /** - * @brief Gets or sets the items. - */ - void setItems(QList> newItems); - /** - * @brief The total number of records available. - */ - qint32 totalRecordCount() const; - /** - * @brief The total number of records available. - */ - void setTotalRecordCount(qint32 newTotalRecordCount); - /** - * @brief The index of the first record in Items. - */ - qint32 startIndex() const; - /** - * @brief The index of the first record in Items. - */ - void setStartIndex(qint32 newStartIndex); - -protected: - QList> m_items; - qint32 m_totalRecordCount; - qint32 m_startIndex; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_DEVICEINFOQUERYRESULT_H diff --git a/core/include/JellyfinQt/DTO/deviceprofile.h b/core/include/JellyfinQt/DTO/deviceprofile.h deleted file mode 100644 index 3de9ff2..0000000 --- a/core/include/JellyfinQt/DTO/deviceprofile.h +++ /dev/null @@ -1,417 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_DEVICEPROFILE_H -#define JELLYFIN_DTO_DEVICEPROFILE_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/codecprofile.h" -#include "JellyfinQt/DTO/containerprofile.h" -#include "JellyfinQt/DTO/deviceidentification.h" -#include "JellyfinQt/DTO/directplayprofile.h" -#include "JellyfinQt/DTO/responseprofile.h" -#include "JellyfinQt/DTO/subtitleprofile.h" -#include "JellyfinQt/DTO/transcodingprofile.h" -#include "JellyfinQt/DTO/xmlattribute.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class DeviceProfile { -public:DeviceProfile();DeviceProfile(const DeviceProfile &other); - - static DeviceProfile fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the Name. - */ - QString name() const; - /** - * @brief Gets or sets the Name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the Id. - */ - QString jellyfinId() const; - /** - * @brief Gets or sets the Id. - */ - void setJellyfinId(QString newJellyfinId); - - QSharedPointer identification() const; - - void setIdentification(QSharedPointer newIdentification); - /** - * @brief Gets or sets the FriendlyName. - */ - QString friendlyName() const; - /** - * @brief Gets or sets the FriendlyName. - */ - void setFriendlyName(QString newFriendlyName); - /** - * @brief Gets or sets the Manufacturer. - */ - QString manufacturer() const; - /** - * @brief Gets or sets the Manufacturer. - */ - void setManufacturer(QString newManufacturer); - /** - * @brief Gets or sets the ManufacturerUrl. - */ - QString manufacturerUrl() const; - /** - * @brief Gets or sets the ManufacturerUrl. - */ - void setManufacturerUrl(QString newManufacturerUrl); - /** - * @brief Gets or sets the ModelName. - */ - QString modelName() const; - /** - * @brief Gets or sets the ModelName. - */ - void setModelName(QString newModelName); - /** - * @brief Gets or sets the ModelDescription. - */ - QString modelDescription() const; - /** - * @brief Gets or sets the ModelDescription. - */ - void setModelDescription(QString newModelDescription); - /** - * @brief Gets or sets the ModelNumber. - */ - QString modelNumber() const; - /** - * @brief Gets or sets the ModelNumber. - */ - void setModelNumber(QString newModelNumber); - /** - * @brief Gets or sets the ModelUrl. - */ - QString modelUrl() const; - /** - * @brief Gets or sets the ModelUrl. - */ - void setModelUrl(QString newModelUrl); - /** - * @brief Gets or sets the SerialNumber. - */ - QString serialNumber() const; - /** - * @brief Gets or sets the SerialNumber. - */ - void setSerialNumber(QString newSerialNumber); - /** - * @brief Gets or sets a value indicating whether EnableAlbumArtInDidl. - */ - bool enableAlbumArtInDidl() const; - /** - * @brief Gets or sets a value indicating whether EnableAlbumArtInDidl. - */ - void setEnableAlbumArtInDidl(bool newEnableAlbumArtInDidl); - /** - * @brief Gets or sets a value indicating whether EnableSingleAlbumArtLimit. - */ - bool enableSingleAlbumArtLimit() const; - /** - * @brief Gets or sets a value indicating whether EnableSingleAlbumArtLimit. - */ - void setEnableSingleAlbumArtLimit(bool newEnableSingleAlbumArtLimit); - /** - * @brief Gets or sets a value indicating whether EnableSingleSubtitleLimit. - */ - bool enableSingleSubtitleLimit() const; - /** - * @brief Gets or sets a value indicating whether EnableSingleSubtitleLimit. - */ - void setEnableSingleSubtitleLimit(bool newEnableSingleSubtitleLimit); - /** - * @brief Gets or sets the SupportedMediaTypes. - */ - QString supportedMediaTypes() const; - /** - * @brief Gets or sets the SupportedMediaTypes. - */ - void setSupportedMediaTypes(QString newSupportedMediaTypes); - /** - * @brief Gets or sets the UserId. - */ - QString userId() const; - /** - * @brief Gets or sets the UserId. - */ - void setUserId(QString newUserId); - /** - * @brief Gets or sets the AlbumArtPn. - */ - QString albumArtPn() const; - /** - * @brief Gets or sets the AlbumArtPn. - */ - void setAlbumArtPn(QString newAlbumArtPn); - /** - * @brief Gets or sets the MaxAlbumArtWidth. - */ - qint32 maxAlbumArtWidth() const; - /** - * @brief Gets or sets the MaxAlbumArtWidth. - */ - void setMaxAlbumArtWidth(qint32 newMaxAlbumArtWidth); - /** - * @brief Gets or sets the MaxAlbumArtHeight. - */ - qint32 maxAlbumArtHeight() const; - /** - * @brief Gets or sets the MaxAlbumArtHeight. - */ - void setMaxAlbumArtHeight(qint32 newMaxAlbumArtHeight); - /** - * @brief Gets or sets the MaxIconWidth. - */ - qint32 maxIconWidth() const; - /** - * @brief Gets or sets the MaxIconWidth. - */ - void setMaxIconWidth(qint32 newMaxIconWidth); - /** - * @brief Gets or sets the MaxIconHeight. - */ - qint32 maxIconHeight() const; - /** - * @brief Gets or sets the MaxIconHeight. - */ - void setMaxIconHeight(qint32 newMaxIconHeight); - /** - * @brief Gets or sets the MaxStreamingBitrate. - */ - qint32 maxStreamingBitrate() const; - /** - * @brief Gets or sets the MaxStreamingBitrate. - */ - void setMaxStreamingBitrate(qint32 newMaxStreamingBitrate); - /** - * @brief Gets or sets the MaxStaticBitrate. - */ - qint32 maxStaticBitrate() const; - /** - * @brief Gets or sets the MaxStaticBitrate. - */ - void setMaxStaticBitrate(qint32 newMaxStaticBitrate); - /** - * @brief Gets or sets the MusicStreamingTranscodingBitrate. - */ - qint32 musicStreamingTranscodingBitrate() const; - /** - * @brief Gets or sets the MusicStreamingTranscodingBitrate. - */ - void setMusicStreamingTranscodingBitrate(qint32 newMusicStreamingTranscodingBitrate); - /** - * @brief Gets or sets the MaxStaticMusicBitrate. - */ - qint32 maxStaticMusicBitrate() const; - /** - * @brief Gets or sets the MaxStaticMusicBitrate. - */ - void setMaxStaticMusicBitrate(qint32 newMaxStaticMusicBitrate); - /** - * @brief Gets or sets the content of the aggregationFlags element in the urn:schemas-sonycom:av namespace. - */ - QString sonyAggregationFlags() const; - /** - * @brief Gets or sets the content of the aggregationFlags element in the urn:schemas-sonycom:av namespace. - */ - void setSonyAggregationFlags(QString newSonyAggregationFlags); - /** - * @brief Gets or sets the ProtocolInfo. - */ - QString protocolInfo() const; - /** - * @brief Gets or sets the ProtocolInfo. - */ - void setProtocolInfo(QString newProtocolInfo); - /** - * @brief Gets or sets the TimelineOffsetSeconds. - */ - qint32 timelineOffsetSeconds() const; - /** - * @brief Gets or sets the TimelineOffsetSeconds. - */ - void setTimelineOffsetSeconds(qint32 newTimelineOffsetSeconds); - /** - * @brief Gets or sets a value indicating whether RequiresPlainVideoItems. - */ - bool requiresPlainVideoItems() const; - /** - * @brief Gets or sets a value indicating whether RequiresPlainVideoItems. - */ - void setRequiresPlainVideoItems(bool newRequiresPlainVideoItems); - /** - * @brief Gets or sets a value indicating whether RequiresPlainFolders. - */ - bool requiresPlainFolders() const; - /** - * @brief Gets or sets a value indicating whether RequiresPlainFolders. - */ - void setRequiresPlainFolders(bool newRequiresPlainFolders); - /** - * @brief Gets or sets a value indicating whether EnableMSMediaReceiverRegistrar. - */ - bool enableMSMediaReceiverRegistrar() const; - /** - * @brief Gets or sets a value indicating whether EnableMSMediaReceiverRegistrar. - */ - void setEnableMSMediaReceiverRegistrar(bool newEnableMSMediaReceiverRegistrar); - /** - * @brief Gets or sets a value indicating whether IgnoreTranscodeByteRangeRequests. - */ - bool ignoreTranscodeByteRangeRequests() const; - /** - * @brief Gets or sets a value indicating whether IgnoreTranscodeByteRangeRequests. - */ - void setIgnoreTranscodeByteRangeRequests(bool newIgnoreTranscodeByteRangeRequests); - /** - * @brief Gets or sets the XmlRootAttributes. - */ - QList> xmlRootAttributes() const; - /** - * @brief Gets or sets the XmlRootAttributes. - */ - void setXmlRootAttributes(QList> newXmlRootAttributes); - /** - * @brief Gets or sets the direct play profiles. - */ - QList> directPlayProfiles() const; - /** - * @brief Gets or sets the direct play profiles. - */ - void setDirectPlayProfiles(QList> newDirectPlayProfiles); - /** - * @brief Gets or sets the transcoding profiles. - */ - QList> transcodingProfiles() const; - /** - * @brief Gets or sets the transcoding profiles. - */ - void setTranscodingProfiles(QList> newTranscodingProfiles); - /** - * @brief Gets or sets the ContainerProfiles. - */ - QList> containerProfiles() const; - /** - * @brief Gets or sets the ContainerProfiles. - */ - void setContainerProfiles(QList> newContainerProfiles); - /** - * @brief Gets or sets the CodecProfiles. - */ - QList> codecProfiles() const; - /** - * @brief Gets or sets the CodecProfiles. - */ - void setCodecProfiles(QList> newCodecProfiles); - /** - * @brief Gets or sets the ResponseProfiles. - */ - QList> responseProfiles() const; - /** - * @brief Gets or sets the ResponseProfiles. - */ - void setResponseProfiles(QList> newResponseProfiles); - /** - * @brief Gets or sets the SubtitleProfiles. - */ - QList> subtitleProfiles() const; - /** - * @brief Gets or sets the SubtitleProfiles. - */ - void setSubtitleProfiles(QList> newSubtitleProfiles); - -protected: - QString m_name; - QString m_jellyfinId; - QSharedPointer m_identification = nullptr; - QString m_friendlyName; - QString m_manufacturer; - QString m_manufacturerUrl; - QString m_modelName; - QString m_modelDescription; - QString m_modelNumber; - QString m_modelUrl; - QString m_serialNumber; - bool m_enableAlbumArtInDidl; - bool m_enableSingleAlbumArtLimit; - bool m_enableSingleSubtitleLimit; - QString m_supportedMediaTypes; - QString m_userId; - QString m_albumArtPn; - qint32 m_maxAlbumArtWidth; - qint32 m_maxAlbumArtHeight; - qint32 m_maxIconWidth; - qint32 m_maxIconHeight; - qint32 m_maxStreamingBitrate; - qint32 m_maxStaticBitrate; - qint32 m_musicStreamingTranscodingBitrate; - qint32 m_maxStaticMusicBitrate; - QString m_sonyAggregationFlags; - QString m_protocolInfo; - qint32 m_timelineOffsetSeconds; - bool m_requiresPlainVideoItems; - bool m_requiresPlainFolders; - bool m_enableMSMediaReceiverRegistrar; - bool m_ignoreTranscodeByteRangeRequests; - QList> m_xmlRootAttributes; - QList> m_directPlayProfiles; - QList> m_transcodingProfiles; - QList> m_containerProfiles; - QList> m_codecProfiles; - QList> m_responseProfiles; - QList> m_subtitleProfiles; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_DEVICEPROFILE_H diff --git a/core/include/JellyfinQt/DTO/deviceprofileinfo.h b/core/include/JellyfinQt/DTO/deviceprofileinfo.h deleted file mode 100644 index d9a3048..0000000 --- a/core/include/JellyfinQt/DTO/deviceprofileinfo.h +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_DEVICEPROFILEINFO_H -#define JELLYFIN_DTO_DEVICEPROFILEINFO_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/deviceprofiletype.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class DeviceProfileInfo { -public:DeviceProfileInfo();DeviceProfileInfo(const DeviceProfileInfo &other); - - static DeviceProfileInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the identifier. - */ - QString jellyfinId() const; - /** - * @brief Gets or sets the identifier. - */ - void setJellyfinId(QString newJellyfinId); - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - - DeviceProfileType type() const; - - void setType(DeviceProfileType newType); - -protected: - QString m_jellyfinId; - QString m_name; - DeviceProfileType m_type; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_DEVICEPROFILEINFO_H diff --git a/core/include/JellyfinQt/DTO/deviceprofiletype.h b/core/include/JellyfinQt/DTO/deviceprofiletype.h deleted file mode 100644 index 3f6c69b..0000000 --- a/core/include/JellyfinQt/DTO/deviceprofiletype.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_DEVICEPROFILETYPE_H -#define JELLYFIN_DTO_DEVICEPROFILETYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class DeviceProfileTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - System, - User, - }; - Q_ENUM(Value) -private: - explicit DeviceProfileTypeClass(); -}; - -typedef DeviceProfileTypeClass::Value DeviceProfileType; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_DEVICEPROFILETYPE_H diff --git a/core/include/JellyfinQt/DTO/displaypreferencesdto.h b/core/include/JellyfinQt/DTO/displaypreferencesdto.h deleted file mode 100644 index f210f42..0000000 --- a/core/include/JellyfinQt/DTO/displaypreferencesdto.h +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_DISPLAYPREFERENCESDTO_H -#define JELLYFIN_DTO_DISPLAYPREFERENCESDTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/scrolldirection.h" -#include "JellyfinQt/DTO/sortorder.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class DisplayPreferencesDto { -public:DisplayPreferencesDto();DisplayPreferencesDto(const DisplayPreferencesDto &other); - - static DisplayPreferencesDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the user id. - */ - QString jellyfinId() const; - /** - * @brief Gets or sets the user id. - */ - void setJellyfinId(QString newJellyfinId); - /** - * @brief Gets or sets the type of the view. - */ - QString viewType() const; - /** - * @brief Gets or sets the type of the view. - */ - void setViewType(QString newViewType); - /** - * @brief Gets or sets the sort by. - */ - QString sortBy() const; - /** - * @brief Gets or sets the sort by. - */ - void setSortBy(QString newSortBy); - /** - * @brief Gets or sets the index by. - */ - QString indexBy() const; - /** - * @brief Gets or sets the index by. - */ - void setIndexBy(QString newIndexBy); - /** - * @brief Gets or sets a value indicating whether [remember indexing]. - */ - bool rememberIndexing() const; - /** - * @brief Gets or sets a value indicating whether [remember indexing]. - */ - void setRememberIndexing(bool newRememberIndexing); - /** - * @brief Gets or sets the height of the primary image. - */ - qint32 primaryImageHeight() const; - /** - * @brief Gets or sets the height of the primary image. - */ - void setPrimaryImageHeight(qint32 newPrimaryImageHeight); - /** - * @brief Gets or sets the width of the primary image. - */ - qint32 primaryImageWidth() const; - /** - * @brief Gets or sets the width of the primary image. - */ - void setPrimaryImageWidth(qint32 newPrimaryImageWidth); - /** - * @brief Gets or sets the custom prefs. - */ - QJsonObject customPrefs() const; - /** - * @brief Gets or sets the custom prefs. - */ - void setCustomPrefs(QJsonObject newCustomPrefs); - - ScrollDirection scrollDirection() const; - - void setScrollDirection(ScrollDirection newScrollDirection); - /** - * @brief Gets or sets a value indicating whether to show backdrops on this item. - */ - bool showBackdrop() const; - /** - * @brief Gets or sets a value indicating whether to show backdrops on this item. - */ - void setShowBackdrop(bool newShowBackdrop); - /** - * @brief Gets or sets a value indicating whether [remember sorting]. - */ - bool rememberSorting() const; - /** - * @brief Gets or sets a value indicating whether [remember sorting]. - */ - void setRememberSorting(bool newRememberSorting); - - SortOrder sortOrder() const; - - void setSortOrder(SortOrder newSortOrder); - /** - * @brief Gets or sets a value indicating whether [show sidebar]. - */ - bool showSidebar() const; - /** - * @brief Gets or sets a value indicating whether [show sidebar]. - */ - void setShowSidebar(bool newShowSidebar); - /** - * @brief Gets or sets the client. - */ - QString client() const; - /** - * @brief Gets or sets the client. - */ - void setClient(QString newClient); - -protected: - QString m_jellyfinId; - QString m_viewType; - QString m_sortBy; - QString m_indexBy; - bool m_rememberIndexing; - qint32 m_primaryImageHeight; - qint32 m_primaryImageWidth; - QJsonObject m_customPrefs; - ScrollDirection m_scrollDirection; - bool m_showBackdrop; - bool m_rememberSorting; - SortOrder m_sortOrder; - bool m_showSidebar; - QString m_client; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_DISPLAYPREFERENCESDTO_H diff --git a/core/include/JellyfinQt/DTO/dlnaprofiletype.h b/core/include/JellyfinQt/DTO/dlnaprofiletype.h deleted file mode 100644 index 26f7a4b..0000000 --- a/core/include/JellyfinQt/DTO/dlnaprofiletype.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_DLNAPROFILETYPE_H -#define JELLYFIN_DTO_DLNAPROFILETYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class DlnaProfileTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Audio, - Video, - Photo, - }; - Q_ENUM(Value) -private: - explicit DlnaProfileTypeClass(); -}; - -typedef DlnaProfileTypeClass::Value DlnaProfileType; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_DLNAPROFILETYPE_H diff --git a/core/include/JellyfinQt/DTO/encodingcontext.h b/core/include/JellyfinQt/DTO/encodingcontext.h deleted file mode 100644 index 96e27b8..0000000 --- a/core/include/JellyfinQt/DTO/encodingcontext.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_ENCODINGCONTEXT_H -#define JELLYFIN_DTO_ENCODINGCONTEXT_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class EncodingContextClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Streaming, - Static, - }; - Q_ENUM(Value) -private: - explicit EncodingContextClass(); -}; - -typedef EncodingContextClass::Value EncodingContext; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_ENCODINGCONTEXT_H diff --git a/core/include/JellyfinQt/DTO/externalidinfo.h b/core/include/JellyfinQt/DTO/externalidinfo.h deleted file mode 100644 index f624644..0000000 --- a/core/include/JellyfinQt/DTO/externalidinfo.h +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_EXTERNALIDINFO_H -#define JELLYFIN_DTO_EXTERNALIDINFO_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/externalidmediatype.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ExternalIdInfo { -public:ExternalIdInfo();ExternalIdInfo(const ExternalIdInfo &other); - - static ExternalIdInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the display name of the external id provider (IE: IMDB, MusicBrainz, etc). - */ - QString name() const; - /** - * @brief Gets or sets the display name of the external id provider (IE: IMDB, MusicBrainz, etc). - */ - void setName(QString newName); - /** - * @brief Gets or sets the unique key for this id. This key should be unique across all providers. - */ - QString key() const; - /** - * @brief Gets or sets the unique key for this id. This key should be unique across all providers. - */ - void setKey(QString newKey); - - ExternalIdMediaType type() const; - - void setType(ExternalIdMediaType newType); - /** - * @brief Gets or sets the URL format string. - */ - QString urlFormatString() const; - /** - * @brief Gets or sets the URL format string. - */ - void setUrlFormatString(QString newUrlFormatString); - -protected: - QString m_name; - QString m_key; - ExternalIdMediaType m_type; - QString m_urlFormatString; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_EXTERNALIDINFO_H diff --git a/core/include/JellyfinQt/DTO/externalidmediatype.h b/core/include/JellyfinQt/DTO/externalidmediatype.h deleted file mode 100644 index 003ee8e..0000000 --- a/core/include/JellyfinQt/DTO/externalidmediatype.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_EXTERNALIDMEDIATYPE_H -#define JELLYFIN_DTO_EXTERNALIDMEDIATYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class ExternalIdMediaTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Album, - AlbumArtist, - Artist, - BoxSet, - Episode, - Movie, - OtherArtist, - Person, - ReleaseGroup, - Season, - Series, - Track, - }; - Q_ENUM(Value) -private: - explicit ExternalIdMediaTypeClass(); -}; - -typedef ExternalIdMediaTypeClass::Value ExternalIdMediaType; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_EXTERNALIDMEDIATYPE_H diff --git a/core/include/JellyfinQt/DTO/externalurl.h b/core/include/JellyfinQt/DTO/externalurl.h deleted file mode 100644 index 5ee648d..0000000 --- a/core/include/JellyfinQt/DTO/externalurl.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_EXTERNALURL_H -#define JELLYFIN_DTO_EXTERNALURL_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ExternalUrl { -public:ExternalUrl();ExternalUrl(const ExternalUrl &other); - - static ExternalUrl fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the type of the item. - */ - QString url() const; - /** - * @brief Gets or sets the type of the item. - */ - void setUrl(QString newUrl); - -protected: - QString m_name; - QString m_url; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_EXTERNALURL_H diff --git a/core/include/JellyfinQt/DTO/filesystementryinfo.h b/core/include/JellyfinQt/DTO/filesystementryinfo.h deleted file mode 100644 index 4ed6312..0000000 --- a/core/include/JellyfinQt/DTO/filesystementryinfo.h +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_FILESYSTEMENTRYINFO_H -#define JELLYFIN_DTO_FILESYSTEMENTRYINFO_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/filesystementrytype.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class FileSystemEntryInfo { -public:FileSystemEntryInfo();FileSystemEntryInfo(const FileSystemEntryInfo &other); - - static FileSystemEntryInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets the name. - */ - QString name() const; - /** - * @brief Gets the name. - */ - void setName(QString newName); - /** - * @brief Gets the path. - */ - QString path() const; - /** - * @brief Gets the path. - */ - void setPath(QString newPath); - - FileSystemEntryType type() const; - - void setType(FileSystemEntryType newType); - -protected: - QString m_name; - QString m_path; - FileSystemEntryType m_type; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_FILESYSTEMENTRYINFO_H diff --git a/core/include/JellyfinQt/DTO/filesystementrytype.h b/core/include/JellyfinQt/DTO/filesystementrytype.h deleted file mode 100644 index 154421c..0000000 --- a/core/include/JellyfinQt/DTO/filesystementrytype.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_FILESYSTEMENTRYTYPE_H -#define JELLYFIN_DTO_FILESYSTEMENTRYTYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class FileSystemEntryTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - File, - Directory, - NetworkComputer, - NetworkShare, - }; - Q_ENUM(Value) -private: - explicit FileSystemEntryTypeClass(); -}; - -typedef FileSystemEntryTypeClass::Value FileSystemEntryType; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_FILESYSTEMENTRYTYPE_H diff --git a/core/include/JellyfinQt/DTO/fontfile.h b/core/include/JellyfinQt/DTO/fontfile.h deleted file mode 100644 index ba742ee..0000000 --- a/core/include/JellyfinQt/DTO/fontfile.h +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_FONTFILE_H -#define JELLYFIN_DTO_FONTFILE_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class FontFile { -public:FontFile();FontFile(const FontFile &other); - - static FontFile fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the size. - */ - qint64 size() const; - /** - * @brief Gets or sets the size. - */ - void setSize(qint64 newSize); - /** - * @brief Gets or sets the date created. - */ - QDateTime dateCreated() const; - /** - * @brief Gets or sets the date created. - */ - void setDateCreated(QDateTime newDateCreated); - /** - * @brief Gets or sets the date modified. - */ - QDateTime dateModified() const; - /** - * @brief Gets or sets the date modified. - */ - void setDateModified(QDateTime newDateModified); - -protected: - QString m_name; - qint64 m_size; - QDateTime m_dateCreated; - QDateTime m_dateModified; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_FONTFILE_H diff --git a/core/include/JellyfinQt/DTO/forgotpasswordaction.h b/core/include/JellyfinQt/DTO/forgotpasswordaction.h deleted file mode 100644 index 01fca4c..0000000 --- a/core/include/JellyfinQt/DTO/forgotpasswordaction.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_FORGOTPASSWORDACTION_H -#define JELLYFIN_DTO_FORGOTPASSWORDACTION_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class ForgotPasswordActionClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - ContactAdmin, - PinCode, - InNetworkRequired, - }; - Q_ENUM(Value) -private: - explicit ForgotPasswordActionClass(); -}; - -typedef ForgotPasswordActionClass::Value ForgotPasswordAction; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_FORGOTPASSWORDACTION_H diff --git a/core/include/JellyfinQt/DTO/forgotpassworddto.h b/core/include/JellyfinQt/DTO/forgotpassworddto.h deleted file mode 100644 index eaa5ba6..0000000 --- a/core/include/JellyfinQt/DTO/forgotpassworddto.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_FORGOTPASSWORDDTO_H -#define JELLYFIN_DTO_FORGOTPASSWORDDTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ForgotPasswordDto { -public:ForgotPasswordDto();ForgotPasswordDto(const ForgotPasswordDto &other); - - static ForgotPasswordDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the entered username to have its password reset. - */ - QString enteredUsername() const; - /** - * @brief Gets or sets the entered username to have its password reset. - */ - void setEnteredUsername(QString newEnteredUsername); - -protected: - QString m_enteredUsername; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_FORGOTPASSWORDDTO_H diff --git a/core/include/JellyfinQt/DTO/forgotpasswordresult.h b/core/include/JellyfinQt/DTO/forgotpasswordresult.h deleted file mode 100644 index 84473f3..0000000 --- a/core/include/JellyfinQt/DTO/forgotpasswordresult.h +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_FORGOTPASSWORDRESULT_H -#define JELLYFIN_DTO_FORGOTPASSWORDRESULT_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/forgotpasswordaction.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ForgotPasswordResult { -public:ForgotPasswordResult();ForgotPasswordResult(const ForgotPasswordResult &other); - - static ForgotPasswordResult fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - ForgotPasswordAction action() const; - - void setAction(ForgotPasswordAction newAction); - /** - * @brief Gets or sets the pin file. - */ - QString pinFile() const; - /** - * @brief Gets or sets the pin file. - */ - void setPinFile(QString newPinFile); - /** - * @brief Gets or sets the pin expiration date. - */ - QDateTime pinExpirationDate() const; - /** - * @brief Gets or sets the pin expiration date. - */ - void setPinExpirationDate(QDateTime newPinExpirationDate); - -protected: - ForgotPasswordAction m_action; - QString m_pinFile; - QDateTime m_pinExpirationDate; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_FORGOTPASSWORDRESULT_H diff --git a/core/include/JellyfinQt/DTO/generalcommandtype.h b/core/include/JellyfinQt/DTO/generalcommandtype.h deleted file mode 100644 index 90b99c2..0000000 --- a/core/include/JellyfinQt/DTO/generalcommandtype.h +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_GENERALCOMMANDTYPE_H -#define JELLYFIN_DTO_GENERALCOMMANDTYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class GeneralCommandTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - MoveUp, - MoveDown, - MoveLeft, - MoveRight, - PageUp, - PageDown, - PreviousLetter, - NextLetter, - ToggleOsd, - ToggleContextMenu, - Select, - Back, - TakeScreenshot, - SendKey, - SendString, - GoHome, - GoToSettings, - VolumeUp, - VolumeDown, - Mute, - Unmute, - ToggleMute, - SetVolume, - SetAudioStreamIndex, - SetSubtitleStreamIndex, - ToggleFullscreen, - DisplayContent, - GoToSearch, - DisplayMessage, - SetRepeatMode, - ChannelUp, - ChannelDown, - Guide, - ToggleStats, - PlayMediaSource, - PlayTrailers, - SetShuffleQueue, - PlayState, - PlayNext, - ToggleOsdMenu, - Play, - }; - Q_ENUM(Value) -private: - explicit GeneralCommandTypeClass(); -}; - -typedef GeneralCommandTypeClass::Value GeneralCommandType; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_GENERALCOMMANDTYPE_H diff --git a/core/include/JellyfinQt/DTO/getprogramsdto.h b/core/include/JellyfinQt/DTO/getprogramsdto.h deleted file mode 100644 index 6959bbb..0000000 --- a/core/include/JellyfinQt/DTO/getprogramsdto.h +++ /dev/null @@ -1,350 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_GETPROGRAMSDTO_H -#define JELLYFIN_DTO_GETPROGRAMSDTO_H - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/imagetype.h" -#include "JellyfinQt/DTO/itemfields.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class GetProgramsDto { -public:GetProgramsDto();GetProgramsDto(const GetProgramsDto &other); - - static GetProgramsDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the channels to return guide information for. - */ - QList channelIds() const; - /** - * @brief Gets or sets the channels to return guide information for. - */ - void setChannelIds(QList newChannelIds); - /** - * @brief Gets or sets optional. Filter by user id. - */ - QUuid userId() const; - /** - * @brief Gets or sets optional. Filter by user id. - */ - void setUserId(QUuid newUserId); - /** - * @brief Gets or sets the minimum premiere start date. -Optional. - */ - QDateTime minStartDate() const; - /** - * @brief Gets or sets the minimum premiere start date. -Optional. - */ - void setMinStartDate(QDateTime newMinStartDate); - /** - * @brief Gets or sets filter by programs that have completed airing, or not. -Optional. - */ - bool hasAired() const; - /** - * @brief Gets or sets filter by programs that have completed airing, or not. -Optional. - */ - void setHasAired(bool newHasAired); - /** - * @brief Gets or sets filter by programs that are currently airing, or not. -Optional. - */ - bool isAiring() const; - /** - * @brief Gets or sets filter by programs that are currently airing, or not. -Optional. - */ - void setIsAiring(bool newIsAiring); - /** - * @brief Gets or sets the maximum premiere start date. -Optional. - */ - QDateTime maxStartDate() const; - /** - * @brief Gets or sets the maximum premiere start date. -Optional. - */ - void setMaxStartDate(QDateTime newMaxStartDate); - /** - * @brief Gets or sets the minimum premiere end date. -Optional. - */ - QDateTime minEndDate() const; - /** - * @brief Gets or sets the minimum premiere end date. -Optional. - */ - void setMinEndDate(QDateTime newMinEndDate); - /** - * @brief Gets or sets the maximum premiere end date. -Optional. - */ - QDateTime maxEndDate() const; - /** - * @brief Gets or sets the maximum premiere end date. -Optional. - */ - void setMaxEndDate(QDateTime newMaxEndDate); - /** - * @brief Gets or sets filter for movies. -Optional. - */ - bool isMovie() const; - /** - * @brief Gets or sets filter for movies. -Optional. - */ - void setIsMovie(bool newIsMovie); - /** - * @brief Gets or sets filter for series. -Optional. - */ - bool isSeries() const; - /** - * @brief Gets or sets filter for series. -Optional. - */ - void setIsSeries(bool newIsSeries); - /** - * @brief Gets or sets filter for news. -Optional. - */ - bool isNews() const; - /** - * @brief Gets or sets filter for news. -Optional. - */ - void setIsNews(bool newIsNews); - /** - * @brief Gets or sets filter for kids. -Optional. - */ - bool isKids() const; - /** - * @brief Gets or sets filter for kids. -Optional. - */ - void setIsKids(bool newIsKids); - /** - * @brief Gets or sets filter for sports. -Optional. - */ - bool isSports() const; - /** - * @brief Gets or sets filter for sports. -Optional. - */ - void setIsSports(bool newIsSports); - /** - * @brief Gets or sets the record index to start at. All items with a lower index will be dropped from the results. -Optional. - */ - qint32 startIndex() const; - /** - * @brief Gets or sets the record index to start at. All items with a lower index will be dropped from the results. -Optional. - */ - void setStartIndex(qint32 newStartIndex); - /** - * @brief Gets or sets the maximum number of records to return. -Optional. - */ - qint32 limit() const; - /** - * @brief Gets or sets the maximum number of records to return. -Optional. - */ - void setLimit(qint32 newLimit); - /** - * @brief Gets or sets specify one or more sort orders, comma delimited. Options: Name, StartDate. -Optional. - */ - QString sortBy() const; - /** - * @brief Gets or sets specify one or more sort orders, comma delimited. Options: Name, StartDate. -Optional. - */ - void setSortBy(QString newSortBy); - /** - * @brief Gets or sets sort Order - Ascending,Descending. - */ - QString sortOrder() const; - /** - * @brief Gets or sets sort Order - Ascending,Descending. - */ - void setSortOrder(QString newSortOrder); - /** - * @brief Gets or sets the genres to return guide information for. - */ - QStringList genres() const; - /** - * @brief Gets or sets the genres to return guide information for. - */ - void setGenres(QStringList newGenres); - /** - * @brief Gets or sets the genre ids to return guide information for. - */ - QList genreIds() const; - /** - * @brief Gets or sets the genre ids to return guide information for. - */ - void setGenreIds(QList newGenreIds); - /** - * @brief Gets or sets include image information in output. -Optional. - */ - bool enableImages() const; - /** - * @brief Gets or sets include image information in output. -Optional. - */ - void setEnableImages(bool newEnableImages); - /** - * @brief Gets or sets a value indicating whether retrieve total record count. - */ - bool enableTotalRecordCount() const; - /** - * @brief Gets or sets a value indicating whether retrieve total record count. - */ - void setEnableTotalRecordCount(bool newEnableTotalRecordCount); - /** - * @brief Gets or sets the max number of images to return, per image type. -Optional. - */ - qint32 imageTypeLimit() const; - /** - * @brief Gets or sets the max number of images to return, per image type. -Optional. - */ - void setImageTypeLimit(qint32 newImageTypeLimit); - /** - * @brief Gets or sets the image types to include in the output. -Optional. - */ - QList enableImageTypes() const; - /** - * @brief Gets or sets the image types to include in the output. -Optional. - */ - void setEnableImageTypes(QList newEnableImageTypes); - /** - * @brief Gets or sets include user data. -Optional. - */ - bool enableUserData() const; - /** - * @brief Gets or sets include user data. -Optional. - */ - void setEnableUserData(bool newEnableUserData); - /** - * @brief Gets or sets filter by series timer id. -Optional. - */ - QString seriesTimerId() const; - /** - * @brief Gets or sets filter by series timer id. -Optional. - */ - void setSeriesTimerId(QString newSeriesTimerId); - /** - * @brief Gets or sets filter by library series id. -Optional. - */ - QUuid librarySeriesId() const; - /** - * @brief Gets or sets filter by library series id. -Optional. - */ - void setLibrarySeriesId(QUuid newLibrarySeriesId); - /** - * @brief Gets or sets specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines. -Optional. - */ - QList fields() const; - /** - * @brief Gets or sets specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines. -Optional. - */ - void setFields(QList newFields); - -protected: - QList m_channelIds; - QUuid m_userId; - QDateTime m_minStartDate; - bool m_hasAired; - bool m_isAiring; - QDateTime m_maxStartDate; - QDateTime m_minEndDate; - QDateTime m_maxEndDate; - bool m_isMovie; - bool m_isSeries; - bool m_isNews; - bool m_isKids; - bool m_isSports; - qint32 m_startIndex; - qint32 m_limit; - QString m_sortBy; - QString m_sortOrder; - QStringList m_genres; - QList m_genreIds; - bool m_enableImages; - bool m_enableTotalRecordCount; - qint32 m_imageTypeLimit; - QList m_enableImageTypes; - bool m_enableUserData; - QString m_seriesTimerId; - QUuid m_librarySeriesId; - QList m_fields; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_GETPROGRAMSDTO_H diff --git a/core/include/JellyfinQt/DTO/groupinfodto.h b/core/include/JellyfinQt/DTO/groupinfodto.h deleted file mode 100644 index 12ddf93..0000000 --- a/core/include/JellyfinQt/DTO/groupinfodto.h +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_GROUPINFODTO_H -#define JELLYFIN_DTO_GROUPINFODTO_H - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/groupstatetype.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class GroupInfoDto { -public:GroupInfoDto();GroupInfoDto(const GroupInfoDto &other); - - static GroupInfoDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets the group identifier. - */ - QUuid groupId() const; - /** - * @brief Gets the group identifier. - */ - void setGroupId(QUuid newGroupId); - /** - * @brief Gets the group name. - */ - QString groupName() const; - /** - * @brief Gets the group name. - */ - void setGroupName(QString newGroupName); - - GroupStateType state() const; - - void setState(GroupStateType newState); - /** - * @brief Gets the participants. - */ - QStringList participants() const; - /** - * @brief Gets the participants. - */ - void setParticipants(QStringList newParticipants); - /** - * @brief Gets the date when this DTO has been created. - */ - QDateTime lastUpdatedAt() const; - /** - * @brief Gets the date when this DTO has been created. - */ - void setLastUpdatedAt(QDateTime newLastUpdatedAt); - -protected: - QUuid m_groupId; - QString m_groupName; - GroupStateType m_state; - QStringList m_participants; - QDateTime m_lastUpdatedAt; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_GROUPINFODTO_H diff --git a/core/include/JellyfinQt/DTO/groupqueuemode.h b/core/include/JellyfinQt/DTO/groupqueuemode.h deleted file mode 100644 index 07e530d..0000000 --- a/core/include/JellyfinQt/DTO/groupqueuemode.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_GROUPQUEUEMODE_H -#define JELLYFIN_DTO_GROUPQUEUEMODE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class GroupQueueModeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Queue, - QueueNext, - }; - Q_ENUM(Value) -private: - explicit GroupQueueModeClass(); -}; - -typedef GroupQueueModeClass::Value GroupQueueMode; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_GROUPQUEUEMODE_H diff --git a/core/include/JellyfinQt/DTO/grouprepeatmode.h b/core/include/JellyfinQt/DTO/grouprepeatmode.h deleted file mode 100644 index b08f145..0000000 --- a/core/include/JellyfinQt/DTO/grouprepeatmode.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_GROUPREPEATMODE_H -#define JELLYFIN_DTO_GROUPREPEATMODE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class GroupRepeatModeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - RepeatOne, - RepeatAll, - RepeatNone, - }; - Q_ENUM(Value) -private: - explicit GroupRepeatModeClass(); -}; - -typedef GroupRepeatModeClass::Value GroupRepeatMode; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_GROUPREPEATMODE_H diff --git a/core/include/JellyfinQt/DTO/groupshufflemode.h b/core/include/JellyfinQt/DTO/groupshufflemode.h deleted file mode 100644 index 4749050..0000000 --- a/core/include/JellyfinQt/DTO/groupshufflemode.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_GROUPSHUFFLEMODE_H -#define JELLYFIN_DTO_GROUPSHUFFLEMODE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class GroupShuffleModeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Sorted, - Shuffle, - }; - Q_ENUM(Value) -private: - explicit GroupShuffleModeClass(); -}; - -typedef GroupShuffleModeClass::Value GroupShuffleMode; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_GROUPSHUFFLEMODE_H diff --git a/core/include/JellyfinQt/DTO/groupstatetype.h b/core/include/JellyfinQt/DTO/groupstatetype.h deleted file mode 100644 index efb166f..0000000 --- a/core/include/JellyfinQt/DTO/groupstatetype.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_GROUPSTATETYPE_H -#define JELLYFIN_DTO_GROUPSTATETYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class GroupStateTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Idle, - Waiting, - Paused, - Playing, - }; - Q_ENUM(Value) -private: - explicit GroupStateTypeClass(); -}; - -typedef GroupStateTypeClass::Value GroupStateType; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_GROUPSTATETYPE_H diff --git a/core/include/JellyfinQt/DTO/groupupdatetype.h b/core/include/JellyfinQt/DTO/groupupdatetype.h deleted file mode 100644 index e471b9d..0000000 --- a/core/include/JellyfinQt/DTO/groupupdatetype.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_GROUPUPDATETYPE_H -#define JELLYFIN_DTO_GROUPUPDATETYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class GroupUpdateTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - UserJoined, - UserLeft, - GroupJoined, - GroupLeft, - StateUpdate, - PlayQueue, - NotInGroup, - GroupDoesNotExist, - CreateGroupDenied, - JoinGroupDenied, - LibraryAccessDenied, - }; - Q_ENUM(Value) -private: - explicit GroupUpdateTypeClass(); -}; - -typedef GroupUpdateTypeClass::Value GroupUpdateType; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_GROUPUPDATETYPE_H diff --git a/core/include/JellyfinQt/DTO/guideinfo.h b/core/include/JellyfinQt/DTO/guideinfo.h deleted file mode 100644 index 9ae553d..0000000 --- a/core/include/JellyfinQt/DTO/guideinfo.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_GUIDEINFO_H -#define JELLYFIN_DTO_GUIDEINFO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class GuideInfo { -public:GuideInfo();GuideInfo(const GuideInfo &other); - - static GuideInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the start date. - */ - QDateTime startDate() const; - /** - * @brief Gets or sets the start date. - */ - void setStartDate(QDateTime newStartDate); - /** - * @brief Gets or sets the end date. - */ - QDateTime endDate() const; - /** - * @brief Gets or sets the end date. - */ - void setEndDate(QDateTime newEndDate); - -protected: - QDateTime m_startDate; - QDateTime m_endDate; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_GUIDEINFO_H diff --git a/core/include/JellyfinQt/DTO/headermatchtype.h b/core/include/JellyfinQt/DTO/headermatchtype.h deleted file mode 100644 index 5463176..0000000 --- a/core/include/JellyfinQt/DTO/headermatchtype.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_HEADERMATCHTYPE_H -#define JELLYFIN_DTO_HEADERMATCHTYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class HeaderMatchTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Equals, - Regex, - Substring, - }; - Q_ENUM(Value) -private: - explicit HeaderMatchTypeClass(); -}; - -typedef HeaderMatchTypeClass::Value HeaderMatchType; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_HEADERMATCHTYPE_H diff --git a/core/include/JellyfinQt/DTO/ignorewaitrequestdto.h b/core/include/JellyfinQt/DTO/ignorewaitrequestdto.h deleted file mode 100644 index 40105d2..0000000 --- a/core/include/JellyfinQt/DTO/ignorewaitrequestdto.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_IGNOREWAITREQUESTDTO_H -#define JELLYFIN_DTO_IGNOREWAITREQUESTDTO_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class IgnoreWaitRequestDto { -public:IgnoreWaitRequestDto();IgnoreWaitRequestDto(const IgnoreWaitRequestDto &other); - - static IgnoreWaitRequestDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets a value indicating whether the client should be ignored. - */ - bool ignoreWait() const; - /** - * @brief Gets or sets a value indicating whether the client should be ignored. - */ - void setIgnoreWait(bool newIgnoreWait); - -protected: - bool m_ignoreWait; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_IGNOREWAITREQUESTDTO_H diff --git a/core/include/JellyfinQt/DTO/imagebynameinfo.h b/core/include/JellyfinQt/DTO/imagebynameinfo.h deleted file mode 100644 index b3d6499..0000000 --- a/core/include/JellyfinQt/DTO/imagebynameinfo.h +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_IMAGEBYNAMEINFO_H -#define JELLYFIN_DTO_IMAGEBYNAMEINFO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ImageByNameInfo { -public:ImageByNameInfo();ImageByNameInfo(const ImageByNameInfo &other); - - static ImageByNameInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the theme. - */ - QString theme() const; - /** - * @brief Gets or sets the theme. - */ - void setTheme(QString newTheme); - /** - * @brief Gets or sets the context. - */ - QString context() const; - /** - * @brief Gets or sets the context. - */ - void setContext(QString newContext); - /** - * @brief Gets or sets the length of the file. - */ - qint64 fileLength() const; - /** - * @brief Gets or sets the length of the file. - */ - void setFileLength(qint64 newFileLength); - /** - * @brief Gets or sets the format. - */ - QString format() const; - /** - * @brief Gets or sets the format. - */ - void setFormat(QString newFormat); - -protected: - QString m_name; - QString m_theme; - QString m_context; - qint64 m_fileLength; - QString m_format; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_IMAGEBYNAMEINFO_H diff --git a/core/include/JellyfinQt/DTO/imageinfo.h b/core/include/JellyfinQt/DTO/imageinfo.h deleted file mode 100644 index b2c95bc..0000000 --- a/core/include/JellyfinQt/DTO/imageinfo.h +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_IMAGEINFO_H -#define JELLYFIN_DTO_IMAGEINFO_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/imagetype.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ImageInfo { -public:ImageInfo();ImageInfo(const ImageInfo &other); - - static ImageInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - ImageType imageType() const; - - void setImageType(ImageType newImageType); - /** - * @brief Gets or sets the index of the image. - */ - qint32 imageIndex() const; - /** - * @brief Gets or sets the index of the image. - */ - void setImageIndex(qint32 newImageIndex); - /** - * @brief Gets or sets the image tag. - */ - QString imageTag() const; - /** - * @brief Gets or sets the image tag. - */ - void setImageTag(QString newImageTag); - /** - * @brief Gets or sets the path. - */ - QString path() const; - /** - * @brief Gets or sets the path. - */ - void setPath(QString newPath); - /** - * @brief Gets or sets the blurhash. - */ - QString blurHash() const; - /** - * @brief Gets or sets the blurhash. - */ - void setBlurHash(QString newBlurHash); - /** - * @brief Gets or sets the height. - */ - qint32 height() const; - /** - * @brief Gets or sets the height. - */ - void setHeight(qint32 newHeight); - /** - * @brief Gets or sets the width. - */ - qint32 width() const; - /** - * @brief Gets or sets the width. - */ - void setWidth(qint32 newWidth); - /** - * @brief Gets or sets the size. - */ - qint64 size() const; - /** - * @brief Gets or sets the size. - */ - void setSize(qint64 newSize); - -protected: - ImageType m_imageType; - qint32 m_imageIndex; - QString m_imageTag; - QString m_path; - QString m_blurHash; - qint32 m_height; - qint32 m_width; - qint64 m_size; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_IMAGEINFO_H diff --git a/core/include/JellyfinQt/DTO/imageoption.h b/core/include/JellyfinQt/DTO/imageoption.h deleted file mode 100644 index 390202c..0000000 --- a/core/include/JellyfinQt/DTO/imageoption.h +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_IMAGEOPTION_H -#define JELLYFIN_DTO_IMAGEOPTION_H - -#include -#include -#include - -#include "JellyfinQt/DTO/imagetype.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ImageOption { -public:ImageOption();ImageOption(const ImageOption &other); - - static ImageOption fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - ImageType type() const; - - void setType(ImageType newType); - /** - * @brief Gets or sets the limit. - */ - qint32 limit() const; - /** - * @brief Gets or sets the limit. - */ - void setLimit(qint32 newLimit); - /** - * @brief Gets or sets the minimum width. - */ - qint32 minWidth() const; - /** - * @brief Gets or sets the minimum width. - */ - void setMinWidth(qint32 newMinWidth); - -protected: - ImageType m_type; - qint32 m_limit; - qint32 m_minWidth; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_IMAGEOPTION_H diff --git a/core/include/JellyfinQt/DTO/imageorientation.h b/core/include/JellyfinQt/DTO/imageorientation.h deleted file mode 100644 index 6deaf27..0000000 --- a/core/include/JellyfinQt/DTO/imageorientation.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_IMAGEORIENTATION_H -#define JELLYFIN_DTO_IMAGEORIENTATION_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class ImageOrientationClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - TopLeft, - TopRight, - BottomRight, - BottomLeft, - LeftTop, - RightTop, - RightBottom, - LeftBottom, - }; - Q_ENUM(Value) -private: - explicit ImageOrientationClass(); -}; - -typedef ImageOrientationClass::Value ImageOrientation; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_IMAGEORIENTATION_H diff --git a/core/include/JellyfinQt/DTO/imageproviderinfo.h b/core/include/JellyfinQt/DTO/imageproviderinfo.h deleted file mode 100644 index 2cded8f..0000000 --- a/core/include/JellyfinQt/DTO/imageproviderinfo.h +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_IMAGEPROVIDERINFO_H -#define JELLYFIN_DTO_IMAGEPROVIDERINFO_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/imagetype.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ImageProviderInfo { -public:ImageProviderInfo();ImageProviderInfo(const ImageProviderInfo &other); - - static ImageProviderInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets the name. - */ - QString name() const; - /** - * @brief Gets the name. - */ - void setName(QString newName); - /** - * @brief Gets the supported image types. - */ - QList supportedImages() const; - /** - * @brief Gets the supported image types. - */ - void setSupportedImages(QList newSupportedImages); - -protected: - QString m_name; - QList m_supportedImages; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_IMAGEPROVIDERINFO_H diff --git a/core/include/JellyfinQt/DTO/imagetype.h b/core/include/JellyfinQt/DTO/imagetype.h deleted file mode 100644 index 8ab7bf5..0000000 --- a/core/include/JellyfinQt/DTO/imagetype.h +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_IMAGETYPE_H -#define JELLYFIN_DTO_IMAGETYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class ImageTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Primary, - Art, - Backdrop, - Banner, - Logo, - Thumb, - Disc, - Box, - Screenshot, - Menu, - Chapter, - BoxRear, - Profile, - }; - Q_ENUM(Value) -private: - explicit ImageTypeClass(); -}; - -typedef ImageTypeClass::Value ImageType; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_IMAGETYPE_H diff --git a/core/include/JellyfinQt/DTO/installationinfo.h b/core/include/JellyfinQt/DTO/installationinfo.h deleted file mode 100644 index 57a5e73..0000000 --- a/core/include/JellyfinQt/DTO/installationinfo.h +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_INSTALLATIONINFO_H -#define JELLYFIN_DTO_INSTALLATIONINFO_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/version.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class InstallationInfo { -public:InstallationInfo();InstallationInfo(const InstallationInfo &other); - - static InstallationInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the Id. - */ - QUuid guid() const; - /** - * @brief Gets or sets the Id. - */ - void setGuid(QUuid newGuid); - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - - QSharedPointer version() const; - - void setVersion(QSharedPointer newVersion); - /** - * @brief Gets or sets the changelog for this version. - */ - QString changelog() const; - /** - * @brief Gets or sets the changelog for this version. - */ - void setChangelog(QString newChangelog); - /** - * @brief Gets or sets the source URL. - */ - QString sourceUrl() const; - /** - * @brief Gets or sets the source URL. - */ - void setSourceUrl(QString newSourceUrl); - /** - * @brief Gets or sets a checksum for the binary. - */ - QString checksum() const; - /** - * @brief Gets or sets a checksum for the binary. - */ - void setChecksum(QString newChecksum); - -protected: - QUuid m_guid; - QString m_name; - QSharedPointer m_version = nullptr; - QString m_changelog; - QString m_sourceUrl; - QString m_checksum; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_INSTALLATIONINFO_H diff --git a/core/include/JellyfinQt/DTO/iplugin.h b/core/include/JellyfinQt/DTO/iplugin.h deleted file mode 100644 index e4f9629..0000000 --- a/core/include/JellyfinQt/DTO/iplugin.h +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_IPLUGIN_H -#define JELLYFIN_DTO_IPLUGIN_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/version.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class IPlugin { -public:IPlugin();IPlugin(const IPlugin &other); - - static IPlugin fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets the name of the plugin. - */ - QString name() const; - /** - * @brief Gets the name of the plugin. - */ - void setName(QString newName); - /** - * @brief Gets the Description. - */ - QString description() const; - /** - * @brief Gets the Description. - */ - void setDescription(QString newDescription); - /** - * @brief Gets the unique id. - */ - QUuid jellyfinId() const; - /** - * @brief Gets the unique id. - */ - void setJellyfinId(QUuid newJellyfinId); - - QSharedPointer version() const; - - void setVersion(QSharedPointer newVersion); - /** - * @brief Gets the path to the assembly file. - */ - QString assemblyFilePath() const; - /** - * @brief Gets the path to the assembly file. - */ - void setAssemblyFilePath(QString newAssemblyFilePath); - /** - * @brief Gets a value indicating whether the plugin can be uninstalled. - */ - bool canUninstall() const; - /** - * @brief Gets a value indicating whether the plugin can be uninstalled. - */ - void setCanUninstall(bool newCanUninstall); - /** - * @brief Gets the full path to the data folder, where the plugin can store any miscellaneous files needed. - */ - QString dataFolderPath() const; - /** - * @brief Gets the full path to the data folder, where the plugin can store any miscellaneous files needed. - */ - void setDataFolderPath(QString newDataFolderPath); - -protected: - QString m_name; - QString m_description; - QUuid m_jellyfinId; - QSharedPointer m_version = nullptr; - QString m_assemblyFilePath; - bool m_canUninstall; - QString m_dataFolderPath; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_IPLUGIN_H diff --git a/core/include/JellyfinQt/DTO/itemcounts.h b/core/include/JellyfinQt/DTO/itemcounts.h deleted file mode 100644 index e2d4b85..0000000 --- a/core/include/JellyfinQt/DTO/itemcounts.h +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_ITEMCOUNTS_H -#define JELLYFIN_DTO_ITEMCOUNTS_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ItemCounts { -public:ItemCounts();ItemCounts(const ItemCounts &other); - - static ItemCounts fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the movie count. - */ - qint32 movieCount() const; - /** - * @brief Gets or sets the movie count. - */ - void setMovieCount(qint32 newMovieCount); - /** - * @brief Gets or sets the series count. - */ - qint32 seriesCount() const; - /** - * @brief Gets or sets the series count. - */ - void setSeriesCount(qint32 newSeriesCount); - /** - * @brief Gets or sets the episode count. - */ - qint32 episodeCount() const; - /** - * @brief Gets or sets the episode count. - */ - void setEpisodeCount(qint32 newEpisodeCount); - /** - * @brief Gets or sets the artist count. - */ - qint32 artistCount() const; - /** - * @brief Gets or sets the artist count. - */ - void setArtistCount(qint32 newArtistCount); - /** - * @brief Gets or sets the program count. - */ - qint32 programCount() const; - /** - * @brief Gets or sets the program count. - */ - void setProgramCount(qint32 newProgramCount); - /** - * @brief Gets or sets the trailer count. - */ - qint32 trailerCount() const; - /** - * @brief Gets or sets the trailer count. - */ - void setTrailerCount(qint32 newTrailerCount); - /** - * @brief Gets or sets the song count. - */ - qint32 songCount() const; - /** - * @brief Gets or sets the song count. - */ - void setSongCount(qint32 newSongCount); - /** - * @brief Gets or sets the album count. - */ - qint32 albumCount() const; - /** - * @brief Gets or sets the album count. - */ - void setAlbumCount(qint32 newAlbumCount); - /** - * @brief Gets or sets the music video count. - */ - qint32 musicVideoCount() const; - /** - * @brief Gets or sets the music video count. - */ - void setMusicVideoCount(qint32 newMusicVideoCount); - /** - * @brief Gets or sets the box set count. - */ - qint32 boxSetCount() const; - /** - * @brief Gets or sets the box set count. - */ - void setBoxSetCount(qint32 newBoxSetCount); - /** - * @brief Gets or sets the book count. - */ - qint32 bookCount() const; - /** - * @brief Gets or sets the book count. - */ - void setBookCount(qint32 newBookCount); - /** - * @brief Gets or sets the item count. - */ - qint32 itemCount() const; - /** - * @brief Gets or sets the item count. - */ - void setItemCount(qint32 newItemCount); - -protected: - qint32 m_movieCount; - qint32 m_seriesCount; - qint32 m_episodeCount; - qint32 m_artistCount; - qint32 m_programCount; - qint32 m_trailerCount; - qint32 m_songCount; - qint32 m_albumCount; - qint32 m_musicVideoCount; - qint32 m_boxSetCount; - qint32 m_bookCount; - qint32 m_itemCount; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_ITEMCOUNTS_H diff --git a/core/include/JellyfinQt/DTO/itemfields.h b/core/include/JellyfinQt/DTO/itemfields.h deleted file mode 100644 index 88b03a4..0000000 --- a/core/include/JellyfinQt/DTO/itemfields.h +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_ITEMFIELDS_H -#define JELLYFIN_DTO_ITEMFIELDS_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class ItemFieldsClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - AirTime, - CanDelete, - CanDownload, - ChannelInfo, - Chapters, - ChildCount, - CumulativeRunTimeTicks, - CustomRating, - DateCreated, - DateLastMediaAdded, - DisplayPreferencesId, - Etag, - ExternalUrls, - Genres, - HomePageUrl, - ItemCounts, - MediaSourceCount, - MediaSources, - OriginalTitle, - Overview, - ParentId, - Path, - People, - PlayAccess, - ProductionLocations, - ProviderIds, - PrimaryImageAspectRatio, - RecursiveItemCount, - Settings, - ScreenshotImageTags, - SeriesPrimaryImage, - SeriesStudio, - SortName, - SpecialEpisodeNumbers, - Studios, - BasicSyncInfo, - SyncInfo, - Taglines, - Tags, - RemoteTrailers, - MediaStreams, - SeasonUserData, - ServiceName, - ThemeSongIds, - ThemeVideoIds, - ExternalEtag, - PresentationUniqueKey, - InheritedParentalRatingValue, - ExternalSeriesId, - SeriesPresentationUniqueKey, - DateLastRefreshed, - DateLastSaved, - RefreshState, - ChannelImage, - EnableMediaSourceDisplay, - Width, - Height, - ExtraIds, - LocalTrailerCount, - IsHD, - SpecialFeatureCount, - }; - Q_ENUM(Value) -private: - explicit ItemFieldsClass(); -}; - -typedef ItemFieldsClass::Value ItemFields; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_ITEMFIELDS_H diff --git a/core/include/JellyfinQt/DTO/joingrouprequestdto.h b/core/include/JellyfinQt/DTO/joingrouprequestdto.h deleted file mode 100644 index 2b5a156..0000000 --- a/core/include/JellyfinQt/DTO/joingrouprequestdto.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_JOINGROUPREQUESTDTO_H -#define JELLYFIN_DTO_JOINGROUPREQUESTDTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class JoinGroupRequestDto { -public:JoinGroupRequestDto();JoinGroupRequestDto(const JoinGroupRequestDto &other); - - static JoinGroupRequestDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the group identifier. - */ - QUuid groupId() const; - /** - * @brief Gets or sets the group identifier. - */ - void setGroupId(QUuid newGroupId); - -protected: - QUuid m_groupId; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_JOINGROUPREQUESTDTO_H diff --git a/core/include/JellyfinQt/DTO/libraryoptioninfodto.h b/core/include/JellyfinQt/DTO/libraryoptioninfodto.h deleted file mode 100644 index 80d4f91..0000000 --- a/core/include/JellyfinQt/DTO/libraryoptioninfodto.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_LIBRARYOPTIONINFODTO_H -#define JELLYFIN_DTO_LIBRARYOPTIONINFODTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class LibraryOptionInfoDto { -public:LibraryOptionInfoDto();LibraryOptionInfoDto(const LibraryOptionInfoDto &other); - - static LibraryOptionInfoDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets name. - */ - QString name() const; - /** - * @brief Gets or sets name. - */ - void setName(QString newName); - /** - * @brief Gets or sets a value indicating whether default enabled. - */ - bool defaultEnabled() const; - /** - * @brief Gets or sets a value indicating whether default enabled. - */ - void setDefaultEnabled(bool newDefaultEnabled); - -protected: - QString m_name; - bool m_defaultEnabled; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_LIBRARYOPTIONINFODTO_H diff --git a/core/include/JellyfinQt/DTO/libraryoptions.h b/core/include/JellyfinQt/DTO/libraryoptions.h deleted file mode 100644 index 1ef7d02..0000000 --- a/core/include/JellyfinQt/DTO/libraryoptions.h +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_LIBRARYOPTIONS_H -#define JELLYFIN_DTO_LIBRARYOPTIONS_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/mediapathinfo.h" -#include "JellyfinQt/DTO/typeoptions.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class LibraryOptions { -public:LibraryOptions();LibraryOptions(const LibraryOptions &other); - - static LibraryOptions fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - bool enablePhotos() const; - - void setEnablePhotos(bool newEnablePhotos); - - bool enableRealtimeMonitor() const; - - void setEnableRealtimeMonitor(bool newEnableRealtimeMonitor); - - bool enableChapterImageExtraction() const; - - void setEnableChapterImageExtraction(bool newEnableChapterImageExtraction); - - bool extractChapterImagesDuringLibraryScan() const; - - void setExtractChapterImagesDuringLibraryScan(bool newExtractChapterImagesDuringLibraryScan); - - QList> pathInfos() const; - - void setPathInfos(QList> newPathInfos); - - bool saveLocalMetadata() const; - - void setSaveLocalMetadata(bool newSaveLocalMetadata); - - bool enableInternetProviders() const; - - void setEnableInternetProviders(bool newEnableInternetProviders); - - bool enableAutomaticSeriesGrouping() const; - - void setEnableAutomaticSeriesGrouping(bool newEnableAutomaticSeriesGrouping); - - bool enableEmbeddedTitles() const; - - void setEnableEmbeddedTitles(bool newEnableEmbeddedTitles); - - bool enableEmbeddedEpisodeInfos() const; - - void setEnableEmbeddedEpisodeInfos(bool newEnableEmbeddedEpisodeInfos); - - qint32 automaticRefreshIntervalDays() const; - - void setAutomaticRefreshIntervalDays(qint32 newAutomaticRefreshIntervalDays); - /** - * @brief Gets or sets the preferred metadata language. - */ - QString preferredMetadataLanguage() const; - /** - * @brief Gets or sets the preferred metadata language. - */ - void setPreferredMetadataLanguage(QString newPreferredMetadataLanguage); - /** - * @brief Gets or sets the metadata country code. - */ - QString metadataCountryCode() const; - /** - * @brief Gets or sets the metadata country code. - */ - void setMetadataCountryCode(QString newMetadataCountryCode); - - QString seasonZeroDisplayName() const; - - void setSeasonZeroDisplayName(QString newSeasonZeroDisplayName); - - QStringList metadataSavers() const; - - void setMetadataSavers(QStringList newMetadataSavers); - - QStringList disabledLocalMetadataReaders() const; - - void setDisabledLocalMetadataReaders(QStringList newDisabledLocalMetadataReaders); - - QStringList localMetadataReaderOrder() const; - - void setLocalMetadataReaderOrder(QStringList newLocalMetadataReaderOrder); - - QStringList disabledSubtitleFetchers() const; - - void setDisabledSubtitleFetchers(QStringList newDisabledSubtitleFetchers); - - QStringList subtitleFetcherOrder() const; - - void setSubtitleFetcherOrder(QStringList newSubtitleFetcherOrder); - - bool skipSubtitlesIfEmbeddedSubtitlesPresent() const; - - void setSkipSubtitlesIfEmbeddedSubtitlesPresent(bool newSkipSubtitlesIfEmbeddedSubtitlesPresent); - - bool skipSubtitlesIfAudioTrackMatches() const; - - void setSkipSubtitlesIfAudioTrackMatches(bool newSkipSubtitlesIfAudioTrackMatches); - - QStringList subtitleDownloadLanguages() const; - - void setSubtitleDownloadLanguages(QStringList newSubtitleDownloadLanguages); - - bool requirePerfectSubtitleMatch() const; - - void setRequirePerfectSubtitleMatch(bool newRequirePerfectSubtitleMatch); - - bool saveSubtitlesWithMedia() const; - - void setSaveSubtitlesWithMedia(bool newSaveSubtitlesWithMedia); - - QList> typeOptions() const; - - void setTypeOptions(QList> newTypeOptions); - -protected: - bool m_enablePhotos; - bool m_enableRealtimeMonitor; - bool m_enableChapterImageExtraction; - bool m_extractChapterImagesDuringLibraryScan; - QList> m_pathInfos; - bool m_saveLocalMetadata; - bool m_enableInternetProviders; - bool m_enableAutomaticSeriesGrouping; - bool m_enableEmbeddedTitles; - bool m_enableEmbeddedEpisodeInfos; - qint32 m_automaticRefreshIntervalDays; - QString m_preferredMetadataLanguage; - QString m_metadataCountryCode; - QString m_seasonZeroDisplayName; - QStringList m_metadataSavers; - QStringList m_disabledLocalMetadataReaders; - QStringList m_localMetadataReaderOrder; - QStringList m_disabledSubtitleFetchers; - QStringList m_subtitleFetcherOrder; - bool m_skipSubtitlesIfEmbeddedSubtitlesPresent; - bool m_skipSubtitlesIfAudioTrackMatches; - QStringList m_subtitleDownloadLanguages; - bool m_requirePerfectSubtitleMatch; - bool m_saveSubtitlesWithMedia; - QList> m_typeOptions; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_LIBRARYOPTIONS_H diff --git a/core/include/JellyfinQt/DTO/libraryoptionsresultdto.h b/core/include/JellyfinQt/DTO/libraryoptionsresultdto.h deleted file mode 100644 index bd23df0..0000000 --- a/core/include/JellyfinQt/DTO/libraryoptionsresultdto.h +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_LIBRARYOPTIONSRESULTDTO_H -#define JELLYFIN_DTO_LIBRARYOPTIONSRESULTDTO_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/libraryoptioninfodto.h" -#include "JellyfinQt/DTO/librarytypeoptionsdto.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class LibraryOptionsResultDto { -public:LibraryOptionsResultDto();LibraryOptionsResultDto(const LibraryOptionsResultDto &other); - - static LibraryOptionsResultDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the metadata savers. - */ - QList> metadataSavers() const; - /** - * @brief Gets or sets the metadata savers. - */ - void setMetadataSavers(QList> newMetadataSavers); - /** - * @brief Gets or sets the metadata readers. - */ - QList> metadataReaders() const; - /** - * @brief Gets or sets the metadata readers. - */ - void setMetadataReaders(QList> newMetadataReaders); - /** - * @brief Gets or sets the subtitle fetchers. - */ - QList> subtitleFetchers() const; - /** - * @brief Gets or sets the subtitle fetchers. - */ - void setSubtitleFetchers(QList> newSubtitleFetchers); - /** - * @brief Gets or sets the type options. - */ - QList> typeOptions() const; - /** - * @brief Gets or sets the type options. - */ - void setTypeOptions(QList> newTypeOptions); - -protected: - QList> m_metadataSavers; - QList> m_metadataReaders; - QList> m_subtitleFetchers; - QList> m_typeOptions; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_LIBRARYOPTIONSRESULTDTO_H diff --git a/core/include/JellyfinQt/DTO/librarytypeoptionsdto.h b/core/include/JellyfinQt/DTO/librarytypeoptionsdto.h deleted file mode 100644 index 5fe6bae..0000000 --- a/core/include/JellyfinQt/DTO/librarytypeoptionsdto.h +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_LIBRARYTYPEOPTIONSDTO_H -#define JELLYFIN_DTO_LIBRARYTYPEOPTIONSDTO_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/imageoption.h" -#include "JellyfinQt/DTO/imagetype.h" -#include "JellyfinQt/DTO/libraryoptioninfodto.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class LibraryTypeOptionsDto { -public:LibraryTypeOptionsDto();LibraryTypeOptionsDto(const LibraryTypeOptionsDto &other); - - static LibraryTypeOptionsDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the type. - */ - QString type() const; - /** - * @brief Gets or sets the type. - */ - void setType(QString newType); - /** - * @brief Gets or sets the metadata fetchers. - */ - QList> metadataFetchers() const; - /** - * @brief Gets or sets the metadata fetchers. - */ - void setMetadataFetchers(QList> newMetadataFetchers); - /** - * @brief Gets or sets the image fetchers. - */ - QList> imageFetchers() const; - /** - * @brief Gets or sets the image fetchers. - */ - void setImageFetchers(QList> newImageFetchers); - /** - * @brief Gets or sets the supported image types. - */ - QList supportedImageTypes() const; - /** - * @brief Gets or sets the supported image types. - */ - void setSupportedImageTypes(QList newSupportedImageTypes); - /** - * @brief Gets or sets the default image options. - */ - QList> defaultImageOptions() const; - /** - * @brief Gets or sets the default image options. - */ - void setDefaultImageOptions(QList> newDefaultImageOptions); - -protected: - QString m_type; - QList> m_metadataFetchers; - QList> m_imageFetchers; - QList m_supportedImageTypes; - QList> m_defaultImageOptions; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_LIBRARYTYPEOPTIONSDTO_H diff --git a/core/include/JellyfinQt/DTO/libraryupdateinfo.h b/core/include/JellyfinQt/DTO/libraryupdateinfo.h deleted file mode 100644 index 4a5c221..0000000 --- a/core/include/JellyfinQt/DTO/libraryupdateinfo.h +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_LIBRARYUPDATEINFO_H -#define JELLYFIN_DTO_LIBRARYUPDATEINFO_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class LibraryUpdateInfo { -public:LibraryUpdateInfo();LibraryUpdateInfo(const LibraryUpdateInfo &other); - - static LibraryUpdateInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the folders added to. - */ - QStringList foldersAddedTo() const; - /** - * @brief Gets or sets the folders added to. - */ - void setFoldersAddedTo(QStringList newFoldersAddedTo); - /** - * @brief Gets or sets the folders removed from. - */ - QStringList foldersRemovedFrom() const; - /** - * @brief Gets or sets the folders removed from. - */ - void setFoldersRemovedFrom(QStringList newFoldersRemovedFrom); - /** - * @brief Gets or sets the items added. - */ - QStringList itemsAdded() const; - /** - * @brief Gets or sets the items added. - */ - void setItemsAdded(QStringList newItemsAdded); - /** - * @brief Gets or sets the items removed. - */ - QStringList itemsRemoved() const; - /** - * @brief Gets or sets the items removed. - */ - void setItemsRemoved(QStringList newItemsRemoved); - /** - * @brief Gets or sets the items updated. - */ - QStringList itemsUpdated() const; - /** - * @brief Gets or sets the items updated. - */ - void setItemsUpdated(QStringList newItemsUpdated); - - QStringList collectionFolders() const; - - void setCollectionFolders(QStringList newCollectionFolders); - - bool isEmpty() const; - - void setIsEmpty(bool newIsEmpty); - -protected: - QStringList m_foldersAddedTo; - QStringList m_foldersRemovedFrom; - QStringList m_itemsAdded; - QStringList m_itemsRemoved; - QStringList m_itemsUpdated; - QStringList m_collectionFolders; - bool m_isEmpty; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_LIBRARYUPDATEINFO_H diff --git a/core/include/JellyfinQt/DTO/listingsproviderinfo.h b/core/include/JellyfinQt/DTO/listingsproviderinfo.h deleted file mode 100644 index e867f98..0000000 --- a/core/include/JellyfinQt/DTO/listingsproviderinfo.h +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_LISTINGSPROVIDERINFO_H -#define JELLYFIN_DTO_LISTINGSPROVIDERINFO_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/namevaluepair.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ListingsProviderInfo { -public:ListingsProviderInfo();ListingsProviderInfo(const ListingsProviderInfo &other); - - static ListingsProviderInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QString jellyfinId() const; - - void setJellyfinId(QString newJellyfinId); - - QString type() const; - - void setType(QString newType); - - QString username() const; - - void setUsername(QString newUsername); - - QString password() const; - - void setPassword(QString newPassword); - - QString listingsId() const; - - void setListingsId(QString newListingsId); - - QString zipCode() const; - - void setZipCode(QString newZipCode); - - QString country() const; - - void setCountry(QString newCountry); - - QString path() const; - - void setPath(QString newPath); - - QStringList enabledTuners() const; - - void setEnabledTuners(QStringList newEnabledTuners); - - bool enableAllTuners() const; - - void setEnableAllTuners(bool newEnableAllTuners); - - QStringList newsCategories() const; - - void setNewsCategories(QStringList newNewsCategories); - - QStringList sportsCategories() const; - - void setSportsCategories(QStringList newSportsCategories); - - QStringList kidsCategories() const; - - void setKidsCategories(QStringList newKidsCategories); - - QStringList movieCategories() const; - - void setMovieCategories(QStringList newMovieCategories); - - QList> channelMappings() const; - - void setChannelMappings(QList> newChannelMappings); - - QString moviePrefix() const; - - void setMoviePrefix(QString newMoviePrefix); - - QString preferredLanguage() const; - - void setPreferredLanguage(QString newPreferredLanguage); - - QString userAgent() const; - - void setUserAgent(QString newUserAgent); - -protected: - QString m_jellyfinId; - QString m_type; - QString m_username; - QString m_password; - QString m_listingsId; - QString m_zipCode; - QString m_country; - QString m_path; - QStringList m_enabledTuners; - bool m_enableAllTuners; - QStringList m_newsCategories; - QStringList m_sportsCategories; - QStringList m_kidsCategories; - QStringList m_movieCategories; - QList> m_channelMappings; - QString m_moviePrefix; - QString m_preferredLanguage; - QString m_userAgent; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_LISTINGSPROVIDERINFO_H diff --git a/core/include/JellyfinQt/DTO/livestreamresponse.h b/core/include/JellyfinQt/DTO/livestreamresponse.h deleted file mode 100644 index e69bbdf..0000000 --- a/core/include/JellyfinQt/DTO/livestreamresponse.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_LIVESTREAMRESPONSE_H -#define JELLYFIN_DTO_LIVESTREAMRESPONSE_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/mediasourceinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class LiveStreamResponse { -public:LiveStreamResponse();LiveStreamResponse(const LiveStreamResponse &other); - - static LiveStreamResponse fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QSharedPointer mediaSource() const; - - void setMediaSource(QSharedPointer newMediaSource); - -protected: - QSharedPointer m_mediaSource = nullptr; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_LIVESTREAMRESPONSE_H diff --git a/core/include/JellyfinQt/DTO/livetvinfo.h b/core/include/JellyfinQt/DTO/livetvinfo.h deleted file mode 100644 index 41d3b96..0000000 --- a/core/include/JellyfinQt/DTO/livetvinfo.h +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_LIVETVINFO_H -#define JELLYFIN_DTO_LIVETVINFO_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/livetvserviceinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class LiveTvInfo { -public:LiveTvInfo();LiveTvInfo(const LiveTvInfo &other); - - static LiveTvInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the services. - */ - QList> services() const; - /** - * @brief Gets or sets the services. - */ - void setServices(QList> newServices); - /** - * @brief Gets or sets a value indicating whether this instance is enabled. - */ - bool isEnabled() const; - /** - * @brief Gets or sets a value indicating whether this instance is enabled. - */ - void setIsEnabled(bool newIsEnabled); - /** - * @brief Gets or sets the enabled users. - */ - QStringList enabledUsers() const; - /** - * @brief Gets or sets the enabled users. - */ - void setEnabledUsers(QStringList newEnabledUsers); - -protected: - QList> m_services; - bool m_isEnabled; - QStringList m_enabledUsers; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_LIVETVINFO_H diff --git a/core/include/JellyfinQt/DTO/livetvserviceinfo.h b/core/include/JellyfinQt/DTO/livetvserviceinfo.h deleted file mode 100644 index 9d43871..0000000 --- a/core/include/JellyfinQt/DTO/livetvserviceinfo.h +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_LIVETVSERVICEINFO_H -#define JELLYFIN_DTO_LIVETVSERVICEINFO_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/livetvservicestatus.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class LiveTvServiceInfo { -public:LiveTvServiceInfo();LiveTvServiceInfo(const LiveTvServiceInfo &other); - - static LiveTvServiceInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the home page URL. - */ - QString homePageUrl() const; - /** - * @brief Gets or sets the home page URL. - */ - void setHomePageUrl(QString newHomePageUrl); - - LiveTvServiceStatus status() const; - - void setStatus(LiveTvServiceStatus newStatus); - /** - * @brief Gets or sets the status message. - */ - QString statusMessage() const; - /** - * @brief Gets or sets the status message. - */ - void setStatusMessage(QString newStatusMessage); - /** - * @brief Gets or sets the version. - */ - QString version() const; - /** - * @brief Gets or sets the version. - */ - void setVersion(QString newVersion); - /** - * @brief Gets or sets a value indicating whether this instance has update available. - */ - bool hasUpdateAvailable() const; - /** - * @brief Gets or sets a value indicating whether this instance has update available. - */ - void setHasUpdateAvailable(bool newHasUpdateAvailable); - /** - * @brief Gets or sets a value indicating whether this instance is visible. - */ - bool isVisible() const; - /** - * @brief Gets or sets a value indicating whether this instance is visible. - */ - void setIsVisible(bool newIsVisible); - - QStringList tuners() const; - - void setTuners(QStringList newTuners); - -protected: - QString m_name; - QString m_homePageUrl; - LiveTvServiceStatus m_status; - QString m_statusMessage; - QString m_version; - bool m_hasUpdateAvailable; - bool m_isVisible; - QStringList m_tuners; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_LIVETVSERVICEINFO_H diff --git a/core/include/JellyfinQt/DTO/livetvservicestatus.h b/core/include/JellyfinQt/DTO/livetvservicestatus.h deleted file mode 100644 index cd95293..0000000 --- a/core/include/JellyfinQt/DTO/livetvservicestatus.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_LIVETVSERVICESTATUS_H -#define JELLYFIN_DTO_LIVETVSERVICESTATUS_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class LiveTvServiceStatusClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Ok, - Unavailable, - }; - Q_ENUM(Value) -private: - explicit LiveTvServiceStatusClass(); -}; - -typedef LiveTvServiceStatusClass::Value LiveTvServiceStatus; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_LIVETVSERVICESTATUS_H diff --git a/core/include/JellyfinQt/DTO/locationtype.h b/core/include/JellyfinQt/DTO/locationtype.h deleted file mode 100644 index 27fd9ca..0000000 --- a/core/include/JellyfinQt/DTO/locationtype.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_LOCATIONTYPE_H -#define JELLYFIN_DTO_LOCATIONTYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class LocationTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - FileSystem, - Remote, - Virtual, - Offline, - }; - Q_ENUM(Value) -private: - explicit LocationTypeClass(); -}; - -typedef LocationTypeClass::Value LocationType; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_LOCATIONTYPE_H diff --git a/core/include/JellyfinQt/DTO/logfile.h b/core/include/JellyfinQt/DTO/logfile.h deleted file mode 100644 index 4b0ce0b..0000000 --- a/core/include/JellyfinQt/DTO/logfile.h +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_LOGFILE_H -#define JELLYFIN_DTO_LOGFILE_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class LogFile { -public:LogFile();LogFile(const LogFile &other); - - static LogFile fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the date created. - */ - QDateTime dateCreated() const; - /** - * @brief Gets or sets the date created. - */ - void setDateCreated(QDateTime newDateCreated); - /** - * @brief Gets or sets the date modified. - */ - QDateTime dateModified() const; - /** - * @brief Gets or sets the date modified. - */ - void setDateModified(QDateTime newDateModified); - /** - * @brief Gets or sets the size. - */ - qint64 size() const; - /** - * @brief Gets or sets the size. - */ - void setSize(qint64 newSize); - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - -protected: - QDateTime m_dateCreated; - QDateTime m_dateModified; - qint64 m_size; - QString m_name; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_LOGFILE_H diff --git a/core/include/JellyfinQt/DTO/loglevel.h b/core/include/JellyfinQt/DTO/loglevel.h deleted file mode 100644 index 0663164..0000000 --- a/core/include/JellyfinQt/DTO/loglevel.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_LOGLEVEL_H -#define JELLYFIN_DTO_LOGLEVEL_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class LogLevelClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Trace, - Debug, - Information, - Warning, - Error, - Critical, - None, - }; - Q_ENUM(Value) -private: - explicit LogLevelClass(); -}; - -typedef LogLevelClass::Value LogLevel; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_LOGLEVEL_H diff --git a/core/include/JellyfinQt/DTO/mediaattachment.h b/core/include/JellyfinQt/DTO/mediaattachment.h deleted file mode 100644 index ef17ab3..0000000 --- a/core/include/JellyfinQt/DTO/mediaattachment.h +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_MEDIAATTACHMENT_H -#define JELLYFIN_DTO_MEDIAATTACHMENT_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class MediaAttachment { -public:MediaAttachment();MediaAttachment(const MediaAttachment &other); - - static MediaAttachment fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the codec. - */ - QString codec() const; - /** - * @brief Gets or sets the codec. - */ - void setCodec(QString newCodec); - /** - * @brief Gets or sets the codec tag. - */ - QString codecTag() const; - /** - * @brief Gets or sets the codec tag. - */ - void setCodecTag(QString newCodecTag); - /** - * @brief Gets or sets the comment. - */ - QString comment() const; - /** - * @brief Gets or sets the comment. - */ - void setComment(QString newComment); - /** - * @brief Gets or sets the index. - */ - qint32 index() const; - /** - * @brief Gets or sets the index. - */ - void setIndex(qint32 newIndex); - /** - * @brief Gets or sets the filename. - */ - QString fileName() const; - /** - * @brief Gets or sets the filename. - */ - void setFileName(QString newFileName); - /** - * @brief Gets or sets the MIME type. - */ - QString mimeType() const; - /** - * @brief Gets or sets the MIME type. - */ - void setMimeType(QString newMimeType); - /** - * @brief Gets or sets the delivery URL. - */ - QString deliveryUrl() const; - /** - * @brief Gets or sets the delivery URL. - */ - void setDeliveryUrl(QString newDeliveryUrl); - -protected: - QString m_codec; - QString m_codecTag; - QString m_comment; - qint32 m_index; - QString m_fileName; - QString m_mimeType; - QString m_deliveryUrl; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_MEDIAATTACHMENT_H diff --git a/core/include/JellyfinQt/DTO/mediaencoderpathdto.h b/core/include/JellyfinQt/DTO/mediaencoderpathdto.h deleted file mode 100644 index abfdb89..0000000 --- a/core/include/JellyfinQt/DTO/mediaencoderpathdto.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_MEDIAENCODERPATHDTO_H -#define JELLYFIN_DTO_MEDIAENCODERPATHDTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class MediaEncoderPathDto { -public:MediaEncoderPathDto();MediaEncoderPathDto(const MediaEncoderPathDto &other); - - static MediaEncoderPathDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets media encoder path. - */ - QString path() const; - /** - * @brief Gets or sets media encoder path. - */ - void setPath(QString newPath); - /** - * @brief Gets or sets media encoder path type. - */ - QString pathType() const; - /** - * @brief Gets or sets media encoder path type. - */ - void setPathType(QString newPathType); - -protected: - QString m_path; - QString m_pathType; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_MEDIAENCODERPATHDTO_H diff --git a/core/include/JellyfinQt/DTO/mediapathdto.h b/core/include/JellyfinQt/DTO/mediapathdto.h deleted file mode 100644 index 8f599f7..0000000 --- a/core/include/JellyfinQt/DTO/mediapathdto.h +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_MEDIAPATHDTO_H -#define JELLYFIN_DTO_MEDIAPATHDTO_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/mediapathinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class MediaPathDto { -public:MediaPathDto();MediaPathDto(const MediaPathDto &other); - - static MediaPathDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name of the library. - */ - QString name() const; - /** - * @brief Gets or sets the name of the library. - */ - void setName(QString newName); - /** - * @brief Gets or sets the path to add. - */ - QString path() const; - /** - * @brief Gets or sets the path to add. - */ - void setPath(QString newPath); - - QSharedPointer pathInfo() const; - - void setPathInfo(QSharedPointer newPathInfo); - -protected: - QString m_name; - QString m_path; - QSharedPointer m_pathInfo = nullptr; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_MEDIAPATHDTO_H diff --git a/core/include/JellyfinQt/DTO/mediaprotocol.h b/core/include/JellyfinQt/DTO/mediaprotocol.h deleted file mode 100644 index ff8e164..0000000 --- a/core/include/JellyfinQt/DTO/mediaprotocol.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_MEDIAPROTOCOL_H -#define JELLYFIN_DTO_MEDIAPROTOCOL_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class MediaProtocolClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - File, - Http, - Rtmp, - Rtsp, - Udp, - Rtp, - Ftp, - }; - Q_ENUM(Value) -private: - explicit MediaProtocolClass(); -}; - -typedef MediaProtocolClass::Value MediaProtocol; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_MEDIAPROTOCOL_H diff --git a/core/include/JellyfinQt/DTO/mediasourceinfo.h b/core/include/JellyfinQt/DTO/mediasourceinfo.h deleted file mode 100644 index a0d0730..0000000 --- a/core/include/JellyfinQt/DTO/mediasourceinfo.h +++ /dev/null @@ -1,284 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_MEDIASOURCEINFO_H -#define JELLYFIN_DTO_MEDIASOURCEINFO_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/isotype.h" -#include "JellyfinQt/DTO/mediaattachment.h" -#include "JellyfinQt/DTO/mediaprotocol.h" -#include "JellyfinQt/DTO/mediasourcetype.h" -#include "JellyfinQt/DTO/mediastream.h" -#include "JellyfinQt/DTO/transportstreamtimestamp.h" -#include "JellyfinQt/DTO/video3dformat.h" -#include "JellyfinQt/DTO/videotype.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class MediaSourceInfo { -public:MediaSourceInfo();MediaSourceInfo(const MediaSourceInfo &other); - - static MediaSourceInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - MediaProtocol protocol() const; - - void setProtocol(MediaProtocol newProtocol); - - QString jellyfinId() const; - - void setJellyfinId(QString newJellyfinId); - - QString path() const; - - void setPath(QString newPath); - - QString encoderPath() const; - - void setEncoderPath(QString newEncoderPath); - - MediaProtocol encoderProtocol() const; - - void setEncoderProtocol(MediaProtocol newEncoderProtocol); - - MediaSourceType type() const; - - void setType(MediaSourceType newType); - - QString container() const; - - void setContainer(QString newContainer); - - qint64 size() const; - - void setSize(qint64 newSize); - - QString name() const; - - void setName(QString newName); - /** - * @brief Differentiate internet url vs local network. - */ - bool isRemote() const; - /** - * @brief Differentiate internet url vs local network. - */ - void setIsRemote(bool newIsRemote); - - QString eTag() const; - - void setETag(QString newETag); - - qint64 runTimeTicks() const; - - void setRunTimeTicks(qint64 newRunTimeTicks); - - bool readAtNativeFramerate() const; - - void setReadAtNativeFramerate(bool newReadAtNativeFramerate); - - bool ignoreDts() const; - - void setIgnoreDts(bool newIgnoreDts); - - bool ignoreIndex() const; - - void setIgnoreIndex(bool newIgnoreIndex); - - bool genPtsInput() const; - - void setGenPtsInput(bool newGenPtsInput); - - bool supportsTranscoding() const; - - void setSupportsTranscoding(bool newSupportsTranscoding); - - bool supportsDirectStream() const; - - void setSupportsDirectStream(bool newSupportsDirectStream); - - bool supportsDirectPlay() const; - - void setSupportsDirectPlay(bool newSupportsDirectPlay); - - bool isInfiniteStream() const; - - void setIsInfiniteStream(bool newIsInfiniteStream); - - bool requiresOpening() const; - - void setRequiresOpening(bool newRequiresOpening); - - QString openToken() const; - - void setOpenToken(QString newOpenToken); - - bool requiresClosing() const; - - void setRequiresClosing(bool newRequiresClosing); - - QString liveStreamId() const; - - void setLiveStreamId(QString newLiveStreamId); - - qint32 bufferMs() const; - - void setBufferMs(qint32 newBufferMs); - - bool requiresLooping() const; - - void setRequiresLooping(bool newRequiresLooping); - - bool supportsProbing() const; - - void setSupportsProbing(bool newSupportsProbing); - - VideoType videoType() const; - - void setVideoType(VideoType newVideoType); - - IsoType isoType() const; - - void setIsoType(IsoType newIsoType); - - Video3DFormat video3DFormat() const; - - void setVideo3DFormat(Video3DFormat newVideo3DFormat); - - QList> mediaStreams() const; - - void setMediaStreams(QList> newMediaStreams); - - QList> mediaAttachments() const; - - void setMediaAttachments(QList> newMediaAttachments); - - QStringList formats() const; - - void setFormats(QStringList newFormats); - - qint32 bitrate() const; - - void setBitrate(qint32 newBitrate); - - TransportStreamTimestamp timestamp() const; - - void setTimestamp(TransportStreamTimestamp newTimestamp); - - QJsonObject requiredHttpHeaders() const; - - void setRequiredHttpHeaders(QJsonObject newRequiredHttpHeaders); - - QString transcodingUrl() const; - - void setTranscodingUrl(QString newTranscodingUrl); - - QString transcodingSubProtocol() const; - - void setTranscodingSubProtocol(QString newTranscodingSubProtocol); - - QString transcodingContainer() const; - - void setTranscodingContainer(QString newTranscodingContainer); - - qint32 analyzeDurationMs() const; - - void setAnalyzeDurationMs(qint32 newAnalyzeDurationMs); - - qint32 defaultAudioStreamIndex() const; - - void setDefaultAudioStreamIndex(qint32 newDefaultAudioStreamIndex); - - qint32 defaultSubtitleStreamIndex() const; - - void setDefaultSubtitleStreamIndex(qint32 newDefaultSubtitleStreamIndex); - -protected: - MediaProtocol m_protocol; - QString m_jellyfinId; - QString m_path; - QString m_encoderPath; - MediaProtocol m_encoderProtocol; - MediaSourceType m_type; - QString m_container; - qint64 m_size; - QString m_name; - bool m_isRemote; - QString m_eTag; - qint64 m_runTimeTicks; - bool m_readAtNativeFramerate; - bool m_ignoreDts; - bool m_ignoreIndex; - bool m_genPtsInput; - bool m_supportsTranscoding; - bool m_supportsDirectStream; - bool m_supportsDirectPlay; - bool m_isInfiniteStream; - bool m_requiresOpening; - QString m_openToken; - bool m_requiresClosing; - QString m_liveStreamId; - qint32 m_bufferMs; - bool m_requiresLooping; - bool m_supportsProbing; - VideoType m_videoType; - IsoType m_isoType; - Video3DFormat m_video3DFormat; - QList> m_mediaStreams; - QList> m_mediaAttachments; - QStringList m_formats; - qint32 m_bitrate; - TransportStreamTimestamp m_timestamp; - QJsonObject m_requiredHttpHeaders; - QString m_transcodingUrl; - QString m_transcodingSubProtocol; - QString m_transcodingContainer; - qint32 m_analyzeDurationMs; - qint32 m_defaultAudioStreamIndex; - qint32 m_defaultSubtitleStreamIndex; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_MEDIASOURCEINFO_H diff --git a/core/include/JellyfinQt/DTO/mediasourcetype.h b/core/include/JellyfinQt/DTO/mediasourcetype.h deleted file mode 100644 index 1ed5fe2..0000000 --- a/core/include/JellyfinQt/DTO/mediasourcetype.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_MEDIASOURCETYPE_H -#define JELLYFIN_DTO_MEDIASOURCETYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class MediaSourceTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Default, - Grouping, - Placeholder, - }; - Q_ENUM(Value) -private: - explicit MediaSourceTypeClass(); -}; - -typedef MediaSourceTypeClass::Value MediaSourceType; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_MEDIASOURCETYPE_H diff --git a/core/include/JellyfinQt/DTO/mediastream.h b/core/include/JellyfinQt/DTO/mediastream.h deleted file mode 100644 index 38f5bfc..0000000 --- a/core/include/JellyfinQt/DTO/mediastream.h +++ /dev/null @@ -1,448 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_MEDIASTREAM_H -#define JELLYFIN_DTO_MEDIASTREAM_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/mediastreamtype.h" -#include "JellyfinQt/DTO/subtitledeliverymethod.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class MediaStream { -public:MediaStream();MediaStream(const MediaStream &other); - - static MediaStream fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the codec. - */ - QString codec() const; - /** - * @brief Gets or sets the codec. - */ - void setCodec(QString newCodec); - /** - * @brief Gets or sets the codec tag. - */ - QString codecTag() const; - /** - * @brief Gets or sets the codec tag. - */ - void setCodecTag(QString newCodecTag); - /** - * @brief Gets or sets the language. - */ - QString language() const; - /** - * @brief Gets or sets the language. - */ - void setLanguage(QString newLanguage); - /** - * @brief Gets or sets the color range. - */ - QString colorRange() const; - /** - * @brief Gets or sets the color range. - */ - void setColorRange(QString newColorRange); - /** - * @brief Gets or sets the color space. - */ - QString colorSpace() const; - /** - * @brief Gets or sets the color space. - */ - void setColorSpace(QString newColorSpace); - /** - * @brief Gets or sets the color transfer. - */ - QString colorTransfer() const; - /** - * @brief Gets or sets the color transfer. - */ - void setColorTransfer(QString newColorTransfer); - /** - * @brief Gets or sets the color primaries. - */ - QString colorPrimaries() const; - /** - * @brief Gets or sets the color primaries. - */ - void setColorPrimaries(QString newColorPrimaries); - /** - * @brief Gets or sets the comment. - */ - QString comment() const; - /** - * @brief Gets or sets the comment. - */ - void setComment(QString newComment); - /** - * @brief Gets or sets the time base. - */ - QString timeBase() const; - /** - * @brief Gets or sets the time base. - */ - void setTimeBase(QString newTimeBase); - /** - * @brief Gets or sets the codec time base. - */ - QString codecTimeBase() const; - /** - * @brief Gets or sets the codec time base. - */ - void setCodecTimeBase(QString newCodecTimeBase); - /** - * @brief Gets or sets the title. - */ - QString title() const; - /** - * @brief Gets or sets the title. - */ - void setTitle(QString newTitle); - /** - * @brief Gets or sets the video range. - */ - QString videoRange() const; - /** - * @brief Gets or sets the video range. - */ - void setVideoRange(QString newVideoRange); - - QString localizedUndefined() const; - - void setLocalizedUndefined(QString newLocalizedUndefined); - - QString localizedDefault() const; - - void setLocalizedDefault(QString newLocalizedDefault); - - QString localizedForced() const; - - void setLocalizedForced(QString newLocalizedForced); - - QString displayTitle() const; - - void setDisplayTitle(QString newDisplayTitle); - - QString nalLengthSize() const; - - void setNalLengthSize(QString newNalLengthSize); - /** - * @brief Gets or sets a value indicating whether this instance is interlaced. - */ - bool isInterlaced() const; - /** - * @brief Gets or sets a value indicating whether this instance is interlaced. - */ - void setIsInterlaced(bool newIsInterlaced); - - bool isAVC() const; - - void setIsAVC(bool newIsAVC); - /** - * @brief Gets or sets the channel layout. - */ - QString channelLayout() const; - /** - * @brief Gets or sets the channel layout. - */ - void setChannelLayout(QString newChannelLayout); - /** - * @brief Gets or sets the bit rate. - */ - qint32 bitRate() const; - /** - * @brief Gets or sets the bit rate. - */ - void setBitRate(qint32 newBitRate); - /** - * @brief Gets or sets the bit depth. - */ - qint32 bitDepth() const; - /** - * @brief Gets or sets the bit depth. - */ - void setBitDepth(qint32 newBitDepth); - /** - * @brief Gets or sets the reference frames. - */ - qint32 refFrames() const; - /** - * @brief Gets or sets the reference frames. - */ - void setRefFrames(qint32 newRefFrames); - /** - * @brief Gets or sets the length of the packet. - */ - qint32 packetLength() const; - /** - * @brief Gets or sets the length of the packet. - */ - void setPacketLength(qint32 newPacketLength); - /** - * @brief Gets or sets the channels. - */ - qint32 channels() const; - /** - * @brief Gets or sets the channels. - */ - void setChannels(qint32 newChannels); - /** - * @brief Gets or sets the sample rate. - */ - qint32 sampleRate() const; - /** - * @brief Gets or sets the sample rate. - */ - void setSampleRate(qint32 newSampleRate); - /** - * @brief Gets or sets a value indicating whether this instance is default. - */ - bool isDefault() const; - /** - * @brief Gets or sets a value indicating whether this instance is default. - */ - void setIsDefault(bool newIsDefault); - /** - * @brief Gets or sets a value indicating whether this instance is forced. - */ - bool isForced() const; - /** - * @brief Gets or sets a value indicating whether this instance is forced. - */ - void setIsForced(bool newIsForced); - /** - * @brief Gets or sets the height. - */ - qint32 height() const; - /** - * @brief Gets or sets the height. - */ - void setHeight(qint32 newHeight); - /** - * @brief Gets or sets the width. - */ - qint32 width() const; - /** - * @brief Gets or sets the width. - */ - void setWidth(qint32 newWidth); - /** - * @brief Gets or sets the average frame rate. - */ - float averageFrameRate() const; - /** - * @brief Gets or sets the average frame rate. - */ - void setAverageFrameRate(float newAverageFrameRate); - /** - * @brief Gets or sets the real frame rate. - */ - float realFrameRate() const; - /** - * @brief Gets or sets the real frame rate. - */ - void setRealFrameRate(float newRealFrameRate); - /** - * @brief Gets or sets the profile. - */ - QString profile() const; - /** - * @brief Gets or sets the profile. - */ - void setProfile(QString newProfile); - - MediaStreamType type() const; - - void setType(MediaStreamType newType); - /** - * @brief Gets or sets the aspect ratio. - */ - QString aspectRatio() const; - /** - * @brief Gets or sets the aspect ratio. - */ - void setAspectRatio(QString newAspectRatio); - /** - * @brief Gets or sets the index. - */ - qint32 index() const; - /** - * @brief Gets or sets the index. - */ - void setIndex(qint32 newIndex); - /** - * @brief Gets or sets the score. - */ - qint32 score() const; - /** - * @brief Gets or sets the score. - */ - void setScore(qint32 newScore); - /** - * @brief Gets or sets a value indicating whether this instance is external. - */ - bool isExternal() const; - /** - * @brief Gets or sets a value indicating whether this instance is external. - */ - void setIsExternal(bool newIsExternal); - - SubtitleDeliveryMethod deliveryMethod() const; - - void setDeliveryMethod(SubtitleDeliveryMethod newDeliveryMethod); - /** - * @brief Gets or sets the delivery URL. - */ - QString deliveryUrl() const; - /** - * @brief Gets or sets the delivery URL. - */ - void setDeliveryUrl(QString newDeliveryUrl); - /** - * @brief Gets or sets a value indicating whether this instance is external URL. - */ - bool isExternalUrl() const; - /** - * @brief Gets or sets a value indicating whether this instance is external URL. - */ - void setIsExternalUrl(bool newIsExternalUrl); - - bool isTextSubtitleStream() const; - - void setIsTextSubtitleStream(bool newIsTextSubtitleStream); - /** - * @brief Gets or sets a value indicating whether [supports external stream]. - */ - bool supportsExternalStream() const; - /** - * @brief Gets or sets a value indicating whether [supports external stream]. - */ - void setSupportsExternalStream(bool newSupportsExternalStream); - /** - * @brief Gets or sets the filename. - */ - QString path() const; - /** - * @brief Gets or sets the filename. - */ - void setPath(QString newPath); - /** - * @brief Gets or sets the pixel format. - */ - QString pixelFormat() const; - /** - * @brief Gets or sets the pixel format. - */ - void setPixelFormat(QString newPixelFormat); - /** - * @brief Gets or sets the level. - */ - double level() const; - /** - * @brief Gets or sets the level. - */ - void setLevel(double newLevel); - /** - * @brief Gets a value indicating whether this instance is anamorphic. - */ - bool isAnamorphic() const; - /** - * @brief Gets a value indicating whether this instance is anamorphic. - */ - void setIsAnamorphic(bool newIsAnamorphic); - -protected: - QString m_codec; - QString m_codecTag; - QString m_language; - QString m_colorRange; - QString m_colorSpace; - QString m_colorTransfer; - QString m_colorPrimaries; - QString m_comment; - QString m_timeBase; - QString m_codecTimeBase; - QString m_title; - QString m_videoRange; - QString m_localizedUndefined; - QString m_localizedDefault; - QString m_localizedForced; - QString m_displayTitle; - QString m_nalLengthSize; - bool m_isInterlaced; - bool m_isAVC; - QString m_channelLayout; - qint32 m_bitRate; - qint32 m_bitDepth; - qint32 m_refFrames; - qint32 m_packetLength; - qint32 m_channels; - qint32 m_sampleRate; - bool m_isDefault; - bool m_isForced; - qint32 m_height; - qint32 m_width; - float m_averageFrameRate; - float m_realFrameRate; - QString m_profile; - MediaStreamType m_type; - QString m_aspectRatio; - qint32 m_index; - qint32 m_score; - bool m_isExternal; - SubtitleDeliveryMethod m_deliveryMethod; - QString m_deliveryUrl; - bool m_isExternalUrl; - bool m_isTextSubtitleStream; - bool m_supportsExternalStream; - QString m_path; - QString m_pixelFormat; - double m_level; - bool m_isAnamorphic; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_MEDIASTREAM_H diff --git a/core/include/JellyfinQt/DTO/mediastreamtype.h b/core/include/JellyfinQt/DTO/mediastreamtype.h deleted file mode 100644 index 9607bda..0000000 --- a/core/include/JellyfinQt/DTO/mediastreamtype.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_MEDIASTREAMTYPE_H -#define JELLYFIN_DTO_MEDIASTREAMTYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class MediaStreamTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Audio, - Video, - Subtitle, - EmbeddedImage, - }; - Q_ENUM(Value) -private: - explicit MediaStreamTypeClass(); -}; - -typedef MediaStreamTypeClass::Value MediaStreamType; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_MEDIASTREAMTYPE_H diff --git a/core/include/JellyfinQt/DTO/metadataeditorinfo.h b/core/include/JellyfinQt/DTO/metadataeditorinfo.h deleted file mode 100644 index cdd2323..0000000 --- a/core/include/JellyfinQt/DTO/metadataeditorinfo.h +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_METADATAEDITORINFO_H -#define JELLYFIN_DTO_METADATAEDITORINFO_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/countryinfo.h" -#include "JellyfinQt/DTO/culturedto.h" -#include "JellyfinQt/DTO/externalidinfo.h" -#include "JellyfinQt/DTO/namevaluepair.h" -#include "JellyfinQt/DTO/parentalrating.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class MetadataEditorInfo { -public:MetadataEditorInfo();MetadataEditorInfo(const MetadataEditorInfo &other); - - static MetadataEditorInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QList> parentalRatingOptions() const; - - void setParentalRatingOptions(QList> newParentalRatingOptions); - - QList> countries() const; - - void setCountries(QList> newCountries); - - QList> cultures() const; - - void setCultures(QList> newCultures); - - QList> externalIdInfos() const; - - void setExternalIdInfos(QList> newExternalIdInfos); - - QString contentType() const; - - void setContentType(QString newContentType); - - QList> contentTypeOptions() const; - - void setContentTypeOptions(QList> newContentTypeOptions); - -protected: - QList> m_parentalRatingOptions; - QList> m_countries; - QList> m_cultures; - QList> m_externalIdInfos; - QString m_contentType; - QList> m_contentTypeOptions; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_METADATAEDITORINFO_H diff --git a/core/include/JellyfinQt/DTO/metadatafield.h b/core/include/JellyfinQt/DTO/metadatafield.h deleted file mode 100644 index ddab32c..0000000 --- a/core/include/JellyfinQt/DTO/metadatafield.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_METADATAFIELD_H -#define JELLYFIN_DTO_METADATAFIELD_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class MetadataFieldClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Cast, - Genres, - ProductionLocations, - Studios, - Tags, - Name, - Overview, - Runtime, - OfficialRating, - }; - Q_ENUM(Value) -private: - explicit MetadataFieldClass(); -}; - -typedef MetadataFieldClass::Value MetadataField; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_METADATAFIELD_H diff --git a/core/include/JellyfinQt/DTO/metadataoptions.h b/core/include/JellyfinQt/DTO/metadataoptions.h deleted file mode 100644 index 355dfd1..0000000 --- a/core/include/JellyfinQt/DTO/metadataoptions.h +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_METADATAOPTIONS_H -#define JELLYFIN_DTO_METADATAOPTIONS_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class MetadataOptions { -public:MetadataOptions();MetadataOptions(const MetadataOptions &other); - - static MetadataOptions fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QString itemType() const; - - void setItemType(QString newItemType); - - QStringList disabledMetadataSavers() const; - - void setDisabledMetadataSavers(QStringList newDisabledMetadataSavers); - - QStringList localMetadataReaderOrder() const; - - void setLocalMetadataReaderOrder(QStringList newLocalMetadataReaderOrder); - - QStringList disabledMetadataFetchers() const; - - void setDisabledMetadataFetchers(QStringList newDisabledMetadataFetchers); - - QStringList metadataFetcherOrder() const; - - void setMetadataFetcherOrder(QStringList newMetadataFetcherOrder); - - QStringList disabledImageFetchers() const; - - void setDisabledImageFetchers(QStringList newDisabledImageFetchers); - - QStringList imageFetcherOrder() const; - - void setImageFetcherOrder(QStringList newImageFetcherOrder); - -protected: - QString m_itemType; - QStringList m_disabledMetadataSavers; - QStringList m_localMetadataReaderOrder; - QStringList m_disabledMetadataFetchers; - QStringList m_metadataFetcherOrder; - QStringList m_disabledImageFetchers; - QStringList m_imageFetcherOrder; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_METADATAOPTIONS_H diff --git a/core/include/JellyfinQt/DTO/metadatarefreshmode.h b/core/include/JellyfinQt/DTO/metadatarefreshmode.h deleted file mode 100644 index 4fdd3d3..0000000 --- a/core/include/JellyfinQt/DTO/metadatarefreshmode.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_METADATAREFRESHMODE_H -#define JELLYFIN_DTO_METADATAREFRESHMODE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class MetadataRefreshModeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - None, - ValidationOnly, - Default, - FullRefresh, - }; - Q_ENUM(Value) -private: - explicit MetadataRefreshModeClass(); -}; - -typedef MetadataRefreshModeClass::Value MetadataRefreshMode; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_METADATAREFRESHMODE_H diff --git a/core/include/JellyfinQt/DTO/moveplaylistitemrequestdto.h b/core/include/JellyfinQt/DTO/moveplaylistitemrequestdto.h deleted file mode 100644 index e319382..0000000 --- a/core/include/JellyfinQt/DTO/moveplaylistitemrequestdto.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_MOVEPLAYLISTITEMREQUESTDTO_H -#define JELLYFIN_DTO_MOVEPLAYLISTITEMREQUESTDTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class MovePlaylistItemRequestDto { -public:MovePlaylistItemRequestDto();MovePlaylistItemRequestDto(const MovePlaylistItemRequestDto &other); - - static MovePlaylistItemRequestDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the playlist identifier of the item. - */ - QUuid playlistItemId() const; - /** - * @brief Gets or sets the playlist identifier of the item. - */ - void setPlaylistItemId(QUuid newPlaylistItemId); - /** - * @brief Gets or sets the new position. - */ - qint32 newIndex() const; - /** - * @brief Gets or sets the new position. - */ - void setNewIndex(qint32 newNewIndex); - -protected: - QUuid m_playlistItemId; - qint32 m_newIndex; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_MOVEPLAYLISTITEMREQUESTDTO_H diff --git a/core/include/JellyfinQt/DTO/movieinfo.h b/core/include/JellyfinQt/DTO/movieinfo.h deleted file mode 100644 index e05d803..0000000 --- a/core/include/JellyfinQt/DTO/movieinfo.h +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_MOVIEINFO_H -#define JELLYFIN_DTO_MOVIEINFO_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class MovieInfo { -public:MovieInfo();MovieInfo(const MovieInfo &other); - - static MovieInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the path. - */ - QString path() const; - /** - * @brief Gets or sets the path. - */ - void setPath(QString newPath); - /** - * @brief Gets or sets the metadata language. - */ - QString metadataLanguage() const; - /** - * @brief Gets or sets the metadata language. - */ - void setMetadataLanguage(QString newMetadataLanguage); - /** - * @brief Gets or sets the metadata country code. - */ - QString metadataCountryCode() const; - /** - * @brief Gets or sets the metadata country code. - */ - void setMetadataCountryCode(QString newMetadataCountryCode); - /** - * @brief Gets or sets the provider ids. - */ - QJsonObject providerIds() const; - /** - * @brief Gets or sets the provider ids. - */ - void setProviderIds(QJsonObject newProviderIds); - /** - * @brief Gets or sets the year. - */ - qint32 year() const; - /** - * @brief Gets or sets the year. - */ - void setYear(qint32 newYear); - - qint32 indexNumber() const; - - void setIndexNumber(qint32 newIndexNumber); - - qint32 parentIndexNumber() const; - - void setParentIndexNumber(qint32 newParentIndexNumber); - - QDateTime premiereDate() const; - - void setPremiereDate(QDateTime newPremiereDate); - - bool isAutomated() const; - - void setIsAutomated(bool newIsAutomated); - -protected: - QString m_name; - QString m_path; - QString m_metadataLanguage; - QString m_metadataCountryCode; - QJsonObject m_providerIds; - qint32 m_year; - qint32 m_indexNumber; - qint32 m_parentIndexNumber; - QDateTime m_premiereDate; - bool m_isAutomated; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_MOVIEINFO_H diff --git a/core/include/JellyfinQt/DTO/movieinforemotesearchquery.h b/core/include/JellyfinQt/DTO/movieinforemotesearchquery.h deleted file mode 100644 index 1b1c789..0000000 --- a/core/include/JellyfinQt/DTO/movieinforemotesearchquery.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_MOVIEINFOREMOTESEARCHQUERY_H -#define JELLYFIN_DTO_MOVIEINFOREMOTESEARCHQUERY_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/movieinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class MovieInfoRemoteSearchQuery { -public:MovieInfoRemoteSearchQuery();MovieInfoRemoteSearchQuery(const MovieInfoRemoteSearchQuery &other); - - static MovieInfoRemoteSearchQuery fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QSharedPointer searchInfo() const; - - void setSearchInfo(QSharedPointer newSearchInfo); - - QUuid itemId() const; - - void setItemId(QUuid newItemId); - /** - * @brief Will only search within the given provider when set. - */ - QString searchProviderName() const; - /** - * @brief Will only search within the given provider when set. - */ - void setSearchProviderName(QString newSearchProviderName); - /** - * @brief Gets or sets a value indicating whether disabled providers should be included. - */ - bool includeDisabledProviders() const; - /** - * @brief Gets or sets a value indicating whether disabled providers should be included. - */ - void setIncludeDisabledProviders(bool newIncludeDisabledProviders); - -protected: - QSharedPointer m_searchInfo = nullptr; - QUuid m_itemId; - QString m_searchProviderName; - bool m_includeDisabledProviders; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_MOVIEINFOREMOTESEARCHQUERY_H diff --git a/core/include/JellyfinQt/DTO/musicvideoinfo.h b/core/include/JellyfinQt/DTO/musicvideoinfo.h deleted file mode 100644 index 1071293..0000000 --- a/core/include/JellyfinQt/DTO/musicvideoinfo.h +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_MUSICVIDEOINFO_H -#define JELLYFIN_DTO_MUSICVIDEOINFO_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class MusicVideoInfo { -public:MusicVideoInfo();MusicVideoInfo(const MusicVideoInfo &other); - - static MusicVideoInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the path. - */ - QString path() const; - /** - * @brief Gets or sets the path. - */ - void setPath(QString newPath); - /** - * @brief Gets or sets the metadata language. - */ - QString metadataLanguage() const; - /** - * @brief Gets or sets the metadata language. - */ - void setMetadataLanguage(QString newMetadataLanguage); - /** - * @brief Gets or sets the metadata country code. - */ - QString metadataCountryCode() const; - /** - * @brief Gets or sets the metadata country code. - */ - void setMetadataCountryCode(QString newMetadataCountryCode); - /** - * @brief Gets or sets the provider ids. - */ - QJsonObject providerIds() const; - /** - * @brief Gets or sets the provider ids. - */ - void setProviderIds(QJsonObject newProviderIds); - /** - * @brief Gets or sets the year. - */ - qint32 year() const; - /** - * @brief Gets or sets the year. - */ - void setYear(qint32 newYear); - - qint32 indexNumber() const; - - void setIndexNumber(qint32 newIndexNumber); - - qint32 parentIndexNumber() const; - - void setParentIndexNumber(qint32 newParentIndexNumber); - - QDateTime premiereDate() const; - - void setPremiereDate(QDateTime newPremiereDate); - - bool isAutomated() const; - - void setIsAutomated(bool newIsAutomated); - - QStringList artists() const; - - void setArtists(QStringList newArtists); - -protected: - QString m_name; - QString m_path; - QString m_metadataLanguage; - QString m_metadataCountryCode; - QJsonObject m_providerIds; - qint32 m_year; - qint32 m_indexNumber; - qint32 m_parentIndexNumber; - QDateTime m_premiereDate; - bool m_isAutomated; - QStringList m_artists; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_MUSICVIDEOINFO_H diff --git a/core/include/JellyfinQt/DTO/musicvideoinforemotesearchquery.h b/core/include/JellyfinQt/DTO/musicvideoinforemotesearchquery.h deleted file mode 100644 index d934831..0000000 --- a/core/include/JellyfinQt/DTO/musicvideoinforemotesearchquery.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_MUSICVIDEOINFOREMOTESEARCHQUERY_H -#define JELLYFIN_DTO_MUSICVIDEOINFOREMOTESEARCHQUERY_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/musicvideoinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class MusicVideoInfoRemoteSearchQuery { -public:MusicVideoInfoRemoteSearchQuery();MusicVideoInfoRemoteSearchQuery(const MusicVideoInfoRemoteSearchQuery &other); - - static MusicVideoInfoRemoteSearchQuery fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QSharedPointer searchInfo() const; - - void setSearchInfo(QSharedPointer newSearchInfo); - - QUuid itemId() const; - - void setItemId(QUuid newItemId); - /** - * @brief Will only search within the given provider when set. - */ - QString searchProviderName() const; - /** - * @brief Will only search within the given provider when set. - */ - void setSearchProviderName(QString newSearchProviderName); - /** - * @brief Gets or sets a value indicating whether disabled providers should be included. - */ - bool includeDisabledProviders() const; - /** - * @brief Gets or sets a value indicating whether disabled providers should be included. - */ - void setIncludeDisabledProviders(bool newIncludeDisabledProviders); - -protected: - QSharedPointer m_searchInfo = nullptr; - QUuid m_itemId; - QString m_searchProviderName; - bool m_includeDisabledProviders; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_MUSICVIDEOINFOREMOTESEARCHQUERY_H diff --git a/core/include/JellyfinQt/DTO/nameidpair.h b/core/include/JellyfinQt/DTO/nameidpair.h deleted file mode 100644 index 1f789f9..0000000 --- a/core/include/JellyfinQt/DTO/nameidpair.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_NAMEIDPAIR_H -#define JELLYFIN_DTO_NAMEIDPAIR_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class NameIdPair { -public:NameIdPair();NameIdPair(const NameIdPair &other); - - static NameIdPair fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the identifier. - */ - QString jellyfinId() const; - /** - * @brief Gets or sets the identifier. - */ - void setJellyfinId(QString newJellyfinId); - -protected: - QString m_name; - QString m_jellyfinId; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_NAMEIDPAIR_H diff --git a/core/include/JellyfinQt/DTO/namevaluepair.h b/core/include/JellyfinQt/DTO/namevaluepair.h deleted file mode 100644 index 3c05e1f..0000000 --- a/core/include/JellyfinQt/DTO/namevaluepair.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_NAMEVALUEPAIR_H -#define JELLYFIN_DTO_NAMEVALUEPAIR_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class NameValuePair { -public:NameValuePair();NameValuePair(const NameValuePair &other); - - static NameValuePair fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the value. - */ - QString value() const; - /** - * @brief Gets or sets the value. - */ - void setValue(QString newValue); - -protected: - QString m_name; - QString m_value; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_NAMEVALUEPAIR_H diff --git a/core/include/JellyfinQt/DTO/notificationdto.h b/core/include/JellyfinQt/DTO/notificationdto.h deleted file mode 100644 index c5197d8..0000000 --- a/core/include/JellyfinQt/DTO/notificationdto.h +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_NOTIFICATIONDTO_H -#define JELLYFIN_DTO_NOTIFICATIONDTO_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/notificationlevel.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class NotificationDto { -public:NotificationDto();NotificationDto(const NotificationDto &other); - - static NotificationDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the notification ID. Defaults to an empty string. - */ - QString jellyfinId() const; - /** - * @brief Gets or sets the notification ID. Defaults to an empty string. - */ - void setJellyfinId(QString newJellyfinId); - /** - * @brief Gets or sets the notification's user ID. Defaults to an empty string. - */ - QString userId() const; - /** - * @brief Gets or sets the notification's user ID. Defaults to an empty string. - */ - void setUserId(QString newUserId); - /** - * @brief Gets or sets the notification date. - */ - QDateTime date() const; - /** - * @brief Gets or sets the notification date. - */ - void setDate(QDateTime newDate); - /** - * @brief Gets or sets a value indicating whether the notification has been read. Defaults to false. - */ - bool isRead() const; - /** - * @brief Gets or sets a value indicating whether the notification has been read. Defaults to false. - */ - void setIsRead(bool newIsRead); - /** - * @brief Gets or sets the notification's name. Defaults to an empty string. - */ - QString name() const; - /** - * @brief Gets or sets the notification's name. Defaults to an empty string. - */ - void setName(QString newName); - /** - * @brief Gets or sets the notification's description. Defaults to an empty string. - */ - QString description() const; - /** - * @brief Gets or sets the notification's description. Defaults to an empty string. - */ - void setDescription(QString newDescription); - /** - * @brief Gets or sets the notification's URL. Defaults to an empty string. - */ - QString url() const; - /** - * @brief Gets or sets the notification's URL. Defaults to an empty string. - */ - void setUrl(QString newUrl); - - NotificationLevel level() const; - - void setLevel(NotificationLevel newLevel); - -protected: - QString m_jellyfinId; - QString m_userId; - QDateTime m_date; - bool m_isRead; - QString m_name; - QString m_description; - QString m_url; - NotificationLevel m_level; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_NOTIFICATIONDTO_H diff --git a/core/include/JellyfinQt/DTO/notificationlevel.h b/core/include/JellyfinQt/DTO/notificationlevel.h deleted file mode 100644 index 5eb0a28..0000000 --- a/core/include/JellyfinQt/DTO/notificationlevel.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_NOTIFICATIONLEVEL_H -#define JELLYFIN_DTO_NOTIFICATIONLEVEL_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class NotificationLevelClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Normal, - Warning, - Error, - }; - Q_ENUM(Value) -private: - explicit NotificationLevelClass(); -}; - -typedef NotificationLevelClass::Value NotificationLevel; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_NOTIFICATIONLEVEL_H diff --git a/core/include/JellyfinQt/DTO/notificationresultdto.h b/core/include/JellyfinQt/DTO/notificationresultdto.h deleted file mode 100644 index 37903bf..0000000 --- a/core/include/JellyfinQt/DTO/notificationresultdto.h +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_NOTIFICATIONRESULTDTO_H -#define JELLYFIN_DTO_NOTIFICATIONRESULTDTO_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/notificationdto.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class NotificationResultDto { -public:NotificationResultDto();NotificationResultDto(const NotificationResultDto &other); - - static NotificationResultDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the current page of notifications. - */ - QList> notifications() const; - /** - * @brief Gets or sets the current page of notifications. - */ - void setNotifications(QList> newNotifications); - /** - * @brief Gets or sets the total number of notifications. - */ - qint32 totalRecordCount() const; - /** - * @brief Gets or sets the total number of notifications. - */ - void setTotalRecordCount(qint32 newTotalRecordCount); - -protected: - QList> m_notifications; - qint32 m_totalRecordCount; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_NOTIFICATIONRESULTDTO_H diff --git a/core/include/JellyfinQt/DTO/notificationssummarydto.h b/core/include/JellyfinQt/DTO/notificationssummarydto.h deleted file mode 100644 index 7617eb0..0000000 --- a/core/include/JellyfinQt/DTO/notificationssummarydto.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_NOTIFICATIONSSUMMARYDTO_H -#define JELLYFIN_DTO_NOTIFICATIONSSUMMARYDTO_H - -#include -#include -#include - -#include "JellyfinQt/DTO/notificationlevel.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class NotificationsSummaryDto { -public:NotificationsSummaryDto();NotificationsSummaryDto(const NotificationsSummaryDto &other); - - static NotificationsSummaryDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the number of unread notifications. - */ - qint32 unreadCount() const; - /** - * @brief Gets or sets the number of unread notifications. - */ - void setUnreadCount(qint32 newUnreadCount); - - NotificationLevel maxUnreadNotificationLevel() const; - - void setMaxUnreadNotificationLevel(NotificationLevel newMaxUnreadNotificationLevel); - -protected: - qint32 m_unreadCount; - NotificationLevel m_maxUnreadNotificationLevel; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_NOTIFICATIONSSUMMARYDTO_H diff --git a/core/include/JellyfinQt/DTO/objectgroupupdate.h b/core/include/JellyfinQt/DTO/objectgroupupdate.h deleted file mode 100644 index 59ede73..0000000 --- a/core/include/JellyfinQt/DTO/objectgroupupdate.h +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_OBJECTGROUPUPDATE_H -#define JELLYFIN_DTO_OBJECTGROUPUPDATE_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/groupupdatetype.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ObjectGroupUpdate { -public:ObjectGroupUpdate();ObjectGroupUpdate(const ObjectGroupUpdate &other); - - static ObjectGroupUpdate fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets the group identifier. - */ - QUuid groupId() const; - /** - * @brief Gets the group identifier. - */ - void setGroupId(QUuid newGroupId); - - GroupUpdateType type() const; - - void setType(GroupUpdateType newType); - /** - * @brief Gets the update data. - */ - QVariant data() const; - /** - * @brief Gets the update data. - */ - void setData(QVariant newData); - -protected: - QUuid m_groupId; - GroupUpdateType m_type; - QVariant m_data; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_OBJECTGROUPUPDATE_H diff --git a/core/include/JellyfinQt/DTO/openlivestreamdto.h b/core/include/JellyfinQt/DTO/openlivestreamdto.h deleted file mode 100644 index 78081dd..0000000 --- a/core/include/JellyfinQt/DTO/openlivestreamdto.h +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_OPENLIVESTREAMDTO_H -#define JELLYFIN_DTO_OPENLIVESTREAMDTO_H - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/deviceprofile.h" -#include "JellyfinQt/DTO/mediaprotocol.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class OpenLiveStreamDto { -public:OpenLiveStreamDto();OpenLiveStreamDto(const OpenLiveStreamDto &other); - - static OpenLiveStreamDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the open token. - */ - QString openToken() const; - /** - * @brief Gets or sets the open token. - */ - void setOpenToken(QString newOpenToken); - /** - * @brief Gets or sets the user id. - */ - QUuid userId() const; - /** - * @brief Gets or sets the user id. - */ - void setUserId(QUuid newUserId); - /** - * @brief Gets or sets the play session id. - */ - QString playSessionId() const; - /** - * @brief Gets or sets the play session id. - */ - void setPlaySessionId(QString newPlaySessionId); - /** - * @brief Gets or sets the max streaming bitrate. - */ - qint32 maxStreamingBitrate() const; - /** - * @brief Gets or sets the max streaming bitrate. - */ - void setMaxStreamingBitrate(qint32 newMaxStreamingBitrate); - /** - * @brief Gets or sets the start time in ticks. - */ - qint64 startTimeTicks() const; - /** - * @brief Gets or sets the start time in ticks. - */ - void setStartTimeTicks(qint64 newStartTimeTicks); - /** - * @brief Gets or sets the audio stream index. - */ - qint32 audioStreamIndex() const; - /** - * @brief Gets or sets the audio stream index. - */ - void setAudioStreamIndex(qint32 newAudioStreamIndex); - /** - * @brief Gets or sets the subtitle stream index. - */ - qint32 subtitleStreamIndex() const; - /** - * @brief Gets or sets the subtitle stream index. - */ - void setSubtitleStreamIndex(qint32 newSubtitleStreamIndex); - /** - * @brief Gets or sets the max audio channels. - */ - qint32 maxAudioChannels() const; - /** - * @brief Gets or sets the max audio channels. - */ - void setMaxAudioChannels(qint32 newMaxAudioChannels); - /** - * @brief Gets or sets the item id. - */ - QUuid itemId() const; - /** - * @brief Gets or sets the item id. - */ - void setItemId(QUuid newItemId); - /** - * @brief Gets or sets a value indicating whether to enable direct play. - */ - bool enableDirectPlay() const; - /** - * @brief Gets or sets a value indicating whether to enable direct play. - */ - void setEnableDirectPlay(bool newEnableDirectPlay); - /** - * @brief Gets or sets a value indicating whether to enale direct stream. - */ - bool enableDirectStream() const; - /** - * @brief Gets or sets a value indicating whether to enale direct stream. - */ - void setEnableDirectStream(bool newEnableDirectStream); - - QSharedPointer deviceProfile() const; - - void setDeviceProfile(QSharedPointer newDeviceProfile); - /** - * @brief Gets or sets the device play protocols. - */ - QList directPlayProtocols() const; - /** - * @brief Gets or sets the device play protocols. - */ - void setDirectPlayProtocols(QList newDirectPlayProtocols); - -protected: - QString m_openToken; - QUuid m_userId; - QString m_playSessionId; - qint32 m_maxStreamingBitrate; - qint64 m_startTimeTicks; - qint32 m_audioStreamIndex; - qint32 m_subtitleStreamIndex; - qint32 m_maxAudioChannels; - QUuid m_itemId; - bool m_enableDirectPlay; - bool m_enableDirectStream; - QSharedPointer m_deviceProfile = nullptr; - QList m_directPlayProtocols; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_OPENLIVESTREAMDTO_H diff --git a/core/include/JellyfinQt/DTO/packageinfo.h b/core/include/JellyfinQt/DTO/packageinfo.h deleted file mode 100644 index 6ae9f67..0000000 --- a/core/include/JellyfinQt/DTO/packageinfo.h +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PACKAGEINFO_H -#define JELLYFIN_DTO_PACKAGEINFO_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/versioninfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class PackageInfo { -public:PackageInfo();PackageInfo(const PackageInfo &other); - - static PackageInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets a long description of the plugin containing features or helpful explanations. - */ - QString description() const; - /** - * @brief Gets or sets a long description of the plugin containing features or helpful explanations. - */ - void setDescription(QString newDescription); - /** - * @brief Gets or sets a short overview of what the plugin does. - */ - QString overview() const; - /** - * @brief Gets or sets a short overview of what the plugin does. - */ - void setOverview(QString newOverview); - /** - * @brief Gets or sets the owner. - */ - QString owner() const; - /** - * @brief Gets or sets the owner. - */ - void setOwner(QString newOwner); - /** - * @brief Gets or sets the category. - */ - QString category() const; - /** - * @brief Gets or sets the category. - */ - void setCategory(QString newCategory); - /** - * @brief Gets or sets the guid of the assembly associated with this plugin. -This is used to identify the proper item for automatic updates. - */ - QString guid() const; - /** - * @brief Gets or sets the guid of the assembly associated with this plugin. -This is used to identify the proper item for automatic updates. - */ - void setGuid(QString newGuid); - /** - * @brief Gets or sets the versions. - */ - QList> versions() const; - /** - * @brief Gets or sets the versions. - */ - void setVersions(QList> newVersions); - /** - * @brief Gets or sets the image url for the package. - */ - QString imageUrl() const; - /** - * @brief Gets or sets the image url for the package. - */ - void setImageUrl(QString newImageUrl); - -protected: - QString m_name; - QString m_description; - QString m_overview; - QString m_owner; - QString m_category; - QString m_guid; - QList> m_versions; - QString m_imageUrl; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PACKAGEINFO_H diff --git a/core/include/JellyfinQt/DTO/parentalrating.h b/core/include/JellyfinQt/DTO/parentalrating.h deleted file mode 100644 index 65135e7..0000000 --- a/core/include/JellyfinQt/DTO/parentalrating.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PARENTALRATING_H -#define JELLYFIN_DTO_PARENTALRATING_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ParentalRating { -public:ParentalRating();ParentalRating(const ParentalRating &other); - - static ParentalRating fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the value. - */ - qint32 value() const; - /** - * @brief Gets or sets the value. - */ - void setValue(qint32 newValue); - -protected: - QString m_name; - qint32 m_value; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PARENTALRATING_H diff --git a/core/include/JellyfinQt/DTO/pathsubstitution.h b/core/include/JellyfinQt/DTO/pathsubstitution.h deleted file mode 100644 index 2cd07fc..0000000 --- a/core/include/JellyfinQt/DTO/pathsubstitution.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PATHSUBSTITUTION_H -#define JELLYFIN_DTO_PATHSUBSTITUTION_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class PathSubstitution { -public:PathSubstitution();PathSubstitution(const PathSubstitution &other); - - static PathSubstitution fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the value to substitute. - */ - QString from() const; - /** - * @brief Gets or sets the value to substitute. - */ - void setFrom(QString newFrom); - /** - * @brief Gets or sets the value to substitution with. - */ - QString to() const; - /** - * @brief Gets or sets the value to substitution with. - */ - void setTo(QString newTo); - -protected: - QString m_from; - QString m_to; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PATHSUBSTITUTION_H diff --git a/core/include/JellyfinQt/DTO/personlookupinfo.h b/core/include/JellyfinQt/DTO/personlookupinfo.h deleted file mode 100644 index a5ee9ff..0000000 --- a/core/include/JellyfinQt/DTO/personlookupinfo.h +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PERSONLOOKUPINFO_H -#define JELLYFIN_DTO_PERSONLOOKUPINFO_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class PersonLookupInfo { -public:PersonLookupInfo();PersonLookupInfo(const PersonLookupInfo &other); - - static PersonLookupInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the path. - */ - QString path() const; - /** - * @brief Gets or sets the path. - */ - void setPath(QString newPath); - /** - * @brief Gets or sets the metadata language. - */ - QString metadataLanguage() const; - /** - * @brief Gets or sets the metadata language. - */ - void setMetadataLanguage(QString newMetadataLanguage); - /** - * @brief Gets or sets the metadata country code. - */ - QString metadataCountryCode() const; - /** - * @brief Gets or sets the metadata country code. - */ - void setMetadataCountryCode(QString newMetadataCountryCode); - /** - * @brief Gets or sets the provider ids. - */ - QJsonObject providerIds() const; - /** - * @brief Gets or sets the provider ids. - */ - void setProviderIds(QJsonObject newProviderIds); - /** - * @brief Gets or sets the year. - */ - qint32 year() const; - /** - * @brief Gets or sets the year. - */ - void setYear(qint32 newYear); - - qint32 indexNumber() const; - - void setIndexNumber(qint32 newIndexNumber); - - qint32 parentIndexNumber() const; - - void setParentIndexNumber(qint32 newParentIndexNumber); - - QDateTime premiereDate() const; - - void setPremiereDate(QDateTime newPremiereDate); - - bool isAutomated() const; - - void setIsAutomated(bool newIsAutomated); - -protected: - QString m_name; - QString m_path; - QString m_metadataLanguage; - QString m_metadataCountryCode; - QJsonObject m_providerIds; - qint32 m_year; - qint32 m_indexNumber; - qint32 m_parentIndexNumber; - QDateTime m_premiereDate; - bool m_isAutomated; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PERSONLOOKUPINFO_H diff --git a/core/include/JellyfinQt/DTO/personlookupinforemotesearchquery.h b/core/include/JellyfinQt/DTO/personlookupinforemotesearchquery.h deleted file mode 100644 index 63baa6c..0000000 --- a/core/include/JellyfinQt/DTO/personlookupinforemotesearchquery.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PERSONLOOKUPINFOREMOTESEARCHQUERY_H -#define JELLYFIN_DTO_PERSONLOOKUPINFOREMOTESEARCHQUERY_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/personlookupinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class PersonLookupInfoRemoteSearchQuery { -public:PersonLookupInfoRemoteSearchQuery();PersonLookupInfoRemoteSearchQuery(const PersonLookupInfoRemoteSearchQuery &other); - - static PersonLookupInfoRemoteSearchQuery fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QSharedPointer searchInfo() const; - - void setSearchInfo(QSharedPointer newSearchInfo); - - QUuid itemId() const; - - void setItemId(QUuid newItemId); - /** - * @brief Will only search within the given provider when set. - */ - QString searchProviderName() const; - /** - * @brief Will only search within the given provider when set. - */ - void setSearchProviderName(QString newSearchProviderName); - /** - * @brief Gets or sets a value indicating whether disabled providers should be included. - */ - bool includeDisabledProviders() const; - /** - * @brief Gets or sets a value indicating whether disabled providers should be included. - */ - void setIncludeDisabledProviders(bool newIncludeDisabledProviders); - -protected: - QSharedPointer m_searchInfo = nullptr; - QUuid m_itemId; - QString m_searchProviderName; - bool m_includeDisabledProviders; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PERSONLOOKUPINFOREMOTESEARCHQUERY_H diff --git a/core/include/JellyfinQt/DTO/pinredeemresult.h b/core/include/JellyfinQt/DTO/pinredeemresult.h deleted file mode 100644 index 853c10e..0000000 --- a/core/include/JellyfinQt/DTO/pinredeemresult.h +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PINREDEEMRESULT_H -#define JELLYFIN_DTO_PINREDEEMRESULT_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class PinRedeemResult { -public:PinRedeemResult();PinRedeemResult(const PinRedeemResult &other); - - static PinRedeemResult fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets a value indicating whether this MediaBrowser.Model.Users.PinRedeemResult is success. - */ - bool success() const; - /** - * @brief Gets or sets a value indicating whether this MediaBrowser.Model.Users.PinRedeemResult is success. - */ - void setSuccess(bool newSuccess); - /** - * @brief Gets or sets the users reset. - */ - QStringList usersReset() const; - /** - * @brief Gets or sets the users reset. - */ - void setUsersReset(QStringList newUsersReset); - -protected: - bool m_success; - QStringList m_usersReset; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PINREDEEMRESULT_H diff --git a/core/include/JellyfinQt/DTO/playbackerrorcode.h b/core/include/JellyfinQt/DTO/playbackerrorcode.h deleted file mode 100644 index 10d0471..0000000 --- a/core/include/JellyfinQt/DTO/playbackerrorcode.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PLAYBACKERRORCODE_H -#define JELLYFIN_DTO_PLAYBACKERRORCODE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class PlaybackErrorCodeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - NotAllowed, - NoCompatibleStream, - RateLimitExceeded, - }; - Q_ENUM(Value) -private: - explicit PlaybackErrorCodeClass(); -}; - -typedef PlaybackErrorCodeClass::Value PlaybackErrorCode; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PLAYBACKERRORCODE_H diff --git a/core/include/JellyfinQt/DTO/playbackinfodto.h b/core/include/JellyfinQt/DTO/playbackinfodto.h deleted file mode 100644 index e8b804d..0000000 --- a/core/include/JellyfinQt/DTO/playbackinfodto.h +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PLAYBACKINFODTO_H -#define JELLYFIN_DTO_PLAYBACKINFODTO_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/deviceprofile.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class PlaybackInfoDto { -public:PlaybackInfoDto();PlaybackInfoDto(const PlaybackInfoDto &other); - - static PlaybackInfoDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the playback userId. - */ - QUuid userId() const; - /** - * @brief Gets or sets the playback userId. - */ - void setUserId(QUuid newUserId); - /** - * @brief Gets or sets the max streaming bitrate. - */ - qint32 maxStreamingBitrate() const; - /** - * @brief Gets or sets the max streaming bitrate. - */ - void setMaxStreamingBitrate(qint32 newMaxStreamingBitrate); - /** - * @brief Gets or sets the start time in ticks. - */ - qint64 startTimeTicks() const; - /** - * @brief Gets or sets the start time in ticks. - */ - void setStartTimeTicks(qint64 newStartTimeTicks); - /** - * @brief Gets or sets the audio stream index. - */ - qint32 audioStreamIndex() const; - /** - * @brief Gets or sets the audio stream index. - */ - void setAudioStreamIndex(qint32 newAudioStreamIndex); - /** - * @brief Gets or sets the subtitle stream index. - */ - qint32 subtitleStreamIndex() const; - /** - * @brief Gets or sets the subtitle stream index. - */ - void setSubtitleStreamIndex(qint32 newSubtitleStreamIndex); - /** - * @brief Gets or sets the max audio channels. - */ - qint32 maxAudioChannels() const; - /** - * @brief Gets or sets the max audio channels. - */ - void setMaxAudioChannels(qint32 newMaxAudioChannels); - /** - * @brief Gets or sets the media source id. - */ - QString mediaSourceId() const; - /** - * @brief Gets or sets the media source id. - */ - void setMediaSourceId(QString newMediaSourceId); - /** - * @brief Gets or sets the live stream id. - */ - QString liveStreamId() const; - /** - * @brief Gets or sets the live stream id. - */ - void setLiveStreamId(QString newLiveStreamId); - - QSharedPointer deviceProfile() const; - - void setDeviceProfile(QSharedPointer newDeviceProfile); - /** - * @brief Gets or sets a value indicating whether to enable direct play. - */ - bool enableDirectPlay() const; - /** - * @brief Gets or sets a value indicating whether to enable direct play. - */ - void setEnableDirectPlay(bool newEnableDirectPlay); - /** - * @brief Gets or sets a value indicating whether to enable direct stream. - */ - bool enableDirectStream() const; - /** - * @brief Gets or sets a value indicating whether to enable direct stream. - */ - void setEnableDirectStream(bool newEnableDirectStream); - /** - * @brief Gets or sets a value indicating whether to enable transcoding. - */ - bool enableTranscoding() const; - /** - * @brief Gets or sets a value indicating whether to enable transcoding. - */ - void setEnableTranscoding(bool newEnableTranscoding); - /** - * @brief Gets or sets a value indicating whether to enable video stream copy. - */ - bool allowVideoStreamCopy() const; - /** - * @brief Gets or sets a value indicating whether to enable video stream copy. - */ - void setAllowVideoStreamCopy(bool newAllowVideoStreamCopy); - /** - * @brief Gets or sets a value indicating whether to allow audio stream copy. - */ - bool allowAudioStreamCopy() const; - /** - * @brief Gets or sets a value indicating whether to allow audio stream copy. - */ - void setAllowAudioStreamCopy(bool newAllowAudioStreamCopy); - /** - * @brief Gets or sets a value indicating whether to auto open the live stream. - */ - bool autoOpenLiveStream() const; - /** - * @brief Gets or sets a value indicating whether to auto open the live stream. - */ - void setAutoOpenLiveStream(bool newAutoOpenLiveStream); - -protected: - QUuid m_userId; - qint32 m_maxStreamingBitrate; - qint64 m_startTimeTicks; - qint32 m_audioStreamIndex; - qint32 m_subtitleStreamIndex; - qint32 m_maxAudioChannels; - QString m_mediaSourceId; - QString m_liveStreamId; - QSharedPointer m_deviceProfile = nullptr; - bool m_enableDirectPlay; - bool m_enableDirectStream; - bool m_enableTranscoding; - bool m_allowVideoStreamCopy; - bool m_allowAudioStreamCopy; - bool m_autoOpenLiveStream; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PLAYBACKINFODTO_H diff --git a/core/include/JellyfinQt/DTO/playbackprogressinfo.h b/core/include/JellyfinQt/DTO/playbackprogressinfo.h deleted file mode 100644 index d0a17e7..0000000 --- a/core/include/JellyfinQt/DTO/playbackprogressinfo.h +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PLAYBACKPROGRESSINFO_H -#define JELLYFIN_DTO_PLAYBACKPROGRESSINFO_H - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/baseitemdto.h" -#include "JellyfinQt/DTO/playmethod.h" -#include "JellyfinQt/DTO/queueitem.h" -#include "JellyfinQt/DTO/repeatmode.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class PlaybackProgressInfo { -public:PlaybackProgressInfo();PlaybackProgressInfo(const PlaybackProgressInfo &other); - - static PlaybackProgressInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets a value indicating whether this instance can seek. - */ - bool canSeek() const; - /** - * @brief Gets or sets a value indicating whether this instance can seek. - */ - void setCanSeek(bool newCanSeek); - - QSharedPointer item() const; - - void setItem(QSharedPointer newItem); - /** - * @brief Gets or sets the item identifier. - */ - QUuid itemId() const; - /** - * @brief Gets or sets the item identifier. - */ - void setItemId(QUuid newItemId); - /** - * @brief Gets or sets the session id. - */ - QString sessionId() const; - /** - * @brief Gets or sets the session id. - */ - void setSessionId(QString newSessionId); - /** - * @brief Gets or sets the media version identifier. - */ - QString mediaSourceId() const; - /** - * @brief Gets or sets the media version identifier. - */ - void setMediaSourceId(QString newMediaSourceId); - /** - * @brief Gets or sets the index of the audio stream. - */ - qint32 audioStreamIndex() const; - /** - * @brief Gets or sets the index of the audio stream. - */ - void setAudioStreamIndex(qint32 newAudioStreamIndex); - /** - * @brief Gets or sets the index of the subtitle stream. - */ - qint32 subtitleStreamIndex() const; - /** - * @brief Gets or sets the index of the subtitle stream. - */ - void setSubtitleStreamIndex(qint32 newSubtitleStreamIndex); - /** - * @brief Gets or sets a value indicating whether this instance is paused. - */ - bool isPaused() const; - /** - * @brief Gets or sets a value indicating whether this instance is paused. - */ - void setIsPaused(bool newIsPaused); - /** - * @brief Gets or sets a value indicating whether this instance is muted. - */ - bool isMuted() const; - /** - * @brief Gets or sets a value indicating whether this instance is muted. - */ - void setIsMuted(bool newIsMuted); - /** - * @brief Gets or sets the position ticks. - */ - qint64 positionTicks() const; - /** - * @brief Gets or sets the position ticks. - */ - void setPositionTicks(qint64 newPositionTicks); - - qint64 playbackStartTimeTicks() const; - - void setPlaybackStartTimeTicks(qint64 newPlaybackStartTimeTicks); - /** - * @brief Gets or sets the volume level. - */ - qint32 volumeLevel() const; - /** - * @brief Gets or sets the volume level. - */ - void setVolumeLevel(qint32 newVolumeLevel); - - qint32 brightness() const; - - void setBrightness(qint32 newBrightness); - - QString aspectRatio() const; - - void setAspectRatio(QString newAspectRatio); - - PlayMethod playMethod() const; - - void setPlayMethod(PlayMethod newPlayMethod); - /** - * @brief Gets or sets the live stream identifier. - */ - QString liveStreamId() const; - /** - * @brief Gets or sets the live stream identifier. - */ - void setLiveStreamId(QString newLiveStreamId); - /** - * @brief Gets or sets the play session identifier. - */ - QString playSessionId() const; - /** - * @brief Gets or sets the play session identifier. - */ - void setPlaySessionId(QString newPlaySessionId); - - RepeatMode repeatMode() const; - - void setRepeatMode(RepeatMode newRepeatMode); - - QList> nowPlayingQueue() const; - - void setNowPlayingQueue(QList> newNowPlayingQueue); - - QString playlistItemId() const; - - void setPlaylistItemId(QString newPlaylistItemId); - -protected: - bool m_canSeek; - QSharedPointer m_item = nullptr; - QUuid m_itemId; - QString m_sessionId; - QString m_mediaSourceId; - qint32 m_audioStreamIndex; - qint32 m_subtitleStreamIndex; - bool m_isPaused; - bool m_isMuted; - qint64 m_positionTicks; - qint64 m_playbackStartTimeTicks; - qint32 m_volumeLevel; - qint32 m_brightness; - QString m_aspectRatio; - PlayMethod m_playMethod; - QString m_liveStreamId; - QString m_playSessionId; - RepeatMode m_repeatMode; - QList> m_nowPlayingQueue; - QString m_playlistItemId; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PLAYBACKPROGRESSINFO_H diff --git a/core/include/JellyfinQt/DTO/playbackstartinfo.h b/core/include/JellyfinQt/DTO/playbackstartinfo.h deleted file mode 100644 index 997ffdc..0000000 --- a/core/include/JellyfinQt/DTO/playbackstartinfo.h +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PLAYBACKSTARTINFO_H -#define JELLYFIN_DTO_PLAYBACKSTARTINFO_H - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/baseitemdto.h" -#include "JellyfinQt/DTO/playmethod.h" -#include "JellyfinQt/DTO/queueitem.h" -#include "JellyfinQt/DTO/repeatmode.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class PlaybackStartInfo { -public:PlaybackStartInfo();PlaybackStartInfo(const PlaybackStartInfo &other); - - static PlaybackStartInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets a value indicating whether this instance can seek. - */ - bool canSeek() const; - /** - * @brief Gets or sets a value indicating whether this instance can seek. - */ - void setCanSeek(bool newCanSeek); - - QSharedPointer item() const; - - void setItem(QSharedPointer newItem); - /** - * @brief Gets or sets the item identifier. - */ - QUuid itemId() const; - /** - * @brief Gets or sets the item identifier. - */ - void setItemId(QUuid newItemId); - /** - * @brief Gets or sets the session id. - */ - QString sessionId() const; - /** - * @brief Gets or sets the session id. - */ - void setSessionId(QString newSessionId); - /** - * @brief Gets or sets the media version identifier. - */ - QString mediaSourceId() const; - /** - * @brief Gets or sets the media version identifier. - */ - void setMediaSourceId(QString newMediaSourceId); - /** - * @brief Gets or sets the index of the audio stream. - */ - qint32 audioStreamIndex() const; - /** - * @brief Gets or sets the index of the audio stream. - */ - void setAudioStreamIndex(qint32 newAudioStreamIndex); - /** - * @brief Gets or sets the index of the subtitle stream. - */ - qint32 subtitleStreamIndex() const; - /** - * @brief Gets or sets the index of the subtitle stream. - */ - void setSubtitleStreamIndex(qint32 newSubtitleStreamIndex); - /** - * @brief Gets or sets a value indicating whether this instance is paused. - */ - bool isPaused() const; - /** - * @brief Gets or sets a value indicating whether this instance is paused. - */ - void setIsPaused(bool newIsPaused); - /** - * @brief Gets or sets a value indicating whether this instance is muted. - */ - bool isMuted() const; - /** - * @brief Gets or sets a value indicating whether this instance is muted. - */ - void setIsMuted(bool newIsMuted); - /** - * @brief Gets or sets the position ticks. - */ - qint64 positionTicks() const; - /** - * @brief Gets or sets the position ticks. - */ - void setPositionTicks(qint64 newPositionTicks); - - qint64 playbackStartTimeTicks() const; - - void setPlaybackStartTimeTicks(qint64 newPlaybackStartTimeTicks); - /** - * @brief Gets or sets the volume level. - */ - qint32 volumeLevel() const; - /** - * @brief Gets or sets the volume level. - */ - void setVolumeLevel(qint32 newVolumeLevel); - - qint32 brightness() const; - - void setBrightness(qint32 newBrightness); - - QString aspectRatio() const; - - void setAspectRatio(QString newAspectRatio); - - PlayMethod playMethod() const; - - void setPlayMethod(PlayMethod newPlayMethod); - /** - * @brief Gets or sets the live stream identifier. - */ - QString liveStreamId() const; - /** - * @brief Gets or sets the live stream identifier. - */ - void setLiveStreamId(QString newLiveStreamId); - /** - * @brief Gets or sets the play session identifier. - */ - QString playSessionId() const; - /** - * @brief Gets or sets the play session identifier. - */ - void setPlaySessionId(QString newPlaySessionId); - - RepeatMode repeatMode() const; - - void setRepeatMode(RepeatMode newRepeatMode); - - QList> nowPlayingQueue() const; - - void setNowPlayingQueue(QList> newNowPlayingQueue); - - QString playlistItemId() const; - - void setPlaylistItemId(QString newPlaylistItemId); - -protected: - bool m_canSeek; - QSharedPointer m_item = nullptr; - QUuid m_itemId; - QString m_sessionId; - QString m_mediaSourceId; - qint32 m_audioStreamIndex; - qint32 m_subtitleStreamIndex; - bool m_isPaused; - bool m_isMuted; - qint64 m_positionTicks; - qint64 m_playbackStartTimeTicks; - qint32 m_volumeLevel; - qint32 m_brightness; - QString m_aspectRatio; - PlayMethod m_playMethod; - QString m_liveStreamId; - QString m_playSessionId; - RepeatMode m_repeatMode; - QList> m_nowPlayingQueue; - QString m_playlistItemId; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PLAYBACKSTARTINFO_H diff --git a/core/include/JellyfinQt/DTO/playbackstopinfo.h b/core/include/JellyfinQt/DTO/playbackstopinfo.h deleted file mode 100644 index c60b169..0000000 --- a/core/include/JellyfinQt/DTO/playbackstopinfo.h +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PLAYBACKSTOPINFO_H -#define JELLYFIN_DTO_PLAYBACKSTOPINFO_H - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/baseitemdto.h" -#include "JellyfinQt/DTO/queueitem.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class PlaybackStopInfo { -public:PlaybackStopInfo();PlaybackStopInfo(const PlaybackStopInfo &other); - - static PlaybackStopInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QSharedPointer item() const; - - void setItem(QSharedPointer newItem); - /** - * @brief Gets or sets the item identifier. - */ - QUuid itemId() const; - /** - * @brief Gets or sets the item identifier. - */ - void setItemId(QUuid newItemId); - /** - * @brief Gets or sets the session id. - */ - QString sessionId() const; - /** - * @brief Gets or sets the session id. - */ - void setSessionId(QString newSessionId); - /** - * @brief Gets or sets the media version identifier. - */ - QString mediaSourceId() const; - /** - * @brief Gets or sets the media version identifier. - */ - void setMediaSourceId(QString newMediaSourceId); - /** - * @brief Gets or sets the position ticks. - */ - qint64 positionTicks() const; - /** - * @brief Gets or sets the position ticks. - */ - void setPositionTicks(qint64 newPositionTicks); - /** - * @brief Gets or sets the live stream identifier. - */ - QString liveStreamId() const; - /** - * @brief Gets or sets the live stream identifier. - */ - void setLiveStreamId(QString newLiveStreamId); - /** - * @brief Gets or sets the play session identifier. - */ - QString playSessionId() const; - /** - * @brief Gets or sets the play session identifier. - */ - void setPlaySessionId(QString newPlaySessionId); - /** - * @brief Gets or sets a value indicating whether this MediaBrowser.Model.Session.PlaybackStopInfo is failed. - */ - bool failed() const; - /** - * @brief Gets or sets a value indicating whether this MediaBrowser.Model.Session.PlaybackStopInfo is failed. - */ - void setFailed(bool newFailed); - - QString nextMediaType() const; - - void setNextMediaType(QString newNextMediaType); - - QString playlistItemId() const; - - void setPlaylistItemId(QString newPlaylistItemId); - - QList> nowPlayingQueue() const; - - void setNowPlayingQueue(QList> newNowPlayingQueue); - -protected: - QSharedPointer m_item = nullptr; - QUuid m_itemId; - QString m_sessionId; - QString m_mediaSourceId; - qint64 m_positionTicks; - QString m_liveStreamId; - QString m_playSessionId; - bool m_failed; - QString m_nextMediaType; - QString m_playlistItemId; - QList> m_nowPlayingQueue; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PLAYBACKSTOPINFO_H diff --git a/core/include/JellyfinQt/DTO/playcommand.h b/core/include/JellyfinQt/DTO/playcommand.h deleted file mode 100644 index 52da967..0000000 --- a/core/include/JellyfinQt/DTO/playcommand.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PLAYCOMMAND_H -#define JELLYFIN_DTO_PLAYCOMMAND_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class PlayCommandClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - PlayNow, - PlayNext, - PlayLast, - PlayInstantMix, - PlayShuffle, - }; - Q_ENUM(Value) -private: - explicit PlayCommandClass(); -}; - -typedef PlayCommandClass::Value PlayCommand; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PLAYCOMMAND_H diff --git a/core/include/JellyfinQt/DTO/playerstateinfo.h b/core/include/JellyfinQt/DTO/playerstateinfo.h deleted file mode 100644 index 31b6531..0000000 --- a/core/include/JellyfinQt/DTO/playerstateinfo.h +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PLAYERSTATEINFO_H -#define JELLYFIN_DTO_PLAYERSTATEINFO_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/playmethod.h" -#include "JellyfinQt/DTO/repeatmode.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class PlayerStateInfo { -public:PlayerStateInfo();PlayerStateInfo(const PlayerStateInfo &other); - - static PlayerStateInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the now playing position ticks. - */ - qint64 positionTicks() const; - /** - * @brief Gets or sets the now playing position ticks. - */ - void setPositionTicks(qint64 newPositionTicks); - /** - * @brief Gets or sets a value indicating whether this instance can seek. - */ - bool canSeek() const; - /** - * @brief Gets or sets a value indicating whether this instance can seek. - */ - void setCanSeek(bool newCanSeek); - /** - * @brief Gets or sets a value indicating whether this instance is paused. - */ - bool isPaused() const; - /** - * @brief Gets or sets a value indicating whether this instance is paused. - */ - void setIsPaused(bool newIsPaused); - /** - * @brief Gets or sets a value indicating whether this instance is muted. - */ - bool isMuted() const; - /** - * @brief Gets or sets a value indicating whether this instance is muted. - */ - void setIsMuted(bool newIsMuted); - /** - * @brief Gets or sets the volume level. - */ - qint32 volumeLevel() const; - /** - * @brief Gets or sets the volume level. - */ - void setVolumeLevel(qint32 newVolumeLevel); - /** - * @brief Gets or sets the index of the now playing audio stream. - */ - qint32 audioStreamIndex() const; - /** - * @brief Gets or sets the index of the now playing audio stream. - */ - void setAudioStreamIndex(qint32 newAudioStreamIndex); - /** - * @brief Gets or sets the index of the now playing subtitle stream. - */ - qint32 subtitleStreamIndex() const; - /** - * @brief Gets or sets the index of the now playing subtitle stream. - */ - void setSubtitleStreamIndex(qint32 newSubtitleStreamIndex); - /** - * @brief Gets or sets the now playing media version identifier. - */ - QString mediaSourceId() const; - /** - * @brief Gets or sets the now playing media version identifier. - */ - void setMediaSourceId(QString newMediaSourceId); - - PlayMethod playMethod() const; - - void setPlayMethod(PlayMethod newPlayMethod); - - RepeatMode repeatMode() const; - - void setRepeatMode(RepeatMode newRepeatMode); - -protected: - qint64 m_positionTicks; - bool m_canSeek; - bool m_isPaused; - bool m_isMuted; - qint32 m_volumeLevel; - qint32 m_audioStreamIndex; - qint32 m_subtitleStreamIndex; - QString m_mediaSourceId; - PlayMethod m_playMethod; - RepeatMode m_repeatMode; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PLAYERSTATEINFO_H diff --git a/core/include/JellyfinQt/DTO/playmethod.h b/core/include/JellyfinQt/DTO/playmethod.h deleted file mode 100644 index 373e0d4..0000000 --- a/core/include/JellyfinQt/DTO/playmethod.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PLAYMETHOD_H -#define JELLYFIN_DTO_PLAYMETHOD_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class PlayMethodClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Transcode, - DirectStream, - DirectPlay, - }; - Q_ENUM(Value) -private: - explicit PlayMethodClass(); -}; - -typedef PlayMethodClass::Value PlayMethod; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PLAYMETHOD_H diff --git a/core/include/JellyfinQt/DTO/playrequest.h b/core/include/JellyfinQt/DTO/playrequest.h deleted file mode 100644 index d67a030..0000000 --- a/core/include/JellyfinQt/DTO/playrequest.h +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PLAYREQUEST_H -#define JELLYFIN_DTO_PLAYREQUEST_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/playcommand.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class PlayRequest { -public:PlayRequest();PlayRequest(const PlayRequest &other); - - static PlayRequest fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the item ids. - */ - QList itemIds() const; - /** - * @brief Gets or sets the item ids. - */ - void setItemIds(QList newItemIds); - /** - * @brief Gets or sets the start position ticks that the first item should be played at. - */ - qint64 startPositionTicks() const; - /** - * @brief Gets or sets the start position ticks that the first item should be played at. - */ - void setStartPositionTicks(qint64 newStartPositionTicks); - - PlayCommand playCommand() const; - - void setPlayCommand(PlayCommand newPlayCommand); - /** - * @brief Gets or sets the controlling user identifier. - */ - QUuid controllingUserId() const; - /** - * @brief Gets or sets the controlling user identifier. - */ - void setControllingUserId(QUuid newControllingUserId); - - qint32 subtitleStreamIndex() const; - - void setSubtitleStreamIndex(qint32 newSubtitleStreamIndex); - - qint32 audioStreamIndex() const; - - void setAudioStreamIndex(qint32 newAudioStreamIndex); - - QString mediaSourceId() const; - - void setMediaSourceId(QString newMediaSourceId); - - qint32 startIndex() const; - - void setStartIndex(qint32 newStartIndex); - -protected: - QList m_itemIds; - qint64 m_startPositionTicks; - PlayCommand m_playCommand; - QUuid m_controllingUserId; - qint32 m_subtitleStreamIndex; - qint32 m_audioStreamIndex; - QString m_mediaSourceId; - qint32 m_startIndex; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PLAYREQUEST_H diff --git a/core/include/JellyfinQt/DTO/playrequestdto.h b/core/include/JellyfinQt/DTO/playrequestdto.h deleted file mode 100644 index fea6dea..0000000 --- a/core/include/JellyfinQt/DTO/playrequestdto.h +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PLAYREQUESTDTO_H -#define JELLYFIN_DTO_PLAYREQUESTDTO_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class PlayRequestDto { -public:PlayRequestDto();PlayRequestDto(const PlayRequestDto &other); - - static PlayRequestDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the playing queue. - */ - QList playingQueue() const; - /** - * @brief Gets or sets the playing queue. - */ - void setPlayingQueue(QList newPlayingQueue); - /** - * @brief Gets or sets the position of the playing item in the queue. - */ - qint32 playingItemPosition() const; - /** - * @brief Gets or sets the position of the playing item in the queue. - */ - void setPlayingItemPosition(qint32 newPlayingItemPosition); - /** - * @brief Gets or sets the start position ticks. - */ - qint64 startPositionTicks() const; - /** - * @brief Gets or sets the start position ticks. - */ - void setStartPositionTicks(qint64 newStartPositionTicks); - -protected: - QList m_playingQueue; - qint32 m_playingItemPosition; - qint64 m_startPositionTicks; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PLAYREQUESTDTO_H diff --git a/core/include/JellyfinQt/DTO/playstatecommand.h b/core/include/JellyfinQt/DTO/playstatecommand.h deleted file mode 100644 index 1fdf108..0000000 --- a/core/include/JellyfinQt/DTO/playstatecommand.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PLAYSTATECOMMAND_H -#define JELLYFIN_DTO_PLAYSTATECOMMAND_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class PlaystateCommandClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Stop, - Pause, - Unpause, - NextTrack, - PreviousTrack, - Seek, - Rewind, - FastForward, - PlayPause, - }; - Q_ENUM(Value) -private: - explicit PlaystateCommandClass(); -}; - -typedef PlaystateCommandClass::Value PlaystateCommand; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PLAYSTATECOMMAND_H diff --git a/core/include/JellyfinQt/DTO/playstaterequest.h b/core/include/JellyfinQt/DTO/playstaterequest.h deleted file mode 100644 index 6880c8d..0000000 --- a/core/include/JellyfinQt/DTO/playstaterequest.h +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PLAYSTATEREQUEST_H -#define JELLYFIN_DTO_PLAYSTATEREQUEST_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/playstatecommand.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class PlaystateRequest { -public:PlaystateRequest();PlaystateRequest(const PlaystateRequest &other); - - static PlaystateRequest fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - PlaystateCommand command() const; - - void setCommand(PlaystateCommand newCommand); - - qint64 seekPositionTicks() const; - - void setSeekPositionTicks(qint64 newSeekPositionTicks); - /** - * @brief Gets or sets the controlling user identifier. - */ - QString controllingUserId() const; - /** - * @brief Gets or sets the controlling user identifier. - */ - void setControllingUserId(QString newControllingUserId); - -protected: - PlaystateCommand m_command; - qint64 m_seekPositionTicks; - QString m_controllingUserId; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PLAYSTATEREQUEST_H diff --git a/core/include/JellyfinQt/DTO/plugininfo.h b/core/include/JellyfinQt/DTO/plugininfo.h deleted file mode 100644 index 54679cb..0000000 --- a/core/include/JellyfinQt/DTO/plugininfo.h +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PLUGININFO_H -#define JELLYFIN_DTO_PLUGININFO_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/pluginstatus.h" -#include "JellyfinQt/DTO/version.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class PluginInfo { -public:PluginInfo();PluginInfo(const PluginInfo &other); - - static PluginInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - - QSharedPointer version() const; - - void setVersion(QSharedPointer newVersion); - /** - * @brief Gets or sets the name of the configuration file. - */ - QString configurationFileName() const; - /** - * @brief Gets or sets the name of the configuration file. - */ - void setConfigurationFileName(QString newConfigurationFileName); - /** - * @brief Gets or sets the description. - */ - QString description() const; - /** - * @brief Gets or sets the description. - */ - void setDescription(QString newDescription); - /** - * @brief Gets or sets the unique id. - */ - QUuid jellyfinId() const; - /** - * @brief Gets or sets the unique id. - */ - void setJellyfinId(QUuid newJellyfinId); - /** - * @brief Gets or sets a value indicating whether the plugin can be uninstalled. - */ - bool canUninstall() const; - /** - * @brief Gets or sets a value indicating whether the plugin can be uninstalled. - */ - void setCanUninstall(bool newCanUninstall); - /** - * @brief Gets or sets a value indicating whether this plugin has a valid image. - */ - bool hasImage() const; - /** - * @brief Gets or sets a value indicating whether this plugin has a valid image. - */ - void setHasImage(bool newHasImage); - - PluginStatus status() const; - - void setStatus(PluginStatus newStatus); - -protected: - QString m_name; - QSharedPointer m_version = nullptr; - QString m_configurationFileName; - QString m_description; - QUuid m_jellyfinId; - bool m_canUninstall; - bool m_hasImage; - PluginStatus m_status; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PLUGININFO_H diff --git a/core/include/JellyfinQt/DTO/pluginsecurityinfo.h b/core/include/JellyfinQt/DTO/pluginsecurityinfo.h deleted file mode 100644 index 5ac4c0f..0000000 --- a/core/include/JellyfinQt/DTO/pluginsecurityinfo.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PLUGINSECURITYINFO_H -#define JELLYFIN_DTO_PLUGINSECURITYINFO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class PluginSecurityInfo { -public:PluginSecurityInfo();PluginSecurityInfo(const PluginSecurityInfo &other); - - static PluginSecurityInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the supporter key. - */ - QString supporterKey() const; - /** - * @brief Gets or sets the supporter key. - */ - void setSupporterKey(QString newSupporterKey); - /** - * @brief Gets or sets a value indicating whether is mb supporter. - */ - bool isMbSupporter() const; - /** - * @brief Gets or sets a value indicating whether is mb supporter. - */ - void setIsMbSupporter(bool newIsMbSupporter); - -protected: - QString m_supporterKey; - bool m_isMbSupporter; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PLUGINSECURITYINFO_H diff --git a/core/include/JellyfinQt/DTO/previousitemrequestdto.h b/core/include/JellyfinQt/DTO/previousitemrequestdto.h deleted file mode 100644 index 61a4396..0000000 --- a/core/include/JellyfinQt/DTO/previousitemrequestdto.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PREVIOUSITEMREQUESTDTO_H -#define JELLYFIN_DTO_PREVIOUSITEMREQUESTDTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class PreviousItemRequestDto { -public:PreviousItemRequestDto();PreviousItemRequestDto(const PreviousItemRequestDto &other); - - static PreviousItemRequestDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the playing item identifier. - */ - QUuid playlistItemId() const; - /** - * @brief Gets or sets the playing item identifier. - */ - void setPlaylistItemId(QUuid newPlaylistItemId); - -protected: - QUuid m_playlistItemId; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PREVIOUSITEMREQUESTDTO_H diff --git a/core/include/JellyfinQt/DTO/profilecondition.h b/core/include/JellyfinQt/DTO/profilecondition.h deleted file mode 100644 index 9af1b57..0000000 --- a/core/include/JellyfinQt/DTO/profilecondition.h +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PROFILECONDITION_H -#define JELLYFIN_DTO_PROFILECONDITION_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/profileconditiontype.h" -#include "JellyfinQt/DTO/profileconditionvalue.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ProfileCondition { -public:ProfileCondition();ProfileCondition(const ProfileCondition &other); - - static ProfileCondition fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - ProfileConditionType condition() const; - - void setCondition(ProfileConditionType newCondition); - - ProfileConditionValue property() const; - - void setProperty(ProfileConditionValue newProperty); - - QString value() const; - - void setValue(QString newValue); - - bool isRequired() const; - - void setIsRequired(bool newIsRequired); - -protected: - ProfileConditionType m_condition; - ProfileConditionValue m_property; - QString m_value; - bool m_isRequired; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PROFILECONDITION_H diff --git a/core/include/JellyfinQt/DTO/profileconditiontype.h b/core/include/JellyfinQt/DTO/profileconditiontype.h deleted file mode 100644 index df3eef2..0000000 --- a/core/include/JellyfinQt/DTO/profileconditiontype.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PROFILECONDITIONTYPE_H -#define JELLYFIN_DTO_PROFILECONDITIONTYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class ProfileConditionTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Equals, - NotEquals, - LessThanEqual, - GreaterThanEqual, - EqualsAny, - }; - Q_ENUM(Value) -private: - explicit ProfileConditionTypeClass(); -}; - -typedef ProfileConditionTypeClass::Value ProfileConditionType; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PROFILECONDITIONTYPE_H diff --git a/core/include/JellyfinQt/DTO/profileconditionvalue.h b/core/include/JellyfinQt/DTO/profileconditionvalue.h deleted file mode 100644 index 1bb4aae..0000000 --- a/core/include/JellyfinQt/DTO/profileconditionvalue.h +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PROFILECONDITIONVALUE_H -#define JELLYFIN_DTO_PROFILECONDITIONVALUE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class ProfileConditionValueClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - AudioChannels, - AudioBitrate, - AudioProfile, - Width, - Height, - Has64BitOffsets, - PacketLength, - VideoBitDepth, - VideoBitrate, - VideoFramerate, - VideoLevel, - VideoProfile, - VideoTimestamp, - IsAnamorphic, - RefFrames, - NumAudioStreams, - NumVideoStreams, - IsSecondaryAudio, - VideoCodecTag, - IsAvc, - IsInterlaced, - AudioSampleRate, - AudioBitDepth, - }; - Q_ENUM(Value) -private: - explicit ProfileConditionValueClass(); -}; - -typedef ProfileConditionValueClass::Value ProfileConditionValue; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PROFILECONDITIONVALUE_H diff --git a/core/include/JellyfinQt/DTO/programaudio.h b/core/include/JellyfinQt/DTO/programaudio.h deleted file mode 100644 index 76c87a0..0000000 --- a/core/include/JellyfinQt/DTO/programaudio.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PROGRAMAUDIO_H -#define JELLYFIN_DTO_PROGRAMAUDIO_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class ProgramAudioClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Mono, - Stereo, - Dolby, - DolbyDigital, - Thx, - Atmos, - }; - Q_ENUM(Value) -private: - explicit ProgramAudioClass(); -}; - -typedef ProgramAudioClass::Value ProgramAudio; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PROGRAMAUDIO_H diff --git a/core/include/JellyfinQt/DTO/publicsysteminfo.h b/core/include/JellyfinQt/DTO/publicsysteminfo.h deleted file mode 100644 index 4be06c5..0000000 --- a/core/include/JellyfinQt/DTO/publicsysteminfo.h +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_PUBLICSYSTEMINFO_H -#define JELLYFIN_DTO_PUBLICSYSTEMINFO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class PublicSystemInfo { -public:PublicSystemInfo();PublicSystemInfo(const PublicSystemInfo &other); - - static PublicSystemInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the local address. - */ - QString localAddress() const; - /** - * @brief Gets or sets the local address. - */ - void setLocalAddress(QString newLocalAddress); - /** - * @brief Gets or sets the name of the server. - */ - QString serverName() const; - /** - * @brief Gets or sets the name of the server. - */ - void setServerName(QString newServerName); - /** - * @brief Gets or sets the server version. - */ - QString version() const; - /** - * @brief Gets or sets the server version. - */ - void setVersion(QString newVersion); - /** - * @brief Gets or sets the product name. This is the AssemblyProduct name. - */ - QString productName() const; - /** - * @brief Gets or sets the product name. This is the AssemblyProduct name. - */ - void setProductName(QString newProductName); - /** - * @brief Gets or sets the operating system. - */ - QString operatingSystem() const; - /** - * @brief Gets or sets the operating system. - */ - void setOperatingSystem(QString newOperatingSystem); - /** - * @brief Gets or sets the id. - */ - QString jellyfinId() const; - /** - * @brief Gets or sets the id. - */ - void setJellyfinId(QString newJellyfinId); - /** - * @brief Gets or sets a value indicating whether the startup wizard is completed. - */ - bool startupWizardCompleted() const; - /** - * @brief Gets or sets a value indicating whether the startup wizard is completed. - */ - void setStartupWizardCompleted(bool newStartupWizardCompleted); - -protected: - QString m_localAddress; - QString m_serverName; - QString m_version; - QString m_productName; - QString m_operatingSystem; - QString m_jellyfinId; - bool m_startupWizardCompleted; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PUBLICSYSTEMINFO_H diff --git a/core/include/JellyfinQt/DTO/queryfilters.h b/core/include/JellyfinQt/DTO/queryfilters.h deleted file mode 100644 index 0d3c323..0000000 --- a/core/include/JellyfinQt/DTO/queryfilters.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_QUERYFILTERS_H -#define JELLYFIN_DTO_QUERYFILTERS_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/nameguidpair.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class QueryFilters { -public:QueryFilters();QueryFilters(const QueryFilters &other); - - static QueryFilters fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QList> genres() const; - - void setGenres(QList> newGenres); - - QStringList tags() const; - - void setTags(QStringList newTags); - -protected: - QList> m_genres; - QStringList m_tags; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_QUERYFILTERS_H diff --git a/core/include/JellyfinQt/DTO/queryfilterslegacy.h b/core/include/JellyfinQt/DTO/queryfilterslegacy.h deleted file mode 100644 index cdf4c1a..0000000 --- a/core/include/JellyfinQt/DTO/queryfilterslegacy.h +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_QUERYFILTERSLEGACY_H -#define JELLYFIN_DTO_QUERYFILTERSLEGACY_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class QueryFiltersLegacy { -public:QueryFiltersLegacy();QueryFiltersLegacy(const QueryFiltersLegacy &other); - - static QueryFiltersLegacy fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QStringList genres() const; - - void setGenres(QStringList newGenres); - - QStringList tags() const; - - void setTags(QStringList newTags); - - QStringList officialRatings() const; - - void setOfficialRatings(QStringList newOfficialRatings); - - QList years() const; - - void setYears(QList newYears); - -protected: - QStringList m_genres; - QStringList m_tags; - QStringList m_officialRatings; - QList m_years; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_QUERYFILTERSLEGACY_H diff --git a/core/include/JellyfinQt/DTO/queueitem.h b/core/include/JellyfinQt/DTO/queueitem.h deleted file mode 100644 index 6054b18..0000000 --- a/core/include/JellyfinQt/DTO/queueitem.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_QUEUEITEM_H -#define JELLYFIN_DTO_QUEUEITEM_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class QueueItem { -public:QueueItem();QueueItem(const QueueItem &other); - - static QueueItem fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QUuid jellyfinId() const; - - void setJellyfinId(QUuid newJellyfinId); - - QString playlistItemId() const; - - void setPlaylistItemId(QString newPlaylistItemId); - -protected: - QUuid m_jellyfinId; - QString m_playlistItemId; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_QUEUEITEM_H diff --git a/core/include/JellyfinQt/DTO/queuerequestdto.h b/core/include/JellyfinQt/DTO/queuerequestdto.h deleted file mode 100644 index a712d70..0000000 --- a/core/include/JellyfinQt/DTO/queuerequestdto.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_QUEUEREQUESTDTO_H -#define JELLYFIN_DTO_QUEUEREQUESTDTO_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/groupqueuemode.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class QueueRequestDto { -public:QueueRequestDto();QueueRequestDto(const QueueRequestDto &other); - - static QueueRequestDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the items to enqueue. - */ - QList itemIds() const; - /** - * @brief Gets or sets the items to enqueue. - */ - void setItemIds(QList newItemIds); - - GroupQueueMode mode() const; - - void setMode(GroupQueueMode newMode); - -protected: - QList m_itemIds; - GroupQueueMode m_mode; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_QUEUEREQUESTDTO_H diff --git a/core/include/JellyfinQt/DTO/quickconnectdto.h b/core/include/JellyfinQt/DTO/quickconnectdto.h deleted file mode 100644 index e4b60b8..0000000 --- a/core/include/JellyfinQt/DTO/quickconnectdto.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_QUICKCONNECTDTO_H -#define JELLYFIN_DTO_QUICKCONNECTDTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class QuickConnectDto { -public:QuickConnectDto();QuickConnectDto(const QuickConnectDto &other); - - static QuickConnectDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the quick connect token. - */ - QString token() const; - /** - * @brief Gets or sets the quick connect token. - */ - void setToken(QString newToken); - -protected: - QString m_token; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_QUICKCONNECTDTO_H diff --git a/core/include/JellyfinQt/DTO/quickconnectresult.h b/core/include/JellyfinQt/DTO/quickconnectresult.h deleted file mode 100644 index 18518ca..0000000 --- a/core/include/JellyfinQt/DTO/quickconnectresult.h +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_QUICKCONNECTRESULT_H -#define JELLYFIN_DTO_QUICKCONNECTRESULT_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class QuickConnectResult { -public:QuickConnectResult();QuickConnectResult(const QuickConnectResult &other); - - static QuickConnectResult fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets a value indicating whether this request is authorized. - */ - bool authenticated() const; - /** - * @brief Gets a value indicating whether this request is authorized. - */ - void setAuthenticated(bool newAuthenticated); - /** - * @brief Gets or sets the secret value used to uniquely identify this request. Can be used to retrieve authentication information. - */ - QString secret() const; - /** - * @brief Gets or sets the secret value used to uniquely identify this request. Can be used to retrieve authentication information. - */ - void setSecret(QString newSecret); - /** - * @brief Gets or sets the user facing code used so the user can quickly differentiate this request from others. - */ - QString code() const; - /** - * @brief Gets or sets the user facing code used so the user can quickly differentiate this request from others. - */ - void setCode(QString newCode); - /** - * @brief Gets or sets the private access token. - */ - QString authentication() const; - /** - * @brief Gets or sets the private access token. - */ - void setAuthentication(QString newAuthentication); - /** - * @brief Gets or sets an error message. - */ - QString error() const; - /** - * @brief Gets or sets an error message. - */ - void setError(QString newError); - /** - * @brief Gets or sets the DateTime that this request was created. - */ - QDateTime dateAdded() const; - /** - * @brief Gets or sets the DateTime that this request was created. - */ - void setDateAdded(QDateTime newDateAdded); - -protected: - bool m_authenticated; - QString m_secret; - QString m_code; - QString m_authentication; - QString m_error; - QDateTime m_dateAdded; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_QUICKCONNECTRESULT_H diff --git a/core/include/JellyfinQt/DTO/quickconnectstate.h b/core/include/JellyfinQt/DTO/quickconnectstate.h deleted file mode 100644 index a267963..0000000 --- a/core/include/JellyfinQt/DTO/quickconnectstate.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_QUICKCONNECTSTATE_H -#define JELLYFIN_DTO_QUICKCONNECTSTATE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class QuickConnectStateClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Unavailable, - Available, - Active, - }; - Q_ENUM(Value) -private: - explicit QuickConnectStateClass(); -}; - -typedef QuickConnectStateClass::Value QuickConnectState; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_QUICKCONNECTSTATE_H diff --git a/core/include/JellyfinQt/DTO/readyrequestdto.h b/core/include/JellyfinQt/DTO/readyrequestdto.h deleted file mode 100644 index 8675289..0000000 --- a/core/include/JellyfinQt/DTO/readyrequestdto.h +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_READYREQUESTDTO_H -#define JELLYFIN_DTO_READYREQUESTDTO_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ReadyRequestDto { -public:ReadyRequestDto();ReadyRequestDto(const ReadyRequestDto &other); - - static ReadyRequestDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets when the request has been made by the client. - */ - QDateTime when() const; - /** - * @brief Gets or sets when the request has been made by the client. - */ - void setWhen(QDateTime newWhen); - /** - * @brief Gets or sets the position ticks. - */ - qint64 positionTicks() const; - /** - * @brief Gets or sets the position ticks. - */ - void setPositionTicks(qint64 newPositionTicks); - /** - * @brief Gets or sets a value indicating whether the client playback is unpaused. - */ - bool isPlaying() const; - /** - * @brief Gets or sets a value indicating whether the client playback is unpaused. - */ - void setIsPlaying(bool newIsPlaying); - /** - * @brief Gets or sets the playlist item identifier of the playing item. - */ - QUuid playlistItemId() const; - /** - * @brief Gets or sets the playlist item identifier of the playing item. - */ - void setPlaylistItemId(QUuid newPlaylistItemId); - -protected: - QDateTime m_when; - qint64 m_positionTicks; - bool m_isPlaying; - QUuid m_playlistItemId; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_READYREQUESTDTO_H diff --git a/core/include/JellyfinQt/DTO/recommendationdto.h b/core/include/JellyfinQt/DTO/recommendationdto.h deleted file mode 100644 index 17e0a5c..0000000 --- a/core/include/JellyfinQt/DTO/recommendationdto.h +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_RECOMMENDATIONDTO_H -#define JELLYFIN_DTO_RECOMMENDATIONDTO_H - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/baseitemdto.h" -#include "JellyfinQt/DTO/recommendationtype.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class RecommendationDto { -public:RecommendationDto();RecommendationDto(const RecommendationDto &other); - - static RecommendationDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QList> items() const; - - void setItems(QList> newItems); - - RecommendationType recommendationType() const; - - void setRecommendationType(RecommendationType newRecommendationType); - - QString baselineItemName() const; - - void setBaselineItemName(QString newBaselineItemName); - - QUuid categoryId() const; - - void setCategoryId(QUuid newCategoryId); - -protected: - QList> m_items; - RecommendationType m_recommendationType; - QString m_baselineItemName; - QUuid m_categoryId; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_RECOMMENDATIONDTO_H diff --git a/core/include/JellyfinQt/DTO/recommendationtype.h b/core/include/JellyfinQt/DTO/recommendationtype.h deleted file mode 100644 index e3f885a..0000000 --- a/core/include/JellyfinQt/DTO/recommendationtype.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_RECOMMENDATIONTYPE_H -#define JELLYFIN_DTO_RECOMMENDATIONTYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class RecommendationTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - SimilarToRecentlyPlayed, - SimilarToLikedItem, - HasDirectorFromRecentlyPlayed, - HasActorFromRecentlyPlayed, - HasLikedDirector, - HasLikedActor, - }; - Q_ENUM(Value) -private: - explicit RecommendationTypeClass(); -}; - -typedef RecommendationTypeClass::Value RecommendationType; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_RECOMMENDATIONTYPE_H diff --git a/core/include/JellyfinQt/DTO/recordingstatus.h b/core/include/JellyfinQt/DTO/recordingstatus.h deleted file mode 100644 index 3d12b39..0000000 --- a/core/include/JellyfinQt/DTO/recordingstatus.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_RECORDINGSTATUS_H -#define JELLYFIN_DTO_RECORDINGSTATUS_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class RecordingStatusClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - New, - InProgress, - Completed, - Cancelled, - ConflictedOk, - ConflictedNotOk, - Error, - }; - Q_ENUM(Value) -private: - explicit RecordingStatusClass(); -}; - -typedef RecordingStatusClass::Value RecordingStatus; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_RECORDINGSTATUS_H diff --git a/core/include/JellyfinQt/DTO/remoteimageinfo.h b/core/include/JellyfinQt/DTO/remoteimageinfo.h deleted file mode 100644 index c837208..0000000 --- a/core/include/JellyfinQt/DTO/remoteimageinfo.h +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_REMOTEIMAGEINFO_H -#define JELLYFIN_DTO_REMOTEIMAGEINFO_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/imagetype.h" -#include "JellyfinQt/DTO/ratingtype.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class RemoteImageInfo { -public:RemoteImageInfo();RemoteImageInfo(const RemoteImageInfo &other); - - static RemoteImageInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name of the provider. - */ - QString providerName() const; - /** - * @brief Gets or sets the name of the provider. - */ - void setProviderName(QString newProviderName); - /** - * @brief Gets or sets the URL. - */ - QString url() const; - /** - * @brief Gets or sets the URL. - */ - void setUrl(QString newUrl); - /** - * @brief Gets a url used for previewing a smaller version. - */ - QString thumbnailUrl() const; - /** - * @brief Gets a url used for previewing a smaller version. - */ - void setThumbnailUrl(QString newThumbnailUrl); - /** - * @brief Gets or sets the height. - */ - qint32 height() const; - /** - * @brief Gets or sets the height. - */ - void setHeight(qint32 newHeight); - /** - * @brief Gets or sets the width. - */ - qint32 width() const; - /** - * @brief Gets or sets the width. - */ - void setWidth(qint32 newWidth); - /** - * @brief Gets or sets the community rating. - */ - double communityRating() const; - /** - * @brief Gets or sets the community rating. - */ - void setCommunityRating(double newCommunityRating); - /** - * @brief Gets or sets the vote count. - */ - qint32 voteCount() const; - /** - * @brief Gets or sets the vote count. - */ - void setVoteCount(qint32 newVoteCount); - /** - * @brief Gets or sets the language. - */ - QString language() const; - /** - * @brief Gets or sets the language. - */ - void setLanguage(QString newLanguage); - - ImageType type() const; - - void setType(ImageType newType); - - RatingType ratingType() const; - - void setRatingType(RatingType newRatingType); - -protected: - QString m_providerName; - QString m_url; - QString m_thumbnailUrl; - qint32 m_height; - qint32 m_width; - double m_communityRating; - qint32 m_voteCount; - QString m_language; - ImageType m_type; - RatingType m_ratingType; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_REMOTEIMAGEINFO_H diff --git a/core/include/JellyfinQt/DTO/remoteimageresult.h b/core/include/JellyfinQt/DTO/remoteimageresult.h deleted file mode 100644 index bff32e7..0000000 --- a/core/include/JellyfinQt/DTO/remoteimageresult.h +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_REMOTEIMAGERESULT_H -#define JELLYFIN_DTO_REMOTEIMAGERESULT_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/remoteimageinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class RemoteImageResult { -public:RemoteImageResult();RemoteImageResult(const RemoteImageResult &other); - - static RemoteImageResult fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the images. - */ - QList> images() const; - /** - * @brief Gets or sets the images. - */ - void setImages(QList> newImages); - /** - * @brief Gets or sets the total record count. - */ - qint32 totalRecordCount() const; - /** - * @brief Gets or sets the total record count. - */ - void setTotalRecordCount(qint32 newTotalRecordCount); - /** - * @brief Gets or sets the providers. - */ - QStringList providers() const; - /** - * @brief Gets or sets the providers. - */ - void setProviders(QStringList newProviders); - -protected: - QList> m_images; - qint32 m_totalRecordCount; - QStringList m_providers; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_REMOTEIMAGERESULT_H diff --git a/core/include/JellyfinQt/DTO/remotesearchresult.h b/core/include/JellyfinQt/DTO/remotesearchresult.h deleted file mode 100644 index b21f394..0000000 --- a/core/include/JellyfinQt/DTO/remotesearchresult.h +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_REMOTESEARCHRESULT_H -#define JELLYFIN_DTO_REMOTESEARCHRESULT_H - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class RemoteSearchResult { -public:RemoteSearchResult();RemoteSearchResult(const RemoteSearchResult &other); - - static RemoteSearchResult fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the provider ids. - */ - QJsonObject providerIds() const; - /** - * @brief Gets or sets the provider ids. - */ - void setProviderIds(QJsonObject newProviderIds); - /** - * @brief Gets or sets the year. - */ - qint32 productionYear() const; - /** - * @brief Gets or sets the year. - */ - void setProductionYear(qint32 newProductionYear); - - qint32 indexNumber() const; - - void setIndexNumber(qint32 newIndexNumber); - - qint32 indexNumberEnd() const; - - void setIndexNumberEnd(qint32 newIndexNumberEnd); - - qint32 parentIndexNumber() const; - - void setParentIndexNumber(qint32 newParentIndexNumber); - - QDateTime premiereDate() const; - - void setPremiereDate(QDateTime newPremiereDate); - - QString imageUrl() const; - - void setImageUrl(QString newImageUrl); - - QString searchProviderName() const; - - void setSearchProviderName(QString newSearchProviderName); - - QString overview() const; - - void setOverview(QString newOverview); - - QSharedPointer albumArtist() const; - - void setAlbumArtist(QSharedPointer newAlbumArtist); - - QList> artists() const; - - void setArtists(QList> newArtists); - -protected: - QString m_name; - QJsonObject m_providerIds; - qint32 m_productionYear; - qint32 m_indexNumber; - qint32 m_indexNumberEnd; - qint32 m_parentIndexNumber; - QDateTime m_premiereDate; - QString m_imageUrl; - QString m_searchProviderName; - QString m_overview; - QSharedPointer m_albumArtist = nullptr; - QList> m_artists; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_REMOTESEARCHRESULT_H diff --git a/core/include/JellyfinQt/DTO/remotesubtitleinfo.h b/core/include/JellyfinQt/DTO/remotesubtitleinfo.h deleted file mode 100644 index edb60db..0000000 --- a/core/include/JellyfinQt/DTO/remotesubtitleinfo.h +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_REMOTESUBTITLEINFO_H -#define JELLYFIN_DTO_REMOTESUBTITLEINFO_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class RemoteSubtitleInfo { -public:RemoteSubtitleInfo();RemoteSubtitleInfo(const RemoteSubtitleInfo &other); - - static RemoteSubtitleInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QString threeLetterISOLanguageName() const; - - void setThreeLetterISOLanguageName(QString newThreeLetterISOLanguageName); - - QString jellyfinId() const; - - void setJellyfinId(QString newJellyfinId); - - QString providerName() const; - - void setProviderName(QString newProviderName); - - QString name() const; - - void setName(QString newName); - - QString format() const; - - void setFormat(QString newFormat); - - QString author() const; - - void setAuthor(QString newAuthor); - - QString comment() const; - - void setComment(QString newComment); - - QDateTime dateCreated() const; - - void setDateCreated(QDateTime newDateCreated); - - float communityRating() const; - - void setCommunityRating(float newCommunityRating); - - qint32 downloadCount() const; - - void setDownloadCount(qint32 newDownloadCount); - - bool isHashMatch() const; - - void setIsHashMatch(bool newIsHashMatch); - -protected: - QString m_threeLetterISOLanguageName; - QString m_jellyfinId; - QString m_providerName; - QString m_name; - QString m_format; - QString m_author; - QString m_comment; - QDateTime m_dateCreated; - float m_communityRating; - qint32 m_downloadCount; - bool m_isHashMatch; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_REMOTESUBTITLEINFO_H diff --git a/core/include/JellyfinQt/DTO/removefromplaylistrequestdto.h b/core/include/JellyfinQt/DTO/removefromplaylistrequestdto.h deleted file mode 100644 index cb31a4b..0000000 --- a/core/include/JellyfinQt/DTO/removefromplaylistrequestdto.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_REMOVEFROMPLAYLISTREQUESTDTO_H -#define JELLYFIN_DTO_REMOVEFROMPLAYLISTREQUESTDTO_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class RemoveFromPlaylistRequestDto { -public:RemoveFromPlaylistRequestDto();RemoveFromPlaylistRequestDto(const RemoveFromPlaylistRequestDto &other); - - static RemoveFromPlaylistRequestDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the playlist identifiers ot the items. - */ - QList playlistItemIds() const; - /** - * @brief Gets or sets the playlist identifiers ot the items. - */ - void setPlaylistItemIds(QList newPlaylistItemIds); - -protected: - QList m_playlistItemIds; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_REMOVEFROMPLAYLISTREQUESTDTO_H diff --git a/core/include/JellyfinQt/DTO/repeatmode.h b/core/include/JellyfinQt/DTO/repeatmode.h deleted file mode 100644 index 477c330..0000000 --- a/core/include/JellyfinQt/DTO/repeatmode.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_REPEATMODE_H -#define JELLYFIN_DTO_REPEATMODE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class RepeatModeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - RepeatNone, - RepeatAll, - RepeatOne, - }; - Q_ENUM(Value) -private: - explicit RepeatModeClass(); -}; - -typedef RepeatModeClass::Value RepeatMode; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_REPEATMODE_H diff --git a/core/include/JellyfinQt/DTO/repositoryinfo.h b/core/include/JellyfinQt/DTO/repositoryinfo.h deleted file mode 100644 index c0d4bdd..0000000 --- a/core/include/JellyfinQt/DTO/repositoryinfo.h +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_REPOSITORYINFO_H -#define JELLYFIN_DTO_REPOSITORYINFO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class RepositoryInfo { -public:RepositoryInfo();RepositoryInfo(const RepositoryInfo &other); - - static RepositoryInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the URL. - */ - QString url() const; - /** - * @brief Gets or sets the URL. - */ - void setUrl(QString newUrl); - /** - * @brief Gets or sets a value indicating whether the repository is enabled. - */ - bool enabled() const; - /** - * @brief Gets or sets a value indicating whether the repository is enabled. - */ - void setEnabled(bool newEnabled); - -protected: - QString m_name; - QString m_url; - bool m_enabled; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_REPOSITORYINFO_H diff --git a/core/include/JellyfinQt/DTO/responseprofile.h b/core/include/JellyfinQt/DTO/responseprofile.h deleted file mode 100644 index f16a6d9..0000000 --- a/core/include/JellyfinQt/DTO/responseprofile.h +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_RESPONSEPROFILE_H -#define JELLYFIN_DTO_RESPONSEPROFILE_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/dlnaprofiletype.h" -#include "JellyfinQt/DTO/profilecondition.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ResponseProfile { -public:ResponseProfile();ResponseProfile(const ResponseProfile &other); - - static ResponseProfile fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QString container() const; - - void setContainer(QString newContainer); - - QString audioCodec() const; - - void setAudioCodec(QString newAudioCodec); - - QString videoCodec() const; - - void setVideoCodec(QString newVideoCodec); - - DlnaProfileType type() const; - - void setType(DlnaProfileType newType); - - QString orgPn() const; - - void setOrgPn(QString newOrgPn); - - QString mimeType() const; - - void setMimeType(QString newMimeType); - - QList> conditions() const; - - void setConditions(QList> newConditions); - -protected: - QString m_container; - QString m_audioCodec; - QString m_videoCodec; - DlnaProfileType m_type; - QString m_orgPn; - QString m_mimeType; - QList> m_conditions; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_RESPONSEPROFILE_H diff --git a/core/include/JellyfinQt/DTO/scrolldirection.h b/core/include/JellyfinQt/DTO/scrolldirection.h deleted file mode 100644 index 348a0fa..0000000 --- a/core/include/JellyfinQt/DTO/scrolldirection.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SCROLLDIRECTION_H -#define JELLYFIN_DTO_SCROLLDIRECTION_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class ScrollDirectionClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Horizontal, - Vertical, - }; - Q_ENUM(Value) -private: - explicit ScrollDirectionClass(); -}; - -typedef ScrollDirectionClass::Value ScrollDirection; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SCROLLDIRECTION_H diff --git a/core/include/JellyfinQt/DTO/searchhint.h b/core/include/JellyfinQt/DTO/searchhint.h deleted file mode 100644 index 02d1dbc..0000000 --- a/core/include/JellyfinQt/DTO/searchhint.h +++ /dev/null @@ -1,300 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SEARCHHINT_H -#define JELLYFIN_DTO_SEARCHHINT_H - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class SearchHint { -public:SearchHint();SearchHint(const SearchHint &other); - - static SearchHint fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the item id. - */ - QUuid itemId() const; - /** - * @brief Gets or sets the item id. - */ - void setItemId(QUuid newItemId); - - QUuid jellyfinId() const; - - void setJellyfinId(QUuid newJellyfinId); - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the matched term. - */ - QString matchedTerm() const; - /** - * @brief Gets or sets the matched term. - */ - void setMatchedTerm(QString newMatchedTerm); - /** - * @brief Gets or sets the index number. - */ - qint32 indexNumber() const; - /** - * @brief Gets or sets the index number. - */ - void setIndexNumber(qint32 newIndexNumber); - /** - * @brief Gets or sets the production year. - */ - qint32 productionYear() const; - /** - * @brief Gets or sets the production year. - */ - void setProductionYear(qint32 newProductionYear); - /** - * @brief Gets or sets the parent index number. - */ - qint32 parentIndexNumber() const; - /** - * @brief Gets or sets the parent index number. - */ - void setParentIndexNumber(qint32 newParentIndexNumber); - /** - * @brief Gets or sets the image tag. - */ - QString primaryImageTag() const; - /** - * @brief Gets or sets the image tag. - */ - void setPrimaryImageTag(QString newPrimaryImageTag); - /** - * @brief Gets or sets the thumb image tag. - */ - QString thumbImageTag() const; - /** - * @brief Gets or sets the thumb image tag. - */ - void setThumbImageTag(QString newThumbImageTag); - /** - * @brief Gets or sets the thumb image item identifier. - */ - QString thumbImageItemId() const; - /** - * @brief Gets or sets the thumb image item identifier. - */ - void setThumbImageItemId(QString newThumbImageItemId); - /** - * @brief Gets or sets the backdrop image tag. - */ - QString backdropImageTag() const; - /** - * @brief Gets or sets the backdrop image tag. - */ - void setBackdropImageTag(QString newBackdropImageTag); - /** - * @brief Gets or sets the backdrop image item identifier. - */ - QString backdropImageItemId() const; - /** - * @brief Gets or sets the backdrop image item identifier. - */ - void setBackdropImageItemId(QString newBackdropImageItemId); - /** - * @brief Gets or sets the type. - */ - QString type() const; - /** - * @brief Gets or sets the type. - */ - void setType(QString newType); - - bool isFolder() const; - - void setIsFolder(bool newIsFolder); - /** - * @brief Gets or sets the run time ticks. - */ - qint64 runTimeTicks() const; - /** - * @brief Gets or sets the run time ticks. - */ - void setRunTimeTicks(qint64 newRunTimeTicks); - /** - * @brief Gets or sets the type of the media. - */ - QString mediaType() const; - /** - * @brief Gets or sets the type of the media. - */ - void setMediaType(QString newMediaType); - - QDateTime startDate() const; - - void setStartDate(QDateTime newStartDate); - - QDateTime endDate() const; - - void setEndDate(QDateTime newEndDate); - /** - * @brief Gets or sets the series. - */ - QString series() const; - /** - * @brief Gets or sets the series. - */ - void setSeries(QString newSeries); - - QString status() const; - - void setStatus(QString newStatus); - /** - * @brief Gets or sets the album. - */ - QString album() const; - /** - * @brief Gets or sets the album. - */ - void setAlbum(QString newAlbum); - - QUuid albumId() const; - - void setAlbumId(QUuid newAlbumId); - /** - * @brief Gets or sets the album artist. - */ - QString albumArtist() const; - /** - * @brief Gets or sets the album artist. - */ - void setAlbumArtist(QString newAlbumArtist); - /** - * @brief Gets or sets the artists. - */ - QStringList artists() const; - /** - * @brief Gets or sets the artists. - */ - void setArtists(QStringList newArtists); - /** - * @brief Gets or sets the song count. - */ - qint32 songCount() const; - /** - * @brief Gets or sets the song count. - */ - void setSongCount(qint32 newSongCount); - /** - * @brief Gets or sets the episode count. - */ - qint32 episodeCount() const; - /** - * @brief Gets or sets the episode count. - */ - void setEpisodeCount(qint32 newEpisodeCount); - /** - * @brief Gets or sets the channel identifier. - */ - QUuid channelId() const; - /** - * @brief Gets or sets the channel identifier. - */ - void setChannelId(QUuid newChannelId); - /** - * @brief Gets or sets the name of the channel. - */ - QString channelName() const; - /** - * @brief Gets or sets the name of the channel. - */ - void setChannelName(QString newChannelName); - /** - * @brief Gets or sets the primary image aspect ratio. - */ - double primaryImageAspectRatio() const; - /** - * @brief Gets or sets the primary image aspect ratio. - */ - void setPrimaryImageAspectRatio(double newPrimaryImageAspectRatio); - -protected: - QUuid m_itemId; - QUuid m_jellyfinId; - QString m_name; - QString m_matchedTerm; - qint32 m_indexNumber; - qint32 m_productionYear; - qint32 m_parentIndexNumber; - QString m_primaryImageTag; - QString m_thumbImageTag; - QString m_thumbImageItemId; - QString m_backdropImageTag; - QString m_backdropImageItemId; - QString m_type; - bool m_isFolder; - qint64 m_runTimeTicks; - QString m_mediaType; - QDateTime m_startDate; - QDateTime m_endDate; - QString m_series; - QString m_status; - QString m_album; - QUuid m_albumId; - QString m_albumArtist; - QStringList m_artists; - qint32 m_songCount; - qint32 m_episodeCount; - QUuid m_channelId; - QString m_channelName; - double m_primaryImageAspectRatio; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SEARCHHINT_H diff --git a/core/include/JellyfinQt/DTO/searchhintresult.h b/core/include/JellyfinQt/DTO/searchhintresult.h deleted file mode 100644 index fbde26e..0000000 --- a/core/include/JellyfinQt/DTO/searchhintresult.h +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SEARCHHINTRESULT_H -#define JELLYFIN_DTO_SEARCHHINTRESULT_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/searchhint.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class SearchHintResult { -public:SearchHintResult();SearchHintResult(const SearchHintResult &other); - - static SearchHintResult fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the search hints. - */ - QList> searchHints() const; - /** - * @brief Gets or sets the search hints. - */ - void setSearchHints(QList> newSearchHints); - /** - * @brief Gets or sets the total record count. - */ - qint32 totalRecordCount() const; - /** - * @brief Gets or sets the total record count. - */ - void setTotalRecordCount(qint32 newTotalRecordCount); - -protected: - QList> m_searchHints; - qint32 m_totalRecordCount; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SEARCHHINTRESULT_H diff --git a/core/include/JellyfinQt/DTO/seekrequestdto.h b/core/include/JellyfinQt/DTO/seekrequestdto.h deleted file mode 100644 index 5fc321f..0000000 --- a/core/include/JellyfinQt/DTO/seekrequestdto.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SEEKREQUESTDTO_H -#define JELLYFIN_DTO_SEEKREQUESTDTO_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class SeekRequestDto { -public:SeekRequestDto();SeekRequestDto(const SeekRequestDto &other); - - static SeekRequestDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the position ticks. - */ - qint64 positionTicks() const; - /** - * @brief Gets or sets the position ticks. - */ - void setPositionTicks(qint64 newPositionTicks); - -protected: - qint64 m_positionTicks; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SEEKREQUESTDTO_H diff --git a/core/include/JellyfinQt/DTO/sendcommand.h b/core/include/JellyfinQt/DTO/sendcommand.h deleted file mode 100644 index be65442..0000000 --- a/core/include/JellyfinQt/DTO/sendcommand.h +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SENDCOMMAND_H -#define JELLYFIN_DTO_SENDCOMMAND_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/sendcommandtype.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class SendCommand { -public:SendCommand();SendCommand(const SendCommand &other); - - static SendCommand fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets the group identifier. - */ - QUuid groupId() const; - /** - * @brief Gets the group identifier. - */ - void setGroupId(QUuid newGroupId); - /** - * @brief Gets the playlist identifier of the playing item. - */ - QUuid playlistItemId() const; - /** - * @brief Gets the playlist identifier of the playing item. - */ - void setPlaylistItemId(QUuid newPlaylistItemId); - /** - * @brief Gets or sets the UTC time when to execute the command. - */ - QDateTime when() const; - /** - * @brief Gets or sets the UTC time when to execute the command. - */ - void setWhen(QDateTime newWhen); - /** - * @brief Gets the position ticks. - */ - qint64 positionTicks() const; - /** - * @brief Gets the position ticks. - */ - void setPositionTicks(qint64 newPositionTicks); - - SendCommandType command() const; - - void setCommand(SendCommandType newCommand); - /** - * @brief Gets the UTC time when this command has been emitted. - */ - QDateTime emittedAt() const; - /** - * @brief Gets the UTC time when this command has been emitted. - */ - void setEmittedAt(QDateTime newEmittedAt); - -protected: - QUuid m_groupId; - QUuid m_playlistItemId; - QDateTime m_when; - qint64 m_positionTicks; - SendCommandType m_command; - QDateTime m_emittedAt; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SENDCOMMAND_H diff --git a/core/include/JellyfinQt/DTO/sendcommandtype.h b/core/include/JellyfinQt/DTO/sendcommandtype.h deleted file mode 100644 index 9641aee..0000000 --- a/core/include/JellyfinQt/DTO/sendcommandtype.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SENDCOMMANDTYPE_H -#define JELLYFIN_DTO_SENDCOMMANDTYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class SendCommandTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Unpause, - Pause, - Stop, - Seek, - }; - Q_ENUM(Value) -private: - explicit SendCommandTypeClass(); -}; - -typedef SendCommandTypeClass::Value SendCommandType; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SENDCOMMANDTYPE_H diff --git a/core/include/JellyfinQt/DTO/seriesinfo.h b/core/include/JellyfinQt/DTO/seriesinfo.h deleted file mode 100644 index add193b..0000000 --- a/core/include/JellyfinQt/DTO/seriesinfo.h +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SERIESINFO_H -#define JELLYFIN_DTO_SERIESINFO_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class SeriesInfo { -public:SeriesInfo();SeriesInfo(const SeriesInfo &other); - - static SeriesInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the path. - */ - QString path() const; - /** - * @brief Gets or sets the path. - */ - void setPath(QString newPath); - /** - * @brief Gets or sets the metadata language. - */ - QString metadataLanguage() const; - /** - * @brief Gets or sets the metadata language. - */ - void setMetadataLanguage(QString newMetadataLanguage); - /** - * @brief Gets or sets the metadata country code. - */ - QString metadataCountryCode() const; - /** - * @brief Gets or sets the metadata country code. - */ - void setMetadataCountryCode(QString newMetadataCountryCode); - /** - * @brief Gets or sets the provider ids. - */ - QJsonObject providerIds() const; - /** - * @brief Gets or sets the provider ids. - */ - void setProviderIds(QJsonObject newProviderIds); - /** - * @brief Gets or sets the year. - */ - qint32 year() const; - /** - * @brief Gets or sets the year. - */ - void setYear(qint32 newYear); - - qint32 indexNumber() const; - - void setIndexNumber(qint32 newIndexNumber); - - qint32 parentIndexNumber() const; - - void setParentIndexNumber(qint32 newParentIndexNumber); - - QDateTime premiereDate() const; - - void setPremiereDate(QDateTime newPremiereDate); - - bool isAutomated() const; - - void setIsAutomated(bool newIsAutomated); - -protected: - QString m_name; - QString m_path; - QString m_metadataLanguage; - QString m_metadataCountryCode; - QJsonObject m_providerIds; - qint32 m_year; - qint32 m_indexNumber; - qint32 m_parentIndexNumber; - QDateTime m_premiereDate; - bool m_isAutomated; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SERIESINFO_H diff --git a/core/include/JellyfinQt/DTO/seriesinforemotesearchquery.h b/core/include/JellyfinQt/DTO/seriesinforemotesearchquery.h deleted file mode 100644 index 200b63a..0000000 --- a/core/include/JellyfinQt/DTO/seriesinforemotesearchquery.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SERIESINFOREMOTESEARCHQUERY_H -#define JELLYFIN_DTO_SERIESINFOREMOTESEARCHQUERY_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/seriesinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class SeriesInfoRemoteSearchQuery { -public:SeriesInfoRemoteSearchQuery();SeriesInfoRemoteSearchQuery(const SeriesInfoRemoteSearchQuery &other); - - static SeriesInfoRemoteSearchQuery fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QSharedPointer searchInfo() const; - - void setSearchInfo(QSharedPointer newSearchInfo); - - QUuid itemId() const; - - void setItemId(QUuid newItemId); - /** - * @brief Will only search within the given provider when set. - */ - QString searchProviderName() const; - /** - * @brief Will only search within the given provider when set. - */ - void setSearchProviderName(QString newSearchProviderName); - /** - * @brief Gets or sets a value indicating whether disabled providers should be included. - */ - bool includeDisabledProviders() const; - /** - * @brief Gets or sets a value indicating whether disabled providers should be included. - */ - void setIncludeDisabledProviders(bool newIncludeDisabledProviders); - -protected: - QSharedPointer m_searchInfo = nullptr; - QUuid m_itemId; - QString m_searchProviderName; - bool m_includeDisabledProviders; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SERIESINFOREMOTESEARCHQUERY_H diff --git a/core/include/JellyfinQt/DTO/seriesstatus.h b/core/include/JellyfinQt/DTO/seriesstatus.h deleted file mode 100644 index 96393e8..0000000 --- a/core/include/JellyfinQt/DTO/seriesstatus.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SERIESSTATUS_H -#define JELLYFIN_DTO_SERIESSTATUS_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class SeriesStatusClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Continuing, - Ended, - }; - Q_ENUM(Value) -private: - explicit SeriesStatusClass(); -}; - -typedef SeriesStatusClass::Value SeriesStatus; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SERIESSTATUS_H diff --git a/core/include/JellyfinQt/DTO/seriestimerinfodto.h b/core/include/JellyfinQt/DTO/seriestimerinfodto.h deleted file mode 100644 index 4570ba0..0000000 --- a/core/include/JellyfinQt/DTO/seriestimerinfodto.h +++ /dev/null @@ -1,357 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SERIESTIMERINFODTO_H -#define JELLYFIN_DTO_SERIESTIMERINFODTO_H - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/dayofweek.h" -#include "JellyfinQt/DTO/daypattern.h" -#include "JellyfinQt/DTO/keepuntil.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class SeriesTimerInfoDto { -public:SeriesTimerInfoDto();SeriesTimerInfoDto(const SeriesTimerInfoDto &other); - - static SeriesTimerInfoDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Id of the recording. - */ - QString jellyfinId() const; - /** - * @brief Id of the recording. - */ - void setJellyfinId(QString newJellyfinId); - - QString type() const; - - void setType(QString newType); - /** - * @brief Gets or sets the server identifier. - */ - QString serverId() const; - /** - * @brief Gets or sets the server identifier. - */ - void setServerId(QString newServerId); - /** - * @brief Gets or sets the external identifier. - */ - QString externalId() const; - /** - * @brief Gets or sets the external identifier. - */ - void setExternalId(QString newExternalId); - /** - * @brief ChannelId of the recording. - */ - QUuid channelId() const; - /** - * @brief ChannelId of the recording. - */ - void setChannelId(QUuid newChannelId); - /** - * @brief Gets or sets the external channel identifier. - */ - QString externalChannelId() const; - /** - * @brief Gets or sets the external channel identifier. - */ - void setExternalChannelId(QString newExternalChannelId); - /** - * @brief ChannelName of the recording. - */ - QString channelName() const; - /** - * @brief ChannelName of the recording. - */ - void setChannelName(QString newChannelName); - - QString channelPrimaryImageTag() const; - - void setChannelPrimaryImageTag(QString newChannelPrimaryImageTag); - /** - * @brief Gets or sets the program identifier. - */ - QString programId() const; - /** - * @brief Gets or sets the program identifier. - */ - void setProgramId(QString newProgramId); - /** - * @brief Gets or sets the external program identifier. - */ - QString externalProgramId() const; - /** - * @brief Gets or sets the external program identifier. - */ - void setExternalProgramId(QString newExternalProgramId); - /** - * @brief Name of the recording. - */ - QString name() const; - /** - * @brief Name of the recording. - */ - void setName(QString newName); - /** - * @brief Description of the recording. - */ - QString overview() const; - /** - * @brief Description of the recording. - */ - void setOverview(QString newOverview); - /** - * @brief The start date of the recording, in UTC. - */ - QDateTime startDate() const; - /** - * @brief The start date of the recording, in UTC. - */ - void setStartDate(QDateTime newStartDate); - /** - * @brief The end date of the recording, in UTC. - */ - QDateTime endDate() const; - /** - * @brief The end date of the recording, in UTC. - */ - void setEndDate(QDateTime newEndDate); - /** - * @brief Gets or sets the name of the service. - */ - QString serviceName() const; - /** - * @brief Gets or sets the name of the service. - */ - void setServiceName(QString newServiceName); - /** - * @brief Gets or sets the priority. - */ - qint32 priority() const; - /** - * @brief Gets or sets the priority. - */ - void setPriority(qint32 newPriority); - /** - * @brief Gets or sets the pre padding seconds. - */ - qint32 prePaddingSeconds() const; - /** - * @brief Gets or sets the pre padding seconds. - */ - void setPrePaddingSeconds(qint32 newPrePaddingSeconds); - /** - * @brief Gets or sets the post padding seconds. - */ - qint32 postPaddingSeconds() const; - /** - * @brief Gets or sets the post padding seconds. - */ - void setPostPaddingSeconds(qint32 newPostPaddingSeconds); - /** - * @brief Gets or sets a value indicating whether this instance is pre padding required. - */ - bool isPrePaddingRequired() const; - /** - * @brief Gets or sets a value indicating whether this instance is pre padding required. - */ - void setIsPrePaddingRequired(bool newIsPrePaddingRequired); - /** - * @brief If the item does not have any backdrops, this will hold the Id of the Parent that has one. - */ - QString parentBackdropItemId() const; - /** - * @brief If the item does not have any backdrops, this will hold the Id of the Parent that has one. - */ - void setParentBackdropItemId(QString newParentBackdropItemId); - /** - * @brief Gets or sets the parent backdrop image tags. - */ - QStringList parentBackdropImageTags() const; - /** - * @brief Gets or sets the parent backdrop image tags. - */ - void setParentBackdropImageTags(QStringList newParentBackdropImageTags); - /** - * @brief Gets or sets a value indicating whether this instance is post padding required. - */ - bool isPostPaddingRequired() const; - /** - * @brief Gets or sets a value indicating whether this instance is post padding required. - */ - void setIsPostPaddingRequired(bool newIsPostPaddingRequired); - - KeepUntil keepUntil() const; - - void setKeepUntil(KeepUntil newKeepUntil); - /** - * @brief Gets or sets a value indicating whether [record any time]. - */ - bool recordAnyTime() const; - /** - * @brief Gets or sets a value indicating whether [record any time]. - */ - void setRecordAnyTime(bool newRecordAnyTime); - - bool skipEpisodesInLibrary() const; - - void setSkipEpisodesInLibrary(bool newSkipEpisodesInLibrary); - /** - * @brief Gets or sets a value indicating whether [record any channel]. - */ - bool recordAnyChannel() const; - /** - * @brief Gets or sets a value indicating whether [record any channel]. - */ - void setRecordAnyChannel(bool newRecordAnyChannel); - - qint32 keepUpTo() const; - - void setKeepUpTo(qint32 newKeepUpTo); - /** - * @brief Gets or sets a value indicating whether [record new only]. - */ - bool recordNewOnly() const; - /** - * @brief Gets or sets a value indicating whether [record new only]. - */ - void setRecordNewOnly(bool newRecordNewOnly); - /** - * @brief Gets or sets the days. - */ - QList days() const; - /** - * @brief Gets or sets the days. - */ - void setDays(QList newDays); - - DayPattern dayPattern() const; - - void setDayPattern(DayPattern newDayPattern); - /** - * @brief Gets or sets the image tags. - */ - QJsonObject imageTags() const; - /** - * @brief Gets or sets the image tags. - */ - void setImageTags(QJsonObject newImageTags); - /** - * @brief Gets or sets the parent thumb item id. - */ - QString parentThumbItemId() const; - /** - * @brief Gets or sets the parent thumb item id. - */ - void setParentThumbItemId(QString newParentThumbItemId); - /** - * @brief Gets or sets the parent thumb image tag. - */ - QString parentThumbImageTag() const; - /** - * @brief Gets or sets the parent thumb image tag. - */ - void setParentThumbImageTag(QString newParentThumbImageTag); - /** - * @brief Gets or sets the parent primary image item identifier. - */ - QString parentPrimaryImageItemId() const; - /** - * @brief Gets or sets the parent primary image item identifier. - */ - void setParentPrimaryImageItemId(QString newParentPrimaryImageItemId); - /** - * @brief Gets or sets the parent primary image tag. - */ - QString parentPrimaryImageTag() const; - /** - * @brief Gets or sets the parent primary image tag. - */ - void setParentPrimaryImageTag(QString newParentPrimaryImageTag); - -protected: - QString m_jellyfinId; - QString m_type; - QString m_serverId; - QString m_externalId; - QUuid m_channelId; - QString m_externalChannelId; - QString m_channelName; - QString m_channelPrimaryImageTag; - QString m_programId; - QString m_externalProgramId; - QString m_name; - QString m_overview; - QDateTime m_startDate; - QDateTime m_endDate; - QString m_serviceName; - qint32 m_priority; - qint32 m_prePaddingSeconds; - qint32 m_postPaddingSeconds; - bool m_isPrePaddingRequired; - QString m_parentBackdropItemId; - QStringList m_parentBackdropImageTags; - bool m_isPostPaddingRequired; - KeepUntil m_keepUntil; - bool m_recordAnyTime; - bool m_skipEpisodesInLibrary; - bool m_recordAnyChannel; - qint32 m_keepUpTo; - bool m_recordNewOnly; - QList m_days; - DayPattern m_dayPattern; - QJsonObject m_imageTags; - QString m_parentThumbItemId; - QString m_parentThumbImageTag; - QString m_parentPrimaryImageItemId; - QString m_parentPrimaryImageTag; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SERIESTIMERINFODTO_H diff --git a/core/include/JellyfinQt/DTO/seriestimerinfodtoqueryresult.h b/core/include/JellyfinQt/DTO/seriestimerinfodtoqueryresult.h deleted file mode 100644 index 6be8875..0000000 --- a/core/include/JellyfinQt/DTO/seriestimerinfodtoqueryresult.h +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SERIESTIMERINFODTOQUERYRESULT_H -#define JELLYFIN_DTO_SERIESTIMERINFODTOQUERYRESULT_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/seriestimerinfodto.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class SeriesTimerInfoDtoQueryResult { -public:SeriesTimerInfoDtoQueryResult();SeriesTimerInfoDtoQueryResult(const SeriesTimerInfoDtoQueryResult &other); - - static SeriesTimerInfoDtoQueryResult fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the items. - */ - QList> items() const; - /** - * @brief Gets or sets the items. - */ - void setItems(QList> newItems); - /** - * @brief The total number of records available. - */ - qint32 totalRecordCount() const; - /** - * @brief The total number of records available. - */ - void setTotalRecordCount(qint32 newTotalRecordCount); - /** - * @brief The index of the first record in Items. - */ - qint32 startIndex() const; - /** - * @brief The index of the first record in Items. - */ - void setStartIndex(qint32 newStartIndex); - -protected: - QList> m_items; - qint32 m_totalRecordCount; - qint32 m_startIndex; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SERIESTIMERINFODTOQUERYRESULT_H diff --git a/core/include/JellyfinQt/DTO/serverconfiguration.h b/core/include/JellyfinQt/DTO/serverconfiguration.h deleted file mode 100644 index 5ede92a..0000000 --- a/core/include/JellyfinQt/DTO/serverconfiguration.h +++ /dev/null @@ -1,751 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SERVERCONFIGURATION_H -#define JELLYFIN_DTO_SERVERCONFIGURATION_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/imagesavingconvention.h" -#include "JellyfinQt/DTO/metadataoptions.h" -#include "JellyfinQt/DTO/namevaluepair.h" -#include "JellyfinQt/DTO/pathsubstitution.h" -#include "JellyfinQt/DTO/repositoryinfo.h" -#include "JellyfinQt/DTO/version.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ServerConfiguration { -public:ServerConfiguration();ServerConfiguration(const ServerConfiguration &other); - - static ServerConfiguration fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the number of days we should retain log files. - */ - qint32 logFileRetentionDays() const; - /** - * @brief Gets or sets the number of days we should retain log files. - */ - void setLogFileRetentionDays(qint32 newLogFileRetentionDays); - /** - * @brief Gets or sets a value indicating whether this instance is first run. - */ - bool isStartupWizardCompleted() const; - /** - * @brief Gets or sets a value indicating whether this instance is first run. - */ - void setIsStartupWizardCompleted(bool newIsStartupWizardCompleted); - /** - * @brief Gets or sets the cache path. - */ - QString cachePath() const; - /** - * @brief Gets or sets the cache path. - */ - void setCachePath(QString newCachePath); - - QSharedPointer previousVersion() const; - - void setPreviousVersion(QSharedPointer newPreviousVersion); - /** - * @brief Gets or sets the stringified PreviousVersion to be stored/loaded, -because System.Version itself isn't xml-serializable. - */ - QString previousVersionStr() const; - /** - * @brief Gets or sets the stringified PreviousVersion to be stored/loaded, -because System.Version itself isn't xml-serializable. - */ - void setPreviousVersionStr(QString newPreviousVersionStr); - /** - * @brief Gets or sets a value indicating whether to enable automatic port forwarding. - */ - bool enableUPnP() const; - /** - * @brief Gets or sets a value indicating whether to enable automatic port forwarding. - */ - void setEnableUPnP(bool newEnableUPnP); - /** - * @brief Gets or sets a value indicating whether to enable prometheus metrics exporting. - */ - bool enableMetrics() const; - /** - * @brief Gets or sets a value indicating whether to enable prometheus metrics exporting. - */ - void setEnableMetrics(bool newEnableMetrics); - /** - * @brief Gets or sets the public mapped port. - */ - qint32 publicPort() const; - /** - * @brief Gets or sets the public mapped port. - */ - void setPublicPort(qint32 newPublicPort); - /** - * @brief Gets or sets a value indicating whether the http port should be mapped as part of UPnP automatic port forwarding. - */ - bool uPnPCreateHttpPortMap() const; - /** - * @brief Gets or sets a value indicating whether the http port should be mapped as part of UPnP automatic port forwarding. - */ - void setUPnPCreateHttpPortMap(bool newUPnPCreateHttpPortMap); - /** - * @brief Gets or sets client udp port range. - */ - QString uDPPortRange() const; - /** - * @brief Gets or sets client udp port range. - */ - void setUDPPortRange(QString newUDPPortRange); - /** - * @brief Gets or sets a value indicating whether IPV6 capability is enabled. - */ - bool enableIPV6() const; - /** - * @brief Gets or sets a value indicating whether IPV6 capability is enabled. - */ - void setEnableIPV6(bool newEnableIPV6); - /** - * @brief Gets or sets a value indicating whether IPV4 capability is enabled. - */ - bool enableIPV4() const; - /** - * @brief Gets or sets a value indicating whether IPV4 capability is enabled. - */ - void setEnableIPV4(bool newEnableIPV4); - /** - * @brief Gets or sets a value indicating whether detailed ssdp logs are sent to the console/log. -"Emby.Dlna": "Debug" must be set in logging.default.json for this property to work. - */ - bool enableSSDPTracing() const; - /** - * @brief Gets or sets a value indicating whether detailed ssdp logs are sent to the console/log. -"Emby.Dlna": "Debug" must be set in logging.default.json for this property to work. - */ - void setEnableSSDPTracing(bool newEnableSSDPTracing); - /** - * @brief Gets or sets a value indicating whether an IP address is to be used to filter the detailed ssdp logs that are being sent to the console/log. -If the setting "Emby.Dlna": "Debug" msut be set in logging.default.json for this property to work. - */ - QString sSDPTracingFilter() const; - /** - * @brief Gets or sets a value indicating whether an IP address is to be used to filter the detailed ssdp logs that are being sent to the console/log. -If the setting "Emby.Dlna": "Debug" msut be set in logging.default.json for this property to work. - */ - void setSSDPTracingFilter(QString newSSDPTracingFilter); - /** - * @brief Gets or sets the number of times SSDP UDP messages are sent. - */ - qint32 uDPSendCount() const; - /** - * @brief Gets or sets the number of times SSDP UDP messages are sent. - */ - void setUDPSendCount(qint32 newUDPSendCount); - /** - * @brief Gets or sets the delay between each groups of SSDP messages (in ms). - */ - qint32 uDPSendDelay() const; - /** - * @brief Gets or sets the delay between each groups of SSDP messages (in ms). - */ - void setUDPSendDelay(qint32 newUDPSendDelay); - /** - * @brief Gets or sets a value indicating whether address names that match MediaBrowser.Model.Configuration.ServerConfiguration.VirtualInterfaceNames should be Ignore for the purposes of binding. - */ - bool ignoreVirtualInterfaces() const; - /** - * @brief Gets or sets a value indicating whether address names that match MediaBrowser.Model.Configuration.ServerConfiguration.VirtualInterfaceNames should be Ignore for the purposes of binding. - */ - void setIgnoreVirtualInterfaces(bool newIgnoreVirtualInterfaces); - /** - * @brief Gets or sets a value indicating the interfaces that should be ignored. The list can be comma separated. . - */ - QString virtualInterfaceNames() const; - /** - * @brief Gets or sets a value indicating the interfaces that should be ignored. The list can be comma separated. . - */ - void setVirtualInterfaceNames(QString newVirtualInterfaceNames); - /** - * @brief Gets or sets the time (in seconds) between the pings of SSDP gateway monitor. - */ - qint32 gatewayMonitorPeriod() const; - /** - * @brief Gets or sets the time (in seconds) between the pings of SSDP gateway monitor. - */ - void setGatewayMonitorPeriod(qint32 newGatewayMonitorPeriod); - /** - * @brief Gets a value indicating whether multi-socket binding is available. - */ - bool enableMultiSocketBinding() const; - /** - * @brief Gets a value indicating whether multi-socket binding is available. - */ - void setEnableMultiSocketBinding(bool newEnableMultiSocketBinding); - /** - * @brief Gets or sets a value indicating whether all IPv6 interfaces should be treated as on the internal network. -Depending on the address range implemented ULA ranges might not be used. - */ - bool trustAllIP6Interfaces() const; - /** - * @brief Gets or sets a value indicating whether all IPv6 interfaces should be treated as on the internal network. -Depending on the address range implemented ULA ranges might not be used. - */ - void setTrustAllIP6Interfaces(bool newTrustAllIP6Interfaces); - /** - * @brief Gets or sets the ports that HDHomerun uses. - */ - QString hDHomerunPortRange() const; - /** - * @brief Gets or sets the ports that HDHomerun uses. - */ - void setHDHomerunPortRange(QString newHDHomerunPortRange); - /** - * @brief Gets or sets PublishedServerUri to advertise for specific subnets. - */ - QStringList publishedServerUriBySubnet() const; - /** - * @brief Gets or sets PublishedServerUri to advertise for specific subnets. - */ - void setPublishedServerUriBySubnet(QStringList newPublishedServerUriBySubnet); - /** - * @brief Gets or sets a value indicating whether Autodiscovery tracing is enabled. - */ - bool autoDiscoveryTracing() const; - /** - * @brief Gets or sets a value indicating whether Autodiscovery tracing is enabled. - */ - void setAutoDiscoveryTracing(bool newAutoDiscoveryTracing); - /** - * @brief Gets or sets a value indicating whether Autodiscovery is enabled. - */ - bool autoDiscovery() const; - /** - * @brief Gets or sets a value indicating whether Autodiscovery is enabled. - */ - void setAutoDiscovery(bool newAutoDiscovery); - /** - * @brief Gets or sets the public HTTPS port. - */ - qint32 publicHttpsPort() const; - /** - * @brief Gets or sets the public HTTPS port. - */ - void setPublicHttpsPort(qint32 newPublicHttpsPort); - /** - * @brief Gets or sets the HTTP server port number. - */ - qint32 httpServerPortNumber() const; - /** - * @brief Gets or sets the HTTP server port number. - */ - void setHttpServerPortNumber(qint32 newHttpServerPortNumber); - /** - * @brief Gets or sets the HTTPS server port number. - */ - qint32 httpsPortNumber() const; - /** - * @brief Gets or sets the HTTPS server port number. - */ - void setHttpsPortNumber(qint32 newHttpsPortNumber); - /** - * @brief Gets or sets a value indicating whether to use HTTPS. - */ - bool enableHttps() const; - /** - * @brief Gets or sets a value indicating whether to use HTTPS. - */ - void setEnableHttps(bool newEnableHttps); - - bool enableNormalizedItemByNameIds() const; - - void setEnableNormalizedItemByNameIds(bool newEnableNormalizedItemByNameIds); - /** - * @brief Gets or sets the filesystem path of an X.509 certificate to use for SSL. - */ - QString certificatePath() const; - /** - * @brief Gets or sets the filesystem path of an X.509 certificate to use for SSL. - */ - void setCertificatePath(QString newCertificatePath); - /** - * @brief Gets or sets the password required to access the X.509 certificate data in the file specified by MediaBrowser.Model.Configuration.ServerConfiguration.CertificatePath. - */ - QString certificatePassword() const; - /** - * @brief Gets or sets the password required to access the X.509 certificate data in the file specified by MediaBrowser.Model.Configuration.ServerConfiguration.CertificatePath. - */ - void setCertificatePassword(QString newCertificatePassword); - /** - * @brief Gets or sets a value indicating whether this instance is port authorized. - */ - bool isPortAuthorized() const; - /** - * @brief Gets or sets a value indicating whether this instance is port authorized. - */ - void setIsPortAuthorized(bool newIsPortAuthorized); - /** - * @brief Gets or sets a value indicating whether quick connect is available for use on this server. - */ - bool quickConnectAvailable() const; - /** - * @brief Gets or sets a value indicating whether quick connect is available for use on this server. - */ - void setQuickConnectAvailable(bool newQuickConnectAvailable); - /** - * @brief Gets or sets a value indicating whether access outside of the LAN is permitted. - */ - bool enableRemoteAccess() const; - /** - * @brief Gets or sets a value indicating whether access outside of the LAN is permitted. - */ - void setEnableRemoteAccess(bool newEnableRemoteAccess); - /** - * @brief Gets or sets a value indicating whether [enable case sensitive item ids]. - */ - bool enableCaseSensitiveItemIds() const; - /** - * @brief Gets or sets a value indicating whether [enable case sensitive item ids]. - */ - void setEnableCaseSensitiveItemIds(bool newEnableCaseSensitiveItemIds); - - bool disableLiveTvChannelUserDataName() const; - - void setDisableLiveTvChannelUserDataName(bool newDisableLiveTvChannelUserDataName); - /** - * @brief Gets or sets the metadata path. - */ - QString metadataPath() const; - /** - * @brief Gets or sets the metadata path. - */ - void setMetadataPath(QString newMetadataPath); - - QString metadataNetworkPath() const; - - void setMetadataNetworkPath(QString newMetadataNetworkPath); - /** - * @brief Gets or sets the preferred metadata language. - */ - QString preferredMetadataLanguage() const; - /** - * @brief Gets or sets the preferred metadata language. - */ - void setPreferredMetadataLanguage(QString newPreferredMetadataLanguage); - /** - * @brief Gets or sets the metadata country code. - */ - QString metadataCountryCode() const; - /** - * @brief Gets or sets the metadata country code. - */ - void setMetadataCountryCode(QString newMetadataCountryCode); - /** - * @brief Gets or sets characters to be replaced with a ' ' in strings to create a sort name. - */ - QStringList sortReplaceCharacters() const; - /** - * @brief Gets or sets characters to be replaced with a ' ' in strings to create a sort name. - */ - void setSortReplaceCharacters(QStringList newSortReplaceCharacters); - /** - * @brief Gets or sets characters to be removed from strings to create a sort name. - */ - QStringList sortRemoveCharacters() const; - /** - * @brief Gets or sets characters to be removed from strings to create a sort name. - */ - void setSortRemoveCharacters(QStringList newSortRemoveCharacters); - /** - * @brief Gets or sets words to be removed from strings to create a sort name. - */ - QStringList sortRemoveWords() const; - /** - * @brief Gets or sets words to be removed from strings to create a sort name. - */ - void setSortRemoveWords(QStringList newSortRemoveWords); - /** - * @brief Gets or sets the minimum percentage of an item that must be played in order for playstate to be updated. - */ - qint32 minResumePct() const; - /** - * @brief Gets or sets the minimum percentage of an item that must be played in order for playstate to be updated. - */ - void setMinResumePct(qint32 newMinResumePct); - /** - * @brief Gets or sets the maximum percentage of an item that can be played while still saving playstate. If this percentage is crossed playstate will be reset to the beginning and the item will be marked watched. - */ - qint32 maxResumePct() const; - /** - * @brief Gets or sets the maximum percentage of an item that can be played while still saving playstate. If this percentage is crossed playstate will be reset to the beginning and the item will be marked watched. - */ - void setMaxResumePct(qint32 newMaxResumePct); - /** - * @brief Gets or sets the minimum duration that an item must have in order to be eligible for playstate updates.. - */ - qint32 minResumeDurationSeconds() const; - /** - * @brief Gets or sets the minimum duration that an item must have in order to be eligible for playstate updates.. - */ - void setMinResumeDurationSeconds(qint32 newMinResumeDurationSeconds); - /** - * @brief Gets or sets the minimum minutes of a book that must be played in order for playstate to be updated. - */ - qint32 minAudiobookResume() const; - /** - * @brief Gets or sets the minimum minutes of a book that must be played in order for playstate to be updated. - */ - void setMinAudiobookResume(qint32 newMinAudiobookResume); - /** - * @brief Gets or sets the remaining minutes of a book that can be played while still saving playstate. If this percentage is crossed playstate will be reset to the beginning and the item will be marked watched. - */ - qint32 maxAudiobookResume() const; - /** - * @brief Gets or sets the remaining minutes of a book that can be played while still saving playstate. If this percentage is crossed playstate will be reset to the beginning and the item will be marked watched. - */ - void setMaxAudiobookResume(qint32 newMaxAudiobookResume); - /** - * @brief Gets or sets the delay in seconds that we will wait after a file system change to try and discover what has been added/removed -Some delay is necessary with some items because their creation is not atomic. It involves the creation of several -different directories and files. - */ - qint32 libraryMonitorDelay() const; - /** - * @brief Gets or sets the delay in seconds that we will wait after a file system change to try and discover what has been added/removed -Some delay is necessary with some items because their creation is not atomic. It involves the creation of several -different directories and files. - */ - void setLibraryMonitorDelay(qint32 newLibraryMonitorDelay); - /** - * @brief Gets or sets a value indicating whether [enable dashboard response caching]. -Allows potential contributors without visual studio to modify production dashboard code and test changes. - */ - bool enableDashboardResponseCaching() const; - /** - * @brief Gets or sets a value indicating whether [enable dashboard response caching]. -Allows potential contributors without visual studio to modify production dashboard code and test changes. - */ - void setEnableDashboardResponseCaching(bool newEnableDashboardResponseCaching); - - ImageSavingConvention imageSavingConvention() const; - - void setImageSavingConvention(ImageSavingConvention newImageSavingConvention); - - QList> metadataOptions() const; - - void setMetadataOptions(QList> newMetadataOptions); - - bool skipDeserializationForBasicTypes() const; - - void setSkipDeserializationForBasicTypes(bool newSkipDeserializationForBasicTypes); - - QString serverName() const; - - void setServerName(QString newServerName); - - QString baseUrl() const; - - void setBaseUrl(QString newBaseUrl); - - QString uICulture() const; - - void setUICulture(QString newUICulture); - - bool saveMetadataHidden() const; - - void setSaveMetadataHidden(bool newSaveMetadataHidden); - - QList> contentTypes() const; - - void setContentTypes(QList> newContentTypes); - - qint32 remoteClientBitrateLimit() const; - - void setRemoteClientBitrateLimit(qint32 newRemoteClientBitrateLimit); - - bool enableFolderView() const; - - void setEnableFolderView(bool newEnableFolderView); - - bool enableGroupingIntoCollections() const; - - void setEnableGroupingIntoCollections(bool newEnableGroupingIntoCollections); - - bool displaySpecialsWithinSeasons() const; - - void setDisplaySpecialsWithinSeasons(bool newDisplaySpecialsWithinSeasons); - /** - * @brief Gets or sets the subnets that are deemed to make up the LAN. - */ - QStringList localNetworkSubnets() const; - /** - * @brief Gets or sets the subnets that are deemed to make up the LAN. - */ - void setLocalNetworkSubnets(QStringList newLocalNetworkSubnets); - /** - * @brief Gets or sets the interface addresses which Jellyfin will bind to. If empty, all interfaces will be used. - */ - QStringList localNetworkAddresses() const; - /** - * @brief Gets or sets the interface addresses which Jellyfin will bind to. If empty, all interfaces will be used. - */ - void setLocalNetworkAddresses(QStringList newLocalNetworkAddresses); - - QStringList codecsUsed() const; - - void setCodecsUsed(QStringList newCodecsUsed); - - QList> pluginRepositories() const; - - void setPluginRepositories(QList> newPluginRepositories); - - bool enableExternalContentInSuggestions() const; - - void setEnableExternalContentInSuggestions(bool newEnableExternalContentInSuggestions); - /** - * @brief Gets or sets a value indicating whether the server should force connections over HTTPS. - */ - bool requireHttps() const; - /** - * @brief Gets or sets a value indicating whether the server should force connections over HTTPS. - */ - void setRequireHttps(bool newRequireHttps); - - bool enableNewOmdbSupport() const; - - void setEnableNewOmdbSupport(bool newEnableNewOmdbSupport); - /** - * @brief Gets or sets the filter for remote IP connectivity. Used in conjuntion with . - */ - QStringList remoteIPFilter() const; - /** - * @brief Gets or sets the filter for remote IP connectivity. Used in conjuntion with . - */ - void setRemoteIPFilter(QStringList newRemoteIPFilter); - /** - * @brief Gets or sets a value indicating whether contains a blacklist or a whitelist. Default is a whitelist. - */ - bool isRemoteIPFilterBlacklist() const; - /** - * @brief Gets or sets a value indicating whether contains a blacklist or a whitelist. Default is a whitelist. - */ - void setIsRemoteIPFilterBlacklist(bool newIsRemoteIPFilterBlacklist); - - qint32 imageExtractionTimeoutMs() const; - - void setImageExtractionTimeoutMs(qint32 newImageExtractionTimeoutMs); - - QList> pathSubstitutions() const; - - void setPathSubstitutions(QList> newPathSubstitutions); - - bool enableSimpleArtistDetection() const; - - void setEnableSimpleArtistDetection(bool newEnableSimpleArtistDetection); - - QStringList uninstalledPlugins() const; - - void setUninstalledPlugins(QStringList newUninstalledPlugins); - /** - * @brief Gets or sets a value indicating whether slow server responses should be logged as a warning. - */ - bool enableSlowResponseWarning() const; - /** - * @brief Gets or sets a value indicating whether slow server responses should be logged as a warning. - */ - void setEnableSlowResponseWarning(bool newEnableSlowResponseWarning); - /** - * @brief Gets or sets the threshold for the slow response time warning in ms. - */ - qint64 slowResponseThresholdMs() const; - /** - * @brief Gets or sets the threshold for the slow response time warning in ms. - */ - void setSlowResponseThresholdMs(qint64 newSlowResponseThresholdMs); - /** - * @brief Gets or sets the cors hosts. - */ - QStringList corsHosts() const; - /** - * @brief Gets or sets the cors hosts. - */ - void setCorsHosts(QStringList newCorsHosts); - /** - * @brief Gets or sets the known proxies. - */ - QStringList knownProxies() const; - /** - * @brief Gets or sets the known proxies. - */ - void setKnownProxies(QStringList newKnownProxies); - /** - * @brief Gets or sets the number of days we should retain activity logs. - */ - qint32 activityLogRetentionDays() const; - /** - * @brief Gets or sets the number of days we should retain activity logs. - */ - void setActivityLogRetentionDays(qint32 newActivityLogRetentionDays); - /** - * @brief Gets or sets the how the library scan fans out. - */ - qint32 libraryScanFanoutConcurrency() const; - /** - * @brief Gets or sets the how the library scan fans out. - */ - void setLibraryScanFanoutConcurrency(qint32 newLibraryScanFanoutConcurrency); - /** - * @brief Gets or sets the how many metadata refreshes can run concurrently. - */ - qint32 libraryMetadataRefreshConcurrency() const; - /** - * @brief Gets or sets the how many metadata refreshes can run concurrently. - */ - void setLibraryMetadataRefreshConcurrency(qint32 newLibraryMetadataRefreshConcurrency); - /** - * @brief Gets or sets a value indicating whether older plugins should automatically be deleted from the plugin folder. - */ - bool removeOldPlugins() const; - /** - * @brief Gets or sets a value indicating whether older plugins should automatically be deleted from the plugin folder. - */ - void setRemoveOldPlugins(bool newRemoveOldPlugins); - /** - * @brief Gets or sets a value indicating whether plugin image should be disabled. - */ - bool disablePluginImages() const; - /** - * @brief Gets or sets a value indicating whether plugin image should be disabled. - */ - void setDisablePluginImages(bool newDisablePluginImages); - -protected: - qint32 m_logFileRetentionDays; - bool m_isStartupWizardCompleted; - QString m_cachePath; - QSharedPointer m_previousVersion = nullptr; - QString m_previousVersionStr; - bool m_enableUPnP; - bool m_enableMetrics; - qint32 m_publicPort; - bool m_uPnPCreateHttpPortMap; - QString m_uDPPortRange; - bool m_enableIPV6; - bool m_enableIPV4; - bool m_enableSSDPTracing; - QString m_sSDPTracingFilter; - qint32 m_uDPSendCount; - qint32 m_uDPSendDelay; - bool m_ignoreVirtualInterfaces; - QString m_virtualInterfaceNames; - qint32 m_gatewayMonitorPeriod; - bool m_enableMultiSocketBinding; - bool m_trustAllIP6Interfaces; - QString m_hDHomerunPortRange; - QStringList m_publishedServerUriBySubnet; - bool m_autoDiscoveryTracing; - bool m_autoDiscovery; - qint32 m_publicHttpsPort; - qint32 m_httpServerPortNumber; - qint32 m_httpsPortNumber; - bool m_enableHttps; - bool m_enableNormalizedItemByNameIds; - QString m_certificatePath; - QString m_certificatePassword; - bool m_isPortAuthorized; - bool m_quickConnectAvailable; - bool m_enableRemoteAccess; - bool m_enableCaseSensitiveItemIds; - bool m_disableLiveTvChannelUserDataName; - QString m_metadataPath; - QString m_metadataNetworkPath; - QString m_preferredMetadataLanguage; - QString m_metadataCountryCode; - QStringList m_sortReplaceCharacters; - QStringList m_sortRemoveCharacters; - QStringList m_sortRemoveWords; - qint32 m_minResumePct; - qint32 m_maxResumePct; - qint32 m_minResumeDurationSeconds; - qint32 m_minAudiobookResume; - qint32 m_maxAudiobookResume; - qint32 m_libraryMonitorDelay; - bool m_enableDashboardResponseCaching; - ImageSavingConvention m_imageSavingConvention; - QList> m_metadataOptions; - bool m_skipDeserializationForBasicTypes; - QString m_serverName; - QString m_baseUrl; - QString m_uICulture; - bool m_saveMetadataHidden; - QList> m_contentTypes; - qint32 m_remoteClientBitrateLimit; - bool m_enableFolderView; - bool m_enableGroupingIntoCollections; - bool m_displaySpecialsWithinSeasons; - QStringList m_localNetworkSubnets; - QStringList m_localNetworkAddresses; - QStringList m_codecsUsed; - QList> m_pluginRepositories; - bool m_enableExternalContentInSuggestions; - bool m_requireHttps; - bool m_enableNewOmdbSupport; - QStringList m_remoteIPFilter; - bool m_isRemoteIPFilterBlacklist; - qint32 m_imageExtractionTimeoutMs; - QList> m_pathSubstitutions; - bool m_enableSimpleArtistDetection; - QStringList m_uninstalledPlugins; - bool m_enableSlowResponseWarning; - qint64 m_slowResponseThresholdMs; - QStringList m_corsHosts; - QStringList m_knownProxies; - qint32 m_activityLogRetentionDays; - qint32 m_libraryScanFanoutConcurrency; - qint32 m_libraryMetadataRefreshConcurrency; - bool m_removeOldPlugins; - bool m_disablePluginImages; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SERVERCONFIGURATION_H diff --git a/core/include/JellyfinQt/DTO/sessioninfo.h b/core/include/JellyfinQt/DTO/sessioninfo.h deleted file mode 100644 index 0d544c1..0000000 --- a/core/include/JellyfinQt/DTO/sessioninfo.h +++ /dev/null @@ -1,268 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SESSIONINFO_H -#define JELLYFIN_DTO_SESSIONINFO_H - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/baseitem.h" -#include "JellyfinQt/DTO/baseitemdto.h" -#include "JellyfinQt/DTO/clientcapabilities.h" -#include "JellyfinQt/DTO/generalcommandtype.h" -#include "JellyfinQt/DTO/playerstateinfo.h" -#include "JellyfinQt/DTO/queueitem.h" -#include "JellyfinQt/DTO/sessionuserinfo.h" -#include "JellyfinQt/DTO/transcodinginfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class SessionInfo { -public:SessionInfo();SessionInfo(const SessionInfo &other); - - static SessionInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QSharedPointer playState() const; - - void setPlayState(QSharedPointer newPlayState); - - QList> additionalUsers() const; - - void setAdditionalUsers(QList> newAdditionalUsers); - - QSharedPointer capabilities() const; - - void setCapabilities(QSharedPointer newCapabilities); - /** - * @brief Gets or sets the remote end point. - */ - QString remoteEndPoint() const; - /** - * @brief Gets or sets the remote end point. - */ - void setRemoteEndPoint(QString newRemoteEndPoint); - /** - * @brief Gets or sets the playable media types. - */ - QStringList playableMediaTypes() const; - /** - * @brief Gets or sets the playable media types. - */ - void setPlayableMediaTypes(QStringList newPlayableMediaTypes); - /** - * @brief Gets or sets the id. - */ - QString jellyfinId() const; - /** - * @brief Gets or sets the id. - */ - void setJellyfinId(QString newJellyfinId); - /** - * @brief Gets or sets the user id. - */ - QUuid userId() const; - /** - * @brief Gets or sets the user id. - */ - void setUserId(QUuid newUserId); - /** - * @brief Gets or sets the username. - */ - QString userName() const; - /** - * @brief Gets or sets the username. - */ - void setUserName(QString newUserName); - /** - * @brief Gets or sets the type of the client. - */ - QString client() const; - /** - * @brief Gets or sets the type of the client. - */ - void setClient(QString newClient); - /** - * @brief Gets or sets the last activity date. - */ - QDateTime lastActivityDate() const; - /** - * @brief Gets or sets the last activity date. - */ - void setLastActivityDate(QDateTime newLastActivityDate); - /** - * @brief Gets or sets the last playback check in. - */ - QDateTime lastPlaybackCheckIn() const; - /** - * @brief Gets or sets the last playback check in. - */ - void setLastPlaybackCheckIn(QDateTime newLastPlaybackCheckIn); - /** - * @brief Gets or sets the name of the device. - */ - QString deviceName() const; - /** - * @brief Gets or sets the name of the device. - */ - void setDeviceName(QString newDeviceName); - /** - * @brief Gets or sets the type of the device. - */ - QString deviceType() const; - /** - * @brief Gets or sets the type of the device. - */ - void setDeviceType(QString newDeviceType); - - QSharedPointer nowPlayingItem() const; - - void setNowPlayingItem(QSharedPointer newNowPlayingItem); - - QSharedPointer fullNowPlayingItem() const; - - void setFullNowPlayingItem(QSharedPointer newFullNowPlayingItem); - - QSharedPointer nowViewingItem() const; - - void setNowViewingItem(QSharedPointer newNowViewingItem); - /** - * @brief Gets or sets the device id. - */ - QString deviceId() const; - /** - * @brief Gets or sets the device id. - */ - void setDeviceId(QString newDeviceId); - /** - * @brief Gets or sets the application version. - */ - QString applicationVersion() const; - /** - * @brief Gets or sets the application version. - */ - void setApplicationVersion(QString newApplicationVersion); - - QSharedPointer transcodingInfo() const; - - void setTranscodingInfo(QSharedPointer newTranscodingInfo); - /** - * @brief Gets a value indicating whether this instance is active. - */ - bool isActive() const; - /** - * @brief Gets a value indicating whether this instance is active. - */ - void setIsActive(bool newIsActive); - - bool supportsMediaControl() const; - - void setSupportsMediaControl(bool newSupportsMediaControl); - - bool supportsRemoteControl() const; - - void setSupportsRemoteControl(bool newSupportsRemoteControl); - - QList> nowPlayingQueue() const; - - void setNowPlayingQueue(QList> newNowPlayingQueue); - - bool hasCustomDeviceName() const; - - void setHasCustomDeviceName(bool newHasCustomDeviceName); - - QString playlistItemId() const; - - void setPlaylistItemId(QString newPlaylistItemId); - - QString serverId() const; - - void setServerId(QString newServerId); - - QString userPrimaryImageTag() const; - - void setUserPrimaryImageTag(QString newUserPrimaryImageTag); - /** - * @brief Gets or sets the supported commands. - */ - QList supportedCommands() const; - /** - * @brief Gets or sets the supported commands. - */ - void setSupportedCommands(QList newSupportedCommands); - -protected: - QSharedPointer m_playState = nullptr; - QList> m_additionalUsers; - QSharedPointer m_capabilities = nullptr; - QString m_remoteEndPoint; - QStringList m_playableMediaTypes; - QString m_jellyfinId; - QUuid m_userId; - QString m_userName; - QString m_client; - QDateTime m_lastActivityDate; - QDateTime m_lastPlaybackCheckIn; - QString m_deviceName; - QString m_deviceType; - QSharedPointer m_nowPlayingItem = nullptr; - QSharedPointer m_fullNowPlayingItem = nullptr; - QSharedPointer m_nowViewingItem = nullptr; - QString m_deviceId; - QString m_applicationVersion; - QSharedPointer m_transcodingInfo = nullptr; - bool m_isActive; - bool m_supportsMediaControl; - bool m_supportsRemoteControl; - QList> m_nowPlayingQueue; - bool m_hasCustomDeviceName; - QString m_playlistItemId; - QString m_serverId; - QString m_userPrimaryImageTag; - QList m_supportedCommands; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SESSIONINFO_H diff --git a/core/include/JellyfinQt/DTO/sessionuserinfo.h b/core/include/JellyfinQt/DTO/sessionuserinfo.h deleted file mode 100644 index a3606d2..0000000 --- a/core/include/JellyfinQt/DTO/sessionuserinfo.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SESSIONUSERINFO_H -#define JELLYFIN_DTO_SESSIONUSERINFO_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class SessionUserInfo { -public:SessionUserInfo();SessionUserInfo(const SessionUserInfo &other); - - static SessionUserInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the user identifier. - */ - QUuid userId() const; - /** - * @brief Gets or sets the user identifier. - */ - void setUserId(QUuid newUserId); - /** - * @brief Gets or sets the name of the user. - */ - QString userName() const; - /** - * @brief Gets or sets the name of the user. - */ - void setUserName(QString newUserName); - -protected: - QUuid m_userId; - QString m_userName; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SESSIONUSERINFO_H diff --git a/core/include/JellyfinQt/DTO/setchannelmappingdto.h b/core/include/JellyfinQt/DTO/setchannelmappingdto.h deleted file mode 100644 index 8205c43..0000000 --- a/core/include/JellyfinQt/DTO/setchannelmappingdto.h +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SETCHANNELMAPPINGDTO_H -#define JELLYFIN_DTO_SETCHANNELMAPPINGDTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class SetChannelMappingDto { -public:SetChannelMappingDto();SetChannelMappingDto(const SetChannelMappingDto &other); - - static SetChannelMappingDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the provider id. - */ - QString providerId() const; - /** - * @brief Gets or sets the provider id. - */ - void setProviderId(QString newProviderId); - /** - * @brief Gets or sets the tuner channel id. - */ - QString tunerChannelId() const; - /** - * @brief Gets or sets the tuner channel id. - */ - void setTunerChannelId(QString newTunerChannelId); - /** - * @brief Gets or sets the provider channel id. - */ - QString providerChannelId() const; - /** - * @brief Gets or sets the provider channel id. - */ - void setProviderChannelId(QString newProviderChannelId); - -protected: - QString m_providerId; - QString m_tunerChannelId; - QString m_providerChannelId; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SETCHANNELMAPPINGDTO_H diff --git a/core/include/JellyfinQt/DTO/setrepeatmoderequestdto.h b/core/include/JellyfinQt/DTO/setrepeatmoderequestdto.h deleted file mode 100644 index cd97edc..0000000 --- a/core/include/JellyfinQt/DTO/setrepeatmoderequestdto.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SETREPEATMODEREQUESTDTO_H -#define JELLYFIN_DTO_SETREPEATMODEREQUESTDTO_H - -#include -#include -#include - -#include "JellyfinQt/DTO/grouprepeatmode.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class SetRepeatModeRequestDto { -public:SetRepeatModeRequestDto();SetRepeatModeRequestDto(const SetRepeatModeRequestDto &other); - - static SetRepeatModeRequestDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - GroupRepeatMode mode() const; - - void setMode(GroupRepeatMode newMode); - -protected: - GroupRepeatMode m_mode; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SETREPEATMODEREQUESTDTO_H diff --git a/core/include/JellyfinQt/DTO/setshufflemoderequestdto.h b/core/include/JellyfinQt/DTO/setshufflemoderequestdto.h deleted file mode 100644 index 957ea58..0000000 --- a/core/include/JellyfinQt/DTO/setshufflemoderequestdto.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SETSHUFFLEMODEREQUESTDTO_H -#define JELLYFIN_DTO_SETSHUFFLEMODEREQUESTDTO_H - -#include -#include -#include - -#include "JellyfinQt/DTO/groupshufflemode.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class SetShuffleModeRequestDto { -public:SetShuffleModeRequestDto();SetShuffleModeRequestDto(const SetShuffleModeRequestDto &other); - - static SetShuffleModeRequestDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - GroupShuffleMode mode() const; - - void setMode(GroupShuffleMode newMode); - -protected: - GroupShuffleMode m_mode; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SETSHUFFLEMODEREQUESTDTO_H diff --git a/core/include/JellyfinQt/DTO/songinfo.h b/core/include/JellyfinQt/DTO/songinfo.h deleted file mode 100644 index c70688b..0000000 --- a/core/include/JellyfinQt/DTO/songinfo.h +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SONGINFO_H -#define JELLYFIN_DTO_SONGINFO_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class SongInfo { -public:SongInfo();SongInfo(const SongInfo &other); - - static SongInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the path. - */ - QString path() const; - /** - * @brief Gets or sets the path. - */ - void setPath(QString newPath); - /** - * @brief Gets or sets the metadata language. - */ - QString metadataLanguage() const; - /** - * @brief Gets or sets the metadata language. - */ - void setMetadataLanguage(QString newMetadataLanguage); - /** - * @brief Gets or sets the metadata country code. - */ - QString metadataCountryCode() const; - /** - * @brief Gets or sets the metadata country code. - */ - void setMetadataCountryCode(QString newMetadataCountryCode); - /** - * @brief Gets or sets the provider ids. - */ - QJsonObject providerIds() const; - /** - * @brief Gets or sets the provider ids. - */ - void setProviderIds(QJsonObject newProviderIds); - /** - * @brief Gets or sets the year. - */ - qint32 year() const; - /** - * @brief Gets or sets the year. - */ - void setYear(qint32 newYear); - - qint32 indexNumber() const; - - void setIndexNumber(qint32 newIndexNumber); - - qint32 parentIndexNumber() const; - - void setParentIndexNumber(qint32 newParentIndexNumber); - - QDateTime premiereDate() const; - - void setPremiereDate(QDateTime newPremiereDate); - - bool isAutomated() const; - - void setIsAutomated(bool newIsAutomated); - - QStringList albumArtists() const; - - void setAlbumArtists(QStringList newAlbumArtists); - - QString album() const; - - void setAlbum(QString newAlbum); - - QStringList artists() const; - - void setArtists(QStringList newArtists); - -protected: - QString m_name; - QString m_path; - QString m_metadataLanguage; - QString m_metadataCountryCode; - QJsonObject m_providerIds; - qint32 m_year; - qint32 m_indexNumber; - qint32 m_parentIndexNumber; - QDateTime m_premiereDate; - bool m_isAutomated; - QStringList m_albumArtists; - QString m_album; - QStringList m_artists; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SONGINFO_H diff --git a/core/include/JellyfinQt/DTO/specialviewoptiondto.h b/core/include/JellyfinQt/DTO/specialviewoptiondto.h deleted file mode 100644 index 945a2c6..0000000 --- a/core/include/JellyfinQt/DTO/specialviewoptiondto.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SPECIALVIEWOPTIONDTO_H -#define JELLYFIN_DTO_SPECIALVIEWOPTIONDTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class SpecialViewOptionDto { -public:SpecialViewOptionDto();SpecialViewOptionDto(const SpecialViewOptionDto &other); - - static SpecialViewOptionDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets view option name. - */ - QString name() const; - /** - * @brief Gets or sets view option name. - */ - void setName(QString newName); - /** - * @brief Gets or sets view option id. - */ - QString jellyfinId() const; - /** - * @brief Gets or sets view option id. - */ - void setJellyfinId(QString newJellyfinId); - -protected: - QString m_name; - QString m_jellyfinId; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SPECIALVIEWOPTIONDTO_H diff --git a/core/include/JellyfinQt/DTO/startupconfigurationdto.h b/core/include/JellyfinQt/DTO/startupconfigurationdto.h deleted file mode 100644 index 7cd38ee..0000000 --- a/core/include/JellyfinQt/DTO/startupconfigurationdto.h +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_STARTUPCONFIGURATIONDTO_H -#define JELLYFIN_DTO_STARTUPCONFIGURATIONDTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class StartupConfigurationDto { -public:StartupConfigurationDto();StartupConfigurationDto(const StartupConfigurationDto &other); - - static StartupConfigurationDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets UI language culture. - */ - QString uICulture() const; - /** - * @brief Gets or sets UI language culture. - */ - void setUICulture(QString newUICulture); - /** - * @brief Gets or sets the metadata country code. - */ - QString metadataCountryCode() const; - /** - * @brief Gets or sets the metadata country code. - */ - void setMetadataCountryCode(QString newMetadataCountryCode); - /** - * @brief Gets or sets the preferred language for the metadata. - */ - QString preferredMetadataLanguage() const; - /** - * @brief Gets or sets the preferred language for the metadata. - */ - void setPreferredMetadataLanguage(QString newPreferredMetadataLanguage); - -protected: - QString m_uICulture; - QString m_metadataCountryCode; - QString m_preferredMetadataLanguage; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_STARTUPCONFIGURATIONDTO_H diff --git a/core/include/JellyfinQt/DTO/startupuserdto.h b/core/include/JellyfinQt/DTO/startupuserdto.h deleted file mode 100644 index bf7dd7e..0000000 --- a/core/include/JellyfinQt/DTO/startupuserdto.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_STARTUPUSERDTO_H -#define JELLYFIN_DTO_STARTUPUSERDTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class StartupUserDto { -public:StartupUserDto();StartupUserDto(const StartupUserDto &other); - - static StartupUserDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the username. - */ - QString name() const; - /** - * @brief Gets or sets the username. - */ - void setName(QString newName); - /** - * @brief Gets or sets the user's password. - */ - QString password() const; - /** - * @brief Gets or sets the user's password. - */ - void setPassword(QString newPassword); - -protected: - QString m_name; - QString m_password; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_STARTUPUSERDTO_H diff --git a/core/include/JellyfinQt/DTO/subtitledeliverymethod.h b/core/include/JellyfinQt/DTO/subtitledeliverymethod.h deleted file mode 100644 index 79a04c3..0000000 --- a/core/include/JellyfinQt/DTO/subtitledeliverymethod.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SUBTITLEDELIVERYMETHOD_H -#define JELLYFIN_DTO_SUBTITLEDELIVERYMETHOD_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class SubtitleDeliveryMethodClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Encode, - Embed, - External, - Hls, - }; - Q_ENUM(Value) -private: - explicit SubtitleDeliveryMethodClass(); -}; - -typedef SubtitleDeliveryMethodClass::Value SubtitleDeliveryMethod; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SUBTITLEDELIVERYMETHOD_H diff --git a/core/include/JellyfinQt/DTO/subtitleplaybackmode.h b/core/include/JellyfinQt/DTO/subtitleplaybackmode.h deleted file mode 100644 index 0fba0a3..0000000 --- a/core/include/JellyfinQt/DTO/subtitleplaybackmode.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SUBTITLEPLAYBACKMODE_H -#define JELLYFIN_DTO_SUBTITLEPLAYBACKMODE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class SubtitlePlaybackModeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Default, - Always, - OnlyForced, - None, - Smart, - }; - Q_ENUM(Value) -private: - explicit SubtitlePlaybackModeClass(); -}; - -typedef SubtitlePlaybackModeClass::Value SubtitlePlaybackMode; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SUBTITLEPLAYBACKMODE_H diff --git a/core/include/JellyfinQt/DTO/syncplayuseraccesstype.h b/core/include/JellyfinQt/DTO/syncplayuseraccesstype.h deleted file mode 100644 index db2a627..0000000 --- a/core/include/JellyfinQt/DTO/syncplayuseraccesstype.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SYNCPLAYUSERACCESSTYPE_H -#define JELLYFIN_DTO_SYNCPLAYUSERACCESSTYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class SyncPlayUserAccessTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - CreateAndJoinGroups, - JoinGroups, - None, - }; - Q_ENUM(Value) -private: - explicit SyncPlayUserAccessTypeClass(); -}; - -typedef SyncPlayUserAccessTypeClass::Value SyncPlayUserAccessType; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SYNCPLAYUSERACCESSTYPE_H diff --git a/core/include/JellyfinQt/DTO/systeminfo.h b/core/include/JellyfinQt/DTO/systeminfo.h deleted file mode 100644 index 1928bb6..0000000 --- a/core/include/JellyfinQt/DTO/systeminfo.h +++ /dev/null @@ -1,283 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_SYSTEMINFO_H -#define JELLYFIN_DTO_SYSTEMINFO_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/architecture.h" -#include "JellyfinQt/DTO/ffmpeglocation.h" -#include "JellyfinQt/DTO/installationinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class SystemInfo { -public:SystemInfo();SystemInfo(const SystemInfo &other); - - static SystemInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the local address. - */ - QString localAddress() const; - /** - * @brief Gets or sets the local address. - */ - void setLocalAddress(QString newLocalAddress); - /** - * @brief Gets or sets the name of the server. - */ - QString serverName() const; - /** - * @brief Gets or sets the name of the server. - */ - void setServerName(QString newServerName); - /** - * @brief Gets or sets the server version. - */ - QString version() const; - /** - * @brief Gets or sets the server version. - */ - void setVersion(QString newVersion); - /** - * @brief Gets or sets the product name. This is the AssemblyProduct name. - */ - QString productName() const; - /** - * @brief Gets or sets the product name. This is the AssemblyProduct name. - */ - void setProductName(QString newProductName); - /** - * @brief Gets or sets the operating system. - */ - QString operatingSystem() const; - /** - * @brief Gets or sets the operating system. - */ - void setOperatingSystem(QString newOperatingSystem); - /** - * @brief Gets or sets the id. - */ - QString jellyfinId() const; - /** - * @brief Gets or sets the id. - */ - void setJellyfinId(QString newJellyfinId); - /** - * @brief Gets or sets a value indicating whether the startup wizard is completed. - */ - bool startupWizardCompleted() const; - /** - * @brief Gets or sets a value indicating whether the startup wizard is completed. - */ - void setStartupWizardCompleted(bool newStartupWizardCompleted); - /** - * @brief Gets or sets the display name of the operating system. - */ - QString operatingSystemDisplayName() const; - /** - * @brief Gets or sets the display name of the operating system. - */ - void setOperatingSystemDisplayName(QString newOperatingSystemDisplayName); - /** - * @brief Get or sets the package name. - */ - QString packageName() const; - /** - * @brief Get or sets the package name. - */ - void setPackageName(QString newPackageName); - /** - * @brief Gets or sets a value indicating whether this instance has pending restart. - */ - bool hasPendingRestart() const; - /** - * @brief Gets or sets a value indicating whether this instance has pending restart. - */ - void setHasPendingRestart(bool newHasPendingRestart); - - bool isShuttingDown() const; - - void setIsShuttingDown(bool newIsShuttingDown); - /** - * @brief Gets or sets a value indicating whether [supports library monitor]. - */ - bool supportsLibraryMonitor() const; - /** - * @brief Gets or sets a value indicating whether [supports library monitor]. - */ - void setSupportsLibraryMonitor(bool newSupportsLibraryMonitor); - /** - * @brief Gets or sets the web socket port number. - */ - qint32 webSocketPortNumber() const; - /** - * @brief Gets or sets the web socket port number. - */ - void setWebSocketPortNumber(qint32 newWebSocketPortNumber); - /** - * @brief Gets or sets the completed installations. - */ - QList> completedInstallations() const; - /** - * @brief Gets or sets the completed installations. - */ - void setCompletedInstallations(QList> newCompletedInstallations); - /** - * @brief Gets or sets a value indicating whether this instance can self restart. - */ - bool canSelfRestart() const; - /** - * @brief Gets or sets a value indicating whether this instance can self restart. - */ - void setCanSelfRestart(bool newCanSelfRestart); - - bool canLaunchWebBrowser() const; - - void setCanLaunchWebBrowser(bool newCanLaunchWebBrowser); - /** - * @brief Gets or sets the program data path. - */ - QString programDataPath() const; - /** - * @brief Gets or sets the program data path. - */ - void setProgramDataPath(QString newProgramDataPath); - /** - * @brief Gets or sets the web UI resources path. - */ - QString webPath() const; - /** - * @brief Gets or sets the web UI resources path. - */ - void setWebPath(QString newWebPath); - /** - * @brief Gets or sets the items by name path. - */ - QString itemsByNamePath() const; - /** - * @brief Gets or sets the items by name path. - */ - void setItemsByNamePath(QString newItemsByNamePath); - /** - * @brief Gets or sets the cache path. - */ - QString cachePath() const; - /** - * @brief Gets or sets the cache path. - */ - void setCachePath(QString newCachePath); - /** - * @brief Gets or sets the log path. - */ - QString logPath() const; - /** - * @brief Gets or sets the log path. - */ - void setLogPath(QString newLogPath); - /** - * @brief Gets or sets the internal metadata path. - */ - QString internalMetadataPath() const; - /** - * @brief Gets or sets the internal metadata path. - */ - void setInternalMetadataPath(QString newInternalMetadataPath); - /** - * @brief Gets or sets the transcode path. - */ - QString transcodingTempPath() const; - /** - * @brief Gets or sets the transcode path. - */ - void setTranscodingTempPath(QString newTranscodingTempPath); - /** - * @brief Gets or sets a value indicating whether this instance has update available. - */ - bool hasUpdateAvailable() const; - /** - * @brief Gets or sets a value indicating whether this instance has update available. - */ - void setHasUpdateAvailable(bool newHasUpdateAvailable); - - FFmpegLocation encoderLocation() const; - - void setEncoderLocation(FFmpegLocation newEncoderLocation); - - Architecture systemArchitecture() const; - - void setSystemArchitecture(Architecture newSystemArchitecture); - -protected: - QString m_localAddress; - QString m_serverName; - QString m_version; - QString m_productName; - QString m_operatingSystem; - QString m_jellyfinId; - bool m_startupWizardCompleted; - QString m_operatingSystemDisplayName; - QString m_packageName; - bool m_hasPendingRestart; - bool m_isShuttingDown; - bool m_supportsLibraryMonitor; - qint32 m_webSocketPortNumber; - QList> m_completedInstallations; - bool m_canSelfRestart; - bool m_canLaunchWebBrowser; - QString m_programDataPath; - QString m_webPath; - QString m_itemsByNamePath; - QString m_cachePath; - QString m_logPath; - QString m_internalMetadataPath; - QString m_transcodingTempPath; - bool m_hasUpdateAvailable; - FFmpegLocation m_encoderLocation; - Architecture m_systemArchitecture; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SYSTEMINFO_H diff --git a/core/include/JellyfinQt/DTO/taskinfo.h b/core/include/JellyfinQt/DTO/taskinfo.h deleted file mode 100644 index 1c9f2c4..0000000 --- a/core/include/JellyfinQt/DTO/taskinfo.h +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_TASKINFO_H -#define JELLYFIN_DTO_TASKINFO_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/taskresult.h" -#include "JellyfinQt/DTO/taskstate.h" -#include "JellyfinQt/DTO/tasktriggerinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class TaskInfo { -public:TaskInfo();TaskInfo(const TaskInfo &other); - - static TaskInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - - TaskState state() const; - - void setState(TaskState newState); - /** - * @brief Gets or sets the progress. - */ - double currentProgressPercentage() const; - /** - * @brief Gets or sets the progress. - */ - void setCurrentProgressPercentage(double newCurrentProgressPercentage); - /** - * @brief Gets or sets the id. - */ - QString jellyfinId() const; - /** - * @brief Gets or sets the id. - */ - void setJellyfinId(QString newJellyfinId); - - QSharedPointer lastExecutionResult() const; - - void setLastExecutionResult(QSharedPointer newLastExecutionResult); - /** - * @brief Gets or sets the triggers. - */ - QList> triggers() const; - /** - * @brief Gets or sets the triggers. - */ - void setTriggers(QList> newTriggers); - /** - * @brief Gets or sets the description. - */ - QString description() const; - /** - * @brief Gets or sets the description. - */ - void setDescription(QString newDescription); - /** - * @brief Gets or sets the category. - */ - QString category() const; - /** - * @brief Gets or sets the category. - */ - void setCategory(QString newCategory); - /** - * @brief Gets or sets a value indicating whether this instance is hidden. - */ - bool isHidden() const; - /** - * @brief Gets or sets a value indicating whether this instance is hidden. - */ - void setIsHidden(bool newIsHidden); - /** - * @brief Gets or sets the key. - */ - QString key() const; - /** - * @brief Gets or sets the key. - */ - void setKey(QString newKey); - -protected: - QString m_name; - TaskState m_state; - double m_currentProgressPercentage; - QString m_jellyfinId; - QSharedPointer m_lastExecutionResult = nullptr; - QList> m_triggers; - QString m_description; - QString m_category; - bool m_isHidden; - QString m_key; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_TASKINFO_H diff --git a/core/include/JellyfinQt/DTO/taskresult.h b/core/include/JellyfinQt/DTO/taskresult.h deleted file mode 100644 index f0a46f8..0000000 --- a/core/include/JellyfinQt/DTO/taskresult.h +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_TASKRESULT_H -#define JELLYFIN_DTO_TASKRESULT_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/taskcompletionstatus.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class TaskResult { -public:TaskResult();TaskResult(const TaskResult &other); - - static TaskResult fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the start time UTC. - */ - QDateTime startTimeUtc() const; - /** - * @brief Gets or sets the start time UTC. - */ - void setStartTimeUtc(QDateTime newStartTimeUtc); - /** - * @brief Gets or sets the end time UTC. - */ - QDateTime endTimeUtc() const; - /** - * @brief Gets or sets the end time UTC. - */ - void setEndTimeUtc(QDateTime newEndTimeUtc); - - TaskCompletionStatus status() const; - - void setStatus(TaskCompletionStatus newStatus); - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the key. - */ - QString key() const; - /** - * @brief Gets or sets the key. - */ - void setKey(QString newKey); - /** - * @brief Gets or sets the id. - */ - QString jellyfinId() const; - /** - * @brief Gets or sets the id. - */ - void setJellyfinId(QString newJellyfinId); - /** - * @brief Gets or sets the error message. - */ - QString errorMessage() const; - /** - * @brief Gets or sets the error message. - */ - void setErrorMessage(QString newErrorMessage); - /** - * @brief Gets or sets the long error message. - */ - QString longErrorMessage() const; - /** - * @brief Gets or sets the long error message. - */ - void setLongErrorMessage(QString newLongErrorMessage); - -protected: - QDateTime m_startTimeUtc; - QDateTime m_endTimeUtc; - TaskCompletionStatus m_status; - QString m_name; - QString m_key; - QString m_jellyfinId; - QString m_errorMessage; - QString m_longErrorMessage; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_TASKRESULT_H diff --git a/core/include/JellyfinQt/DTO/taskstate.h b/core/include/JellyfinQt/DTO/taskstate.h deleted file mode 100644 index 25aeaf0..0000000 --- a/core/include/JellyfinQt/DTO/taskstate.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_TASKSTATE_H -#define JELLYFIN_DTO_TASKSTATE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class TaskStateClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Idle, - Cancelling, - Running, - }; - Q_ENUM(Value) -private: - explicit TaskStateClass(); -}; - -typedef TaskStateClass::Value TaskState; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_TASKSTATE_H diff --git a/core/include/JellyfinQt/DTO/tasktriggerinfo.h b/core/include/JellyfinQt/DTO/tasktriggerinfo.h deleted file mode 100644 index 3fcad02..0000000 --- a/core/include/JellyfinQt/DTO/tasktriggerinfo.h +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_TASKTRIGGERINFO_H -#define JELLYFIN_DTO_TASKTRIGGERINFO_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/dayofweek.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class TaskTriggerInfo { -public:TaskTriggerInfo();TaskTriggerInfo(const TaskTriggerInfo &other); - - static TaskTriggerInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the type. - */ - QString type() const; - /** - * @brief Gets or sets the type. - */ - void setType(QString newType); - /** - * @brief Gets or sets the time of day. - */ - qint64 timeOfDayTicks() const; - /** - * @brief Gets or sets the time of day. - */ - void setTimeOfDayTicks(qint64 newTimeOfDayTicks); - /** - * @brief Gets or sets the interval. - */ - qint64 intervalTicks() const; - /** - * @brief Gets or sets the interval. - */ - void setIntervalTicks(qint64 newIntervalTicks); - - DayOfWeek dayOfWeek() const; - - void setDayOfWeek(DayOfWeek newDayOfWeek); - /** - * @brief Gets or sets the maximum runtime ticks. - */ - qint64 maxRuntimeTicks() const; - /** - * @brief Gets or sets the maximum runtime ticks. - */ - void setMaxRuntimeTicks(qint64 newMaxRuntimeTicks); - -protected: - QString m_type; - qint64 m_timeOfDayTicks; - qint64 m_intervalTicks; - DayOfWeek m_dayOfWeek; - qint64 m_maxRuntimeTicks; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_TASKTRIGGERINFO_H diff --git a/core/include/JellyfinQt/DTO/thememediaresult.h b/core/include/JellyfinQt/DTO/thememediaresult.h deleted file mode 100644 index a4d3273..0000000 --- a/core/include/JellyfinQt/DTO/thememediaresult.h +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_THEMEMEDIARESULT_H -#define JELLYFIN_DTO_THEMEMEDIARESULT_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/baseitemdto.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ThemeMediaResult { -public:ThemeMediaResult();ThemeMediaResult(const ThemeMediaResult &other); - - static ThemeMediaResult fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the items. - */ - QList> items() const; - /** - * @brief Gets or sets the items. - */ - void setItems(QList> newItems); - /** - * @brief The total number of records available. - */ - qint32 totalRecordCount() const; - /** - * @brief The total number of records available. - */ - void setTotalRecordCount(qint32 newTotalRecordCount); - /** - * @brief The index of the first record in Items. - */ - qint32 startIndex() const; - /** - * @brief The index of the first record in Items. - */ - void setStartIndex(qint32 newStartIndex); - /** - * @brief Gets or sets the owner id. - */ - QUuid ownerId() const; - /** - * @brief Gets or sets the owner id. - */ - void setOwnerId(QUuid newOwnerId); - -protected: - QList> m_items; - qint32 m_totalRecordCount; - qint32 m_startIndex; - QUuid m_ownerId; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_THEMEMEDIARESULT_H diff --git a/core/include/JellyfinQt/DTO/timereventinfo.h b/core/include/JellyfinQt/DTO/timereventinfo.h deleted file mode 100644 index b13e161..0000000 --- a/core/include/JellyfinQt/DTO/timereventinfo.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_TIMEREVENTINFO_H -#define JELLYFIN_DTO_TIMEREVENTINFO_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class TimerEventInfo { -public:TimerEventInfo();TimerEventInfo(const TimerEventInfo &other); - - static TimerEventInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QString jellyfinId() const; - - void setJellyfinId(QString newJellyfinId); - - QUuid programId() const; - - void setProgramId(QUuid newProgramId); - -protected: - QString m_jellyfinId; - QUuid m_programId; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_TIMEREVENTINFO_H diff --git a/core/include/JellyfinQt/DTO/timerinfodto.h b/core/include/JellyfinQt/DTO/timerinfodto.h deleted file mode 100644 index abf2ed0..0000000 --- a/core/include/JellyfinQt/DTO/timerinfodto.h +++ /dev/null @@ -1,299 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_TIMERINFODTO_H -#define JELLYFIN_DTO_TIMERINFODTO_H - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/baseitemdto.h" -#include "JellyfinQt/DTO/keepuntil.h" -#include "JellyfinQt/DTO/recordingstatus.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class TimerInfoDto { -public:TimerInfoDto();TimerInfoDto(const TimerInfoDto &other); - - static TimerInfoDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Id of the recording. - */ - QString jellyfinId() const; - /** - * @brief Id of the recording. - */ - void setJellyfinId(QString newJellyfinId); - - QString type() const; - - void setType(QString newType); - /** - * @brief Gets or sets the server identifier. - */ - QString serverId() const; - /** - * @brief Gets or sets the server identifier. - */ - void setServerId(QString newServerId); - /** - * @brief Gets or sets the external identifier. - */ - QString externalId() const; - /** - * @brief Gets or sets the external identifier. - */ - void setExternalId(QString newExternalId); - /** - * @brief ChannelId of the recording. - */ - QUuid channelId() const; - /** - * @brief ChannelId of the recording. - */ - void setChannelId(QUuid newChannelId); - /** - * @brief Gets or sets the external channel identifier. - */ - QString externalChannelId() const; - /** - * @brief Gets or sets the external channel identifier. - */ - void setExternalChannelId(QString newExternalChannelId); - /** - * @brief ChannelName of the recording. - */ - QString channelName() const; - /** - * @brief ChannelName of the recording. - */ - void setChannelName(QString newChannelName); - - QString channelPrimaryImageTag() const; - - void setChannelPrimaryImageTag(QString newChannelPrimaryImageTag); - /** - * @brief Gets or sets the program identifier. - */ - QString programId() const; - /** - * @brief Gets or sets the program identifier. - */ - void setProgramId(QString newProgramId); - /** - * @brief Gets or sets the external program identifier. - */ - QString externalProgramId() const; - /** - * @brief Gets or sets the external program identifier. - */ - void setExternalProgramId(QString newExternalProgramId); - /** - * @brief Name of the recording. - */ - QString name() const; - /** - * @brief Name of the recording. - */ - void setName(QString newName); - /** - * @brief Description of the recording. - */ - QString overview() const; - /** - * @brief Description of the recording. - */ - void setOverview(QString newOverview); - /** - * @brief The start date of the recording, in UTC. - */ - QDateTime startDate() const; - /** - * @brief The start date of the recording, in UTC. - */ - void setStartDate(QDateTime newStartDate); - /** - * @brief The end date of the recording, in UTC. - */ - QDateTime endDate() const; - /** - * @brief The end date of the recording, in UTC. - */ - void setEndDate(QDateTime newEndDate); - /** - * @brief Gets or sets the name of the service. - */ - QString serviceName() const; - /** - * @brief Gets or sets the name of the service. - */ - void setServiceName(QString newServiceName); - /** - * @brief Gets or sets the priority. - */ - qint32 priority() const; - /** - * @brief Gets or sets the priority. - */ - void setPriority(qint32 newPriority); - /** - * @brief Gets or sets the pre padding seconds. - */ - qint32 prePaddingSeconds() const; - /** - * @brief Gets or sets the pre padding seconds. - */ - void setPrePaddingSeconds(qint32 newPrePaddingSeconds); - /** - * @brief Gets or sets the post padding seconds. - */ - qint32 postPaddingSeconds() const; - /** - * @brief Gets or sets the post padding seconds. - */ - void setPostPaddingSeconds(qint32 newPostPaddingSeconds); - /** - * @brief Gets or sets a value indicating whether this instance is pre padding required. - */ - bool isPrePaddingRequired() const; - /** - * @brief Gets or sets a value indicating whether this instance is pre padding required. - */ - void setIsPrePaddingRequired(bool newIsPrePaddingRequired); - /** - * @brief If the item does not have any backdrops, this will hold the Id of the Parent that has one. - */ - QString parentBackdropItemId() const; - /** - * @brief If the item does not have any backdrops, this will hold the Id of the Parent that has one. - */ - void setParentBackdropItemId(QString newParentBackdropItemId); - /** - * @brief Gets or sets the parent backdrop image tags. - */ - QStringList parentBackdropImageTags() const; - /** - * @brief Gets or sets the parent backdrop image tags. - */ - void setParentBackdropImageTags(QStringList newParentBackdropImageTags); - /** - * @brief Gets or sets a value indicating whether this instance is post padding required. - */ - bool isPostPaddingRequired() const; - /** - * @brief Gets or sets a value indicating whether this instance is post padding required. - */ - void setIsPostPaddingRequired(bool newIsPostPaddingRequired); - - KeepUntil keepUntil() const; - - void setKeepUntil(KeepUntil newKeepUntil); - - RecordingStatus status() const; - - void setStatus(RecordingStatus newStatus); - /** - * @brief Gets or sets the series timer identifier. - */ - QString seriesTimerId() const; - /** - * @brief Gets or sets the series timer identifier. - */ - void setSeriesTimerId(QString newSeriesTimerId); - /** - * @brief Gets or sets the external series timer identifier. - */ - QString externalSeriesTimerId() const; - /** - * @brief Gets or sets the external series timer identifier. - */ - void setExternalSeriesTimerId(QString newExternalSeriesTimerId); - /** - * @brief Gets or sets the run time ticks. - */ - qint64 runTimeTicks() const; - /** - * @brief Gets or sets the run time ticks. - */ - void setRunTimeTicks(qint64 newRunTimeTicks); - - QSharedPointer programInfo() const; - - void setProgramInfo(QSharedPointer newProgramInfo); - -protected: - QString m_jellyfinId; - QString m_type; - QString m_serverId; - QString m_externalId; - QUuid m_channelId; - QString m_externalChannelId; - QString m_channelName; - QString m_channelPrimaryImageTag; - QString m_programId; - QString m_externalProgramId; - QString m_name; - QString m_overview; - QDateTime m_startDate; - QDateTime m_endDate; - QString m_serviceName; - qint32 m_priority; - qint32 m_prePaddingSeconds; - qint32 m_postPaddingSeconds; - bool m_isPrePaddingRequired; - QString m_parentBackdropItemId; - QStringList m_parentBackdropImageTags; - bool m_isPostPaddingRequired; - KeepUntil m_keepUntil; - RecordingStatus m_status; - QString m_seriesTimerId; - QString m_externalSeriesTimerId; - qint64 m_runTimeTicks; - QSharedPointer m_programInfo = nullptr; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_TIMERINFODTO_H diff --git a/core/include/JellyfinQt/DTO/timerinfodtoqueryresult.h b/core/include/JellyfinQt/DTO/timerinfodtoqueryresult.h deleted file mode 100644 index ece821a..0000000 --- a/core/include/JellyfinQt/DTO/timerinfodtoqueryresult.h +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_TIMERINFODTOQUERYRESULT_H -#define JELLYFIN_DTO_TIMERINFODTOQUERYRESULT_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/timerinfodto.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class TimerInfoDtoQueryResult { -public:TimerInfoDtoQueryResult();TimerInfoDtoQueryResult(const TimerInfoDtoQueryResult &other); - - static TimerInfoDtoQueryResult fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the items. - */ - QList> items() const; - /** - * @brief Gets or sets the items. - */ - void setItems(QList> newItems); - /** - * @brief The total number of records available. - */ - qint32 totalRecordCount() const; - /** - * @brief The total number of records available. - */ - void setTotalRecordCount(qint32 newTotalRecordCount); - /** - * @brief The index of the first record in Items. - */ - qint32 startIndex() const; - /** - * @brief The index of the first record in Items. - */ - void setStartIndex(qint32 newStartIndex); - -protected: - QList> m_items; - qint32 m_totalRecordCount; - qint32 m_startIndex; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_TIMERINFODTOQUERYRESULT_H diff --git a/core/include/JellyfinQt/DTO/trailerinfo.h b/core/include/JellyfinQt/DTO/trailerinfo.h deleted file mode 100644 index 3ee669a..0000000 --- a/core/include/JellyfinQt/DTO/trailerinfo.h +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_TRAILERINFO_H -#define JELLYFIN_DTO_TRAILERINFO_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class TrailerInfo { -public:TrailerInfo();TrailerInfo(const TrailerInfo &other); - - static TrailerInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the path. - */ - QString path() const; - /** - * @brief Gets or sets the path. - */ - void setPath(QString newPath); - /** - * @brief Gets or sets the metadata language. - */ - QString metadataLanguage() const; - /** - * @brief Gets or sets the metadata language. - */ - void setMetadataLanguage(QString newMetadataLanguage); - /** - * @brief Gets or sets the metadata country code. - */ - QString metadataCountryCode() const; - /** - * @brief Gets or sets the metadata country code. - */ - void setMetadataCountryCode(QString newMetadataCountryCode); - /** - * @brief Gets or sets the provider ids. - */ - QJsonObject providerIds() const; - /** - * @brief Gets or sets the provider ids. - */ - void setProviderIds(QJsonObject newProviderIds); - /** - * @brief Gets or sets the year. - */ - qint32 year() const; - /** - * @brief Gets or sets the year. - */ - void setYear(qint32 newYear); - - qint32 indexNumber() const; - - void setIndexNumber(qint32 newIndexNumber); - - qint32 parentIndexNumber() const; - - void setParentIndexNumber(qint32 newParentIndexNumber); - - QDateTime premiereDate() const; - - void setPremiereDate(QDateTime newPremiereDate); - - bool isAutomated() const; - - void setIsAutomated(bool newIsAutomated); - -protected: - QString m_name; - QString m_path; - QString m_metadataLanguage; - QString m_metadataCountryCode; - QJsonObject m_providerIds; - qint32 m_year; - qint32 m_indexNumber; - qint32 m_parentIndexNumber; - QDateTime m_premiereDate; - bool m_isAutomated; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_TRAILERINFO_H diff --git a/core/include/JellyfinQt/DTO/trailerinforemotesearchquery.h b/core/include/JellyfinQt/DTO/trailerinforemotesearchquery.h deleted file mode 100644 index acd0741..0000000 --- a/core/include/JellyfinQt/DTO/trailerinforemotesearchquery.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_TRAILERINFOREMOTESEARCHQUERY_H -#define JELLYFIN_DTO_TRAILERINFOREMOTESEARCHQUERY_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/trailerinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class TrailerInfoRemoteSearchQuery { -public:TrailerInfoRemoteSearchQuery();TrailerInfoRemoteSearchQuery(const TrailerInfoRemoteSearchQuery &other); - - static TrailerInfoRemoteSearchQuery fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QSharedPointer searchInfo() const; - - void setSearchInfo(QSharedPointer newSearchInfo); - - QUuid itemId() const; - - void setItemId(QUuid newItemId); - /** - * @brief Will only search within the given provider when set. - */ - QString searchProviderName() const; - /** - * @brief Will only search within the given provider when set. - */ - void setSearchProviderName(QString newSearchProviderName); - /** - * @brief Gets or sets a value indicating whether disabled providers should be included. - */ - bool includeDisabledProviders() const; - /** - * @brief Gets or sets a value indicating whether disabled providers should be included. - */ - void setIncludeDisabledProviders(bool newIncludeDisabledProviders); - -protected: - QSharedPointer m_searchInfo = nullptr; - QUuid m_itemId; - QString m_searchProviderName; - bool m_includeDisabledProviders; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_TRAILERINFOREMOTESEARCHQUERY_H diff --git a/core/include/JellyfinQt/DTO/transcodereason.h b/core/include/JellyfinQt/DTO/transcodereason.h deleted file mode 100644 index fae6760..0000000 --- a/core/include/JellyfinQt/DTO/transcodereason.h +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_TRANSCODEREASON_H -#define JELLYFIN_DTO_TRANSCODEREASON_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class TranscodeReasonClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - ContainerNotSupported, - VideoCodecNotSupported, - AudioCodecNotSupported, - ContainerBitrateExceedsLimit, - AudioBitrateNotSupported, - AudioChannelsNotSupported, - VideoResolutionNotSupported, - UnknownVideoStreamInfo, - UnknownAudioStreamInfo, - AudioProfileNotSupported, - AudioSampleRateNotSupported, - AnamorphicVideoNotSupported, - InterlacedVideoNotSupported, - SecondaryAudioNotSupported, - RefFramesNotSupported, - VideoBitDepthNotSupported, - VideoBitrateNotSupported, - VideoFramerateNotSupported, - VideoLevelNotSupported, - VideoProfileNotSupported, - AudioBitDepthNotSupported, - SubtitleCodecNotSupported, - DirectPlayError, - }; - Q_ENUM(Value) -private: - explicit TranscodeReasonClass(); -}; - -typedef TranscodeReasonClass::Value TranscodeReason; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_TRANSCODEREASON_H diff --git a/core/include/JellyfinQt/DTO/transcodeseekinfo.h b/core/include/JellyfinQt/DTO/transcodeseekinfo.h deleted file mode 100644 index 9de3964..0000000 --- a/core/include/JellyfinQt/DTO/transcodeseekinfo.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_TRANSCODESEEKINFO_H -#define JELLYFIN_DTO_TRANSCODESEEKINFO_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class TranscodeSeekInfoClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Auto, - Bytes, - }; - Q_ENUM(Value) -private: - explicit TranscodeSeekInfoClass(); -}; - -typedef TranscodeSeekInfoClass::Value TranscodeSeekInfo; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_TRANSCODESEEKINFO_H diff --git a/core/include/JellyfinQt/DTO/transcodinginfo.h b/core/include/JellyfinQt/DTO/transcodinginfo.h deleted file mode 100644 index cec54c3..0000000 --- a/core/include/JellyfinQt/DTO/transcodinginfo.h +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_TRANSCODINGINFO_H -#define JELLYFIN_DTO_TRANSCODINGINFO_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/transcodereason.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class TranscodingInfo { -public:TranscodingInfo();TranscodingInfo(const TranscodingInfo &other); - - static TranscodingInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QString audioCodec() const; - - void setAudioCodec(QString newAudioCodec); - - QString videoCodec() const; - - void setVideoCodec(QString newVideoCodec); - - QString container() const; - - void setContainer(QString newContainer); - - bool isVideoDirect() const; - - void setIsVideoDirect(bool newIsVideoDirect); - - bool isAudioDirect() const; - - void setIsAudioDirect(bool newIsAudioDirect); - - qint32 bitrate() const; - - void setBitrate(qint32 newBitrate); - - float framerate() const; - - void setFramerate(float newFramerate); - - double completionPercentage() const; - - void setCompletionPercentage(double newCompletionPercentage); - - qint32 width() const; - - void setWidth(qint32 newWidth); - - qint32 height() const; - - void setHeight(qint32 newHeight); - - qint32 audioChannels() const; - - void setAudioChannels(qint32 newAudioChannels); - - QList transcodeReasons() const; - - void setTranscodeReasons(QList newTranscodeReasons); - -protected: - QString m_audioCodec; - QString m_videoCodec; - QString m_container; - bool m_isVideoDirect; - bool m_isAudioDirect; - qint32 m_bitrate; - float m_framerate; - double m_completionPercentage; - qint32 m_width; - qint32 m_height; - qint32 m_audioChannels; - QList m_transcodeReasons; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_TRANSCODINGINFO_H diff --git a/core/include/JellyfinQt/DTO/transcodingprofile.h b/core/include/JellyfinQt/DTO/transcodingprofile.h deleted file mode 100644 index caeff96..0000000 --- a/core/include/JellyfinQt/DTO/transcodingprofile.h +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_TRANSCODINGPROFILE_H -#define JELLYFIN_DTO_TRANSCODINGPROFILE_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/dlnaprofiletype.h" -#include "JellyfinQt/DTO/encodingcontext.h" -#include "JellyfinQt/DTO/transcodeseekinfo.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class TranscodingProfile { -public:TranscodingProfile();TranscodingProfile(const TranscodingProfile &other); - - static TranscodingProfile fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QString container() const; - - void setContainer(QString newContainer); - - DlnaProfileType type() const; - - void setType(DlnaProfileType newType); - - QString videoCodec() const; - - void setVideoCodec(QString newVideoCodec); - - QString audioCodec() const; - - void setAudioCodec(QString newAudioCodec); - - QString protocol() const; - - void setProtocol(QString newProtocol); - - bool estimateContentLength() const; - - void setEstimateContentLength(bool newEstimateContentLength); - - bool enableMpegtsM2TsMode() const; - - void setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode); - - TranscodeSeekInfo transcodeSeekInfo() const; - - void setTranscodeSeekInfo(TranscodeSeekInfo newTranscodeSeekInfo); - - bool copyTimestamps() const; - - void setCopyTimestamps(bool newCopyTimestamps); - - EncodingContext context() const; - - void setContext(EncodingContext newContext); - - bool enableSubtitlesInManifest() const; - - void setEnableSubtitlesInManifest(bool newEnableSubtitlesInManifest); - - QString maxAudioChannels() const; - - void setMaxAudioChannels(QString newMaxAudioChannels); - - qint32 minSegments() const; - - void setMinSegments(qint32 newMinSegments); - - qint32 segmentLength() const; - - void setSegmentLength(qint32 newSegmentLength); - - bool breakOnNonKeyFrames() const; - - void setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames); - -protected: - QString m_container; - DlnaProfileType m_type; - QString m_videoCodec; - QString m_audioCodec; - QString m_protocol; - bool m_estimateContentLength; - bool m_enableMpegtsM2TsMode; - TranscodeSeekInfo m_transcodeSeekInfo; - bool m_copyTimestamps; - EncodingContext m_context; - bool m_enableSubtitlesInManifest; - QString m_maxAudioChannels; - qint32 m_minSegments; - qint32 m_segmentLength; - bool m_breakOnNonKeyFrames; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_TRANSCODINGPROFILE_H diff --git a/core/include/JellyfinQt/DTO/transportstreamtimestamp.h b/core/include/JellyfinQt/DTO/transportstreamtimestamp.h deleted file mode 100644 index c521a9f..0000000 --- a/core/include/JellyfinQt/DTO/transportstreamtimestamp.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_TRANSPORTSTREAMTIMESTAMP_H -#define JELLYFIN_DTO_TRANSPORTSTREAMTIMESTAMP_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class TransportStreamTimestampClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - None, - Zero, - Valid, - }; - Q_ENUM(Value) -private: - explicit TransportStreamTimestampClass(); -}; - -typedef TransportStreamTimestampClass::Value TransportStreamTimestamp; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_TRANSPORTSTREAMTIMESTAMP_H diff --git a/core/include/JellyfinQt/DTO/tunerchannelmapping.h b/core/include/JellyfinQt/DTO/tunerchannelmapping.h deleted file mode 100644 index aa5b136..0000000 --- a/core/include/JellyfinQt/DTO/tunerchannelmapping.h +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_TUNERCHANNELMAPPING_H -#define JELLYFIN_DTO_TUNERCHANNELMAPPING_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class TunerChannelMapping { -public:TunerChannelMapping();TunerChannelMapping(const TunerChannelMapping &other); - - static TunerChannelMapping fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QString name() const; - - void setName(QString newName); - - QString providerChannelName() const; - - void setProviderChannelName(QString newProviderChannelName); - - QString providerChannelId() const; - - void setProviderChannelId(QString newProviderChannelId); - - QString jellyfinId() const; - - void setJellyfinId(QString newJellyfinId); - -protected: - QString m_name; - QString m_providerChannelName; - QString m_providerChannelId; - QString m_jellyfinId; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_TUNERCHANNELMAPPING_H diff --git a/core/include/JellyfinQt/DTO/tunerhostinfo.h b/core/include/JellyfinQt/DTO/tunerhostinfo.h deleted file mode 100644 index 0ceeb8d..0000000 --- a/core/include/JellyfinQt/DTO/tunerhostinfo.h +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_TUNERHOSTINFO_H -#define JELLYFIN_DTO_TUNERHOSTINFO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class TunerHostInfo { -public:TunerHostInfo();TunerHostInfo(const TunerHostInfo &other); - - static TunerHostInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QString jellyfinId() const; - - void setJellyfinId(QString newJellyfinId); - - QString url() const; - - void setUrl(QString newUrl); - - QString type() const; - - void setType(QString newType); - - QString deviceId() const; - - void setDeviceId(QString newDeviceId); - - QString friendlyName() const; - - void setFriendlyName(QString newFriendlyName); - - bool importFavoritesOnly() const; - - void setImportFavoritesOnly(bool newImportFavoritesOnly); - - bool allowHWTranscoding() const; - - void setAllowHWTranscoding(bool newAllowHWTranscoding); - - bool enableStreamLooping() const; - - void setEnableStreamLooping(bool newEnableStreamLooping); - - QString source() const; - - void setSource(QString newSource); - - qint32 tunerCount() const; - - void setTunerCount(qint32 newTunerCount); - - QString userAgent() const; - - void setUserAgent(QString newUserAgent); - -protected: - QString m_jellyfinId; - QString m_url; - QString m_type; - QString m_deviceId; - QString m_friendlyName; - bool m_importFavoritesOnly; - bool m_allowHWTranscoding; - bool m_enableStreamLooping; - QString m_source; - qint32 m_tunerCount; - QString m_userAgent; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_TUNERHOSTINFO_H diff --git a/core/include/JellyfinQt/DTO/typeoptions.h b/core/include/JellyfinQt/DTO/typeoptions.h deleted file mode 100644 index 4005f7f..0000000 --- a/core/include/JellyfinQt/DTO/typeoptions.h +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_TYPEOPTIONS_H -#define JELLYFIN_DTO_TYPEOPTIONS_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/imageoption.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class TypeOptions { -public:TypeOptions();TypeOptions(const TypeOptions &other); - - static TypeOptions fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - - QString type() const; - - void setType(QString newType); - - QStringList metadataFetchers() const; - - void setMetadataFetchers(QStringList newMetadataFetchers); - - QStringList metadataFetcherOrder() const; - - void setMetadataFetcherOrder(QStringList newMetadataFetcherOrder); - - QStringList imageFetchers() const; - - void setImageFetchers(QStringList newImageFetchers); - - QStringList imageFetcherOrder() const; - - void setImageFetcherOrder(QStringList newImageFetcherOrder); - - QList> imageOptions() const; - - void setImageOptions(QList> newImageOptions); - -protected: - QString m_type; - QStringList m_metadataFetchers; - QStringList m_metadataFetcherOrder; - QStringList m_imageFetchers; - QStringList m_imageFetcherOrder; - QList> m_imageOptions; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_TYPEOPTIONS_H diff --git a/core/include/JellyfinQt/DTO/unrateditem.h b/core/include/JellyfinQt/DTO/unrateditem.h deleted file mode 100644 index 9bed85d..0000000 --- a/core/include/JellyfinQt/DTO/unrateditem.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_UNRATEDITEM_H -#define JELLYFIN_DTO_UNRATEDITEM_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class UnratedItemClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Movie, - Trailer, - Series, - Music, - Book, - LiveTvChannel, - LiveTvProgram, - ChannelContent, - Other, - }; - Q_ENUM(Value) -private: - explicit UnratedItemClass(); -}; - -typedef UnratedItemClass::Value UnratedItem; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_UNRATEDITEM_H diff --git a/core/include/JellyfinQt/DTO/updatelibraryoptionsdto.h b/core/include/JellyfinQt/DTO/updatelibraryoptionsdto.h deleted file mode 100644 index ce11fb8..0000000 --- a/core/include/JellyfinQt/DTO/updatelibraryoptionsdto.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_UPDATELIBRARYOPTIONSDTO_H -#define JELLYFIN_DTO_UPDATELIBRARYOPTIONSDTO_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/libraryoptions.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class UpdateLibraryOptionsDto { -public:UpdateLibraryOptionsDto();UpdateLibraryOptionsDto(const UpdateLibraryOptionsDto &other); - - static UpdateLibraryOptionsDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the library item id. - */ - QUuid jellyfinId() const; - /** - * @brief Gets or sets the library item id. - */ - void setJellyfinId(QUuid newJellyfinId); - - QSharedPointer libraryOptions() const; - - void setLibraryOptions(QSharedPointer newLibraryOptions); - -protected: - QUuid m_jellyfinId; - QSharedPointer m_libraryOptions = nullptr; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_UPDATELIBRARYOPTIONSDTO_H diff --git a/core/include/JellyfinQt/DTO/updateusereasypassword.h b/core/include/JellyfinQt/DTO/updateusereasypassword.h deleted file mode 100644 index cd25338..0000000 --- a/core/include/JellyfinQt/DTO/updateusereasypassword.h +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_UPDATEUSEREASYPASSWORD_H -#define JELLYFIN_DTO_UPDATEUSEREASYPASSWORD_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class UpdateUserEasyPassword { -public:UpdateUserEasyPassword();UpdateUserEasyPassword(const UpdateUserEasyPassword &other); - - static UpdateUserEasyPassword fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the new sha1-hashed password. - */ - QString newPassword() const; - /** - * @brief Gets or sets the new sha1-hashed password. - */ - void setNewPassword(QString newNewPassword); - /** - * @brief Gets or sets the new password. - */ - QString newPw() const; - /** - * @brief Gets or sets the new password. - */ - void setNewPw(QString newNewPw); - /** - * @brief Gets or sets a value indicating whether to reset the password. - */ - bool resetPassword() const; - /** - * @brief Gets or sets a value indicating whether to reset the password. - */ - void setResetPassword(bool newResetPassword); - -protected: - QString m_newPassword; - QString m_newPw; - bool m_resetPassword; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_UPDATEUSEREASYPASSWORD_H diff --git a/core/include/JellyfinQt/DTO/updateuserpassword.h b/core/include/JellyfinQt/DTO/updateuserpassword.h deleted file mode 100644 index b896c81..0000000 --- a/core/include/JellyfinQt/DTO/updateuserpassword.h +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_UPDATEUSERPASSWORD_H -#define JELLYFIN_DTO_UPDATEUSERPASSWORD_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class UpdateUserPassword { -public:UpdateUserPassword();UpdateUserPassword(const UpdateUserPassword &other); - - static UpdateUserPassword fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the current sha1-hashed password. - */ - QString currentPassword() const; - /** - * @brief Gets or sets the current sha1-hashed password. - */ - void setCurrentPassword(QString newCurrentPassword); - /** - * @brief Gets or sets the current plain text password. - */ - QString currentPw() const; - /** - * @brief Gets or sets the current plain text password. - */ - void setCurrentPw(QString newCurrentPw); - /** - * @brief Gets or sets the new plain text password. - */ - QString newPw() const; - /** - * @brief Gets or sets the new plain text password. - */ - void setNewPw(QString newNewPw); - /** - * @brief Gets or sets a value indicating whether to reset the password. - */ - bool resetPassword() const; - /** - * @brief Gets or sets a value indicating whether to reset the password. - */ - void setResetPassword(bool newResetPassword); - -protected: - QString m_currentPassword; - QString m_currentPw; - QString m_newPw; - bool m_resetPassword; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_UPDATEUSERPASSWORD_H diff --git a/core/include/JellyfinQt/DTO/uploadsubtitledto.h b/core/include/JellyfinQt/DTO/uploadsubtitledto.h deleted file mode 100644 index 3589ca0..0000000 --- a/core/include/JellyfinQt/DTO/uploadsubtitledto.h +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_UPLOADSUBTITLEDTO_H -#define JELLYFIN_DTO_UPLOADSUBTITLEDTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class UploadSubtitleDto { -public:UploadSubtitleDto();UploadSubtitleDto(const UploadSubtitleDto &other); - - static UploadSubtitleDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the subtitle language. - */ - QString language() const; - /** - * @brief Gets or sets the subtitle language. - */ - void setLanguage(QString newLanguage); - /** - * @brief Gets or sets the subtitle format. - */ - QString format() const; - /** - * @brief Gets or sets the subtitle format. - */ - void setFormat(QString newFormat); - /** - * @brief Gets or sets a value indicating whether the subtitle is forced. - */ - bool isForced() const; - /** - * @brief Gets or sets a value indicating whether the subtitle is forced. - */ - void setIsForced(bool newIsForced); - /** - * @brief Gets or sets the subtitle data. - */ - QString data() const; - /** - * @brief Gets or sets the subtitle data. - */ - void setData(QString newData); - -protected: - QString m_language; - QString m_format; - bool m_isForced; - QString m_data; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_UPLOADSUBTITLEDTO_H diff --git a/core/include/JellyfinQt/DTO/userconfiguration.h b/core/include/JellyfinQt/DTO/userconfiguration.h deleted file mode 100644 index 7e13987..0000000 --- a/core/include/JellyfinQt/DTO/userconfiguration.h +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_USERCONFIGURATION_H -#define JELLYFIN_DTO_USERCONFIGURATION_H - -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/subtitleplaybackmode.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class UserConfiguration { -public:UserConfiguration();UserConfiguration(const UserConfiguration &other); - - static UserConfiguration fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the audio language preference. - */ - QString audioLanguagePreference() const; - /** - * @brief Gets or sets the audio language preference. - */ - void setAudioLanguagePreference(QString newAudioLanguagePreference); - /** - * @brief Gets or sets a value indicating whether [play default audio track]. - */ - bool playDefaultAudioTrack() const; - /** - * @brief Gets or sets a value indicating whether [play default audio track]. - */ - void setPlayDefaultAudioTrack(bool newPlayDefaultAudioTrack); - /** - * @brief Gets or sets the subtitle language preference. - */ - QString subtitleLanguagePreference() const; - /** - * @brief Gets or sets the subtitle language preference. - */ - void setSubtitleLanguagePreference(QString newSubtitleLanguagePreference); - - bool displayMissingEpisodes() const; - - void setDisplayMissingEpisodes(bool newDisplayMissingEpisodes); - - QStringList groupedFolders() const; - - void setGroupedFolders(QStringList newGroupedFolders); - - SubtitlePlaybackMode subtitleMode() const; - - void setSubtitleMode(SubtitlePlaybackMode newSubtitleMode); - - bool displayCollectionsView() const; - - void setDisplayCollectionsView(bool newDisplayCollectionsView); - - bool enableLocalPassword() const; - - void setEnableLocalPassword(bool newEnableLocalPassword); - - QStringList orderedViews() const; - - void setOrderedViews(QStringList newOrderedViews); - - QStringList latestItemsExcludes() const; - - void setLatestItemsExcludes(QStringList newLatestItemsExcludes); - - QStringList myMediaExcludes() const; - - void setMyMediaExcludes(QStringList newMyMediaExcludes); - - bool hidePlayedInLatest() const; - - void setHidePlayedInLatest(bool newHidePlayedInLatest); - - bool rememberAudioSelections() const; - - void setRememberAudioSelections(bool newRememberAudioSelections); - - bool rememberSubtitleSelections() const; - - void setRememberSubtitleSelections(bool newRememberSubtitleSelections); - - bool enableNextEpisodeAutoPlay() const; - - void setEnableNextEpisodeAutoPlay(bool newEnableNextEpisodeAutoPlay); - -protected: - QString m_audioLanguagePreference; - bool m_playDefaultAudioTrack; - QString m_subtitleLanguagePreference; - bool m_displayMissingEpisodes; - QStringList m_groupedFolders; - SubtitlePlaybackMode m_subtitleMode; - bool m_displayCollectionsView; - bool m_enableLocalPassword; - QStringList m_orderedViews; - QStringList m_latestItemsExcludes; - QStringList m_myMediaExcludes; - bool m_hidePlayedInLatest; - bool m_rememberAudioSelections; - bool m_rememberSubtitleSelections; - bool m_enableNextEpisodeAutoPlay; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_USERCONFIGURATION_H diff --git a/core/include/JellyfinQt/DTO/userdto.h b/core/include/JellyfinQt/DTO/userdto.h deleted file mode 100644 index 8678ac2..0000000 --- a/core/include/JellyfinQt/DTO/userdto.h +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_USERDTO_H -#define JELLYFIN_DTO_USERDTO_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/userconfiguration.h" -#include "JellyfinQt/DTO/userpolicy.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class UserDto { -public:UserDto();UserDto(const UserDto &other); - - static UserDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the server identifier. - */ - QString serverId() const; - /** - * @brief Gets or sets the server identifier. - */ - void setServerId(QString newServerId); - /** - * @brief Gets or sets the name of the server. -This is not used by the server and is for client-side usage only. - */ - QString serverName() const; - /** - * @brief Gets or sets the name of the server. -This is not used by the server and is for client-side usage only. - */ - void setServerName(QString newServerName); - /** - * @brief Gets or sets the id. - */ - QUuid jellyfinId() const; - /** - * @brief Gets or sets the id. - */ - void setJellyfinId(QUuid newJellyfinId); - /** - * @brief Gets or sets the primary image tag. - */ - QString primaryImageTag() const; - /** - * @brief Gets or sets the primary image tag. - */ - void setPrimaryImageTag(QString newPrimaryImageTag); - /** - * @brief Gets or sets a value indicating whether this instance has password. - */ - bool hasPassword() const; - /** - * @brief Gets or sets a value indicating whether this instance has password. - */ - void setHasPassword(bool newHasPassword); - /** - * @brief Gets or sets a value indicating whether this instance has configured password. - */ - bool hasConfiguredPassword() const; - /** - * @brief Gets or sets a value indicating whether this instance has configured password. - */ - void setHasConfiguredPassword(bool newHasConfiguredPassword); - /** - * @brief Gets or sets a value indicating whether this instance has configured easy password. - */ - bool hasConfiguredEasyPassword() const; - /** - * @brief Gets or sets a value indicating whether this instance has configured easy password. - */ - void setHasConfiguredEasyPassword(bool newHasConfiguredEasyPassword); - /** - * @brief Gets or sets whether async login is enabled or not. - */ - bool enableAutoLogin() const; - /** - * @brief Gets or sets whether async login is enabled or not. - */ - void setEnableAutoLogin(bool newEnableAutoLogin); - /** - * @brief Gets or sets the last login date. - */ - QDateTime lastLoginDate() const; - /** - * @brief Gets or sets the last login date. - */ - void setLastLoginDate(QDateTime newLastLoginDate); - /** - * @brief Gets or sets the last activity date. - */ - QDateTime lastActivityDate() const; - /** - * @brief Gets or sets the last activity date. - */ - void setLastActivityDate(QDateTime newLastActivityDate); - - QSharedPointer configuration() const; - - void setConfiguration(QSharedPointer newConfiguration); - - QSharedPointer policy() const; - - void setPolicy(QSharedPointer newPolicy); - /** - * @brief Gets or sets the primary image aspect ratio. - */ - double primaryImageAspectRatio() const; - /** - * @brief Gets or sets the primary image aspect ratio. - */ - void setPrimaryImageAspectRatio(double newPrimaryImageAspectRatio); - -protected: - QString m_name; - QString m_serverId; - QString m_serverName; - QUuid m_jellyfinId; - QString m_primaryImageTag; - bool m_hasPassword; - bool m_hasConfiguredPassword; - bool m_hasConfiguredEasyPassword; - bool m_enableAutoLogin; - QDateTime m_lastLoginDate; - QDateTime m_lastActivityDate; - QSharedPointer m_configuration = nullptr; - QSharedPointer m_policy = nullptr; - double m_primaryImageAspectRatio; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_USERDTO_H diff --git a/core/include/JellyfinQt/DTO/useritemdatadto.h b/core/include/JellyfinQt/DTO/useritemdatadto.h deleted file mode 100644 index ab492c9..0000000 --- a/core/include/JellyfinQt/DTO/useritemdatadto.h +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_USERITEMDATADTO_H -#define JELLYFIN_DTO_USERITEMDATADTO_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class UserItemDataDto { -public:UserItemDataDto();UserItemDataDto(const UserItemDataDto &other); - - static UserItemDataDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the rating. - */ - double rating() const; - /** - * @brief Gets or sets the rating. - */ - void setRating(double newRating); - /** - * @brief Gets or sets the played percentage. - */ - double playedPercentage() const; - /** - * @brief Gets or sets the played percentage. - */ - void setPlayedPercentage(double newPlayedPercentage); - /** - * @brief Gets or sets the unplayed item count. - */ - qint32 unplayedItemCount() const; - /** - * @brief Gets or sets the unplayed item count. - */ - void setUnplayedItemCount(qint32 newUnplayedItemCount); - /** - * @brief Gets or sets the playback position ticks. - */ - qint64 playbackPositionTicks() const; - /** - * @brief Gets or sets the playback position ticks. - */ - void setPlaybackPositionTicks(qint64 newPlaybackPositionTicks); - /** - * @brief Gets or sets the play count. - */ - qint32 playCount() const; - /** - * @brief Gets or sets the play count. - */ - void setPlayCount(qint32 newPlayCount); - /** - * @brief Gets or sets a value indicating whether this instance is favorite. - */ - bool isFavorite() const; - /** - * @brief Gets or sets a value indicating whether this instance is favorite. - */ - void setIsFavorite(bool newIsFavorite); - /** - * @brief Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is likes. - */ - bool likes() const; - /** - * @brief Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is likes. - */ - void setLikes(bool newLikes); - /** - * @brief Gets or sets the last played date. - */ - QDateTime lastPlayedDate() const; - /** - * @brief Gets or sets the last played date. - */ - void setLastPlayedDate(QDateTime newLastPlayedDate); - /** - * @brief Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is played. - */ - bool played() const; - /** - * @brief Gets or sets a value indicating whether this MediaBrowser.Model.Dto.UserItemDataDto is played. - */ - void setPlayed(bool newPlayed); - /** - * @brief Gets or sets the key. - */ - QString key() const; - /** - * @brief Gets or sets the key. - */ - void setKey(QString newKey); - /** - * @brief Gets or sets the item identifier. - */ - QString itemId() const; - /** - * @brief Gets or sets the item identifier. - */ - void setItemId(QString newItemId); - -protected: - double m_rating; - double m_playedPercentage; - qint32 m_unplayedItemCount; - qint64 m_playbackPositionTicks; - qint32 m_playCount; - bool m_isFavorite; - bool m_likes; - QDateTime m_lastPlayedDate; - bool m_played; - QString m_key; - QString m_itemId; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_USERITEMDATADTO_H diff --git a/core/include/JellyfinQt/DTO/userpolicy.h b/core/include/JellyfinQt/DTO/userpolicy.h deleted file mode 100644 index b2c1abb..0000000 --- a/core/include/JellyfinQt/DTO/userpolicy.h +++ /dev/null @@ -1,281 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_USERPOLICY_H -#define JELLYFIN_DTO_USERPOLICY_H - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/accessschedule.h" -#include "JellyfinQt/DTO/syncplayuseraccesstype.h" -#include "JellyfinQt/DTO/unrateditem.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class UserPolicy { -public:UserPolicy();UserPolicy(const UserPolicy &other); - - static UserPolicy fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets a value indicating whether this instance is administrator. - */ - bool isAdministrator() const; - /** - * @brief Gets or sets a value indicating whether this instance is administrator. - */ - void setIsAdministrator(bool newIsAdministrator); - /** - * @brief Gets or sets a value indicating whether this instance is hidden. - */ - bool isHidden() const; - /** - * @brief Gets or sets a value indicating whether this instance is hidden. - */ - void setIsHidden(bool newIsHidden); - /** - * @brief Gets or sets a value indicating whether this instance is disabled. - */ - bool isDisabled() const; - /** - * @brief Gets or sets a value indicating whether this instance is disabled. - */ - void setIsDisabled(bool newIsDisabled); - /** - * @brief Gets or sets the max parental rating. - */ - qint32 maxParentalRating() const; - /** - * @brief Gets or sets the max parental rating. - */ - void setMaxParentalRating(qint32 newMaxParentalRating); - - QStringList blockedTags() const; - - void setBlockedTags(QStringList newBlockedTags); - - bool enableUserPreferenceAccess() const; - - void setEnableUserPreferenceAccess(bool newEnableUserPreferenceAccess); - - QList> accessSchedules() const; - - void setAccessSchedules(QList> newAccessSchedules); - - QList blockUnratedItems() const; - - void setBlockUnratedItems(QList newBlockUnratedItems); - - bool enableRemoteControlOfOtherUsers() const; - - void setEnableRemoteControlOfOtherUsers(bool newEnableRemoteControlOfOtherUsers); - - bool enableSharedDeviceControl() const; - - void setEnableSharedDeviceControl(bool newEnableSharedDeviceControl); - - bool enableRemoteAccess() const; - - void setEnableRemoteAccess(bool newEnableRemoteAccess); - - bool enableLiveTvManagement() const; - - void setEnableLiveTvManagement(bool newEnableLiveTvManagement); - - bool enableLiveTvAccess() const; - - void setEnableLiveTvAccess(bool newEnableLiveTvAccess); - - bool enableMediaPlayback() const; - - void setEnableMediaPlayback(bool newEnableMediaPlayback); - - bool enableAudioPlaybackTranscoding() const; - - void setEnableAudioPlaybackTranscoding(bool newEnableAudioPlaybackTranscoding); - - bool enableVideoPlaybackTranscoding() const; - - void setEnableVideoPlaybackTranscoding(bool newEnableVideoPlaybackTranscoding); - - bool enablePlaybackRemuxing() const; - - void setEnablePlaybackRemuxing(bool newEnablePlaybackRemuxing); - - bool forceRemoteSourceTranscoding() const; - - void setForceRemoteSourceTranscoding(bool newForceRemoteSourceTranscoding); - - bool enableContentDeletion() const; - - void setEnableContentDeletion(bool newEnableContentDeletion); - - QStringList enableContentDeletionFromFolders() const; - - void setEnableContentDeletionFromFolders(QStringList newEnableContentDeletionFromFolders); - - bool enableContentDownloading() const; - - void setEnableContentDownloading(bool newEnableContentDownloading); - /** - * @brief Gets or sets a value indicating whether [enable synchronize]. - */ - bool enableSyncTranscoding() const; - /** - * @brief Gets or sets a value indicating whether [enable synchronize]. - */ - void setEnableSyncTranscoding(bool newEnableSyncTranscoding); - - bool enableMediaConversion() const; - - void setEnableMediaConversion(bool newEnableMediaConversion); - - QStringList enabledDevices() const; - - void setEnabledDevices(QStringList newEnabledDevices); - - bool enableAllDevices() const; - - void setEnableAllDevices(bool newEnableAllDevices); - - QList enabledChannels() const; - - void setEnabledChannels(QList newEnabledChannels); - - bool enableAllChannels() const; - - void setEnableAllChannels(bool newEnableAllChannels); - - QList enabledFolders() const; - - void setEnabledFolders(QList newEnabledFolders); - - bool enableAllFolders() const; - - void setEnableAllFolders(bool newEnableAllFolders); - - qint32 invalidLoginAttemptCount() const; - - void setInvalidLoginAttemptCount(qint32 newInvalidLoginAttemptCount); - - qint32 loginAttemptsBeforeLockout() const; - - void setLoginAttemptsBeforeLockout(qint32 newLoginAttemptsBeforeLockout); - - qint32 maxActiveSessions() const; - - void setMaxActiveSessions(qint32 newMaxActiveSessions); - - bool enablePublicSharing() const; - - void setEnablePublicSharing(bool newEnablePublicSharing); - - QList blockedMediaFolders() const; - - void setBlockedMediaFolders(QList newBlockedMediaFolders); - - QList blockedChannels() const; - - void setBlockedChannels(QList newBlockedChannels); - - qint32 remoteClientBitrateLimit() const; - - void setRemoteClientBitrateLimit(qint32 newRemoteClientBitrateLimit); - - QString authenticationProviderId() const; - - void setAuthenticationProviderId(QString newAuthenticationProviderId); - - QString passwordResetProviderId() const; - - void setPasswordResetProviderId(QString newPasswordResetProviderId); - - SyncPlayUserAccessType syncPlayAccess() const; - - void setSyncPlayAccess(SyncPlayUserAccessType newSyncPlayAccess); - -protected: - bool m_isAdministrator; - bool m_isHidden; - bool m_isDisabled; - qint32 m_maxParentalRating; - QStringList m_blockedTags; - bool m_enableUserPreferenceAccess; - QList> m_accessSchedules; - QList m_blockUnratedItems; - bool m_enableRemoteControlOfOtherUsers; - bool m_enableSharedDeviceControl; - bool m_enableRemoteAccess; - bool m_enableLiveTvManagement; - bool m_enableLiveTvAccess; - bool m_enableMediaPlayback; - bool m_enableAudioPlaybackTranscoding; - bool m_enableVideoPlaybackTranscoding; - bool m_enablePlaybackRemuxing; - bool m_forceRemoteSourceTranscoding; - bool m_enableContentDeletion; - QStringList m_enableContentDeletionFromFolders; - bool m_enableContentDownloading; - bool m_enableSyncTranscoding; - bool m_enableMediaConversion; - QStringList m_enabledDevices; - bool m_enableAllDevices; - QList m_enabledChannels; - bool m_enableAllChannels; - QList m_enabledFolders; - bool m_enableAllFolders; - qint32 m_invalidLoginAttemptCount; - qint32 m_loginAttemptsBeforeLockout; - qint32 m_maxActiveSessions; - bool m_enablePublicSharing; - QList m_blockedMediaFolders; - QList m_blockedChannels; - qint32 m_remoteClientBitrateLimit; - QString m_authenticationProviderId; - QString m_passwordResetProviderId; - SyncPlayUserAccessType m_syncPlayAccess; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_USERPOLICY_H diff --git a/core/include/JellyfinQt/DTO/utctimeresponse.h b/core/include/JellyfinQt/DTO/utctimeresponse.h deleted file mode 100644 index da1a006..0000000 --- a/core/include/JellyfinQt/DTO/utctimeresponse.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_UTCTIMERESPONSE_H -#define JELLYFIN_DTO_UTCTIMERESPONSE_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class UtcTimeResponse { -public:UtcTimeResponse();UtcTimeResponse(const UtcTimeResponse &other); - - static UtcTimeResponse fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets the UTC time when request has been received. - */ - QDateTime requestReceptionTime() const; - /** - * @brief Gets the UTC time when request has been received. - */ - void setRequestReceptionTime(QDateTime newRequestReceptionTime); - /** - * @brief Gets the UTC time when response has been sent. - */ - QDateTime responseTransmissionTime() const; - /** - * @brief Gets the UTC time when response has been sent. - */ - void setResponseTransmissionTime(QDateTime newResponseTransmissionTime); - -protected: - QDateTime m_requestReceptionTime; - QDateTime m_responseTransmissionTime; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_UTCTIMERESPONSE_H diff --git a/core/include/JellyfinQt/DTO/validatepathdto.h b/core/include/JellyfinQt/DTO/validatepathdto.h deleted file mode 100644 index 8c9aec3..0000000 --- a/core/include/JellyfinQt/DTO/validatepathdto.h +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_VALIDATEPATHDTO_H -#define JELLYFIN_DTO_VALIDATEPATHDTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class ValidatePathDto { -public:ValidatePathDto();ValidatePathDto(const ValidatePathDto &other); - - static ValidatePathDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets a value indicating whether validate if path is writable. - */ - bool validateWritable() const; - /** - * @brief Gets or sets a value indicating whether validate if path is writable. - */ - void setValidateWritable(bool newValidateWritable); - /** - * @brief Gets or sets the path. - */ - QString path() const; - /** - * @brief Gets or sets the path. - */ - void setPath(QString newPath); - /** - * @brief Gets or sets is path file. - */ - bool isFile() const; - /** - * @brief Gets or sets is path file. - */ - void setIsFile(bool newIsFile); - -protected: - bool m_validateWritable; - QString m_path; - bool m_isFile; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_VALIDATEPATHDTO_H diff --git a/core/include/JellyfinQt/DTO/versioninfo.h b/core/include/JellyfinQt/DTO/versioninfo.h deleted file mode 100644 index 98bcb8d..0000000 --- a/core/include/JellyfinQt/DTO/versioninfo.h +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_VERSIONINFO_H -#define JELLYFIN_DTO_VERSIONINFO_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/version.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class VersionInfo { -public:VersionInfo();VersionInfo(const VersionInfo &other); - - static VersionInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the version. - */ - QString version() const; - /** - * @brief Gets or sets the version. - */ - void setVersion(QString newVersion); - - QSharedPointer versionNumber() const; - - void setVersionNumber(QSharedPointer newVersionNumber); - /** - * @brief Gets or sets the changelog for this version. - */ - QString changelog() const; - /** - * @brief Gets or sets the changelog for this version. - */ - void setChangelog(QString newChangelog); - /** - * @brief Gets or sets the ABI that this version was built against. - */ - QString targetAbi() const; - /** - * @brief Gets or sets the ABI that this version was built against. - */ - void setTargetAbi(QString newTargetAbi); - /** - * @brief Gets or sets the source URL. - */ - QString sourceUrl() const; - /** - * @brief Gets or sets the source URL. - */ - void setSourceUrl(QString newSourceUrl); - /** - * @brief Gets or sets a checksum for the binary. - */ - QString checksum() const; - /** - * @brief Gets or sets a checksum for the binary. - */ - void setChecksum(QString newChecksum); - /** - * @brief Gets or sets a timestamp of when the binary was built. - */ - QString timestamp() const; - /** - * @brief Gets or sets a timestamp of when the binary was built. - */ - void setTimestamp(QString newTimestamp); - /** - * @brief Gets or sets the repository name. - */ - QString repositoryName() const; - /** - * @brief Gets or sets the repository name. - */ - void setRepositoryName(QString newRepositoryName); - /** - * @brief Gets or sets the repository url. - */ - QString repositoryUrl() const; - /** - * @brief Gets or sets the repository url. - */ - void setRepositoryUrl(QString newRepositoryUrl); - -protected: - QString m_version; - QSharedPointer m_versionNumber = nullptr; - QString m_changelog; - QString m_targetAbi; - QString m_sourceUrl; - QString m_checksum; - QString m_timestamp; - QString m_repositoryName; - QString m_repositoryUrl; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_VERSIONINFO_H diff --git a/core/include/JellyfinQt/DTO/video3dformat.h b/core/include/JellyfinQt/DTO/video3dformat.h deleted file mode 100644 index 34cb6ec..0000000 --- a/core/include/JellyfinQt/DTO/video3dformat.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_VIDEO3DFORMAT_H -#define JELLYFIN_DTO_VIDEO3DFORMAT_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class Video3DFormatClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - HalfSideBySide, - FullSideBySide, - FullTopAndBottom, - HalfTopAndBottom, - MVC, - }; - Q_ENUM(Value) -private: - explicit Video3DFormatClass(); -}; - -typedef Video3DFormatClass::Value Video3DFormat; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_VIDEO3DFORMAT_H diff --git a/core/include/JellyfinQt/DTO/videotype.h b/core/include/JellyfinQt/DTO/videotype.h deleted file mode 100644 index 671ab2c..0000000 --- a/core/include/JellyfinQt/DTO/videotype.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_VIDEOTYPE_H -#define JELLYFIN_DTO_VIDEOTYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - -class VideoTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - VideoFile, - Iso, - Dvd, - BluRay, - }; - Q_ENUM(Value) -private: - explicit VideoTypeClass(); -}; - -typedef VideoTypeClass::Value VideoType; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_VIDEOTYPE_H diff --git a/core/include/JellyfinQt/DTO/virtualfolderinfo.h b/core/include/JellyfinQt/DTO/virtualfolderinfo.h deleted file mode 100644 index 6fdd220..0000000 --- a/core/include/JellyfinQt/DTO/virtualfolderinfo.h +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_VIRTUALFOLDERINFO_H -#define JELLYFIN_DTO_VIRTUALFOLDERINFO_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/libraryoptions.h" -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class VirtualFolderInfo { -public:VirtualFolderInfo();VirtualFolderInfo(const VirtualFolderInfo &other); - - static VirtualFolderInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name. - */ - QString name() const; - /** - * @brief Gets or sets the name. - */ - void setName(QString newName); - /** - * @brief Gets or sets the locations. - */ - QStringList locations() const; - /** - * @brief Gets or sets the locations. - */ - void setLocations(QStringList newLocations); - /** - * @brief Gets or sets the type of the collection. - */ - QString collectionType() const; - /** - * @brief Gets or sets the type of the collection. - */ - void setCollectionType(QString newCollectionType); - - QSharedPointer libraryOptions() const; - - void setLibraryOptions(QSharedPointer newLibraryOptions); - /** - * @brief Gets or sets the item identifier. - */ - QString itemId() const; - /** - * @brief Gets or sets the item identifier. - */ - void setItemId(QString newItemId); - /** - * @brief Gets or sets the primary image item identifier. - */ - QString primaryImageItemId() const; - /** - * @brief Gets or sets the primary image item identifier. - */ - void setPrimaryImageItemId(QString newPrimaryImageItemId); - - double refreshProgress() const; - - void setRefreshProgress(double newRefreshProgress); - - QString refreshStatus() const; - - void setRefreshStatus(QString newRefreshStatus); - -protected: - QString m_name; - QStringList m_locations; - QString m_collectionType; - QSharedPointer m_libraryOptions = nullptr; - QString m_itemId; - QString m_primaryImageItemId; - double m_refreshProgress; - QString m_refreshStatus; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_VIRTUALFOLDERINFO_H diff --git a/core/include/JellyfinQt/DTO/wakeonlaninfo.h b/core/include/JellyfinQt/DTO/wakeonlaninfo.h deleted file mode 100644 index a27b9fa..0000000 --- a/core/include/JellyfinQt/DTO/wakeonlaninfo.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_WAKEONLANINFO_H -#define JELLYFIN_DTO_WAKEONLANINFO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class WakeOnLanInfo { -public:WakeOnLanInfo();WakeOnLanInfo(const WakeOnLanInfo &other); - - static WakeOnLanInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets the MAC address of the device. - */ - QString macAddress() const; - /** - * @brief Gets the MAC address of the device. - */ - void setMacAddress(QString newMacAddress); - /** - * @brief Gets or sets the wake-on-LAN port. - */ - qint32 port() const; - /** - * @brief Gets or sets the wake-on-LAN port. - */ - void setPort(qint32 newPort); - -protected: - QString m_macAddress; - qint32 m_port; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_WAKEONLANINFO_H diff --git a/core/include/JellyfinQt/DTO/xmlattribute.h b/core/include/JellyfinQt/DTO/xmlattribute.h deleted file mode 100644 index 5c7f516..0000000 --- a/core/include/JellyfinQt/DTO/xmlattribute.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Sailfin: a Jellyfin client written using Qt - * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ -/* - * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET - * OVERWRITTEN AT SOME POINT! - * - * If there is a bug in this file, please fix the code generator used to generate this file found in - * core/openapigenerator.d. - * - * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that - * file with a newer file if needed instead of manually updating the files. - */ - -#ifndef JELLYFIN_DTO_XMLATTRIBUTE_H -#define JELLYFIN_DTO_XMLATTRIBUTE_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" - -namespace Jellyfin { -namespace DTO { - - -class XmlAttribute { -public:XmlAttribute();XmlAttribute(const XmlAttribute &other); - - static XmlAttribute fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the name of the attribute. - */ - QString name() const; - /** - * @brief Gets or sets the name of the attribute. - */ - void setName(QString newName); - /** - * @brief Gets or sets the value of the attribute. - */ - QString value() const; - /** - * @brief Gets or sets the value of the attribute. - */ - void setValue(QString newValue); - -protected: - QString m_name; - QString m_value; -}; - -} // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_XMLATTRIBUTE_H diff --git a/core/include/JellyfinQt/apimodel.h b/core/include/JellyfinQt/apimodel.h index 1729b63..de38f3c 100644 --- a/core/include/JellyfinQt/apimodel.h +++ b/core/include/JellyfinQt/apimodel.h @@ -44,40 +44,17 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #include "dto/baseitemdtoqueryresult.h" #include "loader/requesttypes.h" #include "support/loader.h" +#include "viewmodel/modelstatus.h" namespace Jellyfin { -/** - * Pageable response, which support offset and record parameters. The result - * should contain a field with the total item count, returned item count and an array - * containing the results. - */ -struct PageableResponse; - -class ModelStatusClass { - Q_GADGET -public: - enum ModelStatus { - Uninitialised, - Loading, - Ready, - Error, - LoadingMore - }; - Q_ENUM(ModelStatus) -private: - ModelStatusClass() {} -}; - -using ModelStatus = ModelStatusClass::ModelStatus; - class BaseModelLoader : public QObject, public QQmlParserStatus { Q_INTERFACES(QQmlParserStatus) Q_OBJECT public: explicit BaseModelLoader(QObject *parent = nullptr); Q_PROPERTY(ApiClient *apiClient READ apiClient WRITE setApiClient NOTIFY apiClientChanged) - Q_PROPERTY(ModelStatus status READ status NOTIFY statusChanged) + Q_PROPERTY(ViewModel::ModelStatus status READ status NOTIFY statusChanged) Q_PROPERTY(int limit READ limit WRITE setLimit NOTIFY limitChanged) Q_PROPERTY(bool autoReload READ autoReload WRITE setAutoReload NOTIFY autoReloadChanged) @@ -89,7 +66,7 @@ public: bool autoReload() const { return m_autoReload; } void setAutoReload(bool newAutoReload); - ModelStatus status() const { return m_status; } + ViewModel::ModelStatus status() const { return m_status; } /** * @brief Clears and reloads the model @@ -136,12 +113,12 @@ protected: void emitModelShouldClear() { emit modelShouldClear(); } void emitItemsLoaded() { emit itemsLoaded(); } - ModelStatus m_status = ModelStatus::Uninitialised; - void setStatus(ModelStatus newStatus) { + ViewModel::ModelStatus m_status = ViewModel::ModelStatus::Uninitialised; + void setStatus(ViewModel::ModelStatus newStatus) { if (this->m_status != newStatus) { this->m_status = newStatus; emit this->statusChanged(); - if (this->m_status == ModelStatus::Ready) { + if (this->m_status == ViewModel::ModelStatus::Ready) { emit ready(); } } @@ -167,7 +144,7 @@ public: } m_startIndex = 0; m_totalRecordCount = -1; - this->setStatus(ModelStatus::Loading); + this->setStatus(ViewModel::ModelStatus::Loading); emitModelShouldClear(); loadMore(0, -1); } @@ -177,7 +154,7 @@ public: qDebug() << "Cannot yet reload ApiModel: canReload() returned false."; return; } - this->setStatus(ModelStatus::LoadingMore); + this->setStatus(ViewModel::ModelStatus::LoadingMore); loadMore(m_startIndex, m_limit); } @@ -283,12 +260,14 @@ protected: try { std::optional optResult = m_futureWatcher.result(); if (!optResult.has_value()) { - this->setStatus(ModelStatus::Error); + this->setStatus(ViewModel::ModelStatus::Error); + qWarning() << "ModelLoader returned with empty optional"; + return; } result = optResult.value(); } catch (Support::LoadException e) { qWarning() << "Exception while loading: " << e.what(); - this->setStatus(ModelStatus::Error); + this->setStatus(ViewModel::ModelStatus::Error); } QList records = extractRecords(result); @@ -304,7 +283,7 @@ protected: for (int i = 0; i < records.size(); i++) { models[i] = T(records[i], m_loader->apiClient()); } - this->setStatus(ModelStatus::Ready); + this->setStatus(ViewModel::ModelStatus::Ready); this->m_result = { models, totalRecordCount}; this->emitItemsLoaded(); } diff --git a/core/include/JellyfinQt/jellyfin.h b/core/include/JellyfinQt/jellyfin.h index ac15c2b..2a2ddfa 100644 --- a/core/include/JellyfinQt/jellyfin.h +++ b/core/include/JellyfinQt/jellyfin.h @@ -1,27 +1,26 @@ /* -Sailfin: a Jellyfin client written using Qt -Copyright (C) 2021 Chris Josten - -This library is free software; you can redistribute it and/or -modify it under the terms of the GNU Lesser General Public -License as published by the Free Software Foundation; either -version 2.1 of the License, or (at your option) any later version. - -This library 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 -Lesser General Public License for more details. - -You should have received a copy of the GNU Lesser General Public -License along with this library; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -*/ + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ #ifndef JELLYFIN_H #define JELLYFIN_H #include -// #include "DTO/dto.h" #include "model/item.h" #include "dto/mediastream.h" #include "dto/nameguidpair.h" @@ -34,6 +33,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #include "viewmodel/item.h" #include "viewmodel/itemmodel.h" #include "viewmodel/loader.h" +#include "viewmodel/modelstatus.h" #include "viewmodel/playbackmanager.h" namespace Jellyfin { diff --git a/core/include/JellyfinQt/viewmodel/itemmodel.h b/core/include/JellyfinQt/viewmodel/itemmodel.h index 42e9793..8516ef2 100644 --- a/core/include/JellyfinQt/viewmodel/itemmodel.h +++ b/core/include/JellyfinQt/viewmodel/itemmodel.h @@ -23,13 +23,14 @@ #include #include -#include "propertyhelper.h" #include "../dto/baseitemdto.h" #include "../dto/baseitemdtoqueryresult.h" #include "../loader/http/getuserviews.h" #include "../loader/requesttypes.h" #include "../model/item.h" #include "../apimodel.h" +#include "modelstatus.h" +#include "propertyhelper.h" // Jellyfin Forward Read/Write Property #define FWDPROP(type, propName, propSetName) JF_FWD_RW_PROP(type, propName, propSetName, this->m_parameters) diff --git a/core/include/JellyfinQt/viewmodel/modelstatus.h b/core/include/JellyfinQt/viewmodel/modelstatus.h new file mode 100644 index 0000000..924888a --- /dev/null +++ b/core/include/JellyfinQt/viewmodel/modelstatus.h @@ -0,0 +1,78 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +#ifndef JELLYFIN_VIEWMODEL_MODELSTATUS_H +#define JELLYFIN_VIEWMODEL_MODELSTATUS_H + +#include +#include +#include + +namespace Jellyfin { +namespace ViewModel { + +class ModelStatusClass { + Q_GADGET +public: + enum Value { + Uninitialised, + Loading, + Ready, + Error, + LoadingMore + }; + Q_ENUM(Value) +private: + explicit ModelStatusClass(); +}; + +using ModelStatus = ModelStatusClass::Value; + + +class ModelStatusTest : public QObject { + Q_OBJECT +public: + explicit ModelStatusTest(QObject *parent = nullptr) : QObject(parent) { + m_timer.setInterval(500); + connect(&m_timer, &QTimer::timeout, this, &ModelStatusTest::rotateStatus); + m_timer.setSingleShot(false); + m_timer.start(); + } + Q_PROPERTY(ModelStatus status READ status WRITE setStatus NOTIFY statusChanged) + + ModelStatus status() const { return m_status; } + + void setStatus(ModelStatus newStatus) { + m_status = newStatus; + emit statusChanged(); + } +signals: + void statusChanged(); +private slots: + void rotateStatus() { + setStatus(static_cast((m_status + 1) % ModelStatus::LoadingMore)); + } +private: + ModelStatus m_status = ModelStatus::Uninitialised; + QTimer m_timer; +}; + +} +} // NS Jellyfin + +#endif // JELLYFIN_VIEWMODEL_MODELSTATUS_H diff --git a/core/src/apimodel.cpp b/core/src/apimodel.cpp index 82833c2..41d8504 100644 --- a/core/src/apimodel.cpp +++ b/core/src/apimodel.cpp @@ -19,9 +19,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #include "JellyfinQt/apimodel.h" -#include "JellyfinQt/DTO/baseitemdto.h" -#include "JellyfinQt/DTO/useritemdatadto.h" -#include "JellyfinQt/DTO/userdto.h" +#include "JellyfinQt/dto/baseitemdto.h" +#include "JellyfinQt/dto/useritemdatadto.h" +#include "JellyfinQt/dto/userdto.h" namespace Jellyfin { diff --git a/core/src/jellyfin.cpp b/core/src/jellyfin.cpp index 1ae45a4..ced789b 100644 --- a/core/src/jellyfin.cpp +++ b/core/src/jellyfin.cpp @@ -23,21 +23,20 @@ void registerTypes(const char *uri) { qmlRegisterType(uri, 1, 0, "ApiClient"); qmlRegisterType(uri, 1, 0, "ServerDiscoveryModel"); - qmlRegisterUncreatableType(uri, 1, 0, "Item", "Acquire one via ItemLoader or exposed properties"); + qmlRegisterUncreatableType(uri, 1, 0, "BaseApiModel", "Please use one of its subclasses"); qmlRegisterUncreatableType(uri, 1, 0, "BaseModelLoader", "Please use one of its subclasses"); - qmlRegisterUncreatableType(uri, 1, 0, "ModelStatus", "Is an enum"); - qmlRegisterType(uri, 1, 0, "ItemLoader"); + qmlRegisterUncreatableType(uri, 1, 0, "LoaderBase", "Use on eof its subclasses"); + + qmlRegisterUncreatableType(uri, 1, 0, "Item", "Acquire one via ItemLoader or exposed properties"); + qmlRegisterType(uri, 1, 0, "ModelStatusTest"); qmlRegisterType(uri, 1, 0, "ItemLoader"); qmlRegisterType(uri, 1, 0, "ItemModel"); qmlRegisterType(uri, 1, 0, "UsersViewLoader"); qmlRegisterType(uri, 1, 0, "PlaybackManager"); - qmlRegisterUncreatableType(uri, 1, 0, "GeneralCommandType", "Is an enum"); - // API models - Jellyfin::registerModels(uri); - //Jellyfin::DTO::registerTypes(uri); - Jellyfin::ViewModel::registerRemoteTypes(uri); + qmlRegisterUncreatableType(uri, 1, 0, "GeneralCommandType", "Is an enum"); + qmlRegisterUncreatableType(uri, 1, 0, "ModelStatus", "Is an enum"); } } diff --git a/core/src/loader/activateparams.cpp b/core/src/loader/activateparams.cpp new file mode 100644 index 0000000..f1cf803 --- /dev/null +++ b/core/src/loader/activateparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/activateparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// ActivateParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/playbackinforesponse.h b/core/src/loader/addlistingproviderparams.cpp similarity index 50% rename from core/include/JellyfinQt/DTO/playbackinforesponse.h rename to core/src/loader/addlistingproviderparams.cpp index 24b0407..03df1c3 100644 --- a/core/include/JellyfinQt/DTO/playbackinforesponse.h +++ b/core/src/loader/addlistingproviderparams.cpp @@ -27,61 +27,78 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_PLAYBACKINFORESPONSE_H -#define JELLYFIN_DTO_PLAYBACKINFORESPONSE_H - -#include -#include -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/mediasourceinfo.h" -#include "JellyfinQt/DTO/playbackerrorcode.h" -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/addlistingproviderparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { +using namespace Jellyfin::DTO; -class PlaybackInfoResponse { -public:PlaybackInfoResponse();PlaybackInfoResponse(const PlaybackInfoResponse &other); +// AddListingProviderParams + +const QString &AddListingProviderParams::pw() const { + return m_pw; +} + +void AddListingProviderParams::setPw(QString newPw) { + m_pw = newPw; +} + +bool AddListingProviderParams::pwNull() const { + // Nullable: true + // Type Nullable: true - static PlaybackInfoResponse fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); + + return m_pw.isNull(); +} + +void AddListingProviderParams::setPwNull() { + m_pw.clear(); +} + + +const bool &AddListingProviderParams::validateListings() const { + return m_validateListings.value(); +} + +void AddListingProviderParams::setValidateListings(bool newValidateListings) { + m_validateListings = newValidateListings; +} + +bool AddListingProviderParams::validateListingsNull() const { + // Nullable: false + // Type Nullable: false - // Properties - /** - * @brief Gets or sets the media sources. - */ - QList> mediaSources() const; - /** - * @brief Gets or sets the media sources. - */ - void setMediaSources(QList> newMediaSources); - /** - * @brief Gets or sets the play session identifier. - */ - QString playSessionId() const; - /** - * @brief Gets or sets the play session identifier. - */ - void setPlaySessionId(QString newPlaySessionId); - PlaybackErrorCode errorCode() const; + return !m_validateListings.has_value(); +} - void setErrorCode(PlaybackErrorCode newErrorCode); +void AddListingProviderParams::setValidateListingsNull() { + m_validateListings = std::nullopt; +} -protected: - QList> m_mediaSources; - QString m_playSessionId; - PlaybackErrorCode m_errorCode; -}; +const bool &AddListingProviderParams::validateLogin() const { + return m_validateLogin.value(); +} + +void AddListingProviderParams::setValidateLogin(bool newValidateLogin) { + m_validateLogin = newValidateLogin; +} + +bool AddListingProviderParams::validateLoginNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_validateLogin.has_value(); +} + +void AddListingProviderParams::setValidateLoginNull() { + m_validateLogin = std::nullopt; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PLAYBACKINFORESPONSE_H diff --git a/core/src/loader/addmediapathparams.cpp b/core/src/loader/addmediapathparams.cpp new file mode 100644 index 0000000..e0c9a12 --- /dev/null +++ b/core/src/loader/addmediapathparams.cpp @@ -0,0 +1,62 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/addmediapathparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// AddMediaPathParams + +const bool &AddMediaPathParams::refreshLibrary() const { + return m_refreshLibrary.value(); +} + +void AddMediaPathParams::setRefreshLibrary(bool newRefreshLibrary) { + m_refreshLibrary = newRefreshLibrary; +} + +bool AddMediaPathParams::refreshLibraryNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_refreshLibrary.has_value(); +} + +void AddMediaPathParams::setRefreshLibraryNull() { + m_refreshLibrary = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/addtocollectionparams.cpp b/core/src/loader/addtocollectionparams.cpp new file mode 100644 index 0000000..95a0636 --- /dev/null +++ b/core/src/loader/addtocollectionparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/addtocollectionparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// AddToCollectionParams + +const QString &AddToCollectionParams::collectionId() const { + return m_collectionId; +} + +void AddToCollectionParams::setCollectionId(QString newCollectionId) { + m_collectionId = newCollectionId; +} + + +const QStringList &AddToCollectionParams::ids() const { + return m_ids; +} + +void AddToCollectionParams::setIds(QStringList newIds) { + m_ids = newIds; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/nextitemrequestdto.h b/core/src/loader/addtoplaylistparams.cpp similarity index 58% rename from core/include/JellyfinQt/DTO/nextitemrequestdto.h rename to core/src/loader/addtoplaylistparams.cpp index 662c84a..40b8a89 100644 --- a/core/include/JellyfinQt/DTO/nextitemrequestdto.h +++ b/core/src/loader/addtoplaylistparams.cpp @@ -27,42 +27,66 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_NEXTITEMREQUESTDTO_H -#define JELLYFIN_DTO_NEXTITEMREQUESTDTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/addtoplaylistparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { + +using namespace Jellyfin::DTO; + +// AddToPlaylistParams + +const QString &AddToPlaylistParams::playlistId() const { + return m_playlistId; +} + +void AddToPlaylistParams::setPlaylistId(QString newPlaylistId) { + m_playlistId = newPlaylistId; +} -class NextItemRequestDto { -public:NextItemRequestDto();NextItemRequestDto(const NextItemRequestDto &other); +const QStringList &AddToPlaylistParams::ids() const { + return m_ids; +} + +void AddToPlaylistParams::setIds(QStringList newIds) { + m_ids = newIds; +} + +bool AddToPlaylistParams::idsNull() const { + // Nullable: true + // Type Nullable: true - static NextItemRequestDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); + + return m_ids.size() == 0; +} + +void AddToPlaylistParams::setIdsNull() { + m_ids.clear(); +} + + +const QString &AddToPlaylistParams::userId() const { + return m_userId; +} + +void AddToPlaylistParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool AddToPlaylistParams::userIdNull() const { + // Nullable: true + // Type Nullable: true - // Properties - /** - * @brief Gets or sets the playing item identifier. - */ - QUuid playlistItemId() const; - /** - * @brief Gets or sets the playing item identifier. - */ - void setPlaylistItemId(QUuid newPlaylistItemId); -protected: - QUuid m_playlistItemId; -}; + return m_userId.isNull(); +} +void AddToPlaylistParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_NEXTITEMREQUESTDTO_H diff --git a/core/src/loader/addtunerhostparams.cpp b/core/src/loader/addtunerhostparams.cpp new file mode 100644 index 0000000..7619490 --- /dev/null +++ b/core/src/loader/addtunerhostparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/addtunerhostparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// AddTunerHostParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/addusertosessionparams.cpp b/core/src/loader/addusertosessionparams.cpp new file mode 100644 index 0000000..f7a6219 --- /dev/null +++ b/core/src/loader/addusertosessionparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/addusertosessionparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// AddUserToSessionParams + +const QString &AddUserToSessionParams::sessionId() const { + return m_sessionId; +} + +void AddUserToSessionParams::setSessionId(QString newSessionId) { + m_sessionId = newSessionId; +} + + +const QString &AddUserToSessionParams::userId() const { + return m_userId; +} + +void AddUserToSessionParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/addvirtualfolderparams.cpp b/core/src/loader/addvirtualfolderparams.cpp new file mode 100644 index 0000000..db7ecf2 --- /dev/null +++ b/core/src/loader/addvirtualfolderparams.cpp @@ -0,0 +1,125 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/addvirtualfolderparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// AddVirtualFolderParams + +const QString &AddVirtualFolderParams::collectionType() const { + return m_collectionType; +} + +void AddVirtualFolderParams::setCollectionType(QString newCollectionType) { + m_collectionType = newCollectionType; +} + +bool AddVirtualFolderParams::collectionTypeNull() const { + // Nullable: true + // Type Nullable: true + + + return m_collectionType.isNull(); +} + +void AddVirtualFolderParams::setCollectionTypeNull() { + m_collectionType.clear(); +} + + +const QString &AddVirtualFolderParams::name() const { + return m_name; +} + +void AddVirtualFolderParams::setName(QString newName) { + m_name = newName; +} + +bool AddVirtualFolderParams::nameNull() const { + // Nullable: true + // Type Nullable: true + + + return m_name.isNull(); +} + +void AddVirtualFolderParams::setNameNull() { + m_name.clear(); +} + + +const QStringList &AddVirtualFolderParams::paths() const { + return m_paths; +} + +void AddVirtualFolderParams::setPaths(QStringList newPaths) { + m_paths = newPaths; +} + +bool AddVirtualFolderParams::pathsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_paths.size() == 0; +} + +void AddVirtualFolderParams::setPathsNull() { + m_paths.clear(); +} + + +const bool &AddVirtualFolderParams::refreshLibrary() const { + return m_refreshLibrary.value(); +} + +void AddVirtualFolderParams::setRefreshLibrary(bool newRefreshLibrary) { + m_refreshLibrary = newRefreshLibrary; +} + +bool AddVirtualFolderParams::refreshLibraryNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_refreshLibrary.has_value(); +} + +void AddVirtualFolderParams::setRefreshLibraryNull() { + m_refreshLibrary = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/httpheaderinfo.h b/core/src/loader/applysearchcriteriaparams.cpp similarity index 63% rename from core/include/JellyfinQt/DTO/httpheaderinfo.h rename to core/src/loader/applysearchcriteriaparams.cpp index a437fbe..d3692fa 100644 --- a/core/include/JellyfinQt/DTO/httpheaderinfo.h +++ b/core/src/loader/applysearchcriteriaparams.cpp @@ -27,49 +27,45 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_HTTPHEADERINFO_H -#define JELLYFIN_DTO_HTTPHEADERINFO_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/headermatchtype.h" -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/applysearchcriteriaparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { + +using namespace Jellyfin::DTO; + +// ApplySearchCriteriaParams + +const QString &ApplySearchCriteriaParams::itemId() const { + return m_itemId; +} + +void ApplySearchCriteriaParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} -class HttpHeaderInfo { -public:HttpHeaderInfo();HttpHeaderInfo(const HttpHeaderInfo &other); +const bool &ApplySearchCriteriaParams::replaceAllImages() const { + return m_replaceAllImages.value(); +} + +void ApplySearchCriteriaParams::setReplaceAllImages(bool newReplaceAllImages) { + m_replaceAllImages = newReplaceAllImages; +} + +bool ApplySearchCriteriaParams::replaceAllImagesNull() const { + // Nullable: false + // Type Nullable: false - static HttpHeaderInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - QString name() const; + return !m_replaceAllImages.has_value(); +} - void setName(QString newName); +void ApplySearchCriteriaParams::setReplaceAllImagesNull() { + m_replaceAllImages = std::nullopt; +} - QString value() const; - void setValue(QString newValue); - - HeaderMatchType match() const; - - void setMatch(HeaderMatchType newMatch); - -protected: - QString m_name; - QString m_value; - HeaderMatchType m_match; -}; +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_HTTPHEADERINFO_H diff --git a/core/src/loader/authenticateuserbynameparams.cpp b/core/src/loader/authenticateuserbynameparams.cpp new file mode 100644 index 0000000..6d084bf --- /dev/null +++ b/core/src/loader/authenticateuserbynameparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/authenticateuserbynameparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// AuthenticateUserByNameParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/authenticateuserparams.cpp b/core/src/loader/authenticateuserparams.cpp new file mode 100644 index 0000000..b8b5845 --- /dev/null +++ b/core/src/loader/authenticateuserparams.cpp @@ -0,0 +1,80 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/authenticateuserparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// AuthenticateUserParams + +const QString &AuthenticateUserParams::userId() const { + return m_userId; +} + +void AuthenticateUserParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + +const QString &AuthenticateUserParams::pw() const { + return m_pw; +} + +void AuthenticateUserParams::setPw(QString newPw) { + m_pw = newPw; +} + + +const QString &AuthenticateUserParams::password() const { + return m_password; +} + +void AuthenticateUserParams::setPassword(QString newPassword) { + m_password = newPassword; +} + +bool AuthenticateUserParams::passwordNull() const { + // Nullable: true + // Type Nullable: true + + + return m_password.isNull(); +} + +void AuthenticateUserParams::setPasswordNull() { + m_password.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/authenticatewithquickconnectparams.cpp b/core/src/loader/authenticatewithquickconnectparams.cpp new file mode 100644 index 0000000..fb8ef3d --- /dev/null +++ b/core/src/loader/authenticatewithquickconnectparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/authenticatewithquickconnectparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// AuthenticateWithQuickConnectParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/isotype.h b/core/src/loader/authorizeparams.cpp similarity index 77% rename from core/include/JellyfinQt/DTO/isotype.h rename to core/src/loader/authorizeparams.cpp index 4583102..3780afb 100644 --- a/core/include/JellyfinQt/DTO/isotype.h +++ b/core/src/loader/authorizeparams.cpp @@ -27,34 +27,24 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_ISOTYPE_H -#define JELLYFIN_DTO_ISOTYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/authorizeparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { -class IsoTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Dvd, - BluRay, - }; - Q_ENUM(Value) -private: - explicit IsoTypeClass(); -}; +using namespace Jellyfin::DTO; -typedef IsoTypeClass::Value IsoType; +// AuthorizeParams +const QString &AuthorizeParams::code() const { + return m_code; +} + +void AuthorizeParams::setCode(QString newCode) { + m_code = newCode; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_ISOTYPE_H diff --git a/core/src/loader/availableparams.cpp b/core/src/loader/availableparams.cpp new file mode 100644 index 0000000..1052058 --- /dev/null +++ b/core/src/loader/availableparams.cpp @@ -0,0 +1,62 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/availableparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// AvailableParams + +const QuickConnectState &AvailableParams::status() const { + return m_status; +} + +void AvailableParams::setStatus(QuickConnectState newStatus) { + m_status = newStatus; +} + +bool AvailableParams::statusNull() const { + // Nullable: true + // Type Nullable: true + + + return m_status== QuickConnectState::EnumNotSet; +} + +void AvailableParams::setStatusNull() { + m_status= QuickConnectState::EnumNotSet; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/playaccess.h b/core/src/loader/cancelpackageinstallationparams.cpp similarity index 76% rename from core/include/JellyfinQt/DTO/playaccess.h rename to core/src/loader/cancelpackageinstallationparams.cpp index bcf679f..93be0cb 100644 --- a/core/include/JellyfinQt/DTO/playaccess.h +++ b/core/src/loader/cancelpackageinstallationparams.cpp @@ -27,34 +27,24 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_PLAYACCESS_H -#define JELLYFIN_DTO_PLAYACCESS_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/cancelpackageinstallationparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { -class PlayAccessClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Full, - None, - }; - Q_ENUM(Value) -private: - explicit PlayAccessClass(); -}; +using namespace Jellyfin::DTO; -typedef PlayAccessClass::Value PlayAccess; +// CancelPackageInstallationParams +const QString &CancelPackageInstallationParams::packageId() const { + return m_packageId; +} + +void CancelPackageInstallationParams::setPackageId(QString newPackageId) { + m_packageId = newPackageId; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PLAYACCESS_H diff --git a/core/include/JellyfinQt/DTO/ratingtype.h b/core/src/loader/cancelseriestimerparams.cpp similarity index 76% rename from core/include/JellyfinQt/DTO/ratingtype.h rename to core/src/loader/cancelseriestimerparams.cpp index 4ff43ee..6db0f17 100644 --- a/core/include/JellyfinQt/DTO/ratingtype.h +++ b/core/src/loader/cancelseriestimerparams.cpp @@ -27,34 +27,24 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_RATINGTYPE_H -#define JELLYFIN_DTO_RATINGTYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/cancelseriestimerparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { -class RatingTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Score, - Likes, - }; - Q_ENUM(Value) -private: - explicit RatingTypeClass(); -}; +using namespace Jellyfin::DTO; -typedef RatingTypeClass::Value RatingType; +// CancelSeriesTimerParams +const QString &CancelSeriesTimerParams::timerId() const { + return m_timerId; +} + +void CancelSeriesTimerParams::setTimerId(QString newTimerId) { + m_timerId = newTimerId; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_RATINGTYPE_H diff --git a/core/include/JellyfinQt/DTO/sortorder.h b/core/src/loader/canceltimerparams.cpp similarity index 76% rename from core/include/JellyfinQt/DTO/sortorder.h rename to core/src/loader/canceltimerparams.cpp index 653af3e..7297cbb 100644 --- a/core/include/JellyfinQt/DTO/sortorder.h +++ b/core/src/loader/canceltimerparams.cpp @@ -27,34 +27,24 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_SORTORDER_H -#define JELLYFIN_DTO_SORTORDER_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/canceltimerparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { -class SortOrderClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Ascending, - Descending, - }; - Q_ENUM(Value) -private: - explicit SortOrderClass(); -}; +using namespace Jellyfin::DTO; -typedef SortOrderClass::Value SortOrder; +// CancelTimerParams +const QString &CancelTimerParams::timerId() const { + return m_timerId; +} + +void CancelTimerParams::setTimerId(QString newTimerId) { + m_timerId = newTimerId; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SORTORDER_H diff --git a/core/src/loader/closelivestreamparams.cpp b/core/src/loader/closelivestreamparams.cpp new file mode 100644 index 0000000..e7b19c9 --- /dev/null +++ b/core/src/loader/closelivestreamparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/closelivestreamparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// CloseLiveStreamParams + +const QString &CloseLiveStreamParams::liveStreamId() const { + return m_liveStreamId; +} + +void CloseLiveStreamParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/completewizardparams.cpp b/core/src/loader/completewizardparams.cpp new file mode 100644 index 0000000..86af1c6 --- /dev/null +++ b/core/src/loader/completewizardparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/completewizardparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// CompleteWizardParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/connectparams.cpp b/core/src/loader/connectparams.cpp new file mode 100644 index 0000000..8264f06 --- /dev/null +++ b/core/src/loader/connectparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/connectparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// ConnectParams + +const QString &ConnectParams::secret() const { + return m_secret; +} + +void ConnectParams::setSecret(QString newSecret) { + m_secret = newSecret; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/createadminnotificationparams.cpp b/core/src/loader/createadminnotificationparams.cpp new file mode 100644 index 0000000..ab5327a --- /dev/null +++ b/core/src/loader/createadminnotificationparams.cpp @@ -0,0 +1,125 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/createadminnotificationparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// CreateAdminNotificationParams + +const QString &CreateAdminNotificationParams::description() const { + return m_description; +} + +void CreateAdminNotificationParams::setDescription(QString newDescription) { + m_description = newDescription; +} + +bool CreateAdminNotificationParams::descriptionNull() const { + // Nullable: true + // Type Nullable: true + + + return m_description.isNull(); +} + +void CreateAdminNotificationParams::setDescriptionNull() { + m_description.clear(); +} + + +const NotificationLevel &CreateAdminNotificationParams::level() const { + return m_level; +} + +void CreateAdminNotificationParams::setLevel(NotificationLevel newLevel) { + m_level = newLevel; +} + +bool CreateAdminNotificationParams::levelNull() const { + // Nullable: true + // Type Nullable: true + + + return m_level== NotificationLevel::EnumNotSet; +} + +void CreateAdminNotificationParams::setLevelNull() { + m_level= NotificationLevel::EnumNotSet; +} + + +const QString &CreateAdminNotificationParams::name() const { + return m_name; +} + +void CreateAdminNotificationParams::setName(QString newName) { + m_name = newName; +} + +bool CreateAdminNotificationParams::nameNull() const { + // Nullable: true + // Type Nullable: true + + + return m_name.isNull(); +} + +void CreateAdminNotificationParams::setNameNull() { + m_name.clear(); +} + + +const QString &CreateAdminNotificationParams::url() const { + return m_url; +} + +void CreateAdminNotificationParams::setUrl(QString newUrl) { + m_url = newUrl; +} + +bool CreateAdminNotificationParams::urlNull() const { + // Nullable: true + // Type Nullable: true + + + return m_url.isNull(); +} + +void CreateAdminNotificationParams::setUrlNull() { + m_url.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/createcollectionparams.cpp b/core/src/loader/createcollectionparams.cpp new file mode 100644 index 0000000..2b8b551 --- /dev/null +++ b/core/src/loader/createcollectionparams.cpp @@ -0,0 +1,125 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/createcollectionparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// CreateCollectionParams + +const QStringList &CreateCollectionParams::ids() const { + return m_ids; +} + +void CreateCollectionParams::setIds(QStringList newIds) { + m_ids = newIds; +} + +bool CreateCollectionParams::idsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_ids.size() == 0; +} + +void CreateCollectionParams::setIdsNull() { + m_ids.clear(); +} + + +const bool &CreateCollectionParams::isLocked() const { + return m_isLocked.value(); +} + +void CreateCollectionParams::setIsLocked(bool newIsLocked) { + m_isLocked = newIsLocked; +} + +bool CreateCollectionParams::isLockedNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_isLocked.has_value(); +} + +void CreateCollectionParams::setIsLockedNull() { + m_isLocked = std::nullopt; +} + + +const QString &CreateCollectionParams::name() const { + return m_name; +} + +void CreateCollectionParams::setName(QString newName) { + m_name = newName; +} + +bool CreateCollectionParams::nameNull() const { + // Nullable: true + // Type Nullable: true + + + return m_name.isNull(); +} + +void CreateCollectionParams::setNameNull() { + m_name.clear(); +} + + +const QString &CreateCollectionParams::parentId() const { + return m_parentId; +} + +void CreateCollectionParams::setParentId(QString newParentId) { + m_parentId = newParentId; +} + +bool CreateCollectionParams::parentIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_parentId.isNull(); +} + +void CreateCollectionParams::setParentIdNull() { + m_parentId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/createkeyparams.cpp b/core/src/loader/createkeyparams.cpp new file mode 100644 index 0000000..dcf328a --- /dev/null +++ b/core/src/loader/createkeyparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/createkeyparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// CreateKeyParams + +const QString &CreateKeyParams::app() const { + return m_app; +} + +void CreateKeyParams::setApp(QString newApp) { + m_app = newApp; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/createplaylistparams.cpp b/core/src/loader/createplaylistparams.cpp new file mode 100644 index 0000000..55b21ae --- /dev/null +++ b/core/src/loader/createplaylistparams.cpp @@ -0,0 +1,125 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/createplaylistparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// CreatePlaylistParams + +const QStringList &CreatePlaylistParams::ids() const { + return m_ids; +} + +void CreatePlaylistParams::setIds(QStringList newIds) { + m_ids = newIds; +} + +bool CreatePlaylistParams::idsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_ids.size() == 0; +} + +void CreatePlaylistParams::setIdsNull() { + m_ids.clear(); +} + + +const QString &CreatePlaylistParams::mediaType() const { + return m_mediaType; +} + +void CreatePlaylistParams::setMediaType(QString newMediaType) { + m_mediaType = newMediaType; +} + +bool CreatePlaylistParams::mediaTypeNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaType.isNull(); +} + +void CreatePlaylistParams::setMediaTypeNull() { + m_mediaType.clear(); +} + + +const QString &CreatePlaylistParams::name() const { + return m_name; +} + +void CreatePlaylistParams::setName(QString newName) { + m_name = newName; +} + +bool CreatePlaylistParams::nameNull() const { + // Nullable: true + // Type Nullable: true + + + return m_name.isNull(); +} + +void CreatePlaylistParams::setNameNull() { + m_name.clear(); +} + + +const QString &CreatePlaylistParams::userId() const { + return m_userId; +} + +void CreatePlaylistParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool CreatePlaylistParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void CreatePlaylistParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/createprofileparams.cpp b/core/src/loader/createprofileparams.cpp new file mode 100644 index 0000000..48ebde7 --- /dev/null +++ b/core/src/loader/createprofileparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/createprofileparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// CreateProfileParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/createseriestimerparams.cpp b/core/src/loader/createseriestimerparams.cpp new file mode 100644 index 0000000..f3578d6 --- /dev/null +++ b/core/src/loader/createseriestimerparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/createseriestimerparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// CreateSeriesTimerParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/createtimerparams.cpp b/core/src/loader/createtimerparams.cpp new file mode 100644 index 0000000..d23c363 --- /dev/null +++ b/core/src/loader/createtimerparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/createtimerparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// CreateTimerParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/createuserbynameparams.cpp b/core/src/loader/createuserbynameparams.cpp new file mode 100644 index 0000000..b16d77a --- /dev/null +++ b/core/src/loader/createuserbynameparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/createuserbynameparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// CreateUserByNameParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/deauthorizeparams.cpp b/core/src/loader/deauthorizeparams.cpp new file mode 100644 index 0000000..2d5ad0b --- /dev/null +++ b/core/src/loader/deauthorizeparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/deauthorizeparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DeauthorizeParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/deletealternatesourcesparams.cpp b/core/src/loader/deletealternatesourcesparams.cpp new file mode 100644 index 0000000..07f3b58 --- /dev/null +++ b/core/src/loader/deletealternatesourcesparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/deletealternatesourcesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DeleteAlternateSourcesParams + +const QString &DeleteAlternateSourcesParams::itemId() const { + return m_itemId; +} + +void DeleteAlternateSourcesParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/deletedeviceparams.cpp b/core/src/loader/deletedeviceparams.cpp new file mode 100644 index 0000000..2c9acdd --- /dev/null +++ b/core/src/loader/deletedeviceparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/deletedeviceparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DeleteDeviceParams + +const QString &DeleteDeviceParams::jellyfinId() const { + return m_jellyfinId; +} + +void DeleteDeviceParams::setJellyfinId(QString newJellyfinId) { + m_jellyfinId = newJellyfinId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/deleteitemimagebyindexparams.cpp b/core/src/loader/deleteitemimagebyindexparams.cpp new file mode 100644 index 0000000..57eacf7 --- /dev/null +++ b/core/src/loader/deleteitemimagebyindexparams.cpp @@ -0,0 +1,68 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/deleteitemimagebyindexparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DeleteItemImageByIndexParams + +const qint32 &DeleteItemImageByIndexParams::imageIndex() const { + return m_imageIndex; +} + +void DeleteItemImageByIndexParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + + +const ImageType &DeleteItemImageByIndexParams::imageType() const { + return m_imageType; +} + +void DeleteItemImageByIndexParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &DeleteItemImageByIndexParams::itemId() const { + return m_itemId; +} + +void DeleteItemImageByIndexParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/deleteitemimageparams.cpp b/core/src/loader/deleteitemimageparams.cpp new file mode 100644 index 0000000..c0fb1fd --- /dev/null +++ b/core/src/loader/deleteitemimageparams.cpp @@ -0,0 +1,80 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/deleteitemimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DeleteItemImageParams + +const ImageType &DeleteItemImageParams::imageType() const { + return m_imageType; +} + +void DeleteItemImageParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &DeleteItemImageParams::itemId() const { + return m_itemId; +} + +void DeleteItemImageParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const qint32 &DeleteItemImageParams::imageIndex() const { + return m_imageIndex.value(); +} + +void DeleteItemImageParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + +bool DeleteItemImageParams::imageIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageIndex.has_value(); +} + +void DeleteItemImageParams::setImageIndexNull() { + m_imageIndex = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/deleteitemparams.cpp b/core/src/loader/deleteitemparams.cpp new file mode 100644 index 0000000..3ab322b --- /dev/null +++ b/core/src/loader/deleteitemparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/deleteitemparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DeleteItemParams + +const QString &DeleteItemParams::itemId() const { + return m_itemId; +} + +void DeleteItemParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/deleteitemsparams.cpp b/core/src/loader/deleteitemsparams.cpp new file mode 100644 index 0000000..5fdc43d --- /dev/null +++ b/core/src/loader/deleteitemsparams.cpp @@ -0,0 +1,62 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/deleteitemsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DeleteItemsParams + +const QStringList &DeleteItemsParams::ids() const { + return m_ids; +} + +void DeleteItemsParams::setIds(QStringList newIds) { + m_ids = newIds; +} + +bool DeleteItemsParams::idsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_ids.size() == 0; +} + +void DeleteItemsParams::setIdsNull() { + m_ids.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/deletelistingproviderparams.cpp b/core/src/loader/deletelistingproviderparams.cpp new file mode 100644 index 0000000..aced469 --- /dev/null +++ b/core/src/loader/deletelistingproviderparams.cpp @@ -0,0 +1,62 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/deletelistingproviderparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DeleteListingProviderParams + +const QString &DeleteListingProviderParams::jellyfinId() const { + return m_jellyfinId; +} + +void DeleteListingProviderParams::setJellyfinId(QString newJellyfinId) { + m_jellyfinId = newJellyfinId; +} + +bool DeleteListingProviderParams::jellyfinIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_jellyfinId.isNull(); +} + +void DeleteListingProviderParams::setJellyfinIdNull() { + m_jellyfinId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/deleteprofileparams.cpp b/core/src/loader/deleteprofileparams.cpp new file mode 100644 index 0000000..39a5497 --- /dev/null +++ b/core/src/loader/deleteprofileparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/deleteprofileparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DeleteProfileParams + +const QString &DeleteProfileParams::profileId() const { + return m_profileId; +} + +void DeleteProfileParams::setProfileId(QString newProfileId) { + m_profileId = newProfileId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/deleterecordingparams.cpp b/core/src/loader/deleterecordingparams.cpp new file mode 100644 index 0000000..17246e0 --- /dev/null +++ b/core/src/loader/deleterecordingparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/deleterecordingparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DeleteRecordingParams + +const QString &DeleteRecordingParams::recordingId() const { + return m_recordingId; +} + +void DeleteRecordingParams::setRecordingId(QString newRecordingId) { + m_recordingId = newRecordingId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/imageformat.h b/core/src/loader/deletesubtitleparams.cpp similarity index 75% rename from core/include/JellyfinQt/DTO/imageformat.h rename to core/src/loader/deletesubtitleparams.cpp index c26da21..a3b7d8a 100644 --- a/core/include/JellyfinQt/DTO/imageformat.h +++ b/core/src/loader/deletesubtitleparams.cpp @@ -27,37 +27,33 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_IMAGEFORMAT_H -#define JELLYFIN_DTO_IMAGEFORMAT_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/deletesubtitleparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { -class ImageFormatClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Bmp, - Gif, - Jpg, - Png, - Webp, - }; - Q_ENUM(Value) -private: - explicit ImageFormatClass(); -}; +using namespace Jellyfin::DTO; -typedef ImageFormatClass::Value ImageFormat; +// DeleteSubtitleParams +const qint32 &DeleteSubtitleParams::index() const { + return m_index; +} + +void DeleteSubtitleParams::setIndex(qint32 newIndex) { + m_index = newIndex; +} + + +const QString &DeleteSubtitleParams::itemId() const { + return m_itemId; +} + +void DeleteSubtitleParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_IMAGEFORMAT_H diff --git a/core/src/loader/deletetunerhostparams.cpp b/core/src/loader/deletetunerhostparams.cpp new file mode 100644 index 0000000..d318df0 --- /dev/null +++ b/core/src/loader/deletetunerhostparams.cpp @@ -0,0 +1,62 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/deletetunerhostparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DeleteTunerHostParams + +const QString &DeleteTunerHostParams::jellyfinId() const { + return m_jellyfinId; +} + +void DeleteTunerHostParams::setJellyfinId(QString newJellyfinId) { + m_jellyfinId = newJellyfinId; +} + +bool DeleteTunerHostParams::jellyfinIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_jellyfinId.isNull(); +} + +void DeleteTunerHostParams::setJellyfinIdNull() { + m_jellyfinId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/deleteuserimagebyindexparams.cpp b/core/src/loader/deleteuserimagebyindexparams.cpp new file mode 100644 index 0000000..0470ef4 --- /dev/null +++ b/core/src/loader/deleteuserimagebyindexparams.cpp @@ -0,0 +1,68 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/deleteuserimagebyindexparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DeleteUserImageByIndexParams + +const ImageType &DeleteUserImageByIndexParams::imageType() const { + return m_imageType; +} + +void DeleteUserImageByIndexParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const qint32 &DeleteUserImageByIndexParams::index() const { + return m_index; +} + +void DeleteUserImageByIndexParams::setIndex(qint32 newIndex) { + m_index = newIndex; +} + + +const QString &DeleteUserImageByIndexParams::userId() const { + return m_userId; +} + +void DeleteUserImageByIndexParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/deleteuserimageparams.cpp b/core/src/loader/deleteuserimageparams.cpp new file mode 100644 index 0000000..e0ff214 --- /dev/null +++ b/core/src/loader/deleteuserimageparams.cpp @@ -0,0 +1,80 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/deleteuserimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DeleteUserImageParams + +const ImageType &DeleteUserImageParams::imageType() const { + return m_imageType; +} + +void DeleteUserImageParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &DeleteUserImageParams::userId() const { + return m_userId; +} + +void DeleteUserImageParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + +const qint32 &DeleteUserImageParams::index() const { + return m_index.value(); +} + +void DeleteUserImageParams::setIndex(qint32 newIndex) { + m_index = newIndex; +} + +bool DeleteUserImageParams::indexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_index.has_value(); +} + +void DeleteUserImageParams::setIndexNull() { + m_index = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/deleteuseritemratingparams.cpp b/core/src/loader/deleteuseritemratingparams.cpp new file mode 100644 index 0000000..d3129cc --- /dev/null +++ b/core/src/loader/deleteuseritemratingparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/deleteuseritemratingparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DeleteUserItemRatingParams + +const QString &DeleteUserItemRatingParams::itemId() const { + return m_itemId; +} + +void DeleteUserItemRatingParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &DeleteUserItemRatingParams::userId() const { + return m_userId; +} + +void DeleteUserItemRatingParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/deleteuserparams.cpp b/core/src/loader/deleteuserparams.cpp new file mode 100644 index 0000000..8e73134 --- /dev/null +++ b/core/src/loader/deleteuserparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/deleteuserparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DeleteUserParams + +const QString &DeleteUserParams::userId() const { + return m_userId; +} + +void DeleteUserParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/disablepluginparams.cpp b/core/src/loader/disablepluginparams.cpp new file mode 100644 index 0000000..094a083 --- /dev/null +++ b/core/src/loader/disablepluginparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/disablepluginparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DisablePluginParams + +const QString &DisablePluginParams::pluginId() const { + return m_pluginId; +} + +void DisablePluginParams::setPluginId(QString newPluginId) { + m_pluginId = newPluginId; +} + + +const QSharedPointer &DisablePluginParams::version() const { + return m_version; +} + +void DisablePluginParams::setVersion(QSharedPointer newVersion) { + m_version = newVersion; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/dynamicdayofweek.h b/core/src/loader/discovertunersparams.cpp similarity index 71% rename from core/include/JellyfinQt/DTO/dynamicdayofweek.h rename to core/src/loader/discovertunersparams.cpp index d8be27f..8d8682b 100644 --- a/core/include/JellyfinQt/DTO/dynamicdayofweek.h +++ b/core/src/loader/discovertunersparams.cpp @@ -27,42 +27,36 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_DYNAMICDAYOFWEEK_H -#define JELLYFIN_DTO_DYNAMICDAYOFWEEK_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/discovertunersparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { -class DynamicDayOfWeekClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Sunday, - Monday, - Tuesday, - Wednesday, - Thursday, - Friday, - Saturday, - Everyday, - Weekday, - Weekend, - }; - Q_ENUM(Value) -private: - explicit DynamicDayOfWeekClass(); -}; +using namespace Jellyfin::DTO; -typedef DynamicDayOfWeekClass::Value DynamicDayOfWeek; +// DiscoverTunersParams +const bool &DiscoverTunersParams::newDevicesOnly() const { + return m_newDevicesOnly.value(); +} + +void DiscoverTunersParams::setNewDevicesOnly(bool newNewDevicesOnly) { + m_newDevicesOnly = newNewDevicesOnly; +} + +bool DiscoverTunersParams::newDevicesOnlyNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_newDevicesOnly.has_value(); +} + +void DiscoverTunersParams::setNewDevicesOnlyNull() { + m_newDevicesOnly = std::nullopt; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_DYNAMICDAYOFWEEK_H diff --git a/core/src/loader/discvovertunersparams.cpp b/core/src/loader/discvovertunersparams.cpp new file mode 100644 index 0000000..eeecda2 --- /dev/null +++ b/core/src/loader/discvovertunersparams.cpp @@ -0,0 +1,62 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/discvovertunersparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DiscvoverTunersParams + +const bool &DiscvoverTunersParams::newDevicesOnly() const { + return m_newDevicesOnly.value(); +} + +void DiscvoverTunersParams::setNewDevicesOnly(bool newNewDevicesOnly) { + m_newDevicesOnly = newNewDevicesOnly; +} + +bool DiscvoverTunersParams::newDevicesOnlyNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_newDevicesOnly.has_value(); +} + +void DiscvoverTunersParams::setNewDevicesOnlyNull() { + m_newDevicesOnly = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/displaycontentparams.cpp b/core/src/loader/displaycontentparams.cpp new file mode 100644 index 0000000..314cc30 --- /dev/null +++ b/core/src/loader/displaycontentparams.cpp @@ -0,0 +1,77 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/displaycontentparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DisplayContentParams + +const QString &DisplayContentParams::sessionId() const { + return m_sessionId; +} + +void DisplayContentParams::setSessionId(QString newSessionId) { + m_sessionId = newSessionId; +} + + +const QString &DisplayContentParams::itemId() const { + return m_itemId; +} + +void DisplayContentParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &DisplayContentParams::itemName() const { + return m_itemName; +} + +void DisplayContentParams::setItemName(QString newItemName) { + m_itemName = newItemName; +} + + +const QString &DisplayContentParams::itemType() const { + return m_itemType; +} + +void DisplayContentParams::setItemType(QString newItemType) { + m_itemType = newItemType; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/downloadremoteimageparams.cpp b/core/src/loader/downloadremoteimageparams.cpp new file mode 100644 index 0000000..6863b7f --- /dev/null +++ b/core/src/loader/downloadremoteimageparams.cpp @@ -0,0 +1,80 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/downloadremoteimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DownloadRemoteImageParams + +const QString &DownloadRemoteImageParams::itemId() const { + return m_itemId; +} + +void DownloadRemoteImageParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const ImageType &DownloadRemoteImageParams::type() const { + return m_type; +} + +void DownloadRemoteImageParams::setType(ImageType newType) { + m_type = newType; +} + + +const QString &DownloadRemoteImageParams::imageUrl() const { + return m_imageUrl; +} + +void DownloadRemoteImageParams::setImageUrl(QString newImageUrl) { + m_imageUrl = newImageUrl; +} + +bool DownloadRemoteImageParams::imageUrlNull() const { + // Nullable: true + // Type Nullable: true + + + return m_imageUrl.isNull(); +} + +void DownloadRemoteImageParams::setImageUrlNull() { + m_imageUrl.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/downloadremotesubtitlesparams.cpp b/core/src/loader/downloadremotesubtitlesparams.cpp new file mode 100644 index 0000000..9d5914e --- /dev/null +++ b/core/src/loader/downloadremotesubtitlesparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/downloadremotesubtitlesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// DownloadRemoteSubtitlesParams + +const QString &DownloadRemoteSubtitlesParams::itemId() const { + return m_itemId; +} + +void DownloadRemoteSubtitlesParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &DownloadRemoteSubtitlesParams::subtitleId() const { + return m_subtitleId; +} + +void DownloadRemoteSubtitlesParams::setSubtitleId(QString newSubtitleId) { + m_subtitleId = newSubtitleId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/enablepluginparams.cpp b/core/src/loader/enablepluginparams.cpp new file mode 100644 index 0000000..5544440 --- /dev/null +++ b/core/src/loader/enablepluginparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/enablepluginparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// EnablePluginParams + +const QString &EnablePluginParams::pluginId() const { + return m_pluginId; +} + +void EnablePluginParams::setPluginId(QString newPluginId) { + m_pluginId = newPluginId; +} + + +const QSharedPointer &EnablePluginParams::version() const { + return m_version; +} + +void EnablePluginParams::setVersion(QSharedPointer newVersion) { + m_version = newVersion; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/forgotpasswordparams.cpp b/core/src/loader/forgotpasswordparams.cpp new file mode 100644 index 0000000..8d66546 --- /dev/null +++ b/core/src/loader/forgotpasswordparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/forgotpasswordparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// ForgotPasswordParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/forgotpasswordpinparams.cpp b/core/src/loader/forgotpasswordpinparams.cpp new file mode 100644 index 0000000..8d44d02 --- /dev/null +++ b/core/src/loader/forgotpasswordpinparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/forgotpasswordpinparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// ForgotPasswordPinParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/nameguidpair.h b/core/src/loader/getadditionalpartparams.cpp similarity index 67% rename from core/include/JellyfinQt/DTO/nameguidpair.h rename to core/src/loader/getadditionalpartparams.cpp index 5df5d9b..c4da692 100644 --- a/core/include/JellyfinQt/DTO/nameguidpair.h +++ b/core/src/loader/getadditionalpartparams.cpp @@ -27,44 +27,45 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_NAMEGUIDPAIR_H -#define JELLYFIN_DTO_NAMEGUIDPAIR_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/getadditionalpartparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetAdditionalPartParams + +const QString &GetAdditionalPartParams::itemId() const { + return m_itemId; +} + +void GetAdditionalPartParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} -class NameGuidPair { -public:NameGuidPair();NameGuidPair(const NameGuidPair &other); +const QString &GetAdditionalPartParams::userId() const { + return m_userId; +} + +void GetAdditionalPartParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetAdditionalPartParams::userIdNull() const { + // Nullable: true + // Type Nullable: true - static NameGuidPair fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - QString name() const; + return m_userId.isNull(); +} - void setName(QString newName); +void GetAdditionalPartParams::setUserIdNull() { + m_userId.clear(); +} - QUuid jellyfinId() const; - void setJellyfinId(QUuid newJellyfinId); - -protected: - QString m_name; - QUuid m_jellyfinId; -}; +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_NAMEGUIDPAIR_H diff --git a/core/src/loader/getalbumartistsparams.cpp b/core/src/loader/getalbumartistsparams.cpp new file mode 100644 index 0000000..6b11882 --- /dev/null +++ b/core/src/loader/getalbumartistsparams.cpp @@ -0,0 +1,671 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getalbumartistsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetAlbumArtistsParams + +const QList &GetAlbumArtistsParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetAlbumArtistsParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetAlbumArtistsParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetAlbumArtistsParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetAlbumArtistsParams::enableImages() const { + return m_enableImages.value(); +} + +void GetAlbumArtistsParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetAlbumArtistsParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetAlbumArtistsParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetAlbumArtistsParams::enableTotalRecordCount() const { + return m_enableTotalRecordCount.value(); +} + +void GetAlbumArtistsParams::setEnableTotalRecordCount(bool newEnableTotalRecordCount) { + m_enableTotalRecordCount = newEnableTotalRecordCount; +} + +bool GetAlbumArtistsParams::enableTotalRecordCountNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableTotalRecordCount.has_value(); +} + +void GetAlbumArtistsParams::setEnableTotalRecordCountNull() { + m_enableTotalRecordCount = std::nullopt; +} + + +const bool &GetAlbumArtistsParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetAlbumArtistsParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetAlbumArtistsParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetAlbumArtistsParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QStringList &GetAlbumArtistsParams::excludeItemTypes() const { + return m_excludeItemTypes; +} + +void GetAlbumArtistsParams::setExcludeItemTypes(QStringList newExcludeItemTypes) { + m_excludeItemTypes = newExcludeItemTypes; +} + +bool GetAlbumArtistsParams::excludeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeItemTypes.size() == 0; +} + +void GetAlbumArtistsParams::setExcludeItemTypesNull() { + m_excludeItemTypes.clear(); +} + + +const QList &GetAlbumArtistsParams::fields() const { + return m_fields; +} + +void GetAlbumArtistsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetAlbumArtistsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetAlbumArtistsParams::setFieldsNull() { + m_fields.clear(); +} + + +const QList &GetAlbumArtistsParams::filters() const { + return m_filters; +} + +void GetAlbumArtistsParams::setFilters(QList newFilters) { + m_filters = newFilters; +} + +bool GetAlbumArtistsParams::filtersNull() const { + // Nullable: true + // Type Nullable: true + + + return m_filters.size() == 0; +} + +void GetAlbumArtistsParams::setFiltersNull() { + m_filters.clear(); +} + + +const QStringList &GetAlbumArtistsParams::genreIds() const { + return m_genreIds; +} + +void GetAlbumArtistsParams::setGenreIds(QStringList newGenreIds) { + m_genreIds = newGenreIds; +} + +bool GetAlbumArtistsParams::genreIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_genreIds.size() == 0; +} + +void GetAlbumArtistsParams::setGenreIdsNull() { + m_genreIds.clear(); +} + + +const QStringList &GetAlbumArtistsParams::genres() const { + return m_genres; +} + +void GetAlbumArtistsParams::setGenres(QStringList newGenres) { + m_genres = newGenres; +} + +bool GetAlbumArtistsParams::genresNull() const { + // Nullable: true + // Type Nullable: true + + + return m_genres.size() == 0; +} + +void GetAlbumArtistsParams::setGenresNull() { + m_genres.clear(); +} + + +const qint32 &GetAlbumArtistsParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetAlbumArtistsParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetAlbumArtistsParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetAlbumArtistsParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const QStringList &GetAlbumArtistsParams::includeItemTypes() const { + return m_includeItemTypes; +} + +void GetAlbumArtistsParams::setIncludeItemTypes(QStringList newIncludeItemTypes) { + m_includeItemTypes = newIncludeItemTypes; +} + +bool GetAlbumArtistsParams::includeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_includeItemTypes.size() == 0; +} + +void GetAlbumArtistsParams::setIncludeItemTypesNull() { + m_includeItemTypes.clear(); +} + + +const bool &GetAlbumArtistsParams::isFavorite() const { + return m_isFavorite.value(); +} + +void GetAlbumArtistsParams::setIsFavorite(bool newIsFavorite) { + m_isFavorite = newIsFavorite; +} + +bool GetAlbumArtistsParams::isFavoriteNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isFavorite.has_value(); +} + +void GetAlbumArtistsParams::setIsFavoriteNull() { + m_isFavorite = std::nullopt; +} + + +const qint32 &GetAlbumArtistsParams::limit() const { + return m_limit.value(); +} + +void GetAlbumArtistsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetAlbumArtistsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetAlbumArtistsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QStringList &GetAlbumArtistsParams::mediaTypes() const { + return m_mediaTypes; +} + +void GetAlbumArtistsParams::setMediaTypes(QStringList newMediaTypes) { + m_mediaTypes = newMediaTypes; +} + +bool GetAlbumArtistsParams::mediaTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaTypes.size() == 0; +} + +void GetAlbumArtistsParams::setMediaTypesNull() { + m_mediaTypes.clear(); +} + + +const double &GetAlbumArtistsParams::minCommunityRating() const { + return m_minCommunityRating.value(); +} + +void GetAlbumArtistsParams::setMinCommunityRating(double newMinCommunityRating) { + m_minCommunityRating = newMinCommunityRating; +} + +bool GetAlbumArtistsParams::minCommunityRatingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minCommunityRating.has_value(); +} + +void GetAlbumArtistsParams::setMinCommunityRatingNull() { + m_minCommunityRating = std::nullopt; +} + + +const QString &GetAlbumArtistsParams::nameLessThan() const { + return m_nameLessThan; +} + +void GetAlbumArtistsParams::setNameLessThan(QString newNameLessThan) { + m_nameLessThan = newNameLessThan; +} + +bool GetAlbumArtistsParams::nameLessThanNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameLessThan.isNull(); +} + +void GetAlbumArtistsParams::setNameLessThanNull() { + m_nameLessThan.clear(); +} + + +const QString &GetAlbumArtistsParams::nameStartsWith() const { + return m_nameStartsWith; +} + +void GetAlbumArtistsParams::setNameStartsWith(QString newNameStartsWith) { + m_nameStartsWith = newNameStartsWith; +} + +bool GetAlbumArtistsParams::nameStartsWithNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameStartsWith.isNull(); +} + +void GetAlbumArtistsParams::setNameStartsWithNull() { + m_nameStartsWith.clear(); +} + + +const QString &GetAlbumArtistsParams::nameStartsWithOrGreater() const { + return m_nameStartsWithOrGreater; +} + +void GetAlbumArtistsParams::setNameStartsWithOrGreater(QString newNameStartsWithOrGreater) { + m_nameStartsWithOrGreater = newNameStartsWithOrGreater; +} + +bool GetAlbumArtistsParams::nameStartsWithOrGreaterNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameStartsWithOrGreater.isNull(); +} + +void GetAlbumArtistsParams::setNameStartsWithOrGreaterNull() { + m_nameStartsWithOrGreater.clear(); +} + + +const QStringList &GetAlbumArtistsParams::officialRatings() const { + return m_officialRatings; +} + +void GetAlbumArtistsParams::setOfficialRatings(QStringList newOfficialRatings) { + m_officialRatings = newOfficialRatings; +} + +bool GetAlbumArtistsParams::officialRatingsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_officialRatings.size() == 0; +} + +void GetAlbumArtistsParams::setOfficialRatingsNull() { + m_officialRatings.clear(); +} + + +const QString &GetAlbumArtistsParams::parentId() const { + return m_parentId; +} + +void GetAlbumArtistsParams::setParentId(QString newParentId) { + m_parentId = newParentId; +} + +bool GetAlbumArtistsParams::parentIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_parentId.isNull(); +} + +void GetAlbumArtistsParams::setParentIdNull() { + m_parentId.clear(); +} + + +const QString &GetAlbumArtistsParams::person() const { + return m_person; +} + +void GetAlbumArtistsParams::setPerson(QString newPerson) { + m_person = newPerson; +} + +bool GetAlbumArtistsParams::personNull() const { + // Nullable: true + // Type Nullable: true + + + return m_person.isNull(); +} + +void GetAlbumArtistsParams::setPersonNull() { + m_person.clear(); +} + + +const QStringList &GetAlbumArtistsParams::personIds() const { + return m_personIds; +} + +void GetAlbumArtistsParams::setPersonIds(QStringList newPersonIds) { + m_personIds = newPersonIds; +} + +bool GetAlbumArtistsParams::personIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_personIds.size() == 0; +} + +void GetAlbumArtistsParams::setPersonIdsNull() { + m_personIds.clear(); +} + + +const QStringList &GetAlbumArtistsParams::personTypes() const { + return m_personTypes; +} + +void GetAlbumArtistsParams::setPersonTypes(QStringList newPersonTypes) { + m_personTypes = newPersonTypes; +} + +bool GetAlbumArtistsParams::personTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_personTypes.size() == 0; +} + +void GetAlbumArtistsParams::setPersonTypesNull() { + m_personTypes.clear(); +} + + +const QString &GetAlbumArtistsParams::searchTerm() const { + return m_searchTerm; +} + +void GetAlbumArtistsParams::setSearchTerm(QString newSearchTerm) { + m_searchTerm = newSearchTerm; +} + +bool GetAlbumArtistsParams::searchTermNull() const { + // Nullable: true + // Type Nullable: true + + + return m_searchTerm.isNull(); +} + +void GetAlbumArtistsParams::setSearchTermNull() { + m_searchTerm.clear(); +} + + +const qint32 &GetAlbumArtistsParams::startIndex() const { + return m_startIndex.value(); +} + +void GetAlbumArtistsParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetAlbumArtistsParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetAlbumArtistsParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const QStringList &GetAlbumArtistsParams::studioIds() const { + return m_studioIds; +} + +void GetAlbumArtistsParams::setStudioIds(QStringList newStudioIds) { + m_studioIds = newStudioIds; +} + +bool GetAlbumArtistsParams::studioIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_studioIds.size() == 0; +} + +void GetAlbumArtistsParams::setStudioIdsNull() { + m_studioIds.clear(); +} + + +const QStringList &GetAlbumArtistsParams::studios() const { + return m_studios; +} + +void GetAlbumArtistsParams::setStudios(QStringList newStudios) { + m_studios = newStudios; +} + +bool GetAlbumArtistsParams::studiosNull() const { + // Nullable: true + // Type Nullable: true + + + return m_studios.size() == 0; +} + +void GetAlbumArtistsParams::setStudiosNull() { + m_studios.clear(); +} + + +const QStringList &GetAlbumArtistsParams::tags() const { + return m_tags; +} + +void GetAlbumArtistsParams::setTags(QStringList newTags) { + m_tags = newTags; +} + +bool GetAlbumArtistsParams::tagsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tags.size() == 0; +} + +void GetAlbumArtistsParams::setTagsNull() { + m_tags.clear(); +} + + +const QString &GetAlbumArtistsParams::userId() const { + return m_userId; +} + +void GetAlbumArtistsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetAlbumArtistsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetAlbumArtistsParams::setUserIdNull() { + m_userId.clear(); +} + + +const QList &GetAlbumArtistsParams::years() const { + return m_years; +} + +void GetAlbumArtistsParams::setYears(QList newYears) { + m_years = newYears; +} + +bool GetAlbumArtistsParams::yearsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_years.size() == 0; +} + +void GetAlbumArtistsParams::setYearsNull() { + m_years.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getallchannelfeaturesparams.cpp b/core/src/loader/getallchannelfeaturesparams.cpp new file mode 100644 index 0000000..37f01da --- /dev/null +++ b/core/src/loader/getallchannelfeaturesparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getallchannelfeaturesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetAllChannelFeaturesParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getancestorsparams.cpp b/core/src/loader/getancestorsparams.cpp new file mode 100644 index 0000000..c1973b1 --- /dev/null +++ b/core/src/loader/getancestorsparams.cpp @@ -0,0 +1,71 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getancestorsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetAncestorsParams + +const QString &GetAncestorsParams::itemId() const { + return m_itemId; +} + +void GetAncestorsParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &GetAncestorsParams::userId() const { + return m_userId; +} + +void GetAncestorsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetAncestorsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetAncestorsParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getartistbynameparams.cpp b/core/src/loader/getartistbynameparams.cpp new file mode 100644 index 0000000..eb85396 --- /dev/null +++ b/core/src/loader/getartistbynameparams.cpp @@ -0,0 +1,71 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getartistbynameparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetArtistByNameParams + +const QString &GetArtistByNameParams::name() const { + return m_name; +} + +void GetArtistByNameParams::setName(QString newName) { + m_name = newName; +} + + +const QString &GetArtistByNameParams::userId() const { + return m_userId; +} + +void GetArtistByNameParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetArtistByNameParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetArtistByNameParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getartistimageparams.cpp b/core/src/loader/getartistimageparams.cpp new file mode 100644 index 0000000..2a1eb42 --- /dev/null +++ b/core/src/loader/getartistimageparams.cpp @@ -0,0 +1,362 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getartistimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetArtistImageParams + +const qint32 &GetArtistImageParams::imageIndex() const { + return m_imageIndex; +} + +void GetArtistImageParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + + +const ImageType &GetArtistImageParams::imageType() const { + return m_imageType; +} + +void GetArtistImageParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &GetArtistImageParams::name() const { + return m_name; +} + +void GetArtistImageParams::setName(QString newName) { + m_name = newName; +} + + +const bool &GetArtistImageParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void GetArtistImageParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool GetArtistImageParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void GetArtistImageParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &GetArtistImageParams::backgroundColor() const { + return m_backgroundColor; +} + +void GetArtistImageParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool GetArtistImageParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void GetArtistImageParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &GetArtistImageParams::blur() const { + return m_blur.value(); +} + +void GetArtistImageParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool GetArtistImageParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void GetArtistImageParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &GetArtistImageParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void GetArtistImageParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool GetArtistImageParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void GetArtistImageParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &GetArtistImageParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void GetArtistImageParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool GetArtistImageParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void GetArtistImageParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &GetArtistImageParams::format() const { + return m_format; +} + +void GetArtistImageParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool GetArtistImageParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void GetArtistImageParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &GetArtistImageParams::height() const { + return m_height.value(); +} + +void GetArtistImageParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetArtistImageParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetArtistImageParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &GetArtistImageParams::maxHeight() const { + return m_maxHeight.value(); +} + +void GetArtistImageParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool GetArtistImageParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void GetArtistImageParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &GetArtistImageParams::maxWidth() const { + return m_maxWidth.value(); +} + +void GetArtistImageParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool GetArtistImageParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void GetArtistImageParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &GetArtistImageParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void GetArtistImageParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool GetArtistImageParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void GetArtistImageParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &GetArtistImageParams::quality() const { + return m_quality.value(); +} + +void GetArtistImageParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool GetArtistImageParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void GetArtistImageParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &GetArtistImageParams::tag() const { + return m_tag; +} + +void GetArtistImageParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetArtistImageParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetArtistImageParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &GetArtistImageParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void GetArtistImageParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool GetArtistImageParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void GetArtistImageParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &GetArtistImageParams::width() const { + return m_width.value(); +} + +void GetArtistImageParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetArtistImageParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetArtistImageParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getartistsparams.cpp b/core/src/loader/getartistsparams.cpp new file mode 100644 index 0000000..b5d96b0 --- /dev/null +++ b/core/src/loader/getartistsparams.cpp @@ -0,0 +1,671 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getartistsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetArtistsParams + +const QList &GetArtistsParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetArtistsParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetArtistsParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetArtistsParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetArtistsParams::enableImages() const { + return m_enableImages.value(); +} + +void GetArtistsParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetArtistsParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetArtistsParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetArtistsParams::enableTotalRecordCount() const { + return m_enableTotalRecordCount.value(); +} + +void GetArtistsParams::setEnableTotalRecordCount(bool newEnableTotalRecordCount) { + m_enableTotalRecordCount = newEnableTotalRecordCount; +} + +bool GetArtistsParams::enableTotalRecordCountNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableTotalRecordCount.has_value(); +} + +void GetArtistsParams::setEnableTotalRecordCountNull() { + m_enableTotalRecordCount = std::nullopt; +} + + +const bool &GetArtistsParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetArtistsParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetArtistsParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetArtistsParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QStringList &GetArtistsParams::excludeItemTypes() const { + return m_excludeItemTypes; +} + +void GetArtistsParams::setExcludeItemTypes(QStringList newExcludeItemTypes) { + m_excludeItemTypes = newExcludeItemTypes; +} + +bool GetArtistsParams::excludeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeItemTypes.size() == 0; +} + +void GetArtistsParams::setExcludeItemTypesNull() { + m_excludeItemTypes.clear(); +} + + +const QList &GetArtistsParams::fields() const { + return m_fields; +} + +void GetArtistsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetArtistsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetArtistsParams::setFieldsNull() { + m_fields.clear(); +} + + +const QList &GetArtistsParams::filters() const { + return m_filters; +} + +void GetArtistsParams::setFilters(QList newFilters) { + m_filters = newFilters; +} + +bool GetArtistsParams::filtersNull() const { + // Nullable: true + // Type Nullable: true + + + return m_filters.size() == 0; +} + +void GetArtistsParams::setFiltersNull() { + m_filters.clear(); +} + + +const QStringList &GetArtistsParams::genreIds() const { + return m_genreIds; +} + +void GetArtistsParams::setGenreIds(QStringList newGenreIds) { + m_genreIds = newGenreIds; +} + +bool GetArtistsParams::genreIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_genreIds.size() == 0; +} + +void GetArtistsParams::setGenreIdsNull() { + m_genreIds.clear(); +} + + +const QStringList &GetArtistsParams::genres() const { + return m_genres; +} + +void GetArtistsParams::setGenres(QStringList newGenres) { + m_genres = newGenres; +} + +bool GetArtistsParams::genresNull() const { + // Nullable: true + // Type Nullable: true + + + return m_genres.size() == 0; +} + +void GetArtistsParams::setGenresNull() { + m_genres.clear(); +} + + +const qint32 &GetArtistsParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetArtistsParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetArtistsParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetArtistsParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const QStringList &GetArtistsParams::includeItemTypes() const { + return m_includeItemTypes; +} + +void GetArtistsParams::setIncludeItemTypes(QStringList newIncludeItemTypes) { + m_includeItemTypes = newIncludeItemTypes; +} + +bool GetArtistsParams::includeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_includeItemTypes.size() == 0; +} + +void GetArtistsParams::setIncludeItemTypesNull() { + m_includeItemTypes.clear(); +} + + +const bool &GetArtistsParams::isFavorite() const { + return m_isFavorite.value(); +} + +void GetArtistsParams::setIsFavorite(bool newIsFavorite) { + m_isFavorite = newIsFavorite; +} + +bool GetArtistsParams::isFavoriteNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isFavorite.has_value(); +} + +void GetArtistsParams::setIsFavoriteNull() { + m_isFavorite = std::nullopt; +} + + +const qint32 &GetArtistsParams::limit() const { + return m_limit.value(); +} + +void GetArtistsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetArtistsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetArtistsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QStringList &GetArtistsParams::mediaTypes() const { + return m_mediaTypes; +} + +void GetArtistsParams::setMediaTypes(QStringList newMediaTypes) { + m_mediaTypes = newMediaTypes; +} + +bool GetArtistsParams::mediaTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaTypes.size() == 0; +} + +void GetArtistsParams::setMediaTypesNull() { + m_mediaTypes.clear(); +} + + +const double &GetArtistsParams::minCommunityRating() const { + return m_minCommunityRating.value(); +} + +void GetArtistsParams::setMinCommunityRating(double newMinCommunityRating) { + m_minCommunityRating = newMinCommunityRating; +} + +bool GetArtistsParams::minCommunityRatingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minCommunityRating.has_value(); +} + +void GetArtistsParams::setMinCommunityRatingNull() { + m_minCommunityRating = std::nullopt; +} + + +const QString &GetArtistsParams::nameLessThan() const { + return m_nameLessThan; +} + +void GetArtistsParams::setNameLessThan(QString newNameLessThan) { + m_nameLessThan = newNameLessThan; +} + +bool GetArtistsParams::nameLessThanNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameLessThan.isNull(); +} + +void GetArtistsParams::setNameLessThanNull() { + m_nameLessThan.clear(); +} + + +const QString &GetArtistsParams::nameStartsWith() const { + return m_nameStartsWith; +} + +void GetArtistsParams::setNameStartsWith(QString newNameStartsWith) { + m_nameStartsWith = newNameStartsWith; +} + +bool GetArtistsParams::nameStartsWithNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameStartsWith.isNull(); +} + +void GetArtistsParams::setNameStartsWithNull() { + m_nameStartsWith.clear(); +} + + +const QString &GetArtistsParams::nameStartsWithOrGreater() const { + return m_nameStartsWithOrGreater; +} + +void GetArtistsParams::setNameStartsWithOrGreater(QString newNameStartsWithOrGreater) { + m_nameStartsWithOrGreater = newNameStartsWithOrGreater; +} + +bool GetArtistsParams::nameStartsWithOrGreaterNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameStartsWithOrGreater.isNull(); +} + +void GetArtistsParams::setNameStartsWithOrGreaterNull() { + m_nameStartsWithOrGreater.clear(); +} + + +const QStringList &GetArtistsParams::officialRatings() const { + return m_officialRatings; +} + +void GetArtistsParams::setOfficialRatings(QStringList newOfficialRatings) { + m_officialRatings = newOfficialRatings; +} + +bool GetArtistsParams::officialRatingsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_officialRatings.size() == 0; +} + +void GetArtistsParams::setOfficialRatingsNull() { + m_officialRatings.clear(); +} + + +const QString &GetArtistsParams::parentId() const { + return m_parentId; +} + +void GetArtistsParams::setParentId(QString newParentId) { + m_parentId = newParentId; +} + +bool GetArtistsParams::parentIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_parentId.isNull(); +} + +void GetArtistsParams::setParentIdNull() { + m_parentId.clear(); +} + + +const QString &GetArtistsParams::person() const { + return m_person; +} + +void GetArtistsParams::setPerson(QString newPerson) { + m_person = newPerson; +} + +bool GetArtistsParams::personNull() const { + // Nullable: true + // Type Nullable: true + + + return m_person.isNull(); +} + +void GetArtistsParams::setPersonNull() { + m_person.clear(); +} + + +const QStringList &GetArtistsParams::personIds() const { + return m_personIds; +} + +void GetArtistsParams::setPersonIds(QStringList newPersonIds) { + m_personIds = newPersonIds; +} + +bool GetArtistsParams::personIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_personIds.size() == 0; +} + +void GetArtistsParams::setPersonIdsNull() { + m_personIds.clear(); +} + + +const QStringList &GetArtistsParams::personTypes() const { + return m_personTypes; +} + +void GetArtistsParams::setPersonTypes(QStringList newPersonTypes) { + m_personTypes = newPersonTypes; +} + +bool GetArtistsParams::personTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_personTypes.size() == 0; +} + +void GetArtistsParams::setPersonTypesNull() { + m_personTypes.clear(); +} + + +const QString &GetArtistsParams::searchTerm() const { + return m_searchTerm; +} + +void GetArtistsParams::setSearchTerm(QString newSearchTerm) { + m_searchTerm = newSearchTerm; +} + +bool GetArtistsParams::searchTermNull() const { + // Nullable: true + // Type Nullable: true + + + return m_searchTerm.isNull(); +} + +void GetArtistsParams::setSearchTermNull() { + m_searchTerm.clear(); +} + + +const qint32 &GetArtistsParams::startIndex() const { + return m_startIndex.value(); +} + +void GetArtistsParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetArtistsParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetArtistsParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const QStringList &GetArtistsParams::studioIds() const { + return m_studioIds; +} + +void GetArtistsParams::setStudioIds(QStringList newStudioIds) { + m_studioIds = newStudioIds; +} + +bool GetArtistsParams::studioIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_studioIds.size() == 0; +} + +void GetArtistsParams::setStudioIdsNull() { + m_studioIds.clear(); +} + + +const QStringList &GetArtistsParams::studios() const { + return m_studios; +} + +void GetArtistsParams::setStudios(QStringList newStudios) { + m_studios = newStudios; +} + +bool GetArtistsParams::studiosNull() const { + // Nullable: true + // Type Nullable: true + + + return m_studios.size() == 0; +} + +void GetArtistsParams::setStudiosNull() { + m_studios.clear(); +} + + +const QStringList &GetArtistsParams::tags() const { + return m_tags; +} + +void GetArtistsParams::setTags(QStringList newTags) { + m_tags = newTags; +} + +bool GetArtistsParams::tagsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tags.size() == 0; +} + +void GetArtistsParams::setTagsNull() { + m_tags.clear(); +} + + +const QString &GetArtistsParams::userId() const { + return m_userId; +} + +void GetArtistsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetArtistsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetArtistsParams::setUserIdNull() { + m_userId.clear(); +} + + +const QList &GetArtistsParams::years() const { + return m_years; +} + +void GetArtistsParams::setYears(QList newYears) { + m_years = newYears; +} + +bool GetArtistsParams::yearsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_years.size() == 0; +} + +void GetArtistsParams::setYearsNull() { + m_years.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getattachmentparams.cpp b/core/src/loader/getattachmentparams.cpp new file mode 100644 index 0000000..8c8640c --- /dev/null +++ b/core/src/loader/getattachmentparams.cpp @@ -0,0 +1,68 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getattachmentparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetAttachmentParams + +const qint32 &GetAttachmentParams::index() const { + return m_index; +} + +void GetAttachmentParams::setIndex(qint32 newIndex) { + m_index = newIndex; +} + + +const QString &GetAttachmentParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void GetAttachmentParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + + +const QString &GetAttachmentParams::videoId() const { + return m_videoId; +} + +void GetAttachmentParams::setVideoId(QString newVideoId) { + m_videoId = newVideoId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getaudiostreambycontainerparams.cpp b/core/src/loader/getaudiostreambycontainerparams.cpp new file mode 100644 index 0000000..aef666b --- /dev/null +++ b/core/src/loader/getaudiostreambycontainerparams.cpp @@ -0,0 +1,1046 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getaudiostreambycontainerparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetAudioStreamByContainerParams + +const QString &GetAudioStreamByContainerParams::container() const { + return m_container; +} + +void GetAudioStreamByContainerParams::setContainer(QString newContainer) { + m_container = newContainer; +} + + +const QString &GetAudioStreamByContainerParams::itemId() const { + return m_itemId; +} + +void GetAudioStreamByContainerParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const bool &GetAudioStreamByContainerParams::allowAudioStreamCopy() const { + return m_allowAudioStreamCopy.value(); +} + +void GetAudioStreamByContainerParams::setAllowAudioStreamCopy(bool newAllowAudioStreamCopy) { + m_allowAudioStreamCopy = newAllowAudioStreamCopy; +} + +bool GetAudioStreamByContainerParams::allowAudioStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowAudioStreamCopy.has_value(); +} + +void GetAudioStreamByContainerParams::setAllowAudioStreamCopyNull() { + m_allowAudioStreamCopy = std::nullopt; +} + + +const bool &GetAudioStreamByContainerParams::allowVideoStreamCopy() const { + return m_allowVideoStreamCopy.value(); +} + +void GetAudioStreamByContainerParams::setAllowVideoStreamCopy(bool newAllowVideoStreamCopy) { + m_allowVideoStreamCopy = newAllowVideoStreamCopy; +} + +bool GetAudioStreamByContainerParams::allowVideoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowVideoStreamCopy.has_value(); +} + +void GetAudioStreamByContainerParams::setAllowVideoStreamCopyNull() { + m_allowVideoStreamCopy = std::nullopt; +} + + +const qint32 &GetAudioStreamByContainerParams::audioBitRate() const { + return m_audioBitRate.value(); +} + +void GetAudioStreamByContainerParams::setAudioBitRate(qint32 newAudioBitRate) { + m_audioBitRate = newAudioBitRate; +} + +bool GetAudioStreamByContainerParams::audioBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioBitRate.has_value(); +} + +void GetAudioStreamByContainerParams::setAudioBitRateNull() { + m_audioBitRate = std::nullopt; +} + + +const qint32 &GetAudioStreamByContainerParams::audioChannels() const { + return m_audioChannels.value(); +} + +void GetAudioStreamByContainerParams::setAudioChannels(qint32 newAudioChannels) { + m_audioChannels = newAudioChannels; +} + +bool GetAudioStreamByContainerParams::audioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioChannels.has_value(); +} + +void GetAudioStreamByContainerParams::setAudioChannelsNull() { + m_audioChannels = std::nullopt; +} + + +const QString &GetAudioStreamByContainerParams::audioCodec() const { + return m_audioCodec; +} + +void GetAudioStreamByContainerParams::setAudioCodec(QString newAudioCodec) { + m_audioCodec = newAudioCodec; +} + +bool GetAudioStreamByContainerParams::audioCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_audioCodec.isNull(); +} + +void GetAudioStreamByContainerParams::setAudioCodecNull() { + m_audioCodec.clear(); +} + + +const qint32 &GetAudioStreamByContainerParams::audioSampleRate() const { + return m_audioSampleRate.value(); +} + +void GetAudioStreamByContainerParams::setAudioSampleRate(qint32 newAudioSampleRate) { + m_audioSampleRate = newAudioSampleRate; +} + +bool GetAudioStreamByContainerParams::audioSampleRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioSampleRate.has_value(); +} + +void GetAudioStreamByContainerParams::setAudioSampleRateNull() { + m_audioSampleRate = std::nullopt; +} + + +const qint32 &GetAudioStreamByContainerParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void GetAudioStreamByContainerParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool GetAudioStreamByContainerParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void GetAudioStreamByContainerParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &GetAudioStreamByContainerParams::breakOnNonKeyFrames() const { + return m_breakOnNonKeyFrames.value(); +} + +void GetAudioStreamByContainerParams::setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames) { + m_breakOnNonKeyFrames = newBreakOnNonKeyFrames; +} + +bool GetAudioStreamByContainerParams::breakOnNonKeyFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_breakOnNonKeyFrames.has_value(); +} + +void GetAudioStreamByContainerParams::setBreakOnNonKeyFramesNull() { + m_breakOnNonKeyFrames = std::nullopt; +} + + +const EncodingContext &GetAudioStreamByContainerParams::context() const { + return m_context; +} + +void GetAudioStreamByContainerParams::setContext(EncodingContext newContext) { + m_context = newContext; +} + +bool GetAudioStreamByContainerParams::contextNull() const { + // Nullable: true + // Type Nullable: true + + + return m_context== EncodingContext::EnumNotSet; +} + +void GetAudioStreamByContainerParams::setContextNull() { + m_context= EncodingContext::EnumNotSet; +} + + +const bool &GetAudioStreamByContainerParams::copyTimestamps() const { + return m_copyTimestamps.value(); +} + +void GetAudioStreamByContainerParams::setCopyTimestamps(bool newCopyTimestamps) { + m_copyTimestamps = newCopyTimestamps; +} + +bool GetAudioStreamByContainerParams::copyTimestampsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_copyTimestamps.has_value(); +} + +void GetAudioStreamByContainerParams::setCopyTimestampsNull() { + m_copyTimestamps = std::nullopt; +} + + +const qint32 &GetAudioStreamByContainerParams::cpuCoreLimit() const { + return m_cpuCoreLimit.value(); +} + +void GetAudioStreamByContainerParams::setCpuCoreLimit(qint32 newCpuCoreLimit) { + m_cpuCoreLimit = newCpuCoreLimit; +} + +bool GetAudioStreamByContainerParams::cpuCoreLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cpuCoreLimit.has_value(); +} + +void GetAudioStreamByContainerParams::setCpuCoreLimitNull() { + m_cpuCoreLimit = std::nullopt; +} + + +const bool &GetAudioStreamByContainerParams::deInterlace() const { + return m_deInterlace.value(); +} + +void GetAudioStreamByContainerParams::setDeInterlace(bool newDeInterlace) { + m_deInterlace = newDeInterlace; +} + +bool GetAudioStreamByContainerParams::deInterlaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_deInterlace.has_value(); +} + +void GetAudioStreamByContainerParams::setDeInterlaceNull() { + m_deInterlace = std::nullopt; +} + + +const QString &GetAudioStreamByContainerParams::deviceId() const { + return m_deviceId; +} + +void GetAudioStreamByContainerParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool GetAudioStreamByContainerParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void GetAudioStreamByContainerParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const QString &GetAudioStreamByContainerParams::deviceProfileId() const { + return m_deviceProfileId; +} + +void GetAudioStreamByContainerParams::setDeviceProfileId(QString newDeviceProfileId) { + m_deviceProfileId = newDeviceProfileId; +} + +bool GetAudioStreamByContainerParams::deviceProfileIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceProfileId.isNull(); +} + +void GetAudioStreamByContainerParams::setDeviceProfileIdNull() { + m_deviceProfileId.clear(); +} + + +const bool &GetAudioStreamByContainerParams::enableAutoStreamCopy() const { + return m_enableAutoStreamCopy.value(); +} + +void GetAudioStreamByContainerParams::setEnableAutoStreamCopy(bool newEnableAutoStreamCopy) { + m_enableAutoStreamCopy = newEnableAutoStreamCopy; +} + +bool GetAudioStreamByContainerParams::enableAutoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableAutoStreamCopy.has_value(); +} + +void GetAudioStreamByContainerParams::setEnableAutoStreamCopyNull() { + m_enableAutoStreamCopy = std::nullopt; +} + + +const bool &GetAudioStreamByContainerParams::enableMpegtsM2TsMode() const { + return m_enableMpegtsM2TsMode.value(); +} + +void GetAudioStreamByContainerParams::setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode) { + m_enableMpegtsM2TsMode = newEnableMpegtsM2TsMode; +} + +bool GetAudioStreamByContainerParams::enableMpegtsM2TsModeNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableMpegtsM2TsMode.has_value(); +} + +void GetAudioStreamByContainerParams::setEnableMpegtsM2TsModeNull() { + m_enableMpegtsM2TsMode = std::nullopt; +} + + +const float &GetAudioStreamByContainerParams::framerate() const { + return m_framerate.value(); +} + +void GetAudioStreamByContainerParams::setFramerate(float newFramerate) { + m_framerate = newFramerate; +} + +bool GetAudioStreamByContainerParams::framerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_framerate.has_value(); +} + +void GetAudioStreamByContainerParams::setFramerateNull() { + m_framerate = std::nullopt; +} + + +const qint32 &GetAudioStreamByContainerParams::height() const { + return m_height.value(); +} + +void GetAudioStreamByContainerParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetAudioStreamByContainerParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetAudioStreamByContainerParams::setHeightNull() { + m_height = std::nullopt; +} + + +const QString &GetAudioStreamByContainerParams::level() const { + return m_level; +} + +void GetAudioStreamByContainerParams::setLevel(QString newLevel) { + m_level = newLevel; +} + +bool GetAudioStreamByContainerParams::levelNull() const { + // Nullable: true + // Type Nullable: true + + + return m_level.isNull(); +} + +void GetAudioStreamByContainerParams::setLevelNull() { + m_level.clear(); +} + + +const QString &GetAudioStreamByContainerParams::liveStreamId() const { + return m_liveStreamId; +} + +void GetAudioStreamByContainerParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool GetAudioStreamByContainerParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void GetAudioStreamByContainerParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const qint32 &GetAudioStreamByContainerParams::maxAudioBitDepth() const { + return m_maxAudioBitDepth.value(); +} + +void GetAudioStreamByContainerParams::setMaxAudioBitDepth(qint32 newMaxAudioBitDepth) { + m_maxAudioBitDepth = newMaxAudioBitDepth; +} + +bool GetAudioStreamByContainerParams::maxAudioBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioBitDepth.has_value(); +} + +void GetAudioStreamByContainerParams::setMaxAudioBitDepthNull() { + m_maxAudioBitDepth = std::nullopt; +} + + +const qint32 &GetAudioStreamByContainerParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void GetAudioStreamByContainerParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool GetAudioStreamByContainerParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void GetAudioStreamByContainerParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const float &GetAudioStreamByContainerParams::maxFramerate() const { + return m_maxFramerate.value(); +} + +void GetAudioStreamByContainerParams::setMaxFramerate(float newMaxFramerate) { + m_maxFramerate = newMaxFramerate; +} + +bool GetAudioStreamByContainerParams::maxFramerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxFramerate.has_value(); +} + +void GetAudioStreamByContainerParams::setMaxFramerateNull() { + m_maxFramerate = std::nullopt; +} + + +const qint32 &GetAudioStreamByContainerParams::maxRefFrames() const { + return m_maxRefFrames.value(); +} + +void GetAudioStreamByContainerParams::setMaxRefFrames(qint32 newMaxRefFrames) { + m_maxRefFrames = newMaxRefFrames; +} + +bool GetAudioStreamByContainerParams::maxRefFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxRefFrames.has_value(); +} + +void GetAudioStreamByContainerParams::setMaxRefFramesNull() { + m_maxRefFrames = std::nullopt; +} + + +const qint32 &GetAudioStreamByContainerParams::maxVideoBitDepth() const { + return m_maxVideoBitDepth.value(); +} + +void GetAudioStreamByContainerParams::setMaxVideoBitDepth(qint32 newMaxVideoBitDepth) { + m_maxVideoBitDepth = newMaxVideoBitDepth; +} + +bool GetAudioStreamByContainerParams::maxVideoBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxVideoBitDepth.has_value(); +} + +void GetAudioStreamByContainerParams::setMaxVideoBitDepthNull() { + m_maxVideoBitDepth = std::nullopt; +} + + +const QString &GetAudioStreamByContainerParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void GetAudioStreamByContainerParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + +bool GetAudioStreamByContainerParams::mediaSourceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaSourceId.isNull(); +} + +void GetAudioStreamByContainerParams::setMediaSourceIdNull() { + m_mediaSourceId.clear(); +} + + +const qint32 &GetAudioStreamByContainerParams::minSegments() const { + return m_minSegments.value(); +} + +void GetAudioStreamByContainerParams::setMinSegments(qint32 newMinSegments) { + m_minSegments = newMinSegments; +} + +bool GetAudioStreamByContainerParams::minSegmentsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minSegments.has_value(); +} + +void GetAudioStreamByContainerParams::setMinSegmentsNull() { + m_minSegments = std::nullopt; +} + + +const QString &GetAudioStreamByContainerParams::params() const { + return m_params; +} + +void GetAudioStreamByContainerParams::setParams(QString newParams) { + m_params = newParams; +} + +bool GetAudioStreamByContainerParams::paramsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_params.isNull(); +} + +void GetAudioStreamByContainerParams::setParamsNull() { + m_params.clear(); +} + + +const QString &GetAudioStreamByContainerParams::playSessionId() const { + return m_playSessionId; +} + +void GetAudioStreamByContainerParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool GetAudioStreamByContainerParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void GetAudioStreamByContainerParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const QString &GetAudioStreamByContainerParams::profile() const { + return m_profile; +} + +void GetAudioStreamByContainerParams::setProfile(QString newProfile) { + m_profile = newProfile; +} + +bool GetAudioStreamByContainerParams::profileNull() const { + // Nullable: true + // Type Nullable: true + + + return m_profile.isNull(); +} + +void GetAudioStreamByContainerParams::setProfileNull() { + m_profile.clear(); +} + + +const bool &GetAudioStreamByContainerParams::requireAvc() const { + return m_requireAvc.value(); +} + +void GetAudioStreamByContainerParams::setRequireAvc(bool newRequireAvc) { + m_requireAvc = newRequireAvc; +} + +bool GetAudioStreamByContainerParams::requireAvcNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireAvc.has_value(); +} + +void GetAudioStreamByContainerParams::setRequireAvcNull() { + m_requireAvc = std::nullopt; +} + + +const bool &GetAudioStreamByContainerParams::requireNonAnamorphic() const { + return m_requireNonAnamorphic.value(); +} + +void GetAudioStreamByContainerParams::setRequireNonAnamorphic(bool newRequireNonAnamorphic) { + m_requireNonAnamorphic = newRequireNonAnamorphic; +} + +bool GetAudioStreamByContainerParams::requireNonAnamorphicNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireNonAnamorphic.has_value(); +} + +void GetAudioStreamByContainerParams::setRequireNonAnamorphicNull() { + m_requireNonAnamorphic = std::nullopt; +} + + +const QString &GetAudioStreamByContainerParams::segmentContainer() const { + return m_segmentContainer; +} + +void GetAudioStreamByContainerParams::setSegmentContainer(QString newSegmentContainer) { + m_segmentContainer = newSegmentContainer; +} + +bool GetAudioStreamByContainerParams::segmentContainerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_segmentContainer.isNull(); +} + +void GetAudioStreamByContainerParams::setSegmentContainerNull() { + m_segmentContainer.clear(); +} + + +const qint32 &GetAudioStreamByContainerParams::segmentLength() const { + return m_segmentLength.value(); +} + +void GetAudioStreamByContainerParams::setSegmentLength(qint32 newSegmentLength) { + m_segmentLength = newSegmentLength; +} + +bool GetAudioStreamByContainerParams::segmentLengthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_segmentLength.has_value(); +} + +void GetAudioStreamByContainerParams::setSegmentLengthNull() { + m_segmentLength = std::nullopt; +} + + +const qint64 &GetAudioStreamByContainerParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void GetAudioStreamByContainerParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool GetAudioStreamByContainerParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void GetAudioStreamByContainerParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const bool &GetAudioStreamByContainerParams::staticStreaming() const { + return m_staticStreaming.value(); +} + +void GetAudioStreamByContainerParams::setStaticStreaming(bool newStaticStreaming) { + m_staticStreaming = newStaticStreaming; +} + +bool GetAudioStreamByContainerParams::staticStreamingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_staticStreaming.has_value(); +} + +void GetAudioStreamByContainerParams::setStaticStreamingNull() { + m_staticStreaming = std::nullopt; +} + + +const QJsonObject &GetAudioStreamByContainerParams::streamOptions() const { + return m_streamOptions; +} + +void GetAudioStreamByContainerParams::setStreamOptions(QJsonObject newStreamOptions) { + m_streamOptions = newStreamOptions; +} + +bool GetAudioStreamByContainerParams::streamOptionsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_streamOptions.isEmpty(); +} + +void GetAudioStreamByContainerParams::setStreamOptionsNull() { + m_streamOptions= QJsonObject(); +} + + +const QString &GetAudioStreamByContainerParams::subtitleCodec() const { + return m_subtitleCodec; +} + +void GetAudioStreamByContainerParams::setSubtitleCodec(QString newSubtitleCodec) { + m_subtitleCodec = newSubtitleCodec; +} + +bool GetAudioStreamByContainerParams::subtitleCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleCodec.isNull(); +} + +void GetAudioStreamByContainerParams::setSubtitleCodecNull() { + m_subtitleCodec.clear(); +} + + +const SubtitleDeliveryMethod &GetAudioStreamByContainerParams::subtitleMethod() const { + return m_subtitleMethod; +} + +void GetAudioStreamByContainerParams::setSubtitleMethod(SubtitleDeliveryMethod newSubtitleMethod) { + m_subtitleMethod = newSubtitleMethod; +} + +bool GetAudioStreamByContainerParams::subtitleMethodNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleMethod== SubtitleDeliveryMethod::EnumNotSet; +} + +void GetAudioStreamByContainerParams::setSubtitleMethodNull() { + m_subtitleMethod= SubtitleDeliveryMethod::EnumNotSet; +} + + +const qint32 &GetAudioStreamByContainerParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void GetAudioStreamByContainerParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool GetAudioStreamByContainerParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void GetAudioStreamByContainerParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const QString &GetAudioStreamByContainerParams::tag() const { + return m_tag; +} + +void GetAudioStreamByContainerParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetAudioStreamByContainerParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetAudioStreamByContainerParams::setTagNull() { + m_tag.clear(); +} + + +const QString &GetAudioStreamByContainerParams::transcodeReasons() const { + return m_transcodeReasons; +} + +void GetAudioStreamByContainerParams::setTranscodeReasons(QString newTranscodeReasons) { + m_transcodeReasons = newTranscodeReasons; +} + +bool GetAudioStreamByContainerParams::transcodeReasonsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodeReasons.isNull(); +} + +void GetAudioStreamByContainerParams::setTranscodeReasonsNull() { + m_transcodeReasons.clear(); +} + + +const qint32 &GetAudioStreamByContainerParams::transcodingMaxAudioChannels() const { + return m_transcodingMaxAudioChannels.value(); +} + +void GetAudioStreamByContainerParams::setTranscodingMaxAudioChannels(qint32 newTranscodingMaxAudioChannels) { + m_transcodingMaxAudioChannels = newTranscodingMaxAudioChannels; +} + +bool GetAudioStreamByContainerParams::transcodingMaxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_transcodingMaxAudioChannels.has_value(); +} + +void GetAudioStreamByContainerParams::setTranscodingMaxAudioChannelsNull() { + m_transcodingMaxAudioChannels = std::nullopt; +} + + +const qint32 &GetAudioStreamByContainerParams::videoBitRate() const { + return m_videoBitRate.value(); +} + +void GetAudioStreamByContainerParams::setVideoBitRate(qint32 newVideoBitRate) { + m_videoBitRate = newVideoBitRate; +} + +bool GetAudioStreamByContainerParams::videoBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoBitRate.has_value(); +} + +void GetAudioStreamByContainerParams::setVideoBitRateNull() { + m_videoBitRate = std::nullopt; +} + + +const QString &GetAudioStreamByContainerParams::videoCodec() const { + return m_videoCodec; +} + +void GetAudioStreamByContainerParams::setVideoCodec(QString newVideoCodec) { + m_videoCodec = newVideoCodec; +} + +bool GetAudioStreamByContainerParams::videoCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoCodec.isNull(); +} + +void GetAudioStreamByContainerParams::setVideoCodecNull() { + m_videoCodec.clear(); +} + + +const qint32 &GetAudioStreamByContainerParams::videoStreamIndex() const { + return m_videoStreamIndex.value(); +} + +void GetAudioStreamByContainerParams::setVideoStreamIndex(qint32 newVideoStreamIndex) { + m_videoStreamIndex = newVideoStreamIndex; +} + +bool GetAudioStreamByContainerParams::videoStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoStreamIndex.has_value(); +} + +void GetAudioStreamByContainerParams::setVideoStreamIndexNull() { + m_videoStreamIndex = std::nullopt; +} + + +const qint32 &GetAudioStreamByContainerParams::width() const { + return m_width.value(); +} + +void GetAudioStreamByContainerParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetAudioStreamByContainerParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetAudioStreamByContainerParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getaudiostreamparams.cpp b/core/src/loader/getaudiostreamparams.cpp new file mode 100644 index 0000000..3ac85b6 --- /dev/null +++ b/core/src/loader/getaudiostreamparams.cpp @@ -0,0 +1,1058 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getaudiostreamparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetAudioStreamParams + +const QString &GetAudioStreamParams::itemId() const { + return m_itemId; +} + +void GetAudioStreamParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const bool &GetAudioStreamParams::allowAudioStreamCopy() const { + return m_allowAudioStreamCopy.value(); +} + +void GetAudioStreamParams::setAllowAudioStreamCopy(bool newAllowAudioStreamCopy) { + m_allowAudioStreamCopy = newAllowAudioStreamCopy; +} + +bool GetAudioStreamParams::allowAudioStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowAudioStreamCopy.has_value(); +} + +void GetAudioStreamParams::setAllowAudioStreamCopyNull() { + m_allowAudioStreamCopy = std::nullopt; +} + + +const bool &GetAudioStreamParams::allowVideoStreamCopy() const { + return m_allowVideoStreamCopy.value(); +} + +void GetAudioStreamParams::setAllowVideoStreamCopy(bool newAllowVideoStreamCopy) { + m_allowVideoStreamCopy = newAllowVideoStreamCopy; +} + +bool GetAudioStreamParams::allowVideoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowVideoStreamCopy.has_value(); +} + +void GetAudioStreamParams::setAllowVideoStreamCopyNull() { + m_allowVideoStreamCopy = std::nullopt; +} + + +const qint32 &GetAudioStreamParams::audioBitRate() const { + return m_audioBitRate.value(); +} + +void GetAudioStreamParams::setAudioBitRate(qint32 newAudioBitRate) { + m_audioBitRate = newAudioBitRate; +} + +bool GetAudioStreamParams::audioBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioBitRate.has_value(); +} + +void GetAudioStreamParams::setAudioBitRateNull() { + m_audioBitRate = std::nullopt; +} + + +const qint32 &GetAudioStreamParams::audioChannels() const { + return m_audioChannels.value(); +} + +void GetAudioStreamParams::setAudioChannels(qint32 newAudioChannels) { + m_audioChannels = newAudioChannels; +} + +bool GetAudioStreamParams::audioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioChannels.has_value(); +} + +void GetAudioStreamParams::setAudioChannelsNull() { + m_audioChannels = std::nullopt; +} + + +const QString &GetAudioStreamParams::audioCodec() const { + return m_audioCodec; +} + +void GetAudioStreamParams::setAudioCodec(QString newAudioCodec) { + m_audioCodec = newAudioCodec; +} + +bool GetAudioStreamParams::audioCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_audioCodec.isNull(); +} + +void GetAudioStreamParams::setAudioCodecNull() { + m_audioCodec.clear(); +} + + +const qint32 &GetAudioStreamParams::audioSampleRate() const { + return m_audioSampleRate.value(); +} + +void GetAudioStreamParams::setAudioSampleRate(qint32 newAudioSampleRate) { + m_audioSampleRate = newAudioSampleRate; +} + +bool GetAudioStreamParams::audioSampleRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioSampleRate.has_value(); +} + +void GetAudioStreamParams::setAudioSampleRateNull() { + m_audioSampleRate = std::nullopt; +} + + +const qint32 &GetAudioStreamParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void GetAudioStreamParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool GetAudioStreamParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void GetAudioStreamParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &GetAudioStreamParams::breakOnNonKeyFrames() const { + return m_breakOnNonKeyFrames.value(); +} + +void GetAudioStreamParams::setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames) { + m_breakOnNonKeyFrames = newBreakOnNonKeyFrames; +} + +bool GetAudioStreamParams::breakOnNonKeyFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_breakOnNonKeyFrames.has_value(); +} + +void GetAudioStreamParams::setBreakOnNonKeyFramesNull() { + m_breakOnNonKeyFrames = std::nullopt; +} + + +const QString &GetAudioStreamParams::container() const { + return m_container; +} + +void GetAudioStreamParams::setContainer(QString newContainer) { + m_container = newContainer; +} + +bool GetAudioStreamParams::containerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_container.isNull(); +} + +void GetAudioStreamParams::setContainerNull() { + m_container.clear(); +} + + +const EncodingContext &GetAudioStreamParams::context() const { + return m_context; +} + +void GetAudioStreamParams::setContext(EncodingContext newContext) { + m_context = newContext; +} + +bool GetAudioStreamParams::contextNull() const { + // Nullable: true + // Type Nullable: true + + + return m_context== EncodingContext::EnumNotSet; +} + +void GetAudioStreamParams::setContextNull() { + m_context= EncodingContext::EnumNotSet; +} + + +const bool &GetAudioStreamParams::copyTimestamps() const { + return m_copyTimestamps.value(); +} + +void GetAudioStreamParams::setCopyTimestamps(bool newCopyTimestamps) { + m_copyTimestamps = newCopyTimestamps; +} + +bool GetAudioStreamParams::copyTimestampsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_copyTimestamps.has_value(); +} + +void GetAudioStreamParams::setCopyTimestampsNull() { + m_copyTimestamps = std::nullopt; +} + + +const qint32 &GetAudioStreamParams::cpuCoreLimit() const { + return m_cpuCoreLimit.value(); +} + +void GetAudioStreamParams::setCpuCoreLimit(qint32 newCpuCoreLimit) { + m_cpuCoreLimit = newCpuCoreLimit; +} + +bool GetAudioStreamParams::cpuCoreLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cpuCoreLimit.has_value(); +} + +void GetAudioStreamParams::setCpuCoreLimitNull() { + m_cpuCoreLimit = std::nullopt; +} + + +const bool &GetAudioStreamParams::deInterlace() const { + return m_deInterlace.value(); +} + +void GetAudioStreamParams::setDeInterlace(bool newDeInterlace) { + m_deInterlace = newDeInterlace; +} + +bool GetAudioStreamParams::deInterlaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_deInterlace.has_value(); +} + +void GetAudioStreamParams::setDeInterlaceNull() { + m_deInterlace = std::nullopt; +} + + +const QString &GetAudioStreamParams::deviceId() const { + return m_deviceId; +} + +void GetAudioStreamParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool GetAudioStreamParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void GetAudioStreamParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const QString &GetAudioStreamParams::deviceProfileId() const { + return m_deviceProfileId; +} + +void GetAudioStreamParams::setDeviceProfileId(QString newDeviceProfileId) { + m_deviceProfileId = newDeviceProfileId; +} + +bool GetAudioStreamParams::deviceProfileIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceProfileId.isNull(); +} + +void GetAudioStreamParams::setDeviceProfileIdNull() { + m_deviceProfileId.clear(); +} + + +const bool &GetAudioStreamParams::enableAutoStreamCopy() const { + return m_enableAutoStreamCopy.value(); +} + +void GetAudioStreamParams::setEnableAutoStreamCopy(bool newEnableAutoStreamCopy) { + m_enableAutoStreamCopy = newEnableAutoStreamCopy; +} + +bool GetAudioStreamParams::enableAutoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableAutoStreamCopy.has_value(); +} + +void GetAudioStreamParams::setEnableAutoStreamCopyNull() { + m_enableAutoStreamCopy = std::nullopt; +} + + +const bool &GetAudioStreamParams::enableMpegtsM2TsMode() const { + return m_enableMpegtsM2TsMode.value(); +} + +void GetAudioStreamParams::setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode) { + m_enableMpegtsM2TsMode = newEnableMpegtsM2TsMode; +} + +bool GetAudioStreamParams::enableMpegtsM2TsModeNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableMpegtsM2TsMode.has_value(); +} + +void GetAudioStreamParams::setEnableMpegtsM2TsModeNull() { + m_enableMpegtsM2TsMode = std::nullopt; +} + + +const float &GetAudioStreamParams::framerate() const { + return m_framerate.value(); +} + +void GetAudioStreamParams::setFramerate(float newFramerate) { + m_framerate = newFramerate; +} + +bool GetAudioStreamParams::framerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_framerate.has_value(); +} + +void GetAudioStreamParams::setFramerateNull() { + m_framerate = std::nullopt; +} + + +const qint32 &GetAudioStreamParams::height() const { + return m_height.value(); +} + +void GetAudioStreamParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetAudioStreamParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetAudioStreamParams::setHeightNull() { + m_height = std::nullopt; +} + + +const QString &GetAudioStreamParams::level() const { + return m_level; +} + +void GetAudioStreamParams::setLevel(QString newLevel) { + m_level = newLevel; +} + +bool GetAudioStreamParams::levelNull() const { + // Nullable: true + // Type Nullable: true + + + return m_level.isNull(); +} + +void GetAudioStreamParams::setLevelNull() { + m_level.clear(); +} + + +const QString &GetAudioStreamParams::liveStreamId() const { + return m_liveStreamId; +} + +void GetAudioStreamParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool GetAudioStreamParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void GetAudioStreamParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const qint32 &GetAudioStreamParams::maxAudioBitDepth() const { + return m_maxAudioBitDepth.value(); +} + +void GetAudioStreamParams::setMaxAudioBitDepth(qint32 newMaxAudioBitDepth) { + m_maxAudioBitDepth = newMaxAudioBitDepth; +} + +bool GetAudioStreamParams::maxAudioBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioBitDepth.has_value(); +} + +void GetAudioStreamParams::setMaxAudioBitDepthNull() { + m_maxAudioBitDepth = std::nullopt; +} + + +const qint32 &GetAudioStreamParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void GetAudioStreamParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool GetAudioStreamParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void GetAudioStreamParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const float &GetAudioStreamParams::maxFramerate() const { + return m_maxFramerate.value(); +} + +void GetAudioStreamParams::setMaxFramerate(float newMaxFramerate) { + m_maxFramerate = newMaxFramerate; +} + +bool GetAudioStreamParams::maxFramerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxFramerate.has_value(); +} + +void GetAudioStreamParams::setMaxFramerateNull() { + m_maxFramerate = std::nullopt; +} + + +const qint32 &GetAudioStreamParams::maxRefFrames() const { + return m_maxRefFrames.value(); +} + +void GetAudioStreamParams::setMaxRefFrames(qint32 newMaxRefFrames) { + m_maxRefFrames = newMaxRefFrames; +} + +bool GetAudioStreamParams::maxRefFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxRefFrames.has_value(); +} + +void GetAudioStreamParams::setMaxRefFramesNull() { + m_maxRefFrames = std::nullopt; +} + + +const qint32 &GetAudioStreamParams::maxVideoBitDepth() const { + return m_maxVideoBitDepth.value(); +} + +void GetAudioStreamParams::setMaxVideoBitDepth(qint32 newMaxVideoBitDepth) { + m_maxVideoBitDepth = newMaxVideoBitDepth; +} + +bool GetAudioStreamParams::maxVideoBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxVideoBitDepth.has_value(); +} + +void GetAudioStreamParams::setMaxVideoBitDepthNull() { + m_maxVideoBitDepth = std::nullopt; +} + + +const QString &GetAudioStreamParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void GetAudioStreamParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + +bool GetAudioStreamParams::mediaSourceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaSourceId.isNull(); +} + +void GetAudioStreamParams::setMediaSourceIdNull() { + m_mediaSourceId.clear(); +} + + +const qint32 &GetAudioStreamParams::minSegments() const { + return m_minSegments.value(); +} + +void GetAudioStreamParams::setMinSegments(qint32 newMinSegments) { + m_minSegments = newMinSegments; +} + +bool GetAudioStreamParams::minSegmentsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minSegments.has_value(); +} + +void GetAudioStreamParams::setMinSegmentsNull() { + m_minSegments = std::nullopt; +} + + +const QString &GetAudioStreamParams::params() const { + return m_params; +} + +void GetAudioStreamParams::setParams(QString newParams) { + m_params = newParams; +} + +bool GetAudioStreamParams::paramsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_params.isNull(); +} + +void GetAudioStreamParams::setParamsNull() { + m_params.clear(); +} + + +const QString &GetAudioStreamParams::playSessionId() const { + return m_playSessionId; +} + +void GetAudioStreamParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool GetAudioStreamParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void GetAudioStreamParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const QString &GetAudioStreamParams::profile() const { + return m_profile; +} + +void GetAudioStreamParams::setProfile(QString newProfile) { + m_profile = newProfile; +} + +bool GetAudioStreamParams::profileNull() const { + // Nullable: true + // Type Nullable: true + + + return m_profile.isNull(); +} + +void GetAudioStreamParams::setProfileNull() { + m_profile.clear(); +} + + +const bool &GetAudioStreamParams::requireAvc() const { + return m_requireAvc.value(); +} + +void GetAudioStreamParams::setRequireAvc(bool newRequireAvc) { + m_requireAvc = newRequireAvc; +} + +bool GetAudioStreamParams::requireAvcNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireAvc.has_value(); +} + +void GetAudioStreamParams::setRequireAvcNull() { + m_requireAvc = std::nullopt; +} + + +const bool &GetAudioStreamParams::requireNonAnamorphic() const { + return m_requireNonAnamorphic.value(); +} + +void GetAudioStreamParams::setRequireNonAnamorphic(bool newRequireNonAnamorphic) { + m_requireNonAnamorphic = newRequireNonAnamorphic; +} + +bool GetAudioStreamParams::requireNonAnamorphicNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireNonAnamorphic.has_value(); +} + +void GetAudioStreamParams::setRequireNonAnamorphicNull() { + m_requireNonAnamorphic = std::nullopt; +} + + +const QString &GetAudioStreamParams::segmentContainer() const { + return m_segmentContainer; +} + +void GetAudioStreamParams::setSegmentContainer(QString newSegmentContainer) { + m_segmentContainer = newSegmentContainer; +} + +bool GetAudioStreamParams::segmentContainerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_segmentContainer.isNull(); +} + +void GetAudioStreamParams::setSegmentContainerNull() { + m_segmentContainer.clear(); +} + + +const qint32 &GetAudioStreamParams::segmentLength() const { + return m_segmentLength.value(); +} + +void GetAudioStreamParams::setSegmentLength(qint32 newSegmentLength) { + m_segmentLength = newSegmentLength; +} + +bool GetAudioStreamParams::segmentLengthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_segmentLength.has_value(); +} + +void GetAudioStreamParams::setSegmentLengthNull() { + m_segmentLength = std::nullopt; +} + + +const qint64 &GetAudioStreamParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void GetAudioStreamParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool GetAudioStreamParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void GetAudioStreamParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const bool &GetAudioStreamParams::staticStreaming() const { + return m_staticStreaming.value(); +} + +void GetAudioStreamParams::setStaticStreaming(bool newStaticStreaming) { + m_staticStreaming = newStaticStreaming; +} + +bool GetAudioStreamParams::staticStreamingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_staticStreaming.has_value(); +} + +void GetAudioStreamParams::setStaticStreamingNull() { + m_staticStreaming = std::nullopt; +} + + +const QJsonObject &GetAudioStreamParams::streamOptions() const { + return m_streamOptions; +} + +void GetAudioStreamParams::setStreamOptions(QJsonObject newStreamOptions) { + m_streamOptions = newStreamOptions; +} + +bool GetAudioStreamParams::streamOptionsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_streamOptions.isEmpty(); +} + +void GetAudioStreamParams::setStreamOptionsNull() { + m_streamOptions= QJsonObject(); +} + + +const QString &GetAudioStreamParams::subtitleCodec() const { + return m_subtitleCodec; +} + +void GetAudioStreamParams::setSubtitleCodec(QString newSubtitleCodec) { + m_subtitleCodec = newSubtitleCodec; +} + +bool GetAudioStreamParams::subtitleCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleCodec.isNull(); +} + +void GetAudioStreamParams::setSubtitleCodecNull() { + m_subtitleCodec.clear(); +} + + +const SubtitleDeliveryMethod &GetAudioStreamParams::subtitleMethod() const { + return m_subtitleMethod; +} + +void GetAudioStreamParams::setSubtitleMethod(SubtitleDeliveryMethod newSubtitleMethod) { + m_subtitleMethod = newSubtitleMethod; +} + +bool GetAudioStreamParams::subtitleMethodNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleMethod== SubtitleDeliveryMethod::EnumNotSet; +} + +void GetAudioStreamParams::setSubtitleMethodNull() { + m_subtitleMethod= SubtitleDeliveryMethod::EnumNotSet; +} + + +const qint32 &GetAudioStreamParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void GetAudioStreamParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool GetAudioStreamParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void GetAudioStreamParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const QString &GetAudioStreamParams::tag() const { + return m_tag; +} + +void GetAudioStreamParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetAudioStreamParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetAudioStreamParams::setTagNull() { + m_tag.clear(); +} + + +const QString &GetAudioStreamParams::transcodeReasons() const { + return m_transcodeReasons; +} + +void GetAudioStreamParams::setTranscodeReasons(QString newTranscodeReasons) { + m_transcodeReasons = newTranscodeReasons; +} + +bool GetAudioStreamParams::transcodeReasonsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodeReasons.isNull(); +} + +void GetAudioStreamParams::setTranscodeReasonsNull() { + m_transcodeReasons.clear(); +} + + +const qint32 &GetAudioStreamParams::transcodingMaxAudioChannels() const { + return m_transcodingMaxAudioChannels.value(); +} + +void GetAudioStreamParams::setTranscodingMaxAudioChannels(qint32 newTranscodingMaxAudioChannels) { + m_transcodingMaxAudioChannels = newTranscodingMaxAudioChannels; +} + +bool GetAudioStreamParams::transcodingMaxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_transcodingMaxAudioChannels.has_value(); +} + +void GetAudioStreamParams::setTranscodingMaxAudioChannelsNull() { + m_transcodingMaxAudioChannels = std::nullopt; +} + + +const qint32 &GetAudioStreamParams::videoBitRate() const { + return m_videoBitRate.value(); +} + +void GetAudioStreamParams::setVideoBitRate(qint32 newVideoBitRate) { + m_videoBitRate = newVideoBitRate; +} + +bool GetAudioStreamParams::videoBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoBitRate.has_value(); +} + +void GetAudioStreamParams::setVideoBitRateNull() { + m_videoBitRate = std::nullopt; +} + + +const QString &GetAudioStreamParams::videoCodec() const { + return m_videoCodec; +} + +void GetAudioStreamParams::setVideoCodec(QString newVideoCodec) { + m_videoCodec = newVideoCodec; +} + +bool GetAudioStreamParams::videoCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoCodec.isNull(); +} + +void GetAudioStreamParams::setVideoCodecNull() { + m_videoCodec.clear(); +} + + +const qint32 &GetAudioStreamParams::videoStreamIndex() const { + return m_videoStreamIndex.value(); +} + +void GetAudioStreamParams::setVideoStreamIndex(qint32 newVideoStreamIndex) { + m_videoStreamIndex = newVideoStreamIndex; +} + +bool GetAudioStreamParams::videoStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoStreamIndex.has_value(); +} + +void GetAudioStreamParams::setVideoStreamIndexNull() { + m_videoStreamIndex = std::nullopt; +} + + +const qint32 &GetAudioStreamParams::width() const { + return m_width.value(); +} + +void GetAudioStreamParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetAudioStreamParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetAudioStreamParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getauthprovidersparams.cpp b/core/src/loader/getauthprovidersparams.cpp new file mode 100644 index 0000000..0864fef --- /dev/null +++ b/core/src/loader/getauthprovidersparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getauthprovidersparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetAuthProvidersParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getbitratetestbytesparams.cpp b/core/src/loader/getbitratetestbytesparams.cpp new file mode 100644 index 0000000..1fe3fa2 --- /dev/null +++ b/core/src/loader/getbitratetestbytesparams.cpp @@ -0,0 +1,62 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getbitratetestbytesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetBitrateTestBytesParams + +const qint32 &GetBitrateTestBytesParams::size() const { + return m_size.value(); +} + +void GetBitrateTestBytesParams::setSize(qint32 newSize) { + m_size = newSize; +} + +bool GetBitrateTestBytesParams::sizeNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_size.has_value(); +} + +void GetBitrateTestBytesParams::setSizeNull() { + m_size = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getbookremotesearchresultsparams.cpp b/core/src/loader/getbookremotesearchresultsparams.cpp new file mode 100644 index 0000000..c0ecc19 --- /dev/null +++ b/core/src/loader/getbookremotesearchresultsparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getbookremotesearchresultsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetBookRemoteSearchResultsParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getboxsetremotesearchresultsparams.cpp b/core/src/loader/getboxsetremotesearchresultsparams.cpp new file mode 100644 index 0000000..426f1d3 --- /dev/null +++ b/core/src/loader/getboxsetremotesearchresultsparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getboxsetremotesearchresultsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetBoxSetRemoteSearchResultsParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getbrandingcss_2params.cpp b/core/src/loader/getbrandingcss_2params.cpp new file mode 100644 index 0000000..f7dc53c --- /dev/null +++ b/core/src/loader/getbrandingcss_2params.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getbrandingcss_2params.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetBrandingCss_2Params + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getbrandingcssparams.cpp b/core/src/loader/getbrandingcssparams.cpp new file mode 100644 index 0000000..5c94e10 --- /dev/null +++ b/core/src/loader/getbrandingcssparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getbrandingcssparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetBrandingCssParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getbrandingoptionsparams.cpp b/core/src/loader/getbrandingoptionsparams.cpp new file mode 100644 index 0000000..1570a8c --- /dev/null +++ b/core/src/loader/getbrandingoptionsparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getbrandingoptionsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetBrandingOptionsParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getchannelfeaturesparams.cpp b/core/src/loader/getchannelfeaturesparams.cpp new file mode 100644 index 0000000..4040685 --- /dev/null +++ b/core/src/loader/getchannelfeaturesparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getchannelfeaturesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetChannelFeaturesParams + +const QString &GetChannelFeaturesParams::channelId() const { + return m_channelId; +} + +void GetChannelFeaturesParams::setChannelId(QString newChannelId) { + m_channelId = newChannelId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getchannelitemsparams.cpp b/core/src/loader/getchannelitemsparams.cpp new file mode 100644 index 0000000..2300f52 --- /dev/null +++ b/core/src/loader/getchannelitemsparams.cpp @@ -0,0 +1,218 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getchannelitemsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetChannelItemsParams + +const QString &GetChannelItemsParams::channelId() const { + return m_channelId; +} + +void GetChannelItemsParams::setChannelId(QString newChannelId) { + m_channelId = newChannelId; +} + + +const QList &GetChannelItemsParams::fields() const { + return m_fields; +} + +void GetChannelItemsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetChannelItemsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetChannelItemsParams::setFieldsNull() { + m_fields.clear(); +} + + +const QList &GetChannelItemsParams::filters() const { + return m_filters; +} + +void GetChannelItemsParams::setFilters(QList newFilters) { + m_filters = newFilters; +} + +bool GetChannelItemsParams::filtersNull() const { + // Nullable: true + // Type Nullable: true + + + return m_filters.size() == 0; +} + +void GetChannelItemsParams::setFiltersNull() { + m_filters.clear(); +} + + +const QString &GetChannelItemsParams::folderId() const { + return m_folderId; +} + +void GetChannelItemsParams::setFolderId(QString newFolderId) { + m_folderId = newFolderId; +} + +bool GetChannelItemsParams::folderIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_folderId.isNull(); +} + +void GetChannelItemsParams::setFolderIdNull() { + m_folderId.clear(); +} + + +const qint32 &GetChannelItemsParams::limit() const { + return m_limit.value(); +} + +void GetChannelItemsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetChannelItemsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetChannelItemsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetChannelItemsParams::sortBy() const { + return m_sortBy; +} + +void GetChannelItemsParams::setSortBy(QString newSortBy) { + m_sortBy = newSortBy; +} + +bool GetChannelItemsParams::sortByNull() const { + // Nullable: true + // Type Nullable: true + + + return m_sortBy.isNull(); +} + +void GetChannelItemsParams::setSortByNull() { + m_sortBy.clear(); +} + + +const QString &GetChannelItemsParams::sortOrder() const { + return m_sortOrder; +} + +void GetChannelItemsParams::setSortOrder(QString newSortOrder) { + m_sortOrder = newSortOrder; +} + +bool GetChannelItemsParams::sortOrderNull() const { + // Nullable: true + // Type Nullable: true + + + return m_sortOrder.isNull(); +} + +void GetChannelItemsParams::setSortOrderNull() { + m_sortOrder.clear(); +} + + +const qint32 &GetChannelItemsParams::startIndex() const { + return m_startIndex.value(); +} + +void GetChannelItemsParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetChannelItemsParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetChannelItemsParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const QString &GetChannelItemsParams::userId() const { + return m_userId; +} + +void GetChannelItemsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetChannelItemsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetChannelItemsParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getchannelmappingoptionsparams.cpp b/core/src/loader/getchannelmappingoptionsparams.cpp new file mode 100644 index 0000000..e86d7ec --- /dev/null +++ b/core/src/loader/getchannelmappingoptionsparams.cpp @@ -0,0 +1,62 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getchannelmappingoptionsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetChannelMappingOptionsParams + +const QString &GetChannelMappingOptionsParams::providerId() const { + return m_providerId; +} + +void GetChannelMappingOptionsParams::setProviderId(QString newProviderId) { + m_providerId = newProviderId; +} + +bool GetChannelMappingOptionsParams::providerIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_providerId.isNull(); +} + +void GetChannelMappingOptionsParams::setProviderIdNull() { + m_providerId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/endpointinfo.h b/core/src/loader/getchannelparams.cpp similarity index 68% rename from core/include/JellyfinQt/DTO/endpointinfo.h rename to core/src/loader/getchannelparams.cpp index cbafba5..54e6f6c 100644 --- a/core/include/JellyfinQt/DTO/endpointinfo.h +++ b/core/src/loader/getchannelparams.cpp @@ -27,42 +27,45 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_ENDPOINTINFO_H -#define JELLYFIN_DTO_ENDPOINTINFO_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/getchannelparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetChannelParams + +const QString &GetChannelParams::channelId() const { + return m_channelId; +} + +void GetChannelParams::setChannelId(QString newChannelId) { + m_channelId = newChannelId; +} -class EndPointInfo { -public:EndPointInfo();EndPointInfo(const EndPointInfo &other); +const QString &GetChannelParams::userId() const { + return m_userId; +} + +void GetChannelParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetChannelParams::userIdNull() const { + // Nullable: true + // Type Nullable: true - static EndPointInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - bool isLocal() const; + return m_userId.isNull(); +} - void setIsLocal(bool newIsLocal); +void GetChannelParams::setUserIdNull() { + m_userId.clear(); +} - bool isInNetwork() const; - void setIsInNetwork(bool newIsInNetwork); - -protected: - bool m_isLocal; - bool m_isInNetwork; -}; +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_ENDPOINTINFO_H diff --git a/core/src/loader/getchannelsparams.cpp b/core/src/loader/getchannelsparams.cpp new file mode 100644 index 0000000..d23d8c7 --- /dev/null +++ b/core/src/loader/getchannelsparams.cpp @@ -0,0 +1,167 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getchannelsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetChannelsParams + +const bool &GetChannelsParams::isFavorite() const { + return m_isFavorite.value(); +} + +void GetChannelsParams::setIsFavorite(bool newIsFavorite) { + m_isFavorite = newIsFavorite; +} + +bool GetChannelsParams::isFavoriteNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isFavorite.has_value(); +} + +void GetChannelsParams::setIsFavoriteNull() { + m_isFavorite = std::nullopt; +} + + +const qint32 &GetChannelsParams::limit() const { + return m_limit.value(); +} + +void GetChannelsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetChannelsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetChannelsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const qint32 &GetChannelsParams::startIndex() const { + return m_startIndex.value(); +} + +void GetChannelsParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetChannelsParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetChannelsParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const bool &GetChannelsParams::supportsLatestItems() const { + return m_supportsLatestItems.value(); +} + +void GetChannelsParams::setSupportsLatestItems(bool newSupportsLatestItems) { + m_supportsLatestItems = newSupportsLatestItems; +} + +bool GetChannelsParams::supportsLatestItemsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_supportsLatestItems.has_value(); +} + +void GetChannelsParams::setSupportsLatestItemsNull() { + m_supportsLatestItems = std::nullopt; +} + + +const bool &GetChannelsParams::supportsMediaDeletion() const { + return m_supportsMediaDeletion.value(); +} + +void GetChannelsParams::setSupportsMediaDeletion(bool newSupportsMediaDeletion) { + m_supportsMediaDeletion = newSupportsMediaDeletion; +} + +bool GetChannelsParams::supportsMediaDeletionNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_supportsMediaDeletion.has_value(); +} + +void GetChannelsParams::setSupportsMediaDeletionNull() { + m_supportsMediaDeletion = std::nullopt; +} + + +const QString &GetChannelsParams::userId() const { + return m_userId; +} + +void GetChannelsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetChannelsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetChannelsParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getconfigurationpagesparams.cpp b/core/src/loader/getconfigurationpagesparams.cpp new file mode 100644 index 0000000..bc39bc2 --- /dev/null +++ b/core/src/loader/getconfigurationpagesparams.cpp @@ -0,0 +1,83 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getconfigurationpagesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetConfigurationPagesParams + +const bool &GetConfigurationPagesParams::enableInMainMenu() const { + return m_enableInMainMenu.value(); +} + +void GetConfigurationPagesParams::setEnableInMainMenu(bool newEnableInMainMenu) { + m_enableInMainMenu = newEnableInMainMenu; +} + +bool GetConfigurationPagesParams::enableInMainMenuNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableInMainMenu.has_value(); +} + +void GetConfigurationPagesParams::setEnableInMainMenuNull() { + m_enableInMainMenu = std::nullopt; +} + + +const ConfigurationPageType &GetConfigurationPagesParams::pageType() const { + return m_pageType; +} + +void GetConfigurationPagesParams::setPageType(ConfigurationPageType newPageType) { + m_pageType = newPageType; +} + +bool GetConfigurationPagesParams::pageTypeNull() const { + // Nullable: true + // Type Nullable: true + + + return m_pageType== ConfigurationPageType::EnumNotSet; +} + +void GetConfigurationPagesParams::setPageTypeNull() { + m_pageType= ConfigurationPageType::EnumNotSet; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getconfigurationparams.cpp b/core/src/loader/getconfigurationparams.cpp new file mode 100644 index 0000000..0a28303 --- /dev/null +++ b/core/src/loader/getconfigurationparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getconfigurationparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetConfigurationParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getconnectionmanager_2params.cpp b/core/src/loader/getconnectionmanager_2params.cpp new file mode 100644 index 0000000..581ccbc --- /dev/null +++ b/core/src/loader/getconnectionmanager_2params.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getconnectionmanager_2params.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetConnectionManager_2Params + +const QString &GetConnectionManager_2Params::serverId() const { + return m_serverId; +} + +void GetConnectionManager_2Params::setServerId(QString newServerId) { + m_serverId = newServerId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getconnectionmanager_3params.cpp b/core/src/loader/getconnectionmanager_3params.cpp new file mode 100644 index 0000000..6fcd4de --- /dev/null +++ b/core/src/loader/getconnectionmanager_3params.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getconnectionmanager_3params.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetConnectionManager_3Params + +const QString &GetConnectionManager_3Params::serverId() const { + return m_serverId; +} + +void GetConnectionManager_3Params::setServerId(QString newServerId) { + m_serverId = newServerId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getconnectionmanagerparams.cpp b/core/src/loader/getconnectionmanagerparams.cpp new file mode 100644 index 0000000..b869438 --- /dev/null +++ b/core/src/loader/getconnectionmanagerparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getconnectionmanagerparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetConnectionManagerParams + +const QString &GetConnectionManagerParams::serverId() const { + return m_serverId; +} + +void GetConnectionManagerParams::setServerId(QString newServerId) { + m_serverId = newServerId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getcontentdirectory_2params.cpp b/core/src/loader/getcontentdirectory_2params.cpp new file mode 100644 index 0000000..a96979b --- /dev/null +++ b/core/src/loader/getcontentdirectory_2params.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getcontentdirectory_2params.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetContentDirectory_2Params + +const QString &GetContentDirectory_2Params::serverId() const { + return m_serverId; +} + +void GetContentDirectory_2Params::setServerId(QString newServerId) { + m_serverId = newServerId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getcontentdirectory_3params.cpp b/core/src/loader/getcontentdirectory_3params.cpp new file mode 100644 index 0000000..e9fc7dd --- /dev/null +++ b/core/src/loader/getcontentdirectory_3params.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getcontentdirectory_3params.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetContentDirectory_3Params + +const QString &GetContentDirectory_3Params::serverId() const { + return m_serverId; +} + +void GetContentDirectory_3Params::setServerId(QString newServerId) { + m_serverId = newServerId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getcontentdirectoryparams.cpp b/core/src/loader/getcontentdirectoryparams.cpp new file mode 100644 index 0000000..3919148 --- /dev/null +++ b/core/src/loader/getcontentdirectoryparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getcontentdirectoryparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetContentDirectoryParams + +const QString &GetContentDirectoryParams::serverId() const { + return m_serverId; +} + +void GetContentDirectoryParams::setServerId(QString newServerId) { + m_serverId = newServerId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getcountriesparams.cpp b/core/src/loader/getcountriesparams.cpp new file mode 100644 index 0000000..cc7c3e3 --- /dev/null +++ b/core/src/loader/getcountriesparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getcountriesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetCountriesParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getcriticreviewsparams.cpp b/core/src/loader/getcriticreviewsparams.cpp new file mode 100644 index 0000000..34c35e5 --- /dev/null +++ b/core/src/loader/getcriticreviewsparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getcriticreviewsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetCriticReviewsParams + +const QString &GetCriticReviewsParams::itemId() const { + return m_itemId; +} + +void GetCriticReviewsParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getculturesparams.cpp b/core/src/loader/getculturesparams.cpp new file mode 100644 index 0000000..d6a8289 --- /dev/null +++ b/core/src/loader/getculturesparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getculturesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetCulturesParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getcurrentuserparams.cpp b/core/src/loader/getcurrentuserparams.cpp new file mode 100644 index 0000000..2c42572 --- /dev/null +++ b/core/src/loader/getcurrentuserparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getcurrentuserparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetCurrentUserParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getdashboardconfigurationpageparams.cpp b/core/src/loader/getdashboardconfigurationpageparams.cpp new file mode 100644 index 0000000..b7e428a --- /dev/null +++ b/core/src/loader/getdashboardconfigurationpageparams.cpp @@ -0,0 +1,62 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getdashboardconfigurationpageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetDashboardConfigurationPageParams + +const QString &GetDashboardConfigurationPageParams::name() const { + return m_name; +} + +void GetDashboardConfigurationPageParams::setName(QString newName) { + m_name = newName; +} + +bool GetDashboardConfigurationPageParams::nameNull() const { + // Nullable: true + // Type Nullable: true + + + return m_name.isNull(); +} + +void GetDashboardConfigurationPageParams::setNameNull() { + m_name.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getdefaultdirectorybrowserparams.cpp b/core/src/loader/getdefaultdirectorybrowserparams.cpp new file mode 100644 index 0000000..efe4bde --- /dev/null +++ b/core/src/loader/getdefaultdirectorybrowserparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getdefaultdirectorybrowserparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetDefaultDirectoryBrowserParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getdefaultlistingproviderparams.cpp b/core/src/loader/getdefaultlistingproviderparams.cpp new file mode 100644 index 0000000..04733cd --- /dev/null +++ b/core/src/loader/getdefaultlistingproviderparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getdefaultlistingproviderparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetDefaultListingProviderParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getdefaultmetadataoptionsparams.cpp b/core/src/loader/getdefaultmetadataoptionsparams.cpp new file mode 100644 index 0000000..6c6a80b --- /dev/null +++ b/core/src/loader/getdefaultmetadataoptionsparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getdefaultmetadataoptionsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetDefaultMetadataOptionsParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getdefaultprofileparams.cpp b/core/src/loader/getdefaultprofileparams.cpp new file mode 100644 index 0000000..74ad1b5 --- /dev/null +++ b/core/src/loader/getdefaultprofileparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getdefaultprofileparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetDefaultProfileParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getdefaulttimerparams.cpp b/core/src/loader/getdefaulttimerparams.cpp new file mode 100644 index 0000000..c49b4b5 --- /dev/null +++ b/core/src/loader/getdefaulttimerparams.cpp @@ -0,0 +1,62 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getdefaulttimerparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetDefaultTimerParams + +const QString &GetDefaultTimerParams::programId() const { + return m_programId; +} + +void GetDefaultTimerParams::setProgramId(QString newProgramId) { + m_programId = newProgramId; +} + +bool GetDefaultTimerParams::programIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_programId.isNull(); +} + +void GetDefaultTimerParams::setProgramIdNull() { + m_programId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getdescriptionxml_2params.cpp b/core/src/loader/getdescriptionxml_2params.cpp new file mode 100644 index 0000000..26e5f9d --- /dev/null +++ b/core/src/loader/getdescriptionxml_2params.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getdescriptionxml_2params.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetDescriptionXml_2Params + +const QString &GetDescriptionXml_2Params::serverId() const { + return m_serverId; +} + +void GetDescriptionXml_2Params::setServerId(QString newServerId) { + m_serverId = newServerId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getdescriptionxmlparams.cpp b/core/src/loader/getdescriptionxmlparams.cpp new file mode 100644 index 0000000..3126e40 --- /dev/null +++ b/core/src/loader/getdescriptionxmlparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getdescriptionxmlparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetDescriptionXmlParams + +const QString &GetDescriptionXmlParams::serverId() const { + return m_serverId; +} + +void GetDescriptionXmlParams::setServerId(QString newServerId) { + m_serverId = newServerId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getdeviceinfoparams.cpp b/core/src/loader/getdeviceinfoparams.cpp new file mode 100644 index 0000000..6cee3ef --- /dev/null +++ b/core/src/loader/getdeviceinfoparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getdeviceinfoparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetDeviceInfoParams + +const QString &GetDeviceInfoParams::jellyfinId() const { + return m_jellyfinId; +} + +void GetDeviceInfoParams::setJellyfinId(QString newJellyfinId) { + m_jellyfinId = newJellyfinId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getdeviceoptionsparams.cpp b/core/src/loader/getdeviceoptionsparams.cpp new file mode 100644 index 0000000..5e57b74 --- /dev/null +++ b/core/src/loader/getdeviceoptionsparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getdeviceoptionsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetDeviceOptionsParams + +const QString &GetDeviceOptionsParams::jellyfinId() const { + return m_jellyfinId; +} + +void GetDeviceOptionsParams::setJellyfinId(QString newJellyfinId) { + m_jellyfinId = newJellyfinId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getdevicesparams.cpp b/core/src/loader/getdevicesparams.cpp new file mode 100644 index 0000000..986ba9b --- /dev/null +++ b/core/src/loader/getdevicesparams.cpp @@ -0,0 +1,83 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getdevicesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetDevicesParams + +const bool &GetDevicesParams::supportsSync() const { + return m_supportsSync.value(); +} + +void GetDevicesParams::setSupportsSync(bool newSupportsSync) { + m_supportsSync = newSupportsSync; +} + +bool GetDevicesParams::supportsSyncNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_supportsSync.has_value(); +} + +void GetDevicesParams::setSupportsSyncNull() { + m_supportsSync = std::nullopt; +} + + +const QString &GetDevicesParams::userId() const { + return m_userId; +} + +void GetDevicesParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetDevicesParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetDevicesParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/startupremoteaccessdto.h b/core/src/loader/getdirectorycontentsparams.cpp similarity index 52% rename from core/include/JellyfinQt/DTO/startupremoteaccessdto.h rename to core/src/loader/getdirectorycontentsparams.cpp index fcaae0f..822b04c 100644 --- a/core/include/JellyfinQt/DTO/startupremoteaccessdto.h +++ b/core/src/loader/getdirectorycontentsparams.cpp @@ -27,50 +27,66 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_STARTUPREMOTEACCESSDTO_H -#define JELLYFIN_DTO_STARTUPREMOTEACCESSDTO_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/getdirectorycontentsparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetDirectoryContentsParams + +const QString &GetDirectoryContentsParams::path() const { + return m_path; +} + +void GetDirectoryContentsParams::setPath(QString newPath) { + m_path = newPath; +} -class StartupRemoteAccessDto { -public:StartupRemoteAccessDto();StartupRemoteAccessDto(const StartupRemoteAccessDto &other); +const bool &GetDirectoryContentsParams::includeDirectories() const { + return m_includeDirectories.value(); +} + +void GetDirectoryContentsParams::setIncludeDirectories(bool newIncludeDirectories) { + m_includeDirectories = newIncludeDirectories; +} + +bool GetDirectoryContentsParams::includeDirectoriesNull() const { + // Nullable: false + // Type Nullable: false - static StartupRemoteAccessDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); + + return !m_includeDirectories.has_value(); +} + +void GetDirectoryContentsParams::setIncludeDirectoriesNull() { + m_includeDirectories = std::nullopt; +} + + +const bool &GetDirectoryContentsParams::includeFiles() const { + return m_includeFiles.value(); +} + +void GetDirectoryContentsParams::setIncludeFiles(bool newIncludeFiles) { + m_includeFiles = newIncludeFiles; +} + +bool GetDirectoryContentsParams::includeFilesNull() const { + // Nullable: false + // Type Nullable: false - // Properties - /** - * @brief Gets or sets a value indicating whether enable remote access. - */ - bool enableRemoteAccess() const; - /** - * @brief Gets or sets a value indicating whether enable remote access. - */ - void setEnableRemoteAccess(bool newEnableRemoteAccess); - /** - * @brief Gets or sets a value indicating whether enable automatic port mapping. - */ - bool enableAutomaticPortMapping() const; - /** - * @brief Gets or sets a value indicating whether enable automatic port mapping. - */ - void setEnableAutomaticPortMapping(bool newEnableAutomaticPortMapping); -protected: - bool m_enableRemoteAccess; - bool m_enableAutomaticPortMapping; -}; + return !m_includeFiles.has_value(); +} +void GetDirectoryContentsParams::setIncludeFilesNull() { + m_includeFiles = std::nullopt; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_STARTUPREMOTEACCESSDTO_H diff --git a/core/src/loader/getdisplaypreferencesparams.cpp b/core/src/loader/getdisplaypreferencesparams.cpp new file mode 100644 index 0000000..75f76a9 --- /dev/null +++ b/core/src/loader/getdisplaypreferencesparams.cpp @@ -0,0 +1,68 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getdisplaypreferencesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetDisplayPreferencesParams + +const QString &GetDisplayPreferencesParams::displayPreferencesId() const { + return m_displayPreferencesId; +} + +void GetDisplayPreferencesParams::setDisplayPreferencesId(QString newDisplayPreferencesId) { + m_displayPreferencesId = newDisplayPreferencesId; +} + + +const QString &GetDisplayPreferencesParams::client() const { + return m_client; +} + +void GetDisplayPreferencesParams::setClient(QString newClient) { + m_client = newClient; +} + + +const QString &GetDisplayPreferencesParams::userId() const { + return m_userId; +} + +void GetDisplayPreferencesParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getdownloadparams.cpp b/core/src/loader/getdownloadparams.cpp new file mode 100644 index 0000000..2f0ffad --- /dev/null +++ b/core/src/loader/getdownloadparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getdownloadparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetDownloadParams + +const QString &GetDownloadParams::itemId() const { + return m_itemId; +} + +void GetDownloadParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getdrivesparams.cpp b/core/src/loader/getdrivesparams.cpp new file mode 100644 index 0000000..1ba1524 --- /dev/null +++ b/core/src/loader/getdrivesparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getdrivesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetDrivesParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getendpointinfoparams.cpp b/core/src/loader/getendpointinfoparams.cpp new file mode 100644 index 0000000..8987391 --- /dev/null +++ b/core/src/loader/getendpointinfoparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getendpointinfoparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetEndpointInfoParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getepisodesparams.cpp b/core/src/loader/getepisodesparams.cpp new file mode 100644 index 0000000..83aca83 --- /dev/null +++ b/core/src/loader/getepisodesparams.cpp @@ -0,0 +1,344 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getepisodesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetEpisodesParams + +const QString &GetEpisodesParams::seriesId() const { + return m_seriesId; +} + +void GetEpisodesParams::setSeriesId(QString newSeriesId) { + m_seriesId = newSeriesId; +} + + +const QString &GetEpisodesParams::adjacentTo() const { + return m_adjacentTo; +} + +void GetEpisodesParams::setAdjacentTo(QString newAdjacentTo) { + m_adjacentTo = newAdjacentTo; +} + +bool GetEpisodesParams::adjacentToNull() const { + // Nullable: true + // Type Nullable: true + + + return m_adjacentTo.isNull(); +} + +void GetEpisodesParams::setAdjacentToNull() { + m_adjacentTo.clear(); +} + + +const QList &GetEpisodesParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetEpisodesParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetEpisodesParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetEpisodesParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetEpisodesParams::enableImages() const { + return m_enableImages.value(); +} + +void GetEpisodesParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetEpisodesParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetEpisodesParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetEpisodesParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetEpisodesParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetEpisodesParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetEpisodesParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QList &GetEpisodesParams::fields() const { + return m_fields; +} + +void GetEpisodesParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetEpisodesParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetEpisodesParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetEpisodesParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetEpisodesParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetEpisodesParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetEpisodesParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const bool &GetEpisodesParams::isMissing() const { + return m_isMissing.value(); +} + +void GetEpisodesParams::setIsMissing(bool newIsMissing) { + m_isMissing = newIsMissing; +} + +bool GetEpisodesParams::isMissingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isMissing.has_value(); +} + +void GetEpisodesParams::setIsMissingNull() { + m_isMissing = std::nullopt; +} + + +const qint32 &GetEpisodesParams::limit() const { + return m_limit.value(); +} + +void GetEpisodesParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetEpisodesParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetEpisodesParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const qint32 &GetEpisodesParams::season() const { + return m_season.value(); +} + +void GetEpisodesParams::setSeason(qint32 newSeason) { + m_season = newSeason; +} + +bool GetEpisodesParams::seasonNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_season.has_value(); +} + +void GetEpisodesParams::setSeasonNull() { + m_season = std::nullopt; +} + + +const QString &GetEpisodesParams::seasonId() const { + return m_seasonId; +} + +void GetEpisodesParams::setSeasonId(QString newSeasonId) { + m_seasonId = newSeasonId; +} + +bool GetEpisodesParams::seasonIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_seasonId.isNull(); +} + +void GetEpisodesParams::setSeasonIdNull() { + m_seasonId.clear(); +} + + +const QString &GetEpisodesParams::sortBy() const { + return m_sortBy; +} + +void GetEpisodesParams::setSortBy(QString newSortBy) { + m_sortBy = newSortBy; +} + +bool GetEpisodesParams::sortByNull() const { + // Nullable: true + // Type Nullable: true + + + return m_sortBy.isNull(); +} + +void GetEpisodesParams::setSortByNull() { + m_sortBy.clear(); +} + + +const qint32 &GetEpisodesParams::startIndex() const { + return m_startIndex.value(); +} + +void GetEpisodesParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetEpisodesParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetEpisodesParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const QString &GetEpisodesParams::startItemId() const { + return m_startItemId; +} + +void GetEpisodesParams::setStartItemId(QString newStartItemId) { + m_startItemId = newStartItemId; +} + +bool GetEpisodesParams::startItemIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_startItemId.isNull(); +} + +void GetEpisodesParams::setStartItemIdNull() { + m_startItemId.clear(); +} + + +const QString &GetEpisodesParams::userId() const { + return m_userId; +} + +void GetEpisodesParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetEpisodesParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetEpisodesParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getexternalidinfosparams.cpp b/core/src/loader/getexternalidinfosparams.cpp new file mode 100644 index 0000000..6e6e192 --- /dev/null +++ b/core/src/loader/getexternalidinfosparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getexternalidinfosparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetExternalIdInfosParams + +const QString &GetExternalIdInfosParams::itemId() const { + return m_itemId; +} + +void GetExternalIdInfosParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getfallbackfontlistparams.cpp b/core/src/loader/getfallbackfontlistparams.cpp new file mode 100644 index 0000000..63a8081 --- /dev/null +++ b/core/src/loader/getfallbackfontlistparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getfallbackfontlistparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetFallbackFontListParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getfallbackfontparams.cpp b/core/src/loader/getfallbackfontparams.cpp new file mode 100644 index 0000000..27fb7e1 --- /dev/null +++ b/core/src/loader/getfallbackfontparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getfallbackfontparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetFallbackFontParams + +const QString &GetFallbackFontParams::name() const { + return m_name; +} + +void GetFallbackFontParams::setName(QString newName) { + m_name = newName; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getfileparams.cpp b/core/src/loader/getfileparams.cpp new file mode 100644 index 0000000..854bbaf --- /dev/null +++ b/core/src/loader/getfileparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getfileparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetFileParams + +const QString &GetFileParams::itemId() const { + return m_itemId; +} + +void GetFileParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getfirstuser_2params.cpp b/core/src/loader/getfirstuser_2params.cpp new file mode 100644 index 0000000..c8602eb --- /dev/null +++ b/core/src/loader/getfirstuser_2params.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getfirstuser_2params.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetFirstUser_2Params + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getfirstuserparams.cpp b/core/src/loader/getfirstuserparams.cpp new file mode 100644 index 0000000..4b181ea --- /dev/null +++ b/core/src/loader/getfirstuserparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getfirstuserparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetFirstUserParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/codectype.h b/core/src/loader/getgeneralimageparams.cpp similarity index 75% rename from core/include/JellyfinQt/DTO/codectype.h rename to core/src/loader/getgeneralimageparams.cpp index a6d93d2..5294a50 100644 --- a/core/include/JellyfinQt/DTO/codectype.h +++ b/core/src/loader/getgeneralimageparams.cpp @@ -27,35 +27,33 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_CODECTYPE_H -#define JELLYFIN_DTO_CODECTYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/getgeneralimageparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { -class CodecTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Video, - VideoAudio, - Audio, - }; - Q_ENUM(Value) -private: - explicit CodecTypeClass(); -}; +using namespace Jellyfin::DTO; -typedef CodecTypeClass::Value CodecType; +// GetGeneralImageParams +const QString &GetGeneralImageParams::name() const { + return m_name; +} + +void GetGeneralImageParams::setName(QString newName) { + m_name = newName; +} + + +const QString &GetGeneralImageParams::type() const { + return m_type; +} + +void GetGeneralImageParams::setType(QString newType) { + m_type = newType; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_CODECTYPE_H diff --git a/core/src/loader/getgeneralimagesparams.cpp b/core/src/loader/getgeneralimagesparams.cpp new file mode 100644 index 0000000..8bafbf6 --- /dev/null +++ b/core/src/loader/getgeneralimagesparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getgeneralimagesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetGeneralImagesParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getgenreimagebyindexparams.cpp b/core/src/loader/getgenreimagebyindexparams.cpp new file mode 100644 index 0000000..f05a99b --- /dev/null +++ b/core/src/loader/getgenreimagebyindexparams.cpp @@ -0,0 +1,362 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getgenreimagebyindexparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetGenreImageByIndexParams + +const qint32 &GetGenreImageByIndexParams::imageIndex() const { + return m_imageIndex; +} + +void GetGenreImageByIndexParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + + +const ImageType &GetGenreImageByIndexParams::imageType() const { + return m_imageType; +} + +void GetGenreImageByIndexParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &GetGenreImageByIndexParams::name() const { + return m_name; +} + +void GetGenreImageByIndexParams::setName(QString newName) { + m_name = newName; +} + + +const bool &GetGenreImageByIndexParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void GetGenreImageByIndexParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool GetGenreImageByIndexParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void GetGenreImageByIndexParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &GetGenreImageByIndexParams::backgroundColor() const { + return m_backgroundColor; +} + +void GetGenreImageByIndexParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool GetGenreImageByIndexParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void GetGenreImageByIndexParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &GetGenreImageByIndexParams::blur() const { + return m_blur.value(); +} + +void GetGenreImageByIndexParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool GetGenreImageByIndexParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void GetGenreImageByIndexParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &GetGenreImageByIndexParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void GetGenreImageByIndexParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool GetGenreImageByIndexParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void GetGenreImageByIndexParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &GetGenreImageByIndexParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void GetGenreImageByIndexParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool GetGenreImageByIndexParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void GetGenreImageByIndexParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &GetGenreImageByIndexParams::format() const { + return m_format; +} + +void GetGenreImageByIndexParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool GetGenreImageByIndexParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void GetGenreImageByIndexParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &GetGenreImageByIndexParams::height() const { + return m_height.value(); +} + +void GetGenreImageByIndexParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetGenreImageByIndexParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetGenreImageByIndexParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &GetGenreImageByIndexParams::maxHeight() const { + return m_maxHeight.value(); +} + +void GetGenreImageByIndexParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool GetGenreImageByIndexParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void GetGenreImageByIndexParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &GetGenreImageByIndexParams::maxWidth() const { + return m_maxWidth.value(); +} + +void GetGenreImageByIndexParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool GetGenreImageByIndexParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void GetGenreImageByIndexParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &GetGenreImageByIndexParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void GetGenreImageByIndexParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool GetGenreImageByIndexParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void GetGenreImageByIndexParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &GetGenreImageByIndexParams::quality() const { + return m_quality.value(); +} + +void GetGenreImageByIndexParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool GetGenreImageByIndexParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void GetGenreImageByIndexParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &GetGenreImageByIndexParams::tag() const { + return m_tag; +} + +void GetGenreImageByIndexParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetGenreImageByIndexParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetGenreImageByIndexParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &GetGenreImageByIndexParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void GetGenreImageByIndexParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool GetGenreImageByIndexParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void GetGenreImageByIndexParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &GetGenreImageByIndexParams::width() const { + return m_width.value(); +} + +void GetGenreImageByIndexParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetGenreImageByIndexParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetGenreImageByIndexParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getgenreimageparams.cpp b/core/src/loader/getgenreimageparams.cpp new file mode 100644 index 0000000..b5b5c6d --- /dev/null +++ b/core/src/loader/getgenreimageparams.cpp @@ -0,0 +1,374 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getgenreimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetGenreImageParams + +const ImageType &GetGenreImageParams::imageType() const { + return m_imageType; +} + +void GetGenreImageParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &GetGenreImageParams::name() const { + return m_name; +} + +void GetGenreImageParams::setName(QString newName) { + m_name = newName; +} + + +const bool &GetGenreImageParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void GetGenreImageParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool GetGenreImageParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void GetGenreImageParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &GetGenreImageParams::backgroundColor() const { + return m_backgroundColor; +} + +void GetGenreImageParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool GetGenreImageParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void GetGenreImageParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &GetGenreImageParams::blur() const { + return m_blur.value(); +} + +void GetGenreImageParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool GetGenreImageParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void GetGenreImageParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &GetGenreImageParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void GetGenreImageParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool GetGenreImageParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void GetGenreImageParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &GetGenreImageParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void GetGenreImageParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool GetGenreImageParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void GetGenreImageParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &GetGenreImageParams::format() const { + return m_format; +} + +void GetGenreImageParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool GetGenreImageParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void GetGenreImageParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &GetGenreImageParams::height() const { + return m_height.value(); +} + +void GetGenreImageParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetGenreImageParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetGenreImageParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &GetGenreImageParams::imageIndex() const { + return m_imageIndex.value(); +} + +void GetGenreImageParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + +bool GetGenreImageParams::imageIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageIndex.has_value(); +} + +void GetGenreImageParams::setImageIndexNull() { + m_imageIndex = std::nullopt; +} + + +const qint32 &GetGenreImageParams::maxHeight() const { + return m_maxHeight.value(); +} + +void GetGenreImageParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool GetGenreImageParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void GetGenreImageParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &GetGenreImageParams::maxWidth() const { + return m_maxWidth.value(); +} + +void GetGenreImageParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool GetGenreImageParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void GetGenreImageParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &GetGenreImageParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void GetGenreImageParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool GetGenreImageParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void GetGenreImageParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &GetGenreImageParams::quality() const { + return m_quality.value(); +} + +void GetGenreImageParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool GetGenreImageParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void GetGenreImageParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &GetGenreImageParams::tag() const { + return m_tag; +} + +void GetGenreImageParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetGenreImageParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetGenreImageParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &GetGenreImageParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void GetGenreImageParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool GetGenreImageParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void GetGenreImageParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &GetGenreImageParams::width() const { + return m_width.value(); +} + +void GetGenreImageParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetGenreImageParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetGenreImageParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getgenreparams.cpp b/core/src/loader/getgenreparams.cpp new file mode 100644 index 0000000..f55e0f1 --- /dev/null +++ b/core/src/loader/getgenreparams.cpp @@ -0,0 +1,71 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getgenreparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetGenreParams + +const QString &GetGenreParams::genreName() const { + return m_genreName; +} + +void GetGenreParams::setGenreName(QString newGenreName) { + m_genreName = newGenreName; +} + + +const QString &GetGenreParams::userId() const { + return m_userId; +} + +void GetGenreParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetGenreParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetGenreParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getgenresparams.cpp b/core/src/loader/getgenresparams.cpp new file mode 100644 index 0000000..e7f6e02 --- /dev/null +++ b/core/src/loader/getgenresparams.cpp @@ -0,0 +1,377 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getgenresparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetGenresParams + +const QList &GetGenresParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetGenresParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetGenresParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetGenresParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetGenresParams::enableImages() const { + return m_enableImages.value(); +} + +void GetGenresParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetGenresParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetGenresParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetGenresParams::enableTotalRecordCount() const { + return m_enableTotalRecordCount.value(); +} + +void GetGenresParams::setEnableTotalRecordCount(bool newEnableTotalRecordCount) { + m_enableTotalRecordCount = newEnableTotalRecordCount; +} + +bool GetGenresParams::enableTotalRecordCountNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableTotalRecordCount.has_value(); +} + +void GetGenresParams::setEnableTotalRecordCountNull() { + m_enableTotalRecordCount = std::nullopt; +} + + +const QStringList &GetGenresParams::excludeItemTypes() const { + return m_excludeItemTypes; +} + +void GetGenresParams::setExcludeItemTypes(QStringList newExcludeItemTypes) { + m_excludeItemTypes = newExcludeItemTypes; +} + +bool GetGenresParams::excludeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeItemTypes.size() == 0; +} + +void GetGenresParams::setExcludeItemTypesNull() { + m_excludeItemTypes.clear(); +} + + +const QList &GetGenresParams::fields() const { + return m_fields; +} + +void GetGenresParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetGenresParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetGenresParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetGenresParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetGenresParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetGenresParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetGenresParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const QStringList &GetGenresParams::includeItemTypes() const { + return m_includeItemTypes; +} + +void GetGenresParams::setIncludeItemTypes(QStringList newIncludeItemTypes) { + m_includeItemTypes = newIncludeItemTypes; +} + +bool GetGenresParams::includeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_includeItemTypes.size() == 0; +} + +void GetGenresParams::setIncludeItemTypesNull() { + m_includeItemTypes.clear(); +} + + +const bool &GetGenresParams::isFavorite() const { + return m_isFavorite.value(); +} + +void GetGenresParams::setIsFavorite(bool newIsFavorite) { + m_isFavorite = newIsFavorite; +} + +bool GetGenresParams::isFavoriteNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isFavorite.has_value(); +} + +void GetGenresParams::setIsFavoriteNull() { + m_isFavorite = std::nullopt; +} + + +const qint32 &GetGenresParams::limit() const { + return m_limit.value(); +} + +void GetGenresParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetGenresParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetGenresParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetGenresParams::nameLessThan() const { + return m_nameLessThan; +} + +void GetGenresParams::setNameLessThan(QString newNameLessThan) { + m_nameLessThan = newNameLessThan; +} + +bool GetGenresParams::nameLessThanNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameLessThan.isNull(); +} + +void GetGenresParams::setNameLessThanNull() { + m_nameLessThan.clear(); +} + + +const QString &GetGenresParams::nameStartsWith() const { + return m_nameStartsWith; +} + +void GetGenresParams::setNameStartsWith(QString newNameStartsWith) { + m_nameStartsWith = newNameStartsWith; +} + +bool GetGenresParams::nameStartsWithNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameStartsWith.isNull(); +} + +void GetGenresParams::setNameStartsWithNull() { + m_nameStartsWith.clear(); +} + + +const QString &GetGenresParams::nameStartsWithOrGreater() const { + return m_nameStartsWithOrGreater; +} + +void GetGenresParams::setNameStartsWithOrGreater(QString newNameStartsWithOrGreater) { + m_nameStartsWithOrGreater = newNameStartsWithOrGreater; +} + +bool GetGenresParams::nameStartsWithOrGreaterNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameStartsWithOrGreater.isNull(); +} + +void GetGenresParams::setNameStartsWithOrGreaterNull() { + m_nameStartsWithOrGreater.clear(); +} + + +const QString &GetGenresParams::parentId() const { + return m_parentId; +} + +void GetGenresParams::setParentId(QString newParentId) { + m_parentId = newParentId; +} + +bool GetGenresParams::parentIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_parentId.isNull(); +} + +void GetGenresParams::setParentIdNull() { + m_parentId.clear(); +} + + +const QString &GetGenresParams::searchTerm() const { + return m_searchTerm; +} + +void GetGenresParams::setSearchTerm(QString newSearchTerm) { + m_searchTerm = newSearchTerm; +} + +bool GetGenresParams::searchTermNull() const { + // Nullable: true + // Type Nullable: true + + + return m_searchTerm.isNull(); +} + +void GetGenresParams::setSearchTermNull() { + m_searchTerm.clear(); +} + + +const qint32 &GetGenresParams::startIndex() const { + return m_startIndex.value(); +} + +void GetGenresParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetGenresParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetGenresParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const QString &GetGenresParams::userId() const { + return m_userId; +} + +void GetGenresParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetGenresParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetGenresParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getgroupingoptionsparams.cpp b/core/src/loader/getgroupingoptionsparams.cpp new file mode 100644 index 0000000..1eb19e7 --- /dev/null +++ b/core/src/loader/getgroupingoptionsparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getgroupingoptionsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetGroupingOptionsParams + +const QString &GetGroupingOptionsParams::userId() const { + return m_userId; +} + +void GetGroupingOptionsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getguideinfoparams.cpp b/core/src/loader/getguideinfoparams.cpp new file mode 100644 index 0000000..51c7b0a --- /dev/null +++ b/core/src/loader/getguideinfoparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getguideinfoparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetGuideInfoParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/gethlsaudiosegmentlegacyaacparams.cpp b/core/src/loader/gethlsaudiosegmentlegacyaacparams.cpp new file mode 100644 index 0000000..01f8d15 --- /dev/null +++ b/core/src/loader/gethlsaudiosegmentlegacyaacparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/gethlsaudiosegmentlegacyaacparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetHlsAudioSegmentLegacyAacParams + +const QString &GetHlsAudioSegmentLegacyAacParams::itemId() const { + return m_itemId; +} + +void GetHlsAudioSegmentLegacyAacParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &GetHlsAudioSegmentLegacyAacParams::segmentId() const { + return m_segmentId; +} + +void GetHlsAudioSegmentLegacyAacParams::setSegmentId(QString newSegmentId) { + m_segmentId = newSegmentId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/gethlsaudiosegmentlegacymp3params.cpp b/core/src/loader/gethlsaudiosegmentlegacymp3params.cpp new file mode 100644 index 0000000..3c093a6 --- /dev/null +++ b/core/src/loader/gethlsaudiosegmentlegacymp3params.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/gethlsaudiosegmentlegacymp3params.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetHlsAudioSegmentLegacyMp3Params + +const QString &GetHlsAudioSegmentLegacyMp3Params::itemId() const { + return m_itemId; +} + +void GetHlsAudioSegmentLegacyMp3Params::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &GetHlsAudioSegmentLegacyMp3Params::segmentId() const { + return m_segmentId; +} + +void GetHlsAudioSegmentLegacyMp3Params::setSegmentId(QString newSegmentId) { + m_segmentId = newSegmentId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/gethlsaudiosegmentparams.cpp b/core/src/loader/gethlsaudiosegmentparams.cpp new file mode 100644 index 0000000..71c8bef --- /dev/null +++ b/core/src/loader/gethlsaudiosegmentparams.cpp @@ -0,0 +1,1085 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/gethlsaudiosegmentparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetHlsAudioSegmentParams + +const QString &GetHlsAudioSegmentParams::container() const { + return m_container; +} + +void GetHlsAudioSegmentParams::setContainer(QString newContainer) { + m_container = newContainer; +} + + +const QString &GetHlsAudioSegmentParams::itemId() const { + return m_itemId; +} + +void GetHlsAudioSegmentParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &GetHlsAudioSegmentParams::playlistId() const { + return m_playlistId; +} + +void GetHlsAudioSegmentParams::setPlaylistId(QString newPlaylistId) { + m_playlistId = newPlaylistId; +} + + +const qint32 &GetHlsAudioSegmentParams::segmentId() const { + return m_segmentId; +} + +void GetHlsAudioSegmentParams::setSegmentId(qint32 newSegmentId) { + m_segmentId = newSegmentId; +} + + +const bool &GetHlsAudioSegmentParams::allowAudioStreamCopy() const { + return m_allowAudioStreamCopy.value(); +} + +void GetHlsAudioSegmentParams::setAllowAudioStreamCopy(bool newAllowAudioStreamCopy) { + m_allowAudioStreamCopy = newAllowAudioStreamCopy; +} + +bool GetHlsAudioSegmentParams::allowAudioStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowAudioStreamCopy.has_value(); +} + +void GetHlsAudioSegmentParams::setAllowAudioStreamCopyNull() { + m_allowAudioStreamCopy = std::nullopt; +} + + +const bool &GetHlsAudioSegmentParams::allowVideoStreamCopy() const { + return m_allowVideoStreamCopy.value(); +} + +void GetHlsAudioSegmentParams::setAllowVideoStreamCopy(bool newAllowVideoStreamCopy) { + m_allowVideoStreamCopy = newAllowVideoStreamCopy; +} + +bool GetHlsAudioSegmentParams::allowVideoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowVideoStreamCopy.has_value(); +} + +void GetHlsAudioSegmentParams::setAllowVideoStreamCopyNull() { + m_allowVideoStreamCopy = std::nullopt; +} + + +const qint32 &GetHlsAudioSegmentParams::audioBitRate() const { + return m_audioBitRate.value(); +} + +void GetHlsAudioSegmentParams::setAudioBitRate(qint32 newAudioBitRate) { + m_audioBitRate = newAudioBitRate; +} + +bool GetHlsAudioSegmentParams::audioBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioBitRate.has_value(); +} + +void GetHlsAudioSegmentParams::setAudioBitRateNull() { + m_audioBitRate = std::nullopt; +} + + +const qint32 &GetHlsAudioSegmentParams::audioChannels() const { + return m_audioChannels.value(); +} + +void GetHlsAudioSegmentParams::setAudioChannels(qint32 newAudioChannels) { + m_audioChannels = newAudioChannels; +} + +bool GetHlsAudioSegmentParams::audioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioChannels.has_value(); +} + +void GetHlsAudioSegmentParams::setAudioChannelsNull() { + m_audioChannels = std::nullopt; +} + + +const QString &GetHlsAudioSegmentParams::audioCodec() const { + return m_audioCodec; +} + +void GetHlsAudioSegmentParams::setAudioCodec(QString newAudioCodec) { + m_audioCodec = newAudioCodec; +} + +bool GetHlsAudioSegmentParams::audioCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_audioCodec.isNull(); +} + +void GetHlsAudioSegmentParams::setAudioCodecNull() { + m_audioCodec.clear(); +} + + +const qint32 &GetHlsAudioSegmentParams::audioSampleRate() const { + return m_audioSampleRate.value(); +} + +void GetHlsAudioSegmentParams::setAudioSampleRate(qint32 newAudioSampleRate) { + m_audioSampleRate = newAudioSampleRate; +} + +bool GetHlsAudioSegmentParams::audioSampleRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioSampleRate.has_value(); +} + +void GetHlsAudioSegmentParams::setAudioSampleRateNull() { + m_audioSampleRate = std::nullopt; +} + + +const qint32 &GetHlsAudioSegmentParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void GetHlsAudioSegmentParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool GetHlsAudioSegmentParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void GetHlsAudioSegmentParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &GetHlsAudioSegmentParams::breakOnNonKeyFrames() const { + return m_breakOnNonKeyFrames.value(); +} + +void GetHlsAudioSegmentParams::setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames) { + m_breakOnNonKeyFrames = newBreakOnNonKeyFrames; +} + +bool GetHlsAudioSegmentParams::breakOnNonKeyFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_breakOnNonKeyFrames.has_value(); +} + +void GetHlsAudioSegmentParams::setBreakOnNonKeyFramesNull() { + m_breakOnNonKeyFrames = std::nullopt; +} + + +const EncodingContext &GetHlsAudioSegmentParams::context() const { + return m_context; +} + +void GetHlsAudioSegmentParams::setContext(EncodingContext newContext) { + m_context = newContext; +} + +bool GetHlsAudioSegmentParams::contextNull() const { + // Nullable: true + // Type Nullable: true + + + return m_context== EncodingContext::EnumNotSet; +} + +void GetHlsAudioSegmentParams::setContextNull() { + m_context= EncodingContext::EnumNotSet; +} + + +const bool &GetHlsAudioSegmentParams::copyTimestamps() const { + return m_copyTimestamps.value(); +} + +void GetHlsAudioSegmentParams::setCopyTimestamps(bool newCopyTimestamps) { + m_copyTimestamps = newCopyTimestamps; +} + +bool GetHlsAudioSegmentParams::copyTimestampsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_copyTimestamps.has_value(); +} + +void GetHlsAudioSegmentParams::setCopyTimestampsNull() { + m_copyTimestamps = std::nullopt; +} + + +const qint32 &GetHlsAudioSegmentParams::cpuCoreLimit() const { + return m_cpuCoreLimit.value(); +} + +void GetHlsAudioSegmentParams::setCpuCoreLimit(qint32 newCpuCoreLimit) { + m_cpuCoreLimit = newCpuCoreLimit; +} + +bool GetHlsAudioSegmentParams::cpuCoreLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cpuCoreLimit.has_value(); +} + +void GetHlsAudioSegmentParams::setCpuCoreLimitNull() { + m_cpuCoreLimit = std::nullopt; +} + + +const bool &GetHlsAudioSegmentParams::deInterlace() const { + return m_deInterlace.value(); +} + +void GetHlsAudioSegmentParams::setDeInterlace(bool newDeInterlace) { + m_deInterlace = newDeInterlace; +} + +bool GetHlsAudioSegmentParams::deInterlaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_deInterlace.has_value(); +} + +void GetHlsAudioSegmentParams::setDeInterlaceNull() { + m_deInterlace = std::nullopt; +} + + +const QString &GetHlsAudioSegmentParams::deviceId() const { + return m_deviceId; +} + +void GetHlsAudioSegmentParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool GetHlsAudioSegmentParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void GetHlsAudioSegmentParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const QString &GetHlsAudioSegmentParams::deviceProfileId() const { + return m_deviceProfileId; +} + +void GetHlsAudioSegmentParams::setDeviceProfileId(QString newDeviceProfileId) { + m_deviceProfileId = newDeviceProfileId; +} + +bool GetHlsAudioSegmentParams::deviceProfileIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceProfileId.isNull(); +} + +void GetHlsAudioSegmentParams::setDeviceProfileIdNull() { + m_deviceProfileId.clear(); +} + + +const bool &GetHlsAudioSegmentParams::enableAutoStreamCopy() const { + return m_enableAutoStreamCopy.value(); +} + +void GetHlsAudioSegmentParams::setEnableAutoStreamCopy(bool newEnableAutoStreamCopy) { + m_enableAutoStreamCopy = newEnableAutoStreamCopy; +} + +bool GetHlsAudioSegmentParams::enableAutoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableAutoStreamCopy.has_value(); +} + +void GetHlsAudioSegmentParams::setEnableAutoStreamCopyNull() { + m_enableAutoStreamCopy = std::nullopt; +} + + +const bool &GetHlsAudioSegmentParams::enableMpegtsM2TsMode() const { + return m_enableMpegtsM2TsMode.value(); +} + +void GetHlsAudioSegmentParams::setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode) { + m_enableMpegtsM2TsMode = newEnableMpegtsM2TsMode; +} + +bool GetHlsAudioSegmentParams::enableMpegtsM2TsModeNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableMpegtsM2TsMode.has_value(); +} + +void GetHlsAudioSegmentParams::setEnableMpegtsM2TsModeNull() { + m_enableMpegtsM2TsMode = std::nullopt; +} + + +const float &GetHlsAudioSegmentParams::framerate() const { + return m_framerate.value(); +} + +void GetHlsAudioSegmentParams::setFramerate(float newFramerate) { + m_framerate = newFramerate; +} + +bool GetHlsAudioSegmentParams::framerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_framerate.has_value(); +} + +void GetHlsAudioSegmentParams::setFramerateNull() { + m_framerate = std::nullopt; +} + + +const qint32 &GetHlsAudioSegmentParams::height() const { + return m_height.value(); +} + +void GetHlsAudioSegmentParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetHlsAudioSegmentParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetHlsAudioSegmentParams::setHeightNull() { + m_height = std::nullopt; +} + + +const QString &GetHlsAudioSegmentParams::level() const { + return m_level; +} + +void GetHlsAudioSegmentParams::setLevel(QString newLevel) { + m_level = newLevel; +} + +bool GetHlsAudioSegmentParams::levelNull() const { + // Nullable: true + // Type Nullable: true + + + return m_level.isNull(); +} + +void GetHlsAudioSegmentParams::setLevelNull() { + m_level.clear(); +} + + +const QString &GetHlsAudioSegmentParams::liveStreamId() const { + return m_liveStreamId; +} + +void GetHlsAudioSegmentParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool GetHlsAudioSegmentParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void GetHlsAudioSegmentParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const qint32 &GetHlsAudioSegmentParams::maxAudioBitDepth() const { + return m_maxAudioBitDepth.value(); +} + +void GetHlsAudioSegmentParams::setMaxAudioBitDepth(qint32 newMaxAudioBitDepth) { + m_maxAudioBitDepth = newMaxAudioBitDepth; +} + +bool GetHlsAudioSegmentParams::maxAudioBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioBitDepth.has_value(); +} + +void GetHlsAudioSegmentParams::setMaxAudioBitDepthNull() { + m_maxAudioBitDepth = std::nullopt; +} + + +const qint32 &GetHlsAudioSegmentParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void GetHlsAudioSegmentParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool GetHlsAudioSegmentParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void GetHlsAudioSegmentParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const float &GetHlsAudioSegmentParams::maxFramerate() const { + return m_maxFramerate.value(); +} + +void GetHlsAudioSegmentParams::setMaxFramerate(float newMaxFramerate) { + m_maxFramerate = newMaxFramerate; +} + +bool GetHlsAudioSegmentParams::maxFramerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxFramerate.has_value(); +} + +void GetHlsAudioSegmentParams::setMaxFramerateNull() { + m_maxFramerate = std::nullopt; +} + + +const qint32 &GetHlsAudioSegmentParams::maxRefFrames() const { + return m_maxRefFrames.value(); +} + +void GetHlsAudioSegmentParams::setMaxRefFrames(qint32 newMaxRefFrames) { + m_maxRefFrames = newMaxRefFrames; +} + +bool GetHlsAudioSegmentParams::maxRefFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxRefFrames.has_value(); +} + +void GetHlsAudioSegmentParams::setMaxRefFramesNull() { + m_maxRefFrames = std::nullopt; +} + + +const qint32 &GetHlsAudioSegmentParams::maxStreamingBitrate() const { + return m_maxStreamingBitrate.value(); +} + +void GetHlsAudioSegmentParams::setMaxStreamingBitrate(qint32 newMaxStreamingBitrate) { + m_maxStreamingBitrate = newMaxStreamingBitrate; +} + +bool GetHlsAudioSegmentParams::maxStreamingBitrateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxStreamingBitrate.has_value(); +} + +void GetHlsAudioSegmentParams::setMaxStreamingBitrateNull() { + m_maxStreamingBitrate = std::nullopt; +} + + +const qint32 &GetHlsAudioSegmentParams::maxVideoBitDepth() const { + return m_maxVideoBitDepth.value(); +} + +void GetHlsAudioSegmentParams::setMaxVideoBitDepth(qint32 newMaxVideoBitDepth) { + m_maxVideoBitDepth = newMaxVideoBitDepth; +} + +bool GetHlsAudioSegmentParams::maxVideoBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxVideoBitDepth.has_value(); +} + +void GetHlsAudioSegmentParams::setMaxVideoBitDepthNull() { + m_maxVideoBitDepth = std::nullopt; +} + + +const QString &GetHlsAudioSegmentParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void GetHlsAudioSegmentParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + +bool GetHlsAudioSegmentParams::mediaSourceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaSourceId.isNull(); +} + +void GetHlsAudioSegmentParams::setMediaSourceIdNull() { + m_mediaSourceId.clear(); +} + + +const qint32 &GetHlsAudioSegmentParams::minSegments() const { + return m_minSegments.value(); +} + +void GetHlsAudioSegmentParams::setMinSegments(qint32 newMinSegments) { + m_minSegments = newMinSegments; +} + +bool GetHlsAudioSegmentParams::minSegmentsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minSegments.has_value(); +} + +void GetHlsAudioSegmentParams::setMinSegmentsNull() { + m_minSegments = std::nullopt; +} + + +const QString &GetHlsAudioSegmentParams::params() const { + return m_params; +} + +void GetHlsAudioSegmentParams::setParams(QString newParams) { + m_params = newParams; +} + +bool GetHlsAudioSegmentParams::paramsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_params.isNull(); +} + +void GetHlsAudioSegmentParams::setParamsNull() { + m_params.clear(); +} + + +const QString &GetHlsAudioSegmentParams::playSessionId() const { + return m_playSessionId; +} + +void GetHlsAudioSegmentParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool GetHlsAudioSegmentParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void GetHlsAudioSegmentParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const QString &GetHlsAudioSegmentParams::profile() const { + return m_profile; +} + +void GetHlsAudioSegmentParams::setProfile(QString newProfile) { + m_profile = newProfile; +} + +bool GetHlsAudioSegmentParams::profileNull() const { + // Nullable: true + // Type Nullable: true + + + return m_profile.isNull(); +} + +void GetHlsAudioSegmentParams::setProfileNull() { + m_profile.clear(); +} + + +const bool &GetHlsAudioSegmentParams::requireAvc() const { + return m_requireAvc.value(); +} + +void GetHlsAudioSegmentParams::setRequireAvc(bool newRequireAvc) { + m_requireAvc = newRequireAvc; +} + +bool GetHlsAudioSegmentParams::requireAvcNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireAvc.has_value(); +} + +void GetHlsAudioSegmentParams::setRequireAvcNull() { + m_requireAvc = std::nullopt; +} + + +const bool &GetHlsAudioSegmentParams::requireNonAnamorphic() const { + return m_requireNonAnamorphic.value(); +} + +void GetHlsAudioSegmentParams::setRequireNonAnamorphic(bool newRequireNonAnamorphic) { + m_requireNonAnamorphic = newRequireNonAnamorphic; +} + +bool GetHlsAudioSegmentParams::requireNonAnamorphicNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireNonAnamorphic.has_value(); +} + +void GetHlsAudioSegmentParams::setRequireNonAnamorphicNull() { + m_requireNonAnamorphic = std::nullopt; +} + + +const QString &GetHlsAudioSegmentParams::segmentContainer() const { + return m_segmentContainer; +} + +void GetHlsAudioSegmentParams::setSegmentContainer(QString newSegmentContainer) { + m_segmentContainer = newSegmentContainer; +} + +bool GetHlsAudioSegmentParams::segmentContainerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_segmentContainer.isNull(); +} + +void GetHlsAudioSegmentParams::setSegmentContainerNull() { + m_segmentContainer.clear(); +} + + +const qint32 &GetHlsAudioSegmentParams::segmentLength() const { + return m_segmentLength.value(); +} + +void GetHlsAudioSegmentParams::setSegmentLength(qint32 newSegmentLength) { + m_segmentLength = newSegmentLength; +} + +bool GetHlsAudioSegmentParams::segmentLengthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_segmentLength.has_value(); +} + +void GetHlsAudioSegmentParams::setSegmentLengthNull() { + m_segmentLength = std::nullopt; +} + + +const qint64 &GetHlsAudioSegmentParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void GetHlsAudioSegmentParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool GetHlsAudioSegmentParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void GetHlsAudioSegmentParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const bool &GetHlsAudioSegmentParams::staticStreaming() const { + return m_staticStreaming.value(); +} + +void GetHlsAudioSegmentParams::setStaticStreaming(bool newStaticStreaming) { + m_staticStreaming = newStaticStreaming; +} + +bool GetHlsAudioSegmentParams::staticStreamingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_staticStreaming.has_value(); +} + +void GetHlsAudioSegmentParams::setStaticStreamingNull() { + m_staticStreaming = std::nullopt; +} + + +const QJsonObject &GetHlsAudioSegmentParams::streamOptions() const { + return m_streamOptions; +} + +void GetHlsAudioSegmentParams::setStreamOptions(QJsonObject newStreamOptions) { + m_streamOptions = newStreamOptions; +} + +bool GetHlsAudioSegmentParams::streamOptionsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_streamOptions.isEmpty(); +} + +void GetHlsAudioSegmentParams::setStreamOptionsNull() { + m_streamOptions= QJsonObject(); +} + + +const QString &GetHlsAudioSegmentParams::subtitleCodec() const { + return m_subtitleCodec; +} + +void GetHlsAudioSegmentParams::setSubtitleCodec(QString newSubtitleCodec) { + m_subtitleCodec = newSubtitleCodec; +} + +bool GetHlsAudioSegmentParams::subtitleCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleCodec.isNull(); +} + +void GetHlsAudioSegmentParams::setSubtitleCodecNull() { + m_subtitleCodec.clear(); +} + + +const SubtitleDeliveryMethod &GetHlsAudioSegmentParams::subtitleMethod() const { + return m_subtitleMethod; +} + +void GetHlsAudioSegmentParams::setSubtitleMethod(SubtitleDeliveryMethod newSubtitleMethod) { + m_subtitleMethod = newSubtitleMethod; +} + +bool GetHlsAudioSegmentParams::subtitleMethodNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleMethod== SubtitleDeliveryMethod::EnumNotSet; +} + +void GetHlsAudioSegmentParams::setSubtitleMethodNull() { + m_subtitleMethod= SubtitleDeliveryMethod::EnumNotSet; +} + + +const qint32 &GetHlsAudioSegmentParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void GetHlsAudioSegmentParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool GetHlsAudioSegmentParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void GetHlsAudioSegmentParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const QString &GetHlsAudioSegmentParams::tag() const { + return m_tag; +} + +void GetHlsAudioSegmentParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetHlsAudioSegmentParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetHlsAudioSegmentParams::setTagNull() { + m_tag.clear(); +} + + +const QString &GetHlsAudioSegmentParams::transcodeReasons() const { + return m_transcodeReasons; +} + +void GetHlsAudioSegmentParams::setTranscodeReasons(QString newTranscodeReasons) { + m_transcodeReasons = newTranscodeReasons; +} + +bool GetHlsAudioSegmentParams::transcodeReasonsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodeReasons.isNull(); +} + +void GetHlsAudioSegmentParams::setTranscodeReasonsNull() { + m_transcodeReasons.clear(); +} + + +const qint32 &GetHlsAudioSegmentParams::transcodingMaxAudioChannels() const { + return m_transcodingMaxAudioChannels.value(); +} + +void GetHlsAudioSegmentParams::setTranscodingMaxAudioChannels(qint32 newTranscodingMaxAudioChannels) { + m_transcodingMaxAudioChannels = newTranscodingMaxAudioChannels; +} + +bool GetHlsAudioSegmentParams::transcodingMaxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_transcodingMaxAudioChannels.has_value(); +} + +void GetHlsAudioSegmentParams::setTranscodingMaxAudioChannelsNull() { + m_transcodingMaxAudioChannels = std::nullopt; +} + + +const qint32 &GetHlsAudioSegmentParams::videoBitRate() const { + return m_videoBitRate.value(); +} + +void GetHlsAudioSegmentParams::setVideoBitRate(qint32 newVideoBitRate) { + m_videoBitRate = newVideoBitRate; +} + +bool GetHlsAudioSegmentParams::videoBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoBitRate.has_value(); +} + +void GetHlsAudioSegmentParams::setVideoBitRateNull() { + m_videoBitRate = std::nullopt; +} + + +const QString &GetHlsAudioSegmentParams::videoCodec() const { + return m_videoCodec; +} + +void GetHlsAudioSegmentParams::setVideoCodec(QString newVideoCodec) { + m_videoCodec = newVideoCodec; +} + +bool GetHlsAudioSegmentParams::videoCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoCodec.isNull(); +} + +void GetHlsAudioSegmentParams::setVideoCodecNull() { + m_videoCodec.clear(); +} + + +const qint32 &GetHlsAudioSegmentParams::videoStreamIndex() const { + return m_videoStreamIndex.value(); +} + +void GetHlsAudioSegmentParams::setVideoStreamIndex(qint32 newVideoStreamIndex) { + m_videoStreamIndex = newVideoStreamIndex; +} + +bool GetHlsAudioSegmentParams::videoStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoStreamIndex.has_value(); +} + +void GetHlsAudioSegmentParams::setVideoStreamIndexNull() { + m_videoStreamIndex = std::nullopt; +} + + +const qint32 &GetHlsAudioSegmentParams::width() const { + return m_width.value(); +} + +void GetHlsAudioSegmentParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetHlsAudioSegmentParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetHlsAudioSegmentParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/gethlsplaylistlegacyparams.cpp b/core/src/loader/gethlsplaylistlegacyparams.cpp new file mode 100644 index 0000000..dfa914c --- /dev/null +++ b/core/src/loader/gethlsplaylistlegacyparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/gethlsplaylistlegacyparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetHlsPlaylistLegacyParams + +const QString &GetHlsPlaylistLegacyParams::itemId() const { + return m_itemId; +} + +void GetHlsPlaylistLegacyParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &GetHlsPlaylistLegacyParams::playlistId() const { + return m_playlistId; +} + +void GetHlsPlaylistLegacyParams::setPlaylistId(QString newPlaylistId) { + m_playlistId = newPlaylistId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/setplaylistitemrequestdto.h b/core/src/loader/gethlsvideosegmentlegacyparams.cpp similarity index 59% rename from core/include/JellyfinQt/DTO/setplaylistitemrequestdto.h rename to core/src/loader/gethlsvideosegmentlegacyparams.cpp index 0d89de7..089bdae 100644 --- a/core/include/JellyfinQt/DTO/setplaylistitemrequestdto.h +++ b/core/src/loader/gethlsvideosegmentlegacyparams.cpp @@ -27,42 +27,51 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_SETPLAYLISTITEMREQUESTDTO_H -#define JELLYFIN_DTO_SETPLAYLISTITEMREQUESTDTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/gethlsvideosegmentlegacyparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetHlsVideoSegmentLegacyParams + +const QString &GetHlsVideoSegmentLegacyParams::itemId() const { + return m_itemId; +} + +void GetHlsVideoSegmentLegacyParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} -class SetPlaylistItemRequestDto { -public:SetPlaylistItemRequestDto();SetPlaylistItemRequestDto(const SetPlaylistItemRequestDto &other); - - static SetPlaylistItemRequestDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the playlist identifier of the playing item. - */ - QUuid playlistItemId() const; - /** - * @brief Gets or sets the playlist identifier of the playing item. - */ - void setPlaylistItemId(QUuid newPlaylistItemId); +const QString &GetHlsVideoSegmentLegacyParams::playlistId() const { + return m_playlistId; +} -protected: - QUuid m_playlistItemId; -}; +void GetHlsVideoSegmentLegacyParams::setPlaylistId(QString newPlaylistId) { + m_playlistId = newPlaylistId; +} + +const QString &GetHlsVideoSegmentLegacyParams::segmentContainer() const { + return m_segmentContainer; +} + +void GetHlsVideoSegmentLegacyParams::setSegmentContainer(QString newSegmentContainer) { + m_segmentContainer = newSegmentContainer; +} + + +const QString &GetHlsVideoSegmentLegacyParams::segmentId() const { + return m_segmentId; +} + +void GetHlsVideoSegmentLegacyParams::setSegmentId(QString newSegmentId) { + m_segmentId = newSegmentId; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SETPLAYLISTITEMREQUESTDTO_H diff --git a/core/src/loader/gethlsvideosegmentparams.cpp b/core/src/loader/gethlsvideosegmentparams.cpp new file mode 100644 index 0000000..8f2145c --- /dev/null +++ b/core/src/loader/gethlsvideosegmentparams.cpp @@ -0,0 +1,1064 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/gethlsvideosegmentparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetHlsVideoSegmentParams + +const QString &GetHlsVideoSegmentParams::container() const { + return m_container; +} + +void GetHlsVideoSegmentParams::setContainer(QString newContainer) { + m_container = newContainer; +} + + +const QString &GetHlsVideoSegmentParams::itemId() const { + return m_itemId; +} + +void GetHlsVideoSegmentParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &GetHlsVideoSegmentParams::playlistId() const { + return m_playlistId; +} + +void GetHlsVideoSegmentParams::setPlaylistId(QString newPlaylistId) { + m_playlistId = newPlaylistId; +} + + +const qint32 &GetHlsVideoSegmentParams::segmentId() const { + return m_segmentId; +} + +void GetHlsVideoSegmentParams::setSegmentId(qint32 newSegmentId) { + m_segmentId = newSegmentId; +} + + +const bool &GetHlsVideoSegmentParams::allowAudioStreamCopy() const { + return m_allowAudioStreamCopy.value(); +} + +void GetHlsVideoSegmentParams::setAllowAudioStreamCopy(bool newAllowAudioStreamCopy) { + m_allowAudioStreamCopy = newAllowAudioStreamCopy; +} + +bool GetHlsVideoSegmentParams::allowAudioStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowAudioStreamCopy.has_value(); +} + +void GetHlsVideoSegmentParams::setAllowAudioStreamCopyNull() { + m_allowAudioStreamCopy = std::nullopt; +} + + +const bool &GetHlsVideoSegmentParams::allowVideoStreamCopy() const { + return m_allowVideoStreamCopy.value(); +} + +void GetHlsVideoSegmentParams::setAllowVideoStreamCopy(bool newAllowVideoStreamCopy) { + m_allowVideoStreamCopy = newAllowVideoStreamCopy; +} + +bool GetHlsVideoSegmentParams::allowVideoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowVideoStreamCopy.has_value(); +} + +void GetHlsVideoSegmentParams::setAllowVideoStreamCopyNull() { + m_allowVideoStreamCopy = std::nullopt; +} + + +const qint32 &GetHlsVideoSegmentParams::audioBitRate() const { + return m_audioBitRate.value(); +} + +void GetHlsVideoSegmentParams::setAudioBitRate(qint32 newAudioBitRate) { + m_audioBitRate = newAudioBitRate; +} + +bool GetHlsVideoSegmentParams::audioBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioBitRate.has_value(); +} + +void GetHlsVideoSegmentParams::setAudioBitRateNull() { + m_audioBitRate = std::nullopt; +} + + +const qint32 &GetHlsVideoSegmentParams::audioChannels() const { + return m_audioChannels.value(); +} + +void GetHlsVideoSegmentParams::setAudioChannels(qint32 newAudioChannels) { + m_audioChannels = newAudioChannels; +} + +bool GetHlsVideoSegmentParams::audioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioChannels.has_value(); +} + +void GetHlsVideoSegmentParams::setAudioChannelsNull() { + m_audioChannels = std::nullopt; +} + + +const QString &GetHlsVideoSegmentParams::audioCodec() const { + return m_audioCodec; +} + +void GetHlsVideoSegmentParams::setAudioCodec(QString newAudioCodec) { + m_audioCodec = newAudioCodec; +} + +bool GetHlsVideoSegmentParams::audioCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_audioCodec.isNull(); +} + +void GetHlsVideoSegmentParams::setAudioCodecNull() { + m_audioCodec.clear(); +} + + +const qint32 &GetHlsVideoSegmentParams::audioSampleRate() const { + return m_audioSampleRate.value(); +} + +void GetHlsVideoSegmentParams::setAudioSampleRate(qint32 newAudioSampleRate) { + m_audioSampleRate = newAudioSampleRate; +} + +bool GetHlsVideoSegmentParams::audioSampleRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioSampleRate.has_value(); +} + +void GetHlsVideoSegmentParams::setAudioSampleRateNull() { + m_audioSampleRate = std::nullopt; +} + + +const qint32 &GetHlsVideoSegmentParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void GetHlsVideoSegmentParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool GetHlsVideoSegmentParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void GetHlsVideoSegmentParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &GetHlsVideoSegmentParams::breakOnNonKeyFrames() const { + return m_breakOnNonKeyFrames.value(); +} + +void GetHlsVideoSegmentParams::setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames) { + m_breakOnNonKeyFrames = newBreakOnNonKeyFrames; +} + +bool GetHlsVideoSegmentParams::breakOnNonKeyFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_breakOnNonKeyFrames.has_value(); +} + +void GetHlsVideoSegmentParams::setBreakOnNonKeyFramesNull() { + m_breakOnNonKeyFrames = std::nullopt; +} + + +const EncodingContext &GetHlsVideoSegmentParams::context() const { + return m_context; +} + +void GetHlsVideoSegmentParams::setContext(EncodingContext newContext) { + m_context = newContext; +} + +bool GetHlsVideoSegmentParams::contextNull() const { + // Nullable: true + // Type Nullable: true + + + return m_context== EncodingContext::EnumNotSet; +} + +void GetHlsVideoSegmentParams::setContextNull() { + m_context= EncodingContext::EnumNotSet; +} + + +const bool &GetHlsVideoSegmentParams::copyTimestamps() const { + return m_copyTimestamps.value(); +} + +void GetHlsVideoSegmentParams::setCopyTimestamps(bool newCopyTimestamps) { + m_copyTimestamps = newCopyTimestamps; +} + +bool GetHlsVideoSegmentParams::copyTimestampsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_copyTimestamps.has_value(); +} + +void GetHlsVideoSegmentParams::setCopyTimestampsNull() { + m_copyTimestamps = std::nullopt; +} + + +const qint32 &GetHlsVideoSegmentParams::cpuCoreLimit() const { + return m_cpuCoreLimit.value(); +} + +void GetHlsVideoSegmentParams::setCpuCoreLimit(qint32 newCpuCoreLimit) { + m_cpuCoreLimit = newCpuCoreLimit; +} + +bool GetHlsVideoSegmentParams::cpuCoreLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cpuCoreLimit.has_value(); +} + +void GetHlsVideoSegmentParams::setCpuCoreLimitNull() { + m_cpuCoreLimit = std::nullopt; +} + + +const bool &GetHlsVideoSegmentParams::deInterlace() const { + return m_deInterlace.value(); +} + +void GetHlsVideoSegmentParams::setDeInterlace(bool newDeInterlace) { + m_deInterlace = newDeInterlace; +} + +bool GetHlsVideoSegmentParams::deInterlaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_deInterlace.has_value(); +} + +void GetHlsVideoSegmentParams::setDeInterlaceNull() { + m_deInterlace = std::nullopt; +} + + +const QString &GetHlsVideoSegmentParams::deviceId() const { + return m_deviceId; +} + +void GetHlsVideoSegmentParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool GetHlsVideoSegmentParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void GetHlsVideoSegmentParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const QString &GetHlsVideoSegmentParams::deviceProfileId() const { + return m_deviceProfileId; +} + +void GetHlsVideoSegmentParams::setDeviceProfileId(QString newDeviceProfileId) { + m_deviceProfileId = newDeviceProfileId; +} + +bool GetHlsVideoSegmentParams::deviceProfileIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceProfileId.isNull(); +} + +void GetHlsVideoSegmentParams::setDeviceProfileIdNull() { + m_deviceProfileId.clear(); +} + + +const bool &GetHlsVideoSegmentParams::enableAutoStreamCopy() const { + return m_enableAutoStreamCopy.value(); +} + +void GetHlsVideoSegmentParams::setEnableAutoStreamCopy(bool newEnableAutoStreamCopy) { + m_enableAutoStreamCopy = newEnableAutoStreamCopy; +} + +bool GetHlsVideoSegmentParams::enableAutoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableAutoStreamCopy.has_value(); +} + +void GetHlsVideoSegmentParams::setEnableAutoStreamCopyNull() { + m_enableAutoStreamCopy = std::nullopt; +} + + +const bool &GetHlsVideoSegmentParams::enableMpegtsM2TsMode() const { + return m_enableMpegtsM2TsMode.value(); +} + +void GetHlsVideoSegmentParams::setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode) { + m_enableMpegtsM2TsMode = newEnableMpegtsM2TsMode; +} + +bool GetHlsVideoSegmentParams::enableMpegtsM2TsModeNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableMpegtsM2TsMode.has_value(); +} + +void GetHlsVideoSegmentParams::setEnableMpegtsM2TsModeNull() { + m_enableMpegtsM2TsMode = std::nullopt; +} + + +const float &GetHlsVideoSegmentParams::framerate() const { + return m_framerate.value(); +} + +void GetHlsVideoSegmentParams::setFramerate(float newFramerate) { + m_framerate = newFramerate; +} + +bool GetHlsVideoSegmentParams::framerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_framerate.has_value(); +} + +void GetHlsVideoSegmentParams::setFramerateNull() { + m_framerate = std::nullopt; +} + + +const qint32 &GetHlsVideoSegmentParams::height() const { + return m_height.value(); +} + +void GetHlsVideoSegmentParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetHlsVideoSegmentParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetHlsVideoSegmentParams::setHeightNull() { + m_height = std::nullopt; +} + + +const QString &GetHlsVideoSegmentParams::level() const { + return m_level; +} + +void GetHlsVideoSegmentParams::setLevel(QString newLevel) { + m_level = newLevel; +} + +bool GetHlsVideoSegmentParams::levelNull() const { + // Nullable: true + // Type Nullable: true + + + return m_level.isNull(); +} + +void GetHlsVideoSegmentParams::setLevelNull() { + m_level.clear(); +} + + +const QString &GetHlsVideoSegmentParams::liveStreamId() const { + return m_liveStreamId; +} + +void GetHlsVideoSegmentParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool GetHlsVideoSegmentParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void GetHlsVideoSegmentParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const qint32 &GetHlsVideoSegmentParams::maxAudioBitDepth() const { + return m_maxAudioBitDepth.value(); +} + +void GetHlsVideoSegmentParams::setMaxAudioBitDepth(qint32 newMaxAudioBitDepth) { + m_maxAudioBitDepth = newMaxAudioBitDepth; +} + +bool GetHlsVideoSegmentParams::maxAudioBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioBitDepth.has_value(); +} + +void GetHlsVideoSegmentParams::setMaxAudioBitDepthNull() { + m_maxAudioBitDepth = std::nullopt; +} + + +const qint32 &GetHlsVideoSegmentParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void GetHlsVideoSegmentParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool GetHlsVideoSegmentParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void GetHlsVideoSegmentParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const float &GetHlsVideoSegmentParams::maxFramerate() const { + return m_maxFramerate.value(); +} + +void GetHlsVideoSegmentParams::setMaxFramerate(float newMaxFramerate) { + m_maxFramerate = newMaxFramerate; +} + +bool GetHlsVideoSegmentParams::maxFramerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxFramerate.has_value(); +} + +void GetHlsVideoSegmentParams::setMaxFramerateNull() { + m_maxFramerate = std::nullopt; +} + + +const qint32 &GetHlsVideoSegmentParams::maxRefFrames() const { + return m_maxRefFrames.value(); +} + +void GetHlsVideoSegmentParams::setMaxRefFrames(qint32 newMaxRefFrames) { + m_maxRefFrames = newMaxRefFrames; +} + +bool GetHlsVideoSegmentParams::maxRefFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxRefFrames.has_value(); +} + +void GetHlsVideoSegmentParams::setMaxRefFramesNull() { + m_maxRefFrames = std::nullopt; +} + + +const qint32 &GetHlsVideoSegmentParams::maxVideoBitDepth() const { + return m_maxVideoBitDepth.value(); +} + +void GetHlsVideoSegmentParams::setMaxVideoBitDepth(qint32 newMaxVideoBitDepth) { + m_maxVideoBitDepth = newMaxVideoBitDepth; +} + +bool GetHlsVideoSegmentParams::maxVideoBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxVideoBitDepth.has_value(); +} + +void GetHlsVideoSegmentParams::setMaxVideoBitDepthNull() { + m_maxVideoBitDepth = std::nullopt; +} + + +const QString &GetHlsVideoSegmentParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void GetHlsVideoSegmentParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + +bool GetHlsVideoSegmentParams::mediaSourceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaSourceId.isNull(); +} + +void GetHlsVideoSegmentParams::setMediaSourceIdNull() { + m_mediaSourceId.clear(); +} + + +const qint32 &GetHlsVideoSegmentParams::minSegments() const { + return m_minSegments.value(); +} + +void GetHlsVideoSegmentParams::setMinSegments(qint32 newMinSegments) { + m_minSegments = newMinSegments; +} + +bool GetHlsVideoSegmentParams::minSegmentsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minSegments.has_value(); +} + +void GetHlsVideoSegmentParams::setMinSegmentsNull() { + m_minSegments = std::nullopt; +} + + +const QString &GetHlsVideoSegmentParams::params() const { + return m_params; +} + +void GetHlsVideoSegmentParams::setParams(QString newParams) { + m_params = newParams; +} + +bool GetHlsVideoSegmentParams::paramsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_params.isNull(); +} + +void GetHlsVideoSegmentParams::setParamsNull() { + m_params.clear(); +} + + +const QString &GetHlsVideoSegmentParams::playSessionId() const { + return m_playSessionId; +} + +void GetHlsVideoSegmentParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool GetHlsVideoSegmentParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void GetHlsVideoSegmentParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const QString &GetHlsVideoSegmentParams::profile() const { + return m_profile; +} + +void GetHlsVideoSegmentParams::setProfile(QString newProfile) { + m_profile = newProfile; +} + +bool GetHlsVideoSegmentParams::profileNull() const { + // Nullable: true + // Type Nullable: true + + + return m_profile.isNull(); +} + +void GetHlsVideoSegmentParams::setProfileNull() { + m_profile.clear(); +} + + +const bool &GetHlsVideoSegmentParams::requireAvc() const { + return m_requireAvc.value(); +} + +void GetHlsVideoSegmentParams::setRequireAvc(bool newRequireAvc) { + m_requireAvc = newRequireAvc; +} + +bool GetHlsVideoSegmentParams::requireAvcNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireAvc.has_value(); +} + +void GetHlsVideoSegmentParams::setRequireAvcNull() { + m_requireAvc = std::nullopt; +} + + +const bool &GetHlsVideoSegmentParams::requireNonAnamorphic() const { + return m_requireNonAnamorphic.value(); +} + +void GetHlsVideoSegmentParams::setRequireNonAnamorphic(bool newRequireNonAnamorphic) { + m_requireNonAnamorphic = newRequireNonAnamorphic; +} + +bool GetHlsVideoSegmentParams::requireNonAnamorphicNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireNonAnamorphic.has_value(); +} + +void GetHlsVideoSegmentParams::setRequireNonAnamorphicNull() { + m_requireNonAnamorphic = std::nullopt; +} + + +const QString &GetHlsVideoSegmentParams::segmentContainer() const { + return m_segmentContainer; +} + +void GetHlsVideoSegmentParams::setSegmentContainer(QString newSegmentContainer) { + m_segmentContainer = newSegmentContainer; +} + +bool GetHlsVideoSegmentParams::segmentContainerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_segmentContainer.isNull(); +} + +void GetHlsVideoSegmentParams::setSegmentContainerNull() { + m_segmentContainer.clear(); +} + + +const qint32 &GetHlsVideoSegmentParams::segmentLength() const { + return m_segmentLength.value(); +} + +void GetHlsVideoSegmentParams::setSegmentLength(qint32 newSegmentLength) { + m_segmentLength = newSegmentLength; +} + +bool GetHlsVideoSegmentParams::segmentLengthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_segmentLength.has_value(); +} + +void GetHlsVideoSegmentParams::setSegmentLengthNull() { + m_segmentLength = std::nullopt; +} + + +const qint64 &GetHlsVideoSegmentParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void GetHlsVideoSegmentParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool GetHlsVideoSegmentParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void GetHlsVideoSegmentParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const bool &GetHlsVideoSegmentParams::staticStreaming() const { + return m_staticStreaming.value(); +} + +void GetHlsVideoSegmentParams::setStaticStreaming(bool newStaticStreaming) { + m_staticStreaming = newStaticStreaming; +} + +bool GetHlsVideoSegmentParams::staticStreamingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_staticStreaming.has_value(); +} + +void GetHlsVideoSegmentParams::setStaticStreamingNull() { + m_staticStreaming = std::nullopt; +} + + +const QJsonObject &GetHlsVideoSegmentParams::streamOptions() const { + return m_streamOptions; +} + +void GetHlsVideoSegmentParams::setStreamOptions(QJsonObject newStreamOptions) { + m_streamOptions = newStreamOptions; +} + +bool GetHlsVideoSegmentParams::streamOptionsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_streamOptions.isEmpty(); +} + +void GetHlsVideoSegmentParams::setStreamOptionsNull() { + m_streamOptions= QJsonObject(); +} + + +const QString &GetHlsVideoSegmentParams::subtitleCodec() const { + return m_subtitleCodec; +} + +void GetHlsVideoSegmentParams::setSubtitleCodec(QString newSubtitleCodec) { + m_subtitleCodec = newSubtitleCodec; +} + +bool GetHlsVideoSegmentParams::subtitleCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleCodec.isNull(); +} + +void GetHlsVideoSegmentParams::setSubtitleCodecNull() { + m_subtitleCodec.clear(); +} + + +const SubtitleDeliveryMethod &GetHlsVideoSegmentParams::subtitleMethod() const { + return m_subtitleMethod; +} + +void GetHlsVideoSegmentParams::setSubtitleMethod(SubtitleDeliveryMethod newSubtitleMethod) { + m_subtitleMethod = newSubtitleMethod; +} + +bool GetHlsVideoSegmentParams::subtitleMethodNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleMethod== SubtitleDeliveryMethod::EnumNotSet; +} + +void GetHlsVideoSegmentParams::setSubtitleMethodNull() { + m_subtitleMethod= SubtitleDeliveryMethod::EnumNotSet; +} + + +const qint32 &GetHlsVideoSegmentParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void GetHlsVideoSegmentParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool GetHlsVideoSegmentParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void GetHlsVideoSegmentParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const QString &GetHlsVideoSegmentParams::tag() const { + return m_tag; +} + +void GetHlsVideoSegmentParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetHlsVideoSegmentParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetHlsVideoSegmentParams::setTagNull() { + m_tag.clear(); +} + + +const QString &GetHlsVideoSegmentParams::transcodeReasons() const { + return m_transcodeReasons; +} + +void GetHlsVideoSegmentParams::setTranscodeReasons(QString newTranscodeReasons) { + m_transcodeReasons = newTranscodeReasons; +} + +bool GetHlsVideoSegmentParams::transcodeReasonsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodeReasons.isNull(); +} + +void GetHlsVideoSegmentParams::setTranscodeReasonsNull() { + m_transcodeReasons.clear(); +} + + +const qint32 &GetHlsVideoSegmentParams::transcodingMaxAudioChannels() const { + return m_transcodingMaxAudioChannels.value(); +} + +void GetHlsVideoSegmentParams::setTranscodingMaxAudioChannels(qint32 newTranscodingMaxAudioChannels) { + m_transcodingMaxAudioChannels = newTranscodingMaxAudioChannels; +} + +bool GetHlsVideoSegmentParams::transcodingMaxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_transcodingMaxAudioChannels.has_value(); +} + +void GetHlsVideoSegmentParams::setTranscodingMaxAudioChannelsNull() { + m_transcodingMaxAudioChannels = std::nullopt; +} + + +const qint32 &GetHlsVideoSegmentParams::videoBitRate() const { + return m_videoBitRate.value(); +} + +void GetHlsVideoSegmentParams::setVideoBitRate(qint32 newVideoBitRate) { + m_videoBitRate = newVideoBitRate; +} + +bool GetHlsVideoSegmentParams::videoBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoBitRate.has_value(); +} + +void GetHlsVideoSegmentParams::setVideoBitRateNull() { + m_videoBitRate = std::nullopt; +} + + +const QString &GetHlsVideoSegmentParams::videoCodec() const { + return m_videoCodec; +} + +void GetHlsVideoSegmentParams::setVideoCodec(QString newVideoCodec) { + m_videoCodec = newVideoCodec; +} + +bool GetHlsVideoSegmentParams::videoCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoCodec.isNull(); +} + +void GetHlsVideoSegmentParams::setVideoCodecNull() { + m_videoCodec.clear(); +} + + +const qint32 &GetHlsVideoSegmentParams::videoStreamIndex() const { + return m_videoStreamIndex.value(); +} + +void GetHlsVideoSegmentParams::setVideoStreamIndex(qint32 newVideoStreamIndex) { + m_videoStreamIndex = newVideoStreamIndex; +} + +bool GetHlsVideoSegmentParams::videoStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoStreamIndex.has_value(); +} + +void GetHlsVideoSegmentParams::setVideoStreamIndexNull() { + m_videoStreamIndex = std::nullopt; +} + + +const qint32 &GetHlsVideoSegmentParams::width() const { + return m_width.value(); +} + +void GetHlsVideoSegmentParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetHlsVideoSegmentParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetHlsVideoSegmentParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/geticonidparams.cpp b/core/src/loader/geticonidparams.cpp new file mode 100644 index 0000000..a4fc8c8 --- /dev/null +++ b/core/src/loader/geticonidparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/geticonidparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetIconIdParams + +const QString &GetIconIdParams::fileName() const { + return m_fileName; +} + +void GetIconIdParams::setFileName(QString newFileName) { + m_fileName = newFileName; +} + + +const QString &GetIconIdParams::serverId() const { + return m_serverId; +} + +void GetIconIdParams::setServerId(QString newServerId) { + m_serverId = newServerId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/geticonparams.cpp b/core/src/loader/geticonparams.cpp new file mode 100644 index 0000000..b4ce21f --- /dev/null +++ b/core/src/loader/geticonparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/geticonparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetIconParams + +const QString &GetIconParams::fileName() const { + return m_fileName; +} + +void GetIconParams::setFileName(QString newFileName) { + m_fileName = newFileName; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getinstantmixfromalbumparams.cpp b/core/src/loader/getinstantmixfromalbumparams.cpp new file mode 100644 index 0000000..b13adb1 --- /dev/null +++ b/core/src/loader/getinstantmixfromalbumparams.cpp @@ -0,0 +1,197 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getinstantmixfromalbumparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetInstantMixFromAlbumParams + +const QString &GetInstantMixFromAlbumParams::jellyfinId() const { + return m_jellyfinId; +} + +void GetInstantMixFromAlbumParams::setJellyfinId(QString newJellyfinId) { + m_jellyfinId = newJellyfinId; +} + + +const QList &GetInstantMixFromAlbumParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetInstantMixFromAlbumParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetInstantMixFromAlbumParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetInstantMixFromAlbumParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetInstantMixFromAlbumParams::enableImages() const { + return m_enableImages.value(); +} + +void GetInstantMixFromAlbumParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetInstantMixFromAlbumParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetInstantMixFromAlbumParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetInstantMixFromAlbumParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetInstantMixFromAlbumParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetInstantMixFromAlbumParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetInstantMixFromAlbumParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QList &GetInstantMixFromAlbumParams::fields() const { + return m_fields; +} + +void GetInstantMixFromAlbumParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetInstantMixFromAlbumParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetInstantMixFromAlbumParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetInstantMixFromAlbumParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetInstantMixFromAlbumParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetInstantMixFromAlbumParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetInstantMixFromAlbumParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const qint32 &GetInstantMixFromAlbumParams::limit() const { + return m_limit.value(); +} + +void GetInstantMixFromAlbumParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetInstantMixFromAlbumParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetInstantMixFromAlbumParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetInstantMixFromAlbumParams::userId() const { + return m_userId; +} + +void GetInstantMixFromAlbumParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetInstantMixFromAlbumParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetInstantMixFromAlbumParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getinstantmixfromartistsparams.cpp b/core/src/loader/getinstantmixfromartistsparams.cpp new file mode 100644 index 0000000..815a701 --- /dev/null +++ b/core/src/loader/getinstantmixfromartistsparams.cpp @@ -0,0 +1,197 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getinstantmixfromartistsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetInstantMixFromArtistsParams + +const QString &GetInstantMixFromArtistsParams::jellyfinId() const { + return m_jellyfinId; +} + +void GetInstantMixFromArtistsParams::setJellyfinId(QString newJellyfinId) { + m_jellyfinId = newJellyfinId; +} + + +const QList &GetInstantMixFromArtistsParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetInstantMixFromArtistsParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetInstantMixFromArtistsParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetInstantMixFromArtistsParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetInstantMixFromArtistsParams::enableImages() const { + return m_enableImages.value(); +} + +void GetInstantMixFromArtistsParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetInstantMixFromArtistsParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetInstantMixFromArtistsParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetInstantMixFromArtistsParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetInstantMixFromArtistsParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetInstantMixFromArtistsParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetInstantMixFromArtistsParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QList &GetInstantMixFromArtistsParams::fields() const { + return m_fields; +} + +void GetInstantMixFromArtistsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetInstantMixFromArtistsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetInstantMixFromArtistsParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetInstantMixFromArtistsParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetInstantMixFromArtistsParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetInstantMixFromArtistsParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetInstantMixFromArtistsParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const qint32 &GetInstantMixFromArtistsParams::limit() const { + return m_limit.value(); +} + +void GetInstantMixFromArtistsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetInstantMixFromArtistsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetInstantMixFromArtistsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetInstantMixFromArtistsParams::userId() const { + return m_userId; +} + +void GetInstantMixFromArtistsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetInstantMixFromArtistsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetInstantMixFromArtistsParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getinstantmixfromitemparams.cpp b/core/src/loader/getinstantmixfromitemparams.cpp new file mode 100644 index 0000000..774e0de --- /dev/null +++ b/core/src/loader/getinstantmixfromitemparams.cpp @@ -0,0 +1,197 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getinstantmixfromitemparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetInstantMixFromItemParams + +const QString &GetInstantMixFromItemParams::jellyfinId() const { + return m_jellyfinId; +} + +void GetInstantMixFromItemParams::setJellyfinId(QString newJellyfinId) { + m_jellyfinId = newJellyfinId; +} + + +const QList &GetInstantMixFromItemParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetInstantMixFromItemParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetInstantMixFromItemParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetInstantMixFromItemParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetInstantMixFromItemParams::enableImages() const { + return m_enableImages.value(); +} + +void GetInstantMixFromItemParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetInstantMixFromItemParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetInstantMixFromItemParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetInstantMixFromItemParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetInstantMixFromItemParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetInstantMixFromItemParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetInstantMixFromItemParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QList &GetInstantMixFromItemParams::fields() const { + return m_fields; +} + +void GetInstantMixFromItemParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetInstantMixFromItemParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetInstantMixFromItemParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetInstantMixFromItemParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetInstantMixFromItemParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetInstantMixFromItemParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetInstantMixFromItemParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const qint32 &GetInstantMixFromItemParams::limit() const { + return m_limit.value(); +} + +void GetInstantMixFromItemParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetInstantMixFromItemParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetInstantMixFromItemParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetInstantMixFromItemParams::userId() const { + return m_userId; +} + +void GetInstantMixFromItemParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetInstantMixFromItemParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetInstantMixFromItemParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getinstantmixfrommusicgenreparams.cpp b/core/src/loader/getinstantmixfrommusicgenreparams.cpp new file mode 100644 index 0000000..beeaba2 --- /dev/null +++ b/core/src/loader/getinstantmixfrommusicgenreparams.cpp @@ -0,0 +1,197 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getinstantmixfrommusicgenreparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetInstantMixFromMusicGenreParams + +const QString &GetInstantMixFromMusicGenreParams::name() const { + return m_name; +} + +void GetInstantMixFromMusicGenreParams::setName(QString newName) { + m_name = newName; +} + + +const QList &GetInstantMixFromMusicGenreParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetInstantMixFromMusicGenreParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetInstantMixFromMusicGenreParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetInstantMixFromMusicGenreParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetInstantMixFromMusicGenreParams::enableImages() const { + return m_enableImages.value(); +} + +void GetInstantMixFromMusicGenreParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetInstantMixFromMusicGenreParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetInstantMixFromMusicGenreParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetInstantMixFromMusicGenreParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetInstantMixFromMusicGenreParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetInstantMixFromMusicGenreParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetInstantMixFromMusicGenreParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QList &GetInstantMixFromMusicGenreParams::fields() const { + return m_fields; +} + +void GetInstantMixFromMusicGenreParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetInstantMixFromMusicGenreParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetInstantMixFromMusicGenreParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetInstantMixFromMusicGenreParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetInstantMixFromMusicGenreParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetInstantMixFromMusicGenreParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetInstantMixFromMusicGenreParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const qint32 &GetInstantMixFromMusicGenreParams::limit() const { + return m_limit.value(); +} + +void GetInstantMixFromMusicGenreParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetInstantMixFromMusicGenreParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetInstantMixFromMusicGenreParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetInstantMixFromMusicGenreParams::userId() const { + return m_userId; +} + +void GetInstantMixFromMusicGenreParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetInstantMixFromMusicGenreParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetInstantMixFromMusicGenreParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getinstantmixfrommusicgenresparams.cpp b/core/src/loader/getinstantmixfrommusicgenresparams.cpp new file mode 100644 index 0000000..a1eea56 --- /dev/null +++ b/core/src/loader/getinstantmixfrommusicgenresparams.cpp @@ -0,0 +1,197 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getinstantmixfrommusicgenresparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetInstantMixFromMusicGenresParams + +const QString &GetInstantMixFromMusicGenresParams::jellyfinId() const { + return m_jellyfinId; +} + +void GetInstantMixFromMusicGenresParams::setJellyfinId(QString newJellyfinId) { + m_jellyfinId = newJellyfinId; +} + + +const QList &GetInstantMixFromMusicGenresParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetInstantMixFromMusicGenresParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetInstantMixFromMusicGenresParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetInstantMixFromMusicGenresParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetInstantMixFromMusicGenresParams::enableImages() const { + return m_enableImages.value(); +} + +void GetInstantMixFromMusicGenresParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetInstantMixFromMusicGenresParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetInstantMixFromMusicGenresParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetInstantMixFromMusicGenresParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetInstantMixFromMusicGenresParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetInstantMixFromMusicGenresParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetInstantMixFromMusicGenresParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QList &GetInstantMixFromMusicGenresParams::fields() const { + return m_fields; +} + +void GetInstantMixFromMusicGenresParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetInstantMixFromMusicGenresParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetInstantMixFromMusicGenresParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetInstantMixFromMusicGenresParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetInstantMixFromMusicGenresParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetInstantMixFromMusicGenresParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetInstantMixFromMusicGenresParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const qint32 &GetInstantMixFromMusicGenresParams::limit() const { + return m_limit.value(); +} + +void GetInstantMixFromMusicGenresParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetInstantMixFromMusicGenresParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetInstantMixFromMusicGenresParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetInstantMixFromMusicGenresParams::userId() const { + return m_userId; +} + +void GetInstantMixFromMusicGenresParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetInstantMixFromMusicGenresParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetInstantMixFromMusicGenresParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getinstantmixfromplaylistparams.cpp b/core/src/loader/getinstantmixfromplaylistparams.cpp new file mode 100644 index 0000000..1057350 --- /dev/null +++ b/core/src/loader/getinstantmixfromplaylistparams.cpp @@ -0,0 +1,197 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getinstantmixfromplaylistparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetInstantMixFromPlaylistParams + +const QString &GetInstantMixFromPlaylistParams::jellyfinId() const { + return m_jellyfinId; +} + +void GetInstantMixFromPlaylistParams::setJellyfinId(QString newJellyfinId) { + m_jellyfinId = newJellyfinId; +} + + +const QList &GetInstantMixFromPlaylistParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetInstantMixFromPlaylistParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetInstantMixFromPlaylistParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetInstantMixFromPlaylistParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetInstantMixFromPlaylistParams::enableImages() const { + return m_enableImages.value(); +} + +void GetInstantMixFromPlaylistParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetInstantMixFromPlaylistParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetInstantMixFromPlaylistParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetInstantMixFromPlaylistParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetInstantMixFromPlaylistParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetInstantMixFromPlaylistParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetInstantMixFromPlaylistParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QList &GetInstantMixFromPlaylistParams::fields() const { + return m_fields; +} + +void GetInstantMixFromPlaylistParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetInstantMixFromPlaylistParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetInstantMixFromPlaylistParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetInstantMixFromPlaylistParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetInstantMixFromPlaylistParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetInstantMixFromPlaylistParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetInstantMixFromPlaylistParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const qint32 &GetInstantMixFromPlaylistParams::limit() const { + return m_limit.value(); +} + +void GetInstantMixFromPlaylistParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetInstantMixFromPlaylistParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetInstantMixFromPlaylistParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetInstantMixFromPlaylistParams::userId() const { + return m_userId; +} + +void GetInstantMixFromPlaylistParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetInstantMixFromPlaylistParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetInstantMixFromPlaylistParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getinstantmixfromsongparams.cpp b/core/src/loader/getinstantmixfromsongparams.cpp new file mode 100644 index 0000000..3d6f0b6 --- /dev/null +++ b/core/src/loader/getinstantmixfromsongparams.cpp @@ -0,0 +1,197 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getinstantmixfromsongparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetInstantMixFromSongParams + +const QString &GetInstantMixFromSongParams::jellyfinId() const { + return m_jellyfinId; +} + +void GetInstantMixFromSongParams::setJellyfinId(QString newJellyfinId) { + m_jellyfinId = newJellyfinId; +} + + +const QList &GetInstantMixFromSongParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetInstantMixFromSongParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetInstantMixFromSongParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetInstantMixFromSongParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetInstantMixFromSongParams::enableImages() const { + return m_enableImages.value(); +} + +void GetInstantMixFromSongParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetInstantMixFromSongParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetInstantMixFromSongParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetInstantMixFromSongParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetInstantMixFromSongParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetInstantMixFromSongParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetInstantMixFromSongParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QList &GetInstantMixFromSongParams::fields() const { + return m_fields; +} + +void GetInstantMixFromSongParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetInstantMixFromSongParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetInstantMixFromSongParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetInstantMixFromSongParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetInstantMixFromSongParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetInstantMixFromSongParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetInstantMixFromSongParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const qint32 &GetInstantMixFromSongParams::limit() const { + return m_limit.value(); +} + +void GetInstantMixFromSongParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetInstantMixFromSongParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetInstantMixFromSongParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetInstantMixFromSongParams::userId() const { + return m_userId; +} + +void GetInstantMixFromSongParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetInstantMixFromSongParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetInstantMixFromSongParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/channeltype.h b/core/src/loader/getintrosparams.cpp similarity index 76% rename from core/include/JellyfinQt/DTO/channeltype.h rename to core/src/loader/getintrosparams.cpp index 191f299..d25995d 100644 --- a/core/include/JellyfinQt/DTO/channeltype.h +++ b/core/src/loader/getintrosparams.cpp @@ -27,34 +27,33 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_CHANNELTYPE_H -#define JELLYFIN_DTO_CHANNELTYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/getintrosparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { -class ChannelTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - TV, - Radio, - }; - Q_ENUM(Value) -private: - explicit ChannelTypeClass(); -}; +using namespace Jellyfin::DTO; -typedef ChannelTypeClass::Value ChannelType; +// GetIntrosParams +const QString &GetIntrosParams::itemId() const { + return m_itemId; +} + +void GetIntrosParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &GetIntrosParams::userId() const { + return m_userId; +} + +void GetIntrosParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_CHANNELTYPE_H diff --git a/core/include/JellyfinQt/DTO/generalcommand.h b/core/src/loader/getitemcountsparams.cpp similarity index 61% rename from core/include/JellyfinQt/DTO/generalcommand.h rename to core/src/loader/getitemcountsparams.cpp index fa67133..518340b 100644 --- a/core/include/JellyfinQt/DTO/generalcommand.h +++ b/core/src/loader/getitemcountsparams.cpp @@ -27,49 +27,57 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_GENERALCOMMAND_H -#define JELLYFIN_DTO_GENERALCOMMAND_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/generalcommandtype.h" -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/getitemcountsparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { +using namespace Jellyfin::DTO; -class GeneralCommand { -public:GeneralCommand();GeneralCommand(const GeneralCommand &other); +// GetItemCountsParams + +const bool &GetItemCountsParams::isFavorite() const { + return m_isFavorite.value(); +} + +void GetItemCountsParams::setIsFavorite(bool newIsFavorite) { + m_isFavorite = newIsFavorite; +} + +bool GetItemCountsParams::isFavoriteNull() const { + // Nullable: true + // Type Nullable: false - static GeneralCommand fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); + + return !m_isFavorite.has_value(); +} + +void GetItemCountsParams::setIsFavoriteNull() { + m_isFavorite = std::nullopt; +} + + +const QString &GetItemCountsParams::userId() const { + return m_userId; +} + +void GetItemCountsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetItemCountsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true - // Properties - GeneralCommandType name() const; + return m_userId.isNull(); +} - void setName(GeneralCommandType newName); +void GetItemCountsParams::setUserIdNull() { + m_userId.clear(); +} - QUuid controllingUserId() const; - void setControllingUserId(QUuid newControllingUserId); - - QJsonObject arguments() const; - - void setArguments(QJsonObject newArguments); - -protected: - GeneralCommandType m_name; - QUuid m_controllingUserId; - QJsonObject m_arguments; -}; +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_GENERALCOMMAND_H diff --git a/core/src/loader/getitemimage2params.cpp b/core/src/loader/getitemimage2params.cpp new file mode 100644 index 0000000..b6b79a0 --- /dev/null +++ b/core/src/loader/getitemimage2params.cpp @@ -0,0 +1,290 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getitemimage2params.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetItemImage2Params + +const ImageFormat &GetItemImage2Params::format() const { + return m_format; +} + +void GetItemImage2Params::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + + +const qint32 &GetItemImage2Params::imageIndex() const { + return m_imageIndex; +} + +void GetItemImage2Params::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + + +const ImageType &GetItemImage2Params::imageType() const { + return m_imageType; +} + +void GetItemImage2Params::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &GetItemImage2Params::itemId() const { + return m_itemId; +} + +void GetItemImage2Params::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const qint32 &GetItemImage2Params::maxHeight() const { + return m_maxHeight; +} + +void GetItemImage2Params::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + + +const qint32 &GetItemImage2Params::maxWidth() const { + return m_maxWidth; +} + +void GetItemImage2Params::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + + +const double &GetItemImage2Params::percentPlayed() const { + return m_percentPlayed; +} + +void GetItemImage2Params::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + + +const QString &GetItemImage2Params::tag() const { + return m_tag; +} + +void GetItemImage2Params::setTag(QString newTag) { + m_tag = newTag; +} + + +const qint32 &GetItemImage2Params::unplayedCount() const { + return m_unplayedCount; +} + +void GetItemImage2Params::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + + +const bool &GetItemImage2Params::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void GetItemImage2Params::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool GetItemImage2Params::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void GetItemImage2Params::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &GetItemImage2Params::backgroundColor() const { + return m_backgroundColor; +} + +void GetItemImage2Params::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool GetItemImage2Params::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void GetItemImage2Params::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &GetItemImage2Params::blur() const { + return m_blur.value(); +} + +void GetItemImage2Params::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool GetItemImage2Params::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void GetItemImage2Params::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &GetItemImage2Params::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void GetItemImage2Params::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool GetItemImage2Params::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void GetItemImage2Params::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &GetItemImage2Params::foregroundLayer() const { + return m_foregroundLayer; +} + +void GetItemImage2Params::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool GetItemImage2Params::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void GetItemImage2Params::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const qint32 &GetItemImage2Params::height() const { + return m_height.value(); +} + +void GetItemImage2Params::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetItemImage2Params::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetItemImage2Params::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &GetItemImage2Params::quality() const { + return m_quality.value(); +} + +void GetItemImage2Params::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool GetItemImage2Params::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void GetItemImage2Params::setQualityNull() { + m_quality = std::nullopt; +} + + +const qint32 &GetItemImage2Params::width() const { + return m_width.value(); +} + +void GetItemImage2Params::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetItemImage2Params::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetItemImage2Params::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getitemimagebyindexparams.cpp b/core/src/loader/getitemimagebyindexparams.cpp new file mode 100644 index 0000000..59fd742 --- /dev/null +++ b/core/src/loader/getitemimagebyindexparams.cpp @@ -0,0 +1,362 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getitemimagebyindexparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetItemImageByIndexParams + +const qint32 &GetItemImageByIndexParams::imageIndex() const { + return m_imageIndex; +} + +void GetItemImageByIndexParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + + +const ImageType &GetItemImageByIndexParams::imageType() const { + return m_imageType; +} + +void GetItemImageByIndexParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &GetItemImageByIndexParams::itemId() const { + return m_itemId; +} + +void GetItemImageByIndexParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const bool &GetItemImageByIndexParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void GetItemImageByIndexParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool GetItemImageByIndexParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void GetItemImageByIndexParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &GetItemImageByIndexParams::backgroundColor() const { + return m_backgroundColor; +} + +void GetItemImageByIndexParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool GetItemImageByIndexParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void GetItemImageByIndexParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &GetItemImageByIndexParams::blur() const { + return m_blur.value(); +} + +void GetItemImageByIndexParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool GetItemImageByIndexParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void GetItemImageByIndexParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &GetItemImageByIndexParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void GetItemImageByIndexParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool GetItemImageByIndexParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void GetItemImageByIndexParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &GetItemImageByIndexParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void GetItemImageByIndexParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool GetItemImageByIndexParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void GetItemImageByIndexParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &GetItemImageByIndexParams::format() const { + return m_format; +} + +void GetItemImageByIndexParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool GetItemImageByIndexParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void GetItemImageByIndexParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &GetItemImageByIndexParams::height() const { + return m_height.value(); +} + +void GetItemImageByIndexParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetItemImageByIndexParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetItemImageByIndexParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &GetItemImageByIndexParams::maxHeight() const { + return m_maxHeight.value(); +} + +void GetItemImageByIndexParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool GetItemImageByIndexParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void GetItemImageByIndexParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &GetItemImageByIndexParams::maxWidth() const { + return m_maxWidth.value(); +} + +void GetItemImageByIndexParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool GetItemImageByIndexParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void GetItemImageByIndexParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &GetItemImageByIndexParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void GetItemImageByIndexParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool GetItemImageByIndexParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void GetItemImageByIndexParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &GetItemImageByIndexParams::quality() const { + return m_quality.value(); +} + +void GetItemImageByIndexParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool GetItemImageByIndexParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void GetItemImageByIndexParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &GetItemImageByIndexParams::tag() const { + return m_tag; +} + +void GetItemImageByIndexParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetItemImageByIndexParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetItemImageByIndexParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &GetItemImageByIndexParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void GetItemImageByIndexParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool GetItemImageByIndexParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void GetItemImageByIndexParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &GetItemImageByIndexParams::width() const { + return m_width.value(); +} + +void GetItemImageByIndexParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetItemImageByIndexParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetItemImageByIndexParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getitemimageinfosparams.cpp b/core/src/loader/getitemimageinfosparams.cpp new file mode 100644 index 0000000..2a24f2e --- /dev/null +++ b/core/src/loader/getitemimageinfosparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getitemimageinfosparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetItemImageInfosParams + +const QString &GetItemImageInfosParams::itemId() const { + return m_itemId; +} + +void GetItemImageInfosParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getitemimageparams.cpp b/core/src/loader/getitemimageparams.cpp new file mode 100644 index 0000000..2e0da2e --- /dev/null +++ b/core/src/loader/getitemimageparams.cpp @@ -0,0 +1,374 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getitemimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetItemImageParams + +const ImageType &GetItemImageParams::imageType() const { + return m_imageType; +} + +void GetItemImageParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &GetItemImageParams::itemId() const { + return m_itemId; +} + +void GetItemImageParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const bool &GetItemImageParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void GetItemImageParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool GetItemImageParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void GetItemImageParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &GetItemImageParams::backgroundColor() const { + return m_backgroundColor; +} + +void GetItemImageParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool GetItemImageParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void GetItemImageParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &GetItemImageParams::blur() const { + return m_blur.value(); +} + +void GetItemImageParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool GetItemImageParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void GetItemImageParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &GetItemImageParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void GetItemImageParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool GetItemImageParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void GetItemImageParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &GetItemImageParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void GetItemImageParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool GetItemImageParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void GetItemImageParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &GetItemImageParams::format() const { + return m_format; +} + +void GetItemImageParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool GetItemImageParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void GetItemImageParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &GetItemImageParams::height() const { + return m_height.value(); +} + +void GetItemImageParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetItemImageParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetItemImageParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &GetItemImageParams::imageIndex() const { + return m_imageIndex.value(); +} + +void GetItemImageParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + +bool GetItemImageParams::imageIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageIndex.has_value(); +} + +void GetItemImageParams::setImageIndexNull() { + m_imageIndex = std::nullopt; +} + + +const qint32 &GetItemImageParams::maxHeight() const { + return m_maxHeight.value(); +} + +void GetItemImageParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool GetItemImageParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void GetItemImageParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &GetItemImageParams::maxWidth() const { + return m_maxWidth.value(); +} + +void GetItemImageParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool GetItemImageParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void GetItemImageParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &GetItemImageParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void GetItemImageParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool GetItemImageParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void GetItemImageParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &GetItemImageParams::quality() const { + return m_quality.value(); +} + +void GetItemImageParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool GetItemImageParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void GetItemImageParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &GetItemImageParams::tag() const { + return m_tag; +} + +void GetItemImageParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetItemImageParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetItemImageParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &GetItemImageParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void GetItemImageParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool GetItemImageParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void GetItemImageParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &GetItemImageParams::width() const { + return m_width.value(); +} + +void GetItemImageParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetItemImageParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetItemImageParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getitemparams.cpp b/core/src/loader/getitemparams.cpp new file mode 100644 index 0000000..d463b7c --- /dev/null +++ b/core/src/loader/getitemparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getitemparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetItemParams + +const QString &GetItemParams::itemId() const { + return m_itemId; +} + +void GetItemParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &GetItemParams::userId() const { + return m_userId; +} + +void GetItemParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getitemsbyuseridparams.cpp b/core/src/loader/getitemsbyuseridparams.cpp new file mode 100644 index 0000000..4c6621a --- /dev/null +++ b/core/src/loader/getitemsbyuseridparams.cpp @@ -0,0 +1,1709 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getitemsbyuseridparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetItemsByUserIdParams + +const QString &GetItemsByUserIdParams::userId() const { + return m_userId; +} + +void GetItemsByUserIdParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + +const QString &GetItemsByUserIdParams::adjacentTo() const { + return m_adjacentTo; +} + +void GetItemsByUserIdParams::setAdjacentTo(QString newAdjacentTo) { + m_adjacentTo = newAdjacentTo; +} + +bool GetItemsByUserIdParams::adjacentToNull() const { + // Nullable: true + // Type Nullable: true + + + return m_adjacentTo.isNull(); +} + +void GetItemsByUserIdParams::setAdjacentToNull() { + m_adjacentTo.clear(); +} + + +const QStringList &GetItemsByUserIdParams::albumArtistIds() const { + return m_albumArtistIds; +} + +void GetItemsByUserIdParams::setAlbumArtistIds(QStringList newAlbumArtistIds) { + m_albumArtistIds = newAlbumArtistIds; +} + +bool GetItemsByUserIdParams::albumArtistIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_albumArtistIds.size() == 0; +} + +void GetItemsByUserIdParams::setAlbumArtistIdsNull() { + m_albumArtistIds.clear(); +} + + +const QStringList &GetItemsByUserIdParams::albumIds() const { + return m_albumIds; +} + +void GetItemsByUserIdParams::setAlbumIds(QStringList newAlbumIds) { + m_albumIds = newAlbumIds; +} + +bool GetItemsByUserIdParams::albumIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_albumIds.size() == 0; +} + +void GetItemsByUserIdParams::setAlbumIdsNull() { + m_albumIds.clear(); +} + + +const QStringList &GetItemsByUserIdParams::albums() const { + return m_albums; +} + +void GetItemsByUserIdParams::setAlbums(QStringList newAlbums) { + m_albums = newAlbums; +} + +bool GetItemsByUserIdParams::albumsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_albums.size() == 0; +} + +void GetItemsByUserIdParams::setAlbumsNull() { + m_albums.clear(); +} + + +const QStringList &GetItemsByUserIdParams::artistIds() const { + return m_artistIds; +} + +void GetItemsByUserIdParams::setArtistIds(QStringList newArtistIds) { + m_artistIds = newArtistIds; +} + +bool GetItemsByUserIdParams::artistIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_artistIds.size() == 0; +} + +void GetItemsByUserIdParams::setArtistIdsNull() { + m_artistIds.clear(); +} + + +const QStringList &GetItemsByUserIdParams::artists() const { + return m_artists; +} + +void GetItemsByUserIdParams::setArtists(QStringList newArtists) { + m_artists = newArtists; +} + +bool GetItemsByUserIdParams::artistsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_artists.size() == 0; +} + +void GetItemsByUserIdParams::setArtistsNull() { + m_artists.clear(); +} + + +const bool &GetItemsByUserIdParams::collapseBoxSetItems() const { + return m_collapseBoxSetItems.value(); +} + +void GetItemsByUserIdParams::setCollapseBoxSetItems(bool newCollapseBoxSetItems) { + m_collapseBoxSetItems = newCollapseBoxSetItems; +} + +bool GetItemsByUserIdParams::collapseBoxSetItemsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_collapseBoxSetItems.has_value(); +} + +void GetItemsByUserIdParams::setCollapseBoxSetItemsNull() { + m_collapseBoxSetItems = std::nullopt; +} + + +const QStringList &GetItemsByUserIdParams::contributingArtistIds() const { + return m_contributingArtistIds; +} + +void GetItemsByUserIdParams::setContributingArtistIds(QStringList newContributingArtistIds) { + m_contributingArtistIds = newContributingArtistIds; +} + +bool GetItemsByUserIdParams::contributingArtistIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_contributingArtistIds.size() == 0; +} + +void GetItemsByUserIdParams::setContributingArtistIdsNull() { + m_contributingArtistIds.clear(); +} + + +const QList &GetItemsByUserIdParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetItemsByUserIdParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetItemsByUserIdParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetItemsByUserIdParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetItemsByUserIdParams::enableImages() const { + return m_enableImages.value(); +} + +void GetItemsByUserIdParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetItemsByUserIdParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetItemsByUserIdParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::enableTotalRecordCount() const { + return m_enableTotalRecordCount.value(); +} + +void GetItemsByUserIdParams::setEnableTotalRecordCount(bool newEnableTotalRecordCount) { + m_enableTotalRecordCount = newEnableTotalRecordCount; +} + +bool GetItemsByUserIdParams::enableTotalRecordCountNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableTotalRecordCount.has_value(); +} + +void GetItemsByUserIdParams::setEnableTotalRecordCountNull() { + m_enableTotalRecordCount = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetItemsByUserIdParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetItemsByUserIdParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetItemsByUserIdParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QStringList &GetItemsByUserIdParams::excludeArtistIds() const { + return m_excludeArtistIds; +} + +void GetItemsByUserIdParams::setExcludeArtistIds(QStringList newExcludeArtistIds) { + m_excludeArtistIds = newExcludeArtistIds; +} + +bool GetItemsByUserIdParams::excludeArtistIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeArtistIds.size() == 0; +} + +void GetItemsByUserIdParams::setExcludeArtistIdsNull() { + m_excludeArtistIds.clear(); +} + + +const QStringList &GetItemsByUserIdParams::excludeItemIds() const { + return m_excludeItemIds; +} + +void GetItemsByUserIdParams::setExcludeItemIds(QStringList newExcludeItemIds) { + m_excludeItemIds = newExcludeItemIds; +} + +bool GetItemsByUserIdParams::excludeItemIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeItemIds.size() == 0; +} + +void GetItemsByUserIdParams::setExcludeItemIdsNull() { + m_excludeItemIds.clear(); +} + + +const QStringList &GetItemsByUserIdParams::excludeItemTypes() const { + return m_excludeItemTypes; +} + +void GetItemsByUserIdParams::setExcludeItemTypes(QStringList newExcludeItemTypes) { + m_excludeItemTypes = newExcludeItemTypes; +} + +bool GetItemsByUserIdParams::excludeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeItemTypes.size() == 0; +} + +void GetItemsByUserIdParams::setExcludeItemTypesNull() { + m_excludeItemTypes.clear(); +} + + +const QList &GetItemsByUserIdParams::excludeLocationTypes() const { + return m_excludeLocationTypes; +} + +void GetItemsByUserIdParams::setExcludeLocationTypes(QList newExcludeLocationTypes) { + m_excludeLocationTypes = newExcludeLocationTypes; +} + +bool GetItemsByUserIdParams::excludeLocationTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeLocationTypes.size() == 0; +} + +void GetItemsByUserIdParams::setExcludeLocationTypesNull() { + m_excludeLocationTypes.clear(); +} + + +const QList &GetItemsByUserIdParams::fields() const { + return m_fields; +} + +void GetItemsByUserIdParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetItemsByUserIdParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetItemsByUserIdParams::setFieldsNull() { + m_fields.clear(); +} + + +const QList &GetItemsByUserIdParams::filters() const { + return m_filters; +} + +void GetItemsByUserIdParams::setFilters(QList newFilters) { + m_filters = newFilters; +} + +bool GetItemsByUserIdParams::filtersNull() const { + // Nullable: true + // Type Nullable: true + + + return m_filters.size() == 0; +} + +void GetItemsByUserIdParams::setFiltersNull() { + m_filters.clear(); +} + + +const QStringList &GetItemsByUserIdParams::genreIds() const { + return m_genreIds; +} + +void GetItemsByUserIdParams::setGenreIds(QStringList newGenreIds) { + m_genreIds = newGenreIds; +} + +bool GetItemsByUserIdParams::genreIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_genreIds.size() == 0; +} + +void GetItemsByUserIdParams::setGenreIdsNull() { + m_genreIds.clear(); +} + + +const QStringList &GetItemsByUserIdParams::genres() const { + return m_genres; +} + +void GetItemsByUserIdParams::setGenres(QStringList newGenres) { + m_genres = newGenres; +} + +bool GetItemsByUserIdParams::genresNull() const { + // Nullable: true + // Type Nullable: true + + + return m_genres.size() == 0; +} + +void GetItemsByUserIdParams::setGenresNull() { + m_genres.clear(); +} + + +const bool &GetItemsByUserIdParams::hasImdbId() const { + return m_hasImdbId.value(); +} + +void GetItemsByUserIdParams::setHasImdbId(bool newHasImdbId) { + m_hasImdbId = newHasImdbId; +} + +bool GetItemsByUserIdParams::hasImdbIdNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasImdbId.has_value(); +} + +void GetItemsByUserIdParams::setHasImdbIdNull() { + m_hasImdbId = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::hasOfficialRating() const { + return m_hasOfficialRating.value(); +} + +void GetItemsByUserIdParams::setHasOfficialRating(bool newHasOfficialRating) { + m_hasOfficialRating = newHasOfficialRating; +} + +bool GetItemsByUserIdParams::hasOfficialRatingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasOfficialRating.has_value(); +} + +void GetItemsByUserIdParams::setHasOfficialRatingNull() { + m_hasOfficialRating = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::hasOverview() const { + return m_hasOverview.value(); +} + +void GetItemsByUserIdParams::setHasOverview(bool newHasOverview) { + m_hasOverview = newHasOverview; +} + +bool GetItemsByUserIdParams::hasOverviewNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasOverview.has_value(); +} + +void GetItemsByUserIdParams::setHasOverviewNull() { + m_hasOverview = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::hasParentalRating() const { + return m_hasParentalRating.value(); +} + +void GetItemsByUserIdParams::setHasParentalRating(bool newHasParentalRating) { + m_hasParentalRating = newHasParentalRating; +} + +bool GetItemsByUserIdParams::hasParentalRatingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasParentalRating.has_value(); +} + +void GetItemsByUserIdParams::setHasParentalRatingNull() { + m_hasParentalRating = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::hasSpecialFeature() const { + return m_hasSpecialFeature.value(); +} + +void GetItemsByUserIdParams::setHasSpecialFeature(bool newHasSpecialFeature) { + m_hasSpecialFeature = newHasSpecialFeature; +} + +bool GetItemsByUserIdParams::hasSpecialFeatureNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasSpecialFeature.has_value(); +} + +void GetItemsByUserIdParams::setHasSpecialFeatureNull() { + m_hasSpecialFeature = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::hasSubtitles() const { + return m_hasSubtitles.value(); +} + +void GetItemsByUserIdParams::setHasSubtitles(bool newHasSubtitles) { + m_hasSubtitles = newHasSubtitles; +} + +bool GetItemsByUserIdParams::hasSubtitlesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasSubtitles.has_value(); +} + +void GetItemsByUserIdParams::setHasSubtitlesNull() { + m_hasSubtitles = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::hasThemeSong() const { + return m_hasThemeSong.value(); +} + +void GetItemsByUserIdParams::setHasThemeSong(bool newHasThemeSong) { + m_hasThemeSong = newHasThemeSong; +} + +bool GetItemsByUserIdParams::hasThemeSongNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasThemeSong.has_value(); +} + +void GetItemsByUserIdParams::setHasThemeSongNull() { + m_hasThemeSong = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::hasThemeVideo() const { + return m_hasThemeVideo.value(); +} + +void GetItemsByUserIdParams::setHasThemeVideo(bool newHasThemeVideo) { + m_hasThemeVideo = newHasThemeVideo; +} + +bool GetItemsByUserIdParams::hasThemeVideoNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasThemeVideo.has_value(); +} + +void GetItemsByUserIdParams::setHasThemeVideoNull() { + m_hasThemeVideo = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::hasTmdbId() const { + return m_hasTmdbId.value(); +} + +void GetItemsByUserIdParams::setHasTmdbId(bool newHasTmdbId) { + m_hasTmdbId = newHasTmdbId; +} + +bool GetItemsByUserIdParams::hasTmdbIdNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasTmdbId.has_value(); +} + +void GetItemsByUserIdParams::setHasTmdbIdNull() { + m_hasTmdbId = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::hasTrailer() const { + return m_hasTrailer.value(); +} + +void GetItemsByUserIdParams::setHasTrailer(bool newHasTrailer) { + m_hasTrailer = newHasTrailer; +} + +bool GetItemsByUserIdParams::hasTrailerNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasTrailer.has_value(); +} + +void GetItemsByUserIdParams::setHasTrailerNull() { + m_hasTrailer = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::hasTvdbId() const { + return m_hasTvdbId.value(); +} + +void GetItemsByUserIdParams::setHasTvdbId(bool newHasTvdbId) { + m_hasTvdbId = newHasTvdbId; +} + +bool GetItemsByUserIdParams::hasTvdbIdNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasTvdbId.has_value(); +} + +void GetItemsByUserIdParams::setHasTvdbIdNull() { + m_hasTvdbId = std::nullopt; +} + + +const QStringList &GetItemsByUserIdParams::ids() const { + return m_ids; +} + +void GetItemsByUserIdParams::setIds(QStringList newIds) { + m_ids = newIds; +} + +bool GetItemsByUserIdParams::idsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_ids.size() == 0; +} + +void GetItemsByUserIdParams::setIdsNull() { + m_ids.clear(); +} + + +const qint32 &GetItemsByUserIdParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetItemsByUserIdParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetItemsByUserIdParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetItemsByUserIdParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const QList &GetItemsByUserIdParams::imageTypes() const { + return m_imageTypes; +} + +void GetItemsByUserIdParams::setImageTypes(QList newImageTypes) { + m_imageTypes = newImageTypes; +} + +bool GetItemsByUserIdParams::imageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_imageTypes.size() == 0; +} + +void GetItemsByUserIdParams::setImageTypesNull() { + m_imageTypes.clear(); +} + + +const QStringList &GetItemsByUserIdParams::includeItemTypes() const { + return m_includeItemTypes; +} + +void GetItemsByUserIdParams::setIncludeItemTypes(QStringList newIncludeItemTypes) { + m_includeItemTypes = newIncludeItemTypes; +} + +bool GetItemsByUserIdParams::includeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_includeItemTypes.size() == 0; +} + +void GetItemsByUserIdParams::setIncludeItemTypesNull() { + m_includeItemTypes.clear(); +} + + +const bool &GetItemsByUserIdParams::is3D() const { + return m_is3D.value(); +} + +void GetItemsByUserIdParams::setIs3D(bool newIs3D) { + m_is3D = newIs3D; +} + +bool GetItemsByUserIdParams::is3DNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_is3D.has_value(); +} + +void GetItemsByUserIdParams::setIs3DNull() { + m_is3D = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::is4K() const { + return m_is4K.value(); +} + +void GetItemsByUserIdParams::setIs4K(bool newIs4K) { + m_is4K = newIs4K; +} + +bool GetItemsByUserIdParams::is4KNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_is4K.has_value(); +} + +void GetItemsByUserIdParams::setIs4KNull() { + m_is4K = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::isFavorite() const { + return m_isFavorite.value(); +} + +void GetItemsByUserIdParams::setIsFavorite(bool newIsFavorite) { + m_isFavorite = newIsFavorite; +} + +bool GetItemsByUserIdParams::isFavoriteNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isFavorite.has_value(); +} + +void GetItemsByUserIdParams::setIsFavoriteNull() { + m_isFavorite = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::isHd() const { + return m_isHd.value(); +} + +void GetItemsByUserIdParams::setIsHd(bool newIsHd) { + m_isHd = newIsHd; +} + +bool GetItemsByUserIdParams::isHdNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isHd.has_value(); +} + +void GetItemsByUserIdParams::setIsHdNull() { + m_isHd = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::isLocked() const { + return m_isLocked.value(); +} + +void GetItemsByUserIdParams::setIsLocked(bool newIsLocked) { + m_isLocked = newIsLocked; +} + +bool GetItemsByUserIdParams::isLockedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isLocked.has_value(); +} + +void GetItemsByUserIdParams::setIsLockedNull() { + m_isLocked = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::isMissing() const { + return m_isMissing.value(); +} + +void GetItemsByUserIdParams::setIsMissing(bool newIsMissing) { + m_isMissing = newIsMissing; +} + +bool GetItemsByUserIdParams::isMissingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isMissing.has_value(); +} + +void GetItemsByUserIdParams::setIsMissingNull() { + m_isMissing = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::isPlaceHolder() const { + return m_isPlaceHolder.value(); +} + +void GetItemsByUserIdParams::setIsPlaceHolder(bool newIsPlaceHolder) { + m_isPlaceHolder = newIsPlaceHolder; +} + +bool GetItemsByUserIdParams::isPlaceHolderNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isPlaceHolder.has_value(); +} + +void GetItemsByUserIdParams::setIsPlaceHolderNull() { + m_isPlaceHolder = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::isPlayed() const { + return m_isPlayed.value(); +} + +void GetItemsByUserIdParams::setIsPlayed(bool newIsPlayed) { + m_isPlayed = newIsPlayed; +} + +bool GetItemsByUserIdParams::isPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isPlayed.has_value(); +} + +void GetItemsByUserIdParams::setIsPlayedNull() { + m_isPlayed = std::nullopt; +} + + +const bool &GetItemsByUserIdParams::isUnaired() const { + return m_isUnaired.value(); +} + +void GetItemsByUserIdParams::setIsUnaired(bool newIsUnaired) { + m_isUnaired = newIsUnaired; +} + +bool GetItemsByUserIdParams::isUnairedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isUnaired.has_value(); +} + +void GetItemsByUserIdParams::setIsUnairedNull() { + m_isUnaired = std::nullopt; +} + + +const qint32 &GetItemsByUserIdParams::limit() const { + return m_limit.value(); +} + +void GetItemsByUserIdParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetItemsByUserIdParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetItemsByUserIdParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QList &GetItemsByUserIdParams::locationTypes() const { + return m_locationTypes; +} + +void GetItemsByUserIdParams::setLocationTypes(QList newLocationTypes) { + m_locationTypes = newLocationTypes; +} + +bool GetItemsByUserIdParams::locationTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_locationTypes.size() == 0; +} + +void GetItemsByUserIdParams::setLocationTypesNull() { + m_locationTypes.clear(); +} + + +const qint32 &GetItemsByUserIdParams::maxHeight() const { + return m_maxHeight.value(); +} + +void GetItemsByUserIdParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool GetItemsByUserIdParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void GetItemsByUserIdParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const QString &GetItemsByUserIdParams::maxOfficialRating() const { + return m_maxOfficialRating; +} + +void GetItemsByUserIdParams::setMaxOfficialRating(QString newMaxOfficialRating) { + m_maxOfficialRating = newMaxOfficialRating; +} + +bool GetItemsByUserIdParams::maxOfficialRatingNull() const { + // Nullable: true + // Type Nullable: true + + + return m_maxOfficialRating.isNull(); +} + +void GetItemsByUserIdParams::setMaxOfficialRatingNull() { + m_maxOfficialRating.clear(); +} + + +const QDateTime &GetItemsByUserIdParams::maxPremiereDate() const { + return m_maxPremiereDate; +} + +void GetItemsByUserIdParams::setMaxPremiereDate(QDateTime newMaxPremiereDate) { + m_maxPremiereDate = newMaxPremiereDate; +} + +bool GetItemsByUserIdParams::maxPremiereDateNull() const { + // Nullable: true + // Type Nullable: true + + + return m_maxPremiereDate.isNull(); +} + +void GetItemsByUserIdParams::setMaxPremiereDateNull() { + m_maxPremiereDate= QDateTime(); +} + + +const qint32 &GetItemsByUserIdParams::maxWidth() const { + return m_maxWidth.value(); +} + +void GetItemsByUserIdParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool GetItemsByUserIdParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void GetItemsByUserIdParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const QStringList &GetItemsByUserIdParams::mediaTypes() const { + return m_mediaTypes; +} + +void GetItemsByUserIdParams::setMediaTypes(QStringList newMediaTypes) { + m_mediaTypes = newMediaTypes; +} + +bool GetItemsByUserIdParams::mediaTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaTypes.size() == 0; +} + +void GetItemsByUserIdParams::setMediaTypesNull() { + m_mediaTypes.clear(); +} + + +const double &GetItemsByUserIdParams::minCommunityRating() const { + return m_minCommunityRating.value(); +} + +void GetItemsByUserIdParams::setMinCommunityRating(double newMinCommunityRating) { + m_minCommunityRating = newMinCommunityRating; +} + +bool GetItemsByUserIdParams::minCommunityRatingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minCommunityRating.has_value(); +} + +void GetItemsByUserIdParams::setMinCommunityRatingNull() { + m_minCommunityRating = std::nullopt; +} + + +const double &GetItemsByUserIdParams::minCriticRating() const { + return m_minCriticRating.value(); +} + +void GetItemsByUserIdParams::setMinCriticRating(double newMinCriticRating) { + m_minCriticRating = newMinCriticRating; +} + +bool GetItemsByUserIdParams::minCriticRatingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minCriticRating.has_value(); +} + +void GetItemsByUserIdParams::setMinCriticRatingNull() { + m_minCriticRating = std::nullopt; +} + + +const QDateTime &GetItemsByUserIdParams::minDateLastSaved() const { + return m_minDateLastSaved; +} + +void GetItemsByUserIdParams::setMinDateLastSaved(QDateTime newMinDateLastSaved) { + m_minDateLastSaved = newMinDateLastSaved; +} + +bool GetItemsByUserIdParams::minDateLastSavedNull() const { + // Nullable: true + // Type Nullable: true + + + return m_minDateLastSaved.isNull(); +} + +void GetItemsByUserIdParams::setMinDateLastSavedNull() { + m_minDateLastSaved= QDateTime(); +} + + +const QDateTime &GetItemsByUserIdParams::minDateLastSavedForUser() const { + return m_minDateLastSavedForUser; +} + +void GetItemsByUserIdParams::setMinDateLastSavedForUser(QDateTime newMinDateLastSavedForUser) { + m_minDateLastSavedForUser = newMinDateLastSavedForUser; +} + +bool GetItemsByUserIdParams::minDateLastSavedForUserNull() const { + // Nullable: true + // Type Nullable: true + + + return m_minDateLastSavedForUser.isNull(); +} + +void GetItemsByUserIdParams::setMinDateLastSavedForUserNull() { + m_minDateLastSavedForUser= QDateTime(); +} + + +const qint32 &GetItemsByUserIdParams::minHeight() const { + return m_minHeight.value(); +} + +void GetItemsByUserIdParams::setMinHeight(qint32 newMinHeight) { + m_minHeight = newMinHeight; +} + +bool GetItemsByUserIdParams::minHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minHeight.has_value(); +} + +void GetItemsByUserIdParams::setMinHeightNull() { + m_minHeight = std::nullopt; +} + + +const QString &GetItemsByUserIdParams::minOfficialRating() const { + return m_minOfficialRating; +} + +void GetItemsByUserIdParams::setMinOfficialRating(QString newMinOfficialRating) { + m_minOfficialRating = newMinOfficialRating; +} + +bool GetItemsByUserIdParams::minOfficialRatingNull() const { + // Nullable: true + // Type Nullable: true + + + return m_minOfficialRating.isNull(); +} + +void GetItemsByUserIdParams::setMinOfficialRatingNull() { + m_minOfficialRating.clear(); +} + + +const QDateTime &GetItemsByUserIdParams::minPremiereDate() const { + return m_minPremiereDate; +} + +void GetItemsByUserIdParams::setMinPremiereDate(QDateTime newMinPremiereDate) { + m_minPremiereDate = newMinPremiereDate; +} + +bool GetItemsByUserIdParams::minPremiereDateNull() const { + // Nullable: true + // Type Nullable: true + + + return m_minPremiereDate.isNull(); +} + +void GetItemsByUserIdParams::setMinPremiereDateNull() { + m_minPremiereDate= QDateTime(); +} + + +const qint32 &GetItemsByUserIdParams::minWidth() const { + return m_minWidth.value(); +} + +void GetItemsByUserIdParams::setMinWidth(qint32 newMinWidth) { + m_minWidth = newMinWidth; +} + +bool GetItemsByUserIdParams::minWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minWidth.has_value(); +} + +void GetItemsByUserIdParams::setMinWidthNull() { + m_minWidth = std::nullopt; +} + + +const QString &GetItemsByUserIdParams::nameLessThan() const { + return m_nameLessThan; +} + +void GetItemsByUserIdParams::setNameLessThan(QString newNameLessThan) { + m_nameLessThan = newNameLessThan; +} + +bool GetItemsByUserIdParams::nameLessThanNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameLessThan.isNull(); +} + +void GetItemsByUserIdParams::setNameLessThanNull() { + m_nameLessThan.clear(); +} + + +const QString &GetItemsByUserIdParams::nameStartsWith() const { + return m_nameStartsWith; +} + +void GetItemsByUserIdParams::setNameStartsWith(QString newNameStartsWith) { + m_nameStartsWith = newNameStartsWith; +} + +bool GetItemsByUserIdParams::nameStartsWithNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameStartsWith.isNull(); +} + +void GetItemsByUserIdParams::setNameStartsWithNull() { + m_nameStartsWith.clear(); +} + + +const QString &GetItemsByUserIdParams::nameStartsWithOrGreater() const { + return m_nameStartsWithOrGreater; +} + +void GetItemsByUserIdParams::setNameStartsWithOrGreater(QString newNameStartsWithOrGreater) { + m_nameStartsWithOrGreater = newNameStartsWithOrGreater; +} + +bool GetItemsByUserIdParams::nameStartsWithOrGreaterNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameStartsWithOrGreater.isNull(); +} + +void GetItemsByUserIdParams::setNameStartsWithOrGreaterNull() { + m_nameStartsWithOrGreater.clear(); +} + + +const QStringList &GetItemsByUserIdParams::officialRatings() const { + return m_officialRatings; +} + +void GetItemsByUserIdParams::setOfficialRatings(QStringList newOfficialRatings) { + m_officialRatings = newOfficialRatings; +} + +bool GetItemsByUserIdParams::officialRatingsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_officialRatings.size() == 0; +} + +void GetItemsByUserIdParams::setOfficialRatingsNull() { + m_officialRatings.clear(); +} + + +const QString &GetItemsByUserIdParams::parentId() const { + return m_parentId; +} + +void GetItemsByUserIdParams::setParentId(QString newParentId) { + m_parentId = newParentId; +} + +bool GetItemsByUserIdParams::parentIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_parentId.isNull(); +} + +void GetItemsByUserIdParams::setParentIdNull() { + m_parentId.clear(); +} + + +const qint32 &GetItemsByUserIdParams::parentIndexNumber() const { + return m_parentIndexNumber.value(); +} + +void GetItemsByUserIdParams::setParentIndexNumber(qint32 newParentIndexNumber) { + m_parentIndexNumber = newParentIndexNumber; +} + +bool GetItemsByUserIdParams::parentIndexNumberNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_parentIndexNumber.has_value(); +} + +void GetItemsByUserIdParams::setParentIndexNumberNull() { + m_parentIndexNumber = std::nullopt; +} + + +const QString &GetItemsByUserIdParams::person() const { + return m_person; +} + +void GetItemsByUserIdParams::setPerson(QString newPerson) { + m_person = newPerson; +} + +bool GetItemsByUserIdParams::personNull() const { + // Nullable: true + // Type Nullable: true + + + return m_person.isNull(); +} + +void GetItemsByUserIdParams::setPersonNull() { + m_person.clear(); +} + + +const QStringList &GetItemsByUserIdParams::personIds() const { + return m_personIds; +} + +void GetItemsByUserIdParams::setPersonIds(QStringList newPersonIds) { + m_personIds = newPersonIds; +} + +bool GetItemsByUserIdParams::personIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_personIds.size() == 0; +} + +void GetItemsByUserIdParams::setPersonIdsNull() { + m_personIds.clear(); +} + + +const QStringList &GetItemsByUserIdParams::personTypes() const { + return m_personTypes; +} + +void GetItemsByUserIdParams::setPersonTypes(QStringList newPersonTypes) { + m_personTypes = newPersonTypes; +} + +bool GetItemsByUserIdParams::personTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_personTypes.size() == 0; +} + +void GetItemsByUserIdParams::setPersonTypesNull() { + m_personTypes.clear(); +} + + +const bool &GetItemsByUserIdParams::recursive() const { + return m_recursive.value(); +} + +void GetItemsByUserIdParams::setRecursive(bool newRecursive) { + m_recursive = newRecursive; +} + +bool GetItemsByUserIdParams::recursiveNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_recursive.has_value(); +} + +void GetItemsByUserIdParams::setRecursiveNull() { + m_recursive = std::nullopt; +} + + +const QString &GetItemsByUserIdParams::searchTerm() const { + return m_searchTerm; +} + +void GetItemsByUserIdParams::setSearchTerm(QString newSearchTerm) { + m_searchTerm = newSearchTerm; +} + +bool GetItemsByUserIdParams::searchTermNull() const { + // Nullable: true + // Type Nullable: true + + + return m_searchTerm.isNull(); +} + +void GetItemsByUserIdParams::setSearchTermNull() { + m_searchTerm.clear(); +} + + +const QList &GetItemsByUserIdParams::seriesStatus() const { + return m_seriesStatus; +} + +void GetItemsByUserIdParams::setSeriesStatus(QList newSeriesStatus) { + m_seriesStatus = newSeriesStatus; +} + +bool GetItemsByUserIdParams::seriesStatusNull() const { + // Nullable: true + // Type Nullable: true + + + return m_seriesStatus.size() == 0; +} + +void GetItemsByUserIdParams::setSeriesStatusNull() { + m_seriesStatus.clear(); +} + + +const QString &GetItemsByUserIdParams::sortBy() const { + return m_sortBy; +} + +void GetItemsByUserIdParams::setSortBy(QString newSortBy) { + m_sortBy = newSortBy; +} + +bool GetItemsByUserIdParams::sortByNull() const { + // Nullable: true + // Type Nullable: true + + + return m_sortBy.isNull(); +} + +void GetItemsByUserIdParams::setSortByNull() { + m_sortBy.clear(); +} + + +const QString &GetItemsByUserIdParams::sortOrder() const { + return m_sortOrder; +} + +void GetItemsByUserIdParams::setSortOrder(QString newSortOrder) { + m_sortOrder = newSortOrder; +} + +bool GetItemsByUserIdParams::sortOrderNull() const { + // Nullable: true + // Type Nullable: true + + + return m_sortOrder.isNull(); +} + +void GetItemsByUserIdParams::setSortOrderNull() { + m_sortOrder.clear(); +} + + +const qint32 &GetItemsByUserIdParams::startIndex() const { + return m_startIndex.value(); +} + +void GetItemsByUserIdParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetItemsByUserIdParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetItemsByUserIdParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const QStringList &GetItemsByUserIdParams::studioIds() const { + return m_studioIds; +} + +void GetItemsByUserIdParams::setStudioIds(QStringList newStudioIds) { + m_studioIds = newStudioIds; +} + +bool GetItemsByUserIdParams::studioIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_studioIds.size() == 0; +} + +void GetItemsByUserIdParams::setStudioIdsNull() { + m_studioIds.clear(); +} + + +const QStringList &GetItemsByUserIdParams::studios() const { + return m_studios; +} + +void GetItemsByUserIdParams::setStudios(QStringList newStudios) { + m_studios = newStudios; +} + +bool GetItemsByUserIdParams::studiosNull() const { + // Nullable: true + // Type Nullable: true + + + return m_studios.size() == 0; +} + +void GetItemsByUserIdParams::setStudiosNull() { + m_studios.clear(); +} + + +const QStringList &GetItemsByUserIdParams::tags() const { + return m_tags; +} + +void GetItemsByUserIdParams::setTags(QStringList newTags) { + m_tags = newTags; +} + +bool GetItemsByUserIdParams::tagsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tags.size() == 0; +} + +void GetItemsByUserIdParams::setTagsNull() { + m_tags.clear(); +} + + +const QList &GetItemsByUserIdParams::videoTypes() const { + return m_videoTypes; +} + +void GetItemsByUserIdParams::setVideoTypes(QList newVideoTypes) { + m_videoTypes = newVideoTypes; +} + +bool GetItemsByUserIdParams::videoTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoTypes.size() == 0; +} + +void GetItemsByUserIdParams::setVideoTypesNull() { + m_videoTypes.clear(); +} + + +const QList &GetItemsByUserIdParams::years() const { + return m_years; +} + +void GetItemsByUserIdParams::setYears(QList newYears) { + m_years = newYears; +} + +bool GetItemsByUserIdParams::yearsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_years.size() == 0; +} + +void GetItemsByUserIdParams::setYearsNull() { + m_years.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getitemsparams.cpp b/core/src/loader/getitemsparams.cpp new file mode 100644 index 0000000..6c9e627 --- /dev/null +++ b/core/src/loader/getitemsparams.cpp @@ -0,0 +1,1721 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getitemsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetItemsParams + +const QString &GetItemsParams::adjacentTo() const { + return m_adjacentTo; +} + +void GetItemsParams::setAdjacentTo(QString newAdjacentTo) { + m_adjacentTo = newAdjacentTo; +} + +bool GetItemsParams::adjacentToNull() const { + // Nullable: true + // Type Nullable: true + + + return m_adjacentTo.isNull(); +} + +void GetItemsParams::setAdjacentToNull() { + m_adjacentTo.clear(); +} + + +const QStringList &GetItemsParams::albumArtistIds() const { + return m_albumArtistIds; +} + +void GetItemsParams::setAlbumArtistIds(QStringList newAlbumArtistIds) { + m_albumArtistIds = newAlbumArtistIds; +} + +bool GetItemsParams::albumArtistIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_albumArtistIds.size() == 0; +} + +void GetItemsParams::setAlbumArtistIdsNull() { + m_albumArtistIds.clear(); +} + + +const QStringList &GetItemsParams::albumIds() const { + return m_albumIds; +} + +void GetItemsParams::setAlbumIds(QStringList newAlbumIds) { + m_albumIds = newAlbumIds; +} + +bool GetItemsParams::albumIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_albumIds.size() == 0; +} + +void GetItemsParams::setAlbumIdsNull() { + m_albumIds.clear(); +} + + +const QStringList &GetItemsParams::albums() const { + return m_albums; +} + +void GetItemsParams::setAlbums(QStringList newAlbums) { + m_albums = newAlbums; +} + +bool GetItemsParams::albumsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_albums.size() == 0; +} + +void GetItemsParams::setAlbumsNull() { + m_albums.clear(); +} + + +const QStringList &GetItemsParams::artistIds() const { + return m_artistIds; +} + +void GetItemsParams::setArtistIds(QStringList newArtistIds) { + m_artistIds = newArtistIds; +} + +bool GetItemsParams::artistIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_artistIds.size() == 0; +} + +void GetItemsParams::setArtistIdsNull() { + m_artistIds.clear(); +} + + +const QStringList &GetItemsParams::artists() const { + return m_artists; +} + +void GetItemsParams::setArtists(QStringList newArtists) { + m_artists = newArtists; +} + +bool GetItemsParams::artistsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_artists.size() == 0; +} + +void GetItemsParams::setArtistsNull() { + m_artists.clear(); +} + + +const bool &GetItemsParams::collapseBoxSetItems() const { + return m_collapseBoxSetItems.value(); +} + +void GetItemsParams::setCollapseBoxSetItems(bool newCollapseBoxSetItems) { + m_collapseBoxSetItems = newCollapseBoxSetItems; +} + +bool GetItemsParams::collapseBoxSetItemsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_collapseBoxSetItems.has_value(); +} + +void GetItemsParams::setCollapseBoxSetItemsNull() { + m_collapseBoxSetItems = std::nullopt; +} + + +const QStringList &GetItemsParams::contributingArtistIds() const { + return m_contributingArtistIds; +} + +void GetItemsParams::setContributingArtistIds(QStringList newContributingArtistIds) { + m_contributingArtistIds = newContributingArtistIds; +} + +bool GetItemsParams::contributingArtistIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_contributingArtistIds.size() == 0; +} + +void GetItemsParams::setContributingArtistIdsNull() { + m_contributingArtistIds.clear(); +} + + +const QList &GetItemsParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetItemsParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetItemsParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetItemsParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetItemsParams::enableImages() const { + return m_enableImages.value(); +} + +void GetItemsParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetItemsParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetItemsParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetItemsParams::enableTotalRecordCount() const { + return m_enableTotalRecordCount.value(); +} + +void GetItemsParams::setEnableTotalRecordCount(bool newEnableTotalRecordCount) { + m_enableTotalRecordCount = newEnableTotalRecordCount; +} + +bool GetItemsParams::enableTotalRecordCountNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableTotalRecordCount.has_value(); +} + +void GetItemsParams::setEnableTotalRecordCountNull() { + m_enableTotalRecordCount = std::nullopt; +} + + +const bool &GetItemsParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetItemsParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetItemsParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetItemsParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QStringList &GetItemsParams::excludeArtistIds() const { + return m_excludeArtistIds; +} + +void GetItemsParams::setExcludeArtistIds(QStringList newExcludeArtistIds) { + m_excludeArtistIds = newExcludeArtistIds; +} + +bool GetItemsParams::excludeArtistIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeArtistIds.size() == 0; +} + +void GetItemsParams::setExcludeArtistIdsNull() { + m_excludeArtistIds.clear(); +} + + +const QStringList &GetItemsParams::excludeItemIds() const { + return m_excludeItemIds; +} + +void GetItemsParams::setExcludeItemIds(QStringList newExcludeItemIds) { + m_excludeItemIds = newExcludeItemIds; +} + +bool GetItemsParams::excludeItemIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeItemIds.size() == 0; +} + +void GetItemsParams::setExcludeItemIdsNull() { + m_excludeItemIds.clear(); +} + + +const QStringList &GetItemsParams::excludeItemTypes() const { + return m_excludeItemTypes; +} + +void GetItemsParams::setExcludeItemTypes(QStringList newExcludeItemTypes) { + m_excludeItemTypes = newExcludeItemTypes; +} + +bool GetItemsParams::excludeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeItemTypes.size() == 0; +} + +void GetItemsParams::setExcludeItemTypesNull() { + m_excludeItemTypes.clear(); +} + + +const QList &GetItemsParams::excludeLocationTypes() const { + return m_excludeLocationTypes; +} + +void GetItemsParams::setExcludeLocationTypes(QList newExcludeLocationTypes) { + m_excludeLocationTypes = newExcludeLocationTypes; +} + +bool GetItemsParams::excludeLocationTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeLocationTypes.size() == 0; +} + +void GetItemsParams::setExcludeLocationTypesNull() { + m_excludeLocationTypes.clear(); +} + + +const QList &GetItemsParams::fields() const { + return m_fields; +} + +void GetItemsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetItemsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetItemsParams::setFieldsNull() { + m_fields.clear(); +} + + +const QList &GetItemsParams::filters() const { + return m_filters; +} + +void GetItemsParams::setFilters(QList newFilters) { + m_filters = newFilters; +} + +bool GetItemsParams::filtersNull() const { + // Nullable: true + // Type Nullable: true + + + return m_filters.size() == 0; +} + +void GetItemsParams::setFiltersNull() { + m_filters.clear(); +} + + +const QStringList &GetItemsParams::genreIds() const { + return m_genreIds; +} + +void GetItemsParams::setGenreIds(QStringList newGenreIds) { + m_genreIds = newGenreIds; +} + +bool GetItemsParams::genreIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_genreIds.size() == 0; +} + +void GetItemsParams::setGenreIdsNull() { + m_genreIds.clear(); +} + + +const QStringList &GetItemsParams::genres() const { + return m_genres; +} + +void GetItemsParams::setGenres(QStringList newGenres) { + m_genres = newGenres; +} + +bool GetItemsParams::genresNull() const { + // Nullable: true + // Type Nullable: true + + + return m_genres.size() == 0; +} + +void GetItemsParams::setGenresNull() { + m_genres.clear(); +} + + +const bool &GetItemsParams::hasImdbId() const { + return m_hasImdbId.value(); +} + +void GetItemsParams::setHasImdbId(bool newHasImdbId) { + m_hasImdbId = newHasImdbId; +} + +bool GetItemsParams::hasImdbIdNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasImdbId.has_value(); +} + +void GetItemsParams::setHasImdbIdNull() { + m_hasImdbId = std::nullopt; +} + + +const bool &GetItemsParams::hasOfficialRating() const { + return m_hasOfficialRating.value(); +} + +void GetItemsParams::setHasOfficialRating(bool newHasOfficialRating) { + m_hasOfficialRating = newHasOfficialRating; +} + +bool GetItemsParams::hasOfficialRatingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasOfficialRating.has_value(); +} + +void GetItemsParams::setHasOfficialRatingNull() { + m_hasOfficialRating = std::nullopt; +} + + +const bool &GetItemsParams::hasOverview() const { + return m_hasOverview.value(); +} + +void GetItemsParams::setHasOverview(bool newHasOverview) { + m_hasOverview = newHasOverview; +} + +bool GetItemsParams::hasOverviewNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasOverview.has_value(); +} + +void GetItemsParams::setHasOverviewNull() { + m_hasOverview = std::nullopt; +} + + +const bool &GetItemsParams::hasParentalRating() const { + return m_hasParentalRating.value(); +} + +void GetItemsParams::setHasParentalRating(bool newHasParentalRating) { + m_hasParentalRating = newHasParentalRating; +} + +bool GetItemsParams::hasParentalRatingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasParentalRating.has_value(); +} + +void GetItemsParams::setHasParentalRatingNull() { + m_hasParentalRating = std::nullopt; +} + + +const bool &GetItemsParams::hasSpecialFeature() const { + return m_hasSpecialFeature.value(); +} + +void GetItemsParams::setHasSpecialFeature(bool newHasSpecialFeature) { + m_hasSpecialFeature = newHasSpecialFeature; +} + +bool GetItemsParams::hasSpecialFeatureNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasSpecialFeature.has_value(); +} + +void GetItemsParams::setHasSpecialFeatureNull() { + m_hasSpecialFeature = std::nullopt; +} + + +const bool &GetItemsParams::hasSubtitles() const { + return m_hasSubtitles.value(); +} + +void GetItemsParams::setHasSubtitles(bool newHasSubtitles) { + m_hasSubtitles = newHasSubtitles; +} + +bool GetItemsParams::hasSubtitlesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasSubtitles.has_value(); +} + +void GetItemsParams::setHasSubtitlesNull() { + m_hasSubtitles = std::nullopt; +} + + +const bool &GetItemsParams::hasThemeSong() const { + return m_hasThemeSong.value(); +} + +void GetItemsParams::setHasThemeSong(bool newHasThemeSong) { + m_hasThemeSong = newHasThemeSong; +} + +bool GetItemsParams::hasThemeSongNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasThemeSong.has_value(); +} + +void GetItemsParams::setHasThemeSongNull() { + m_hasThemeSong = std::nullopt; +} + + +const bool &GetItemsParams::hasThemeVideo() const { + return m_hasThemeVideo.value(); +} + +void GetItemsParams::setHasThemeVideo(bool newHasThemeVideo) { + m_hasThemeVideo = newHasThemeVideo; +} + +bool GetItemsParams::hasThemeVideoNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasThemeVideo.has_value(); +} + +void GetItemsParams::setHasThemeVideoNull() { + m_hasThemeVideo = std::nullopt; +} + + +const bool &GetItemsParams::hasTmdbId() const { + return m_hasTmdbId.value(); +} + +void GetItemsParams::setHasTmdbId(bool newHasTmdbId) { + m_hasTmdbId = newHasTmdbId; +} + +bool GetItemsParams::hasTmdbIdNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasTmdbId.has_value(); +} + +void GetItemsParams::setHasTmdbIdNull() { + m_hasTmdbId = std::nullopt; +} + + +const bool &GetItemsParams::hasTrailer() const { + return m_hasTrailer.value(); +} + +void GetItemsParams::setHasTrailer(bool newHasTrailer) { + m_hasTrailer = newHasTrailer; +} + +bool GetItemsParams::hasTrailerNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasTrailer.has_value(); +} + +void GetItemsParams::setHasTrailerNull() { + m_hasTrailer = std::nullopt; +} + + +const bool &GetItemsParams::hasTvdbId() const { + return m_hasTvdbId.value(); +} + +void GetItemsParams::setHasTvdbId(bool newHasTvdbId) { + m_hasTvdbId = newHasTvdbId; +} + +bool GetItemsParams::hasTvdbIdNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasTvdbId.has_value(); +} + +void GetItemsParams::setHasTvdbIdNull() { + m_hasTvdbId = std::nullopt; +} + + +const QStringList &GetItemsParams::ids() const { + return m_ids; +} + +void GetItemsParams::setIds(QStringList newIds) { + m_ids = newIds; +} + +bool GetItemsParams::idsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_ids.size() == 0; +} + +void GetItemsParams::setIdsNull() { + m_ids.clear(); +} + + +const qint32 &GetItemsParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetItemsParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetItemsParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetItemsParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const QList &GetItemsParams::imageTypes() const { + return m_imageTypes; +} + +void GetItemsParams::setImageTypes(QList newImageTypes) { + m_imageTypes = newImageTypes; +} + +bool GetItemsParams::imageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_imageTypes.size() == 0; +} + +void GetItemsParams::setImageTypesNull() { + m_imageTypes.clear(); +} + + +const QStringList &GetItemsParams::includeItemTypes() const { + return m_includeItemTypes; +} + +void GetItemsParams::setIncludeItemTypes(QStringList newIncludeItemTypes) { + m_includeItemTypes = newIncludeItemTypes; +} + +bool GetItemsParams::includeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_includeItemTypes.size() == 0; +} + +void GetItemsParams::setIncludeItemTypesNull() { + m_includeItemTypes.clear(); +} + + +const bool &GetItemsParams::is3D() const { + return m_is3D.value(); +} + +void GetItemsParams::setIs3D(bool newIs3D) { + m_is3D = newIs3D; +} + +bool GetItemsParams::is3DNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_is3D.has_value(); +} + +void GetItemsParams::setIs3DNull() { + m_is3D = std::nullopt; +} + + +const bool &GetItemsParams::is4K() const { + return m_is4K.value(); +} + +void GetItemsParams::setIs4K(bool newIs4K) { + m_is4K = newIs4K; +} + +bool GetItemsParams::is4KNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_is4K.has_value(); +} + +void GetItemsParams::setIs4KNull() { + m_is4K = std::nullopt; +} + + +const bool &GetItemsParams::isFavorite() const { + return m_isFavorite.value(); +} + +void GetItemsParams::setIsFavorite(bool newIsFavorite) { + m_isFavorite = newIsFavorite; +} + +bool GetItemsParams::isFavoriteNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isFavorite.has_value(); +} + +void GetItemsParams::setIsFavoriteNull() { + m_isFavorite = std::nullopt; +} + + +const bool &GetItemsParams::isHd() const { + return m_isHd.value(); +} + +void GetItemsParams::setIsHd(bool newIsHd) { + m_isHd = newIsHd; +} + +bool GetItemsParams::isHdNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isHd.has_value(); +} + +void GetItemsParams::setIsHdNull() { + m_isHd = std::nullopt; +} + + +const bool &GetItemsParams::isLocked() const { + return m_isLocked.value(); +} + +void GetItemsParams::setIsLocked(bool newIsLocked) { + m_isLocked = newIsLocked; +} + +bool GetItemsParams::isLockedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isLocked.has_value(); +} + +void GetItemsParams::setIsLockedNull() { + m_isLocked = std::nullopt; +} + + +const bool &GetItemsParams::isMissing() const { + return m_isMissing.value(); +} + +void GetItemsParams::setIsMissing(bool newIsMissing) { + m_isMissing = newIsMissing; +} + +bool GetItemsParams::isMissingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isMissing.has_value(); +} + +void GetItemsParams::setIsMissingNull() { + m_isMissing = std::nullopt; +} + + +const bool &GetItemsParams::isPlaceHolder() const { + return m_isPlaceHolder.value(); +} + +void GetItemsParams::setIsPlaceHolder(bool newIsPlaceHolder) { + m_isPlaceHolder = newIsPlaceHolder; +} + +bool GetItemsParams::isPlaceHolderNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isPlaceHolder.has_value(); +} + +void GetItemsParams::setIsPlaceHolderNull() { + m_isPlaceHolder = std::nullopt; +} + + +const bool &GetItemsParams::isPlayed() const { + return m_isPlayed.value(); +} + +void GetItemsParams::setIsPlayed(bool newIsPlayed) { + m_isPlayed = newIsPlayed; +} + +bool GetItemsParams::isPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isPlayed.has_value(); +} + +void GetItemsParams::setIsPlayedNull() { + m_isPlayed = std::nullopt; +} + + +const bool &GetItemsParams::isUnaired() const { + return m_isUnaired.value(); +} + +void GetItemsParams::setIsUnaired(bool newIsUnaired) { + m_isUnaired = newIsUnaired; +} + +bool GetItemsParams::isUnairedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isUnaired.has_value(); +} + +void GetItemsParams::setIsUnairedNull() { + m_isUnaired = std::nullopt; +} + + +const qint32 &GetItemsParams::limit() const { + return m_limit.value(); +} + +void GetItemsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetItemsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetItemsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QList &GetItemsParams::locationTypes() const { + return m_locationTypes; +} + +void GetItemsParams::setLocationTypes(QList newLocationTypes) { + m_locationTypes = newLocationTypes; +} + +bool GetItemsParams::locationTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_locationTypes.size() == 0; +} + +void GetItemsParams::setLocationTypesNull() { + m_locationTypes.clear(); +} + + +const qint32 &GetItemsParams::maxHeight() const { + return m_maxHeight.value(); +} + +void GetItemsParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool GetItemsParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void GetItemsParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const QString &GetItemsParams::maxOfficialRating() const { + return m_maxOfficialRating; +} + +void GetItemsParams::setMaxOfficialRating(QString newMaxOfficialRating) { + m_maxOfficialRating = newMaxOfficialRating; +} + +bool GetItemsParams::maxOfficialRatingNull() const { + // Nullable: true + // Type Nullable: true + + + return m_maxOfficialRating.isNull(); +} + +void GetItemsParams::setMaxOfficialRatingNull() { + m_maxOfficialRating.clear(); +} + + +const QDateTime &GetItemsParams::maxPremiereDate() const { + return m_maxPremiereDate; +} + +void GetItemsParams::setMaxPremiereDate(QDateTime newMaxPremiereDate) { + m_maxPremiereDate = newMaxPremiereDate; +} + +bool GetItemsParams::maxPremiereDateNull() const { + // Nullable: true + // Type Nullable: true + + + return m_maxPremiereDate.isNull(); +} + +void GetItemsParams::setMaxPremiereDateNull() { + m_maxPremiereDate= QDateTime(); +} + + +const qint32 &GetItemsParams::maxWidth() const { + return m_maxWidth.value(); +} + +void GetItemsParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool GetItemsParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void GetItemsParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const QStringList &GetItemsParams::mediaTypes() const { + return m_mediaTypes; +} + +void GetItemsParams::setMediaTypes(QStringList newMediaTypes) { + m_mediaTypes = newMediaTypes; +} + +bool GetItemsParams::mediaTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaTypes.size() == 0; +} + +void GetItemsParams::setMediaTypesNull() { + m_mediaTypes.clear(); +} + + +const double &GetItemsParams::minCommunityRating() const { + return m_minCommunityRating.value(); +} + +void GetItemsParams::setMinCommunityRating(double newMinCommunityRating) { + m_minCommunityRating = newMinCommunityRating; +} + +bool GetItemsParams::minCommunityRatingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minCommunityRating.has_value(); +} + +void GetItemsParams::setMinCommunityRatingNull() { + m_minCommunityRating = std::nullopt; +} + + +const double &GetItemsParams::minCriticRating() const { + return m_minCriticRating.value(); +} + +void GetItemsParams::setMinCriticRating(double newMinCriticRating) { + m_minCriticRating = newMinCriticRating; +} + +bool GetItemsParams::minCriticRatingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minCriticRating.has_value(); +} + +void GetItemsParams::setMinCriticRatingNull() { + m_minCriticRating = std::nullopt; +} + + +const QDateTime &GetItemsParams::minDateLastSaved() const { + return m_minDateLastSaved; +} + +void GetItemsParams::setMinDateLastSaved(QDateTime newMinDateLastSaved) { + m_minDateLastSaved = newMinDateLastSaved; +} + +bool GetItemsParams::minDateLastSavedNull() const { + // Nullable: true + // Type Nullable: true + + + return m_minDateLastSaved.isNull(); +} + +void GetItemsParams::setMinDateLastSavedNull() { + m_minDateLastSaved= QDateTime(); +} + + +const QDateTime &GetItemsParams::minDateLastSavedForUser() const { + return m_minDateLastSavedForUser; +} + +void GetItemsParams::setMinDateLastSavedForUser(QDateTime newMinDateLastSavedForUser) { + m_minDateLastSavedForUser = newMinDateLastSavedForUser; +} + +bool GetItemsParams::minDateLastSavedForUserNull() const { + // Nullable: true + // Type Nullable: true + + + return m_minDateLastSavedForUser.isNull(); +} + +void GetItemsParams::setMinDateLastSavedForUserNull() { + m_minDateLastSavedForUser= QDateTime(); +} + + +const qint32 &GetItemsParams::minHeight() const { + return m_minHeight.value(); +} + +void GetItemsParams::setMinHeight(qint32 newMinHeight) { + m_minHeight = newMinHeight; +} + +bool GetItemsParams::minHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minHeight.has_value(); +} + +void GetItemsParams::setMinHeightNull() { + m_minHeight = std::nullopt; +} + + +const QString &GetItemsParams::minOfficialRating() const { + return m_minOfficialRating; +} + +void GetItemsParams::setMinOfficialRating(QString newMinOfficialRating) { + m_minOfficialRating = newMinOfficialRating; +} + +bool GetItemsParams::minOfficialRatingNull() const { + // Nullable: true + // Type Nullable: true + + + return m_minOfficialRating.isNull(); +} + +void GetItemsParams::setMinOfficialRatingNull() { + m_minOfficialRating.clear(); +} + + +const QDateTime &GetItemsParams::minPremiereDate() const { + return m_minPremiereDate; +} + +void GetItemsParams::setMinPremiereDate(QDateTime newMinPremiereDate) { + m_minPremiereDate = newMinPremiereDate; +} + +bool GetItemsParams::minPremiereDateNull() const { + // Nullable: true + // Type Nullable: true + + + return m_minPremiereDate.isNull(); +} + +void GetItemsParams::setMinPremiereDateNull() { + m_minPremiereDate= QDateTime(); +} + + +const qint32 &GetItemsParams::minWidth() const { + return m_minWidth.value(); +} + +void GetItemsParams::setMinWidth(qint32 newMinWidth) { + m_minWidth = newMinWidth; +} + +bool GetItemsParams::minWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minWidth.has_value(); +} + +void GetItemsParams::setMinWidthNull() { + m_minWidth = std::nullopt; +} + + +const QString &GetItemsParams::nameLessThan() const { + return m_nameLessThan; +} + +void GetItemsParams::setNameLessThan(QString newNameLessThan) { + m_nameLessThan = newNameLessThan; +} + +bool GetItemsParams::nameLessThanNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameLessThan.isNull(); +} + +void GetItemsParams::setNameLessThanNull() { + m_nameLessThan.clear(); +} + + +const QString &GetItemsParams::nameStartsWith() const { + return m_nameStartsWith; +} + +void GetItemsParams::setNameStartsWith(QString newNameStartsWith) { + m_nameStartsWith = newNameStartsWith; +} + +bool GetItemsParams::nameStartsWithNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameStartsWith.isNull(); +} + +void GetItemsParams::setNameStartsWithNull() { + m_nameStartsWith.clear(); +} + + +const QString &GetItemsParams::nameStartsWithOrGreater() const { + return m_nameStartsWithOrGreater; +} + +void GetItemsParams::setNameStartsWithOrGreater(QString newNameStartsWithOrGreater) { + m_nameStartsWithOrGreater = newNameStartsWithOrGreater; +} + +bool GetItemsParams::nameStartsWithOrGreaterNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameStartsWithOrGreater.isNull(); +} + +void GetItemsParams::setNameStartsWithOrGreaterNull() { + m_nameStartsWithOrGreater.clear(); +} + + +const QStringList &GetItemsParams::officialRatings() const { + return m_officialRatings; +} + +void GetItemsParams::setOfficialRatings(QStringList newOfficialRatings) { + m_officialRatings = newOfficialRatings; +} + +bool GetItemsParams::officialRatingsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_officialRatings.size() == 0; +} + +void GetItemsParams::setOfficialRatingsNull() { + m_officialRatings.clear(); +} + + +const QString &GetItemsParams::parentId() const { + return m_parentId; +} + +void GetItemsParams::setParentId(QString newParentId) { + m_parentId = newParentId; +} + +bool GetItemsParams::parentIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_parentId.isNull(); +} + +void GetItemsParams::setParentIdNull() { + m_parentId.clear(); +} + + +const qint32 &GetItemsParams::parentIndexNumber() const { + return m_parentIndexNumber.value(); +} + +void GetItemsParams::setParentIndexNumber(qint32 newParentIndexNumber) { + m_parentIndexNumber = newParentIndexNumber; +} + +bool GetItemsParams::parentIndexNumberNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_parentIndexNumber.has_value(); +} + +void GetItemsParams::setParentIndexNumberNull() { + m_parentIndexNumber = std::nullopt; +} + + +const QString &GetItemsParams::person() const { + return m_person; +} + +void GetItemsParams::setPerson(QString newPerson) { + m_person = newPerson; +} + +bool GetItemsParams::personNull() const { + // Nullable: true + // Type Nullable: true + + + return m_person.isNull(); +} + +void GetItemsParams::setPersonNull() { + m_person.clear(); +} + + +const QStringList &GetItemsParams::personIds() const { + return m_personIds; +} + +void GetItemsParams::setPersonIds(QStringList newPersonIds) { + m_personIds = newPersonIds; +} + +bool GetItemsParams::personIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_personIds.size() == 0; +} + +void GetItemsParams::setPersonIdsNull() { + m_personIds.clear(); +} + + +const QStringList &GetItemsParams::personTypes() const { + return m_personTypes; +} + +void GetItemsParams::setPersonTypes(QStringList newPersonTypes) { + m_personTypes = newPersonTypes; +} + +bool GetItemsParams::personTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_personTypes.size() == 0; +} + +void GetItemsParams::setPersonTypesNull() { + m_personTypes.clear(); +} + + +const bool &GetItemsParams::recursive() const { + return m_recursive.value(); +} + +void GetItemsParams::setRecursive(bool newRecursive) { + m_recursive = newRecursive; +} + +bool GetItemsParams::recursiveNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_recursive.has_value(); +} + +void GetItemsParams::setRecursiveNull() { + m_recursive = std::nullopt; +} + + +const QString &GetItemsParams::searchTerm() const { + return m_searchTerm; +} + +void GetItemsParams::setSearchTerm(QString newSearchTerm) { + m_searchTerm = newSearchTerm; +} + +bool GetItemsParams::searchTermNull() const { + // Nullable: true + // Type Nullable: true + + + return m_searchTerm.isNull(); +} + +void GetItemsParams::setSearchTermNull() { + m_searchTerm.clear(); +} + + +const QList &GetItemsParams::seriesStatus() const { + return m_seriesStatus; +} + +void GetItemsParams::setSeriesStatus(QList newSeriesStatus) { + m_seriesStatus = newSeriesStatus; +} + +bool GetItemsParams::seriesStatusNull() const { + // Nullable: true + // Type Nullable: true + + + return m_seriesStatus.size() == 0; +} + +void GetItemsParams::setSeriesStatusNull() { + m_seriesStatus.clear(); +} + + +const QString &GetItemsParams::sortBy() const { + return m_sortBy; +} + +void GetItemsParams::setSortBy(QString newSortBy) { + m_sortBy = newSortBy; +} + +bool GetItemsParams::sortByNull() const { + // Nullable: true + // Type Nullable: true + + + return m_sortBy.isNull(); +} + +void GetItemsParams::setSortByNull() { + m_sortBy.clear(); +} + + +const QString &GetItemsParams::sortOrder() const { + return m_sortOrder; +} + +void GetItemsParams::setSortOrder(QString newSortOrder) { + m_sortOrder = newSortOrder; +} + +bool GetItemsParams::sortOrderNull() const { + // Nullable: true + // Type Nullable: true + + + return m_sortOrder.isNull(); +} + +void GetItemsParams::setSortOrderNull() { + m_sortOrder.clear(); +} + + +const qint32 &GetItemsParams::startIndex() const { + return m_startIndex.value(); +} + +void GetItemsParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetItemsParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetItemsParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const QStringList &GetItemsParams::studioIds() const { + return m_studioIds; +} + +void GetItemsParams::setStudioIds(QStringList newStudioIds) { + m_studioIds = newStudioIds; +} + +bool GetItemsParams::studioIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_studioIds.size() == 0; +} + +void GetItemsParams::setStudioIdsNull() { + m_studioIds.clear(); +} + + +const QStringList &GetItemsParams::studios() const { + return m_studios; +} + +void GetItemsParams::setStudios(QStringList newStudios) { + m_studios = newStudios; +} + +bool GetItemsParams::studiosNull() const { + // Nullable: true + // Type Nullable: true + + + return m_studios.size() == 0; +} + +void GetItemsParams::setStudiosNull() { + m_studios.clear(); +} + + +const QStringList &GetItemsParams::tags() const { + return m_tags; +} + +void GetItemsParams::setTags(QStringList newTags) { + m_tags = newTags; +} + +bool GetItemsParams::tagsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tags.size() == 0; +} + +void GetItemsParams::setTagsNull() { + m_tags.clear(); +} + + +const QString &GetItemsParams::userId() const { + return m_userId; +} + +void GetItemsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetItemsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetItemsParams::setUserIdNull() { + m_userId.clear(); +} + + +const QList &GetItemsParams::videoTypes() const { + return m_videoTypes; +} + +void GetItemsParams::setVideoTypes(QList newVideoTypes) { + m_videoTypes = newVideoTypes; +} + +bool GetItemsParams::videoTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoTypes.size() == 0; +} + +void GetItemsParams::setVideoTypesNull() { + m_videoTypes.clear(); +} + + +const QList &GetItemsParams::years() const { + return m_years; +} + +void GetItemsParams::setYears(QList newYears) { + m_years = newYears; +} + +bool GetItemsParams::yearsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_years.size() == 0; +} + +void GetItemsParams::setYearsNull() { + m_years.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getkeysparams.cpp b/core/src/loader/getkeysparams.cpp new file mode 100644 index 0000000..fe11363 --- /dev/null +++ b/core/src/loader/getkeysparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getkeysparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetKeysParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getlatestchannelitemsparams.cpp b/core/src/loader/getlatestchannelitemsparams.cpp new file mode 100644 index 0000000..650e84d --- /dev/null +++ b/core/src/loader/getlatestchannelitemsparams.cpp @@ -0,0 +1,167 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getlatestchannelitemsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetLatestChannelItemsParams + +const QStringList &GetLatestChannelItemsParams::channelIds() const { + return m_channelIds; +} + +void GetLatestChannelItemsParams::setChannelIds(QStringList newChannelIds) { + m_channelIds = newChannelIds; +} + +bool GetLatestChannelItemsParams::channelIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_channelIds.size() == 0; +} + +void GetLatestChannelItemsParams::setChannelIdsNull() { + m_channelIds.clear(); +} + + +const QList &GetLatestChannelItemsParams::fields() const { + return m_fields; +} + +void GetLatestChannelItemsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetLatestChannelItemsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetLatestChannelItemsParams::setFieldsNull() { + m_fields.clear(); +} + + +const QList &GetLatestChannelItemsParams::filters() const { + return m_filters; +} + +void GetLatestChannelItemsParams::setFilters(QList newFilters) { + m_filters = newFilters; +} + +bool GetLatestChannelItemsParams::filtersNull() const { + // Nullable: true + // Type Nullable: true + + + return m_filters.size() == 0; +} + +void GetLatestChannelItemsParams::setFiltersNull() { + m_filters.clear(); +} + + +const qint32 &GetLatestChannelItemsParams::limit() const { + return m_limit.value(); +} + +void GetLatestChannelItemsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetLatestChannelItemsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetLatestChannelItemsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const qint32 &GetLatestChannelItemsParams::startIndex() const { + return m_startIndex.value(); +} + +void GetLatestChannelItemsParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetLatestChannelItemsParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetLatestChannelItemsParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const QString &GetLatestChannelItemsParams::userId() const { + return m_userId; +} + +void GetLatestChannelItemsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetLatestChannelItemsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetLatestChannelItemsParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getlatestmediaparams.cpp b/core/src/loader/getlatestmediaparams.cpp new file mode 100644 index 0000000..04ce01d --- /dev/null +++ b/core/src/loader/getlatestmediaparams.cpp @@ -0,0 +1,260 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getlatestmediaparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetLatestMediaParams + +const QString &GetLatestMediaParams::userId() const { + return m_userId; +} + +void GetLatestMediaParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + +const QList &GetLatestMediaParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetLatestMediaParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetLatestMediaParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetLatestMediaParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetLatestMediaParams::enableImages() const { + return m_enableImages.value(); +} + +void GetLatestMediaParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetLatestMediaParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetLatestMediaParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetLatestMediaParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetLatestMediaParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetLatestMediaParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetLatestMediaParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QList &GetLatestMediaParams::fields() const { + return m_fields; +} + +void GetLatestMediaParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetLatestMediaParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetLatestMediaParams::setFieldsNull() { + m_fields.clear(); +} + + +const bool &GetLatestMediaParams::groupItems() const { + return m_groupItems.value(); +} + +void GetLatestMediaParams::setGroupItems(bool newGroupItems) { + m_groupItems = newGroupItems; +} + +bool GetLatestMediaParams::groupItemsNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_groupItems.has_value(); +} + +void GetLatestMediaParams::setGroupItemsNull() { + m_groupItems = std::nullopt; +} + + +const qint32 &GetLatestMediaParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetLatestMediaParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetLatestMediaParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetLatestMediaParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const QStringList &GetLatestMediaParams::includeItemTypes() const { + return m_includeItemTypes; +} + +void GetLatestMediaParams::setIncludeItemTypes(QStringList newIncludeItemTypes) { + m_includeItemTypes = newIncludeItemTypes; +} + +bool GetLatestMediaParams::includeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_includeItemTypes.size() == 0; +} + +void GetLatestMediaParams::setIncludeItemTypesNull() { + m_includeItemTypes.clear(); +} + + +const bool &GetLatestMediaParams::isPlayed() const { + return m_isPlayed.value(); +} + +void GetLatestMediaParams::setIsPlayed(bool newIsPlayed) { + m_isPlayed = newIsPlayed; +} + +bool GetLatestMediaParams::isPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isPlayed.has_value(); +} + +void GetLatestMediaParams::setIsPlayedNull() { + m_isPlayed = std::nullopt; +} + + +const qint32 &GetLatestMediaParams::limit() const { + return m_limit.value(); +} + +void GetLatestMediaParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetLatestMediaParams::limitNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetLatestMediaParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetLatestMediaParams::parentId() const { + return m_parentId; +} + +void GetLatestMediaParams::setParentId(QString newParentId) { + m_parentId = newParentId; +} + +bool GetLatestMediaParams::parentIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_parentId.isNull(); +} + +void GetLatestMediaParams::setParentIdNull() { + m_parentId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/notificationtypeinfo.h b/core/src/loader/getlibraryoptionsinfoparams.cpp similarity index 55% rename from core/include/JellyfinQt/DTO/notificationtypeinfo.h rename to core/src/loader/getlibraryoptionsinfoparams.cpp index fcdfe82..74bcb2e 100644 --- a/core/include/JellyfinQt/DTO/notificationtypeinfo.h +++ b/core/src/loader/getlibraryoptionsinfoparams.cpp @@ -27,58 +27,57 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_NOTIFICATIONTYPEINFO_H -#define JELLYFIN_DTO_NOTIFICATIONTYPEINFO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/getlibraryoptionsinfoparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { +using namespace Jellyfin::DTO; -class NotificationTypeInfo { -public:NotificationTypeInfo();NotificationTypeInfo(const NotificationTypeInfo &other); +// GetLibraryOptionsInfoParams + +const bool &GetLibraryOptionsInfoParams::isNewLibrary() const { + return m_isNewLibrary.value(); +} + +void GetLibraryOptionsInfoParams::setIsNewLibrary(bool newIsNewLibrary) { + m_isNewLibrary = newIsNewLibrary; +} + +bool GetLibraryOptionsInfoParams::isNewLibraryNull() const { + // Nullable: true + // Type Nullable: false - static NotificationTypeInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); + + return !m_isNewLibrary.has_value(); +} + +void GetLibraryOptionsInfoParams::setIsNewLibraryNull() { + m_isNewLibrary = std::nullopt; +} + + +const QString &GetLibraryOptionsInfoParams::libraryContentType() const { + return m_libraryContentType; +} + +void GetLibraryOptionsInfoParams::setLibraryContentType(QString newLibraryContentType) { + m_libraryContentType = newLibraryContentType; +} + +bool GetLibraryOptionsInfoParams::libraryContentTypeNull() const { + // Nullable: true + // Type Nullable: true - // Properties - QString type() const; + return m_libraryContentType.isNull(); +} - void setType(QString newType); +void GetLibraryOptionsInfoParams::setLibraryContentTypeNull() { + m_libraryContentType.clear(); +} - QString name() const; - void setName(QString newName); - - bool enabled() const; - - void setEnabled(bool newEnabled); - - QString category() const; - - void setCategory(QString newCategory); - - bool isBasedOnUserEvent() const; - - void setIsBasedOnUserEvent(bool newIsBasedOnUserEvent); - -protected: - QString m_type; - QString m_name; - bool m_enabled; - QString m_category; - bool m_isBasedOnUserEvent; -}; +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_NOTIFICATIONTYPEINFO_H diff --git a/core/src/loader/getlineupsparams.cpp b/core/src/loader/getlineupsparams.cpp new file mode 100644 index 0000000..81d93b8 --- /dev/null +++ b/core/src/loader/getlineupsparams.cpp @@ -0,0 +1,125 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getlineupsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetLineupsParams + +const QString &GetLineupsParams::country() const { + return m_country; +} + +void GetLineupsParams::setCountry(QString newCountry) { + m_country = newCountry; +} + +bool GetLineupsParams::countryNull() const { + // Nullable: true + // Type Nullable: true + + + return m_country.isNull(); +} + +void GetLineupsParams::setCountryNull() { + m_country.clear(); +} + + +const QString &GetLineupsParams::jellyfinId() const { + return m_jellyfinId; +} + +void GetLineupsParams::setJellyfinId(QString newJellyfinId) { + m_jellyfinId = newJellyfinId; +} + +bool GetLineupsParams::jellyfinIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_jellyfinId.isNull(); +} + +void GetLineupsParams::setJellyfinIdNull() { + m_jellyfinId.clear(); +} + + +const QString &GetLineupsParams::location() const { + return m_location; +} + +void GetLineupsParams::setLocation(QString newLocation) { + m_location = newLocation; +} + +bool GetLineupsParams::locationNull() const { + // Nullable: true + // Type Nullable: true + + + return m_location.isNull(); +} + +void GetLineupsParams::setLocationNull() { + m_location.clear(); +} + + +const QString &GetLineupsParams::type() const { + return m_type; +} + +void GetLineupsParams::setType(QString newType) { + m_type = newType; +} + +bool GetLineupsParams::typeNull() const { + // Nullable: true + // Type Nullable: true + + + return m_type.isNull(); +} + +void GetLineupsParams::setTypeNull() { + m_type.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getlivehlsstreamparams.cpp b/core/src/loader/getlivehlsstreamparams.cpp new file mode 100644 index 0000000..031df1f --- /dev/null +++ b/core/src/loader/getlivehlsstreamparams.cpp @@ -0,0 +1,1121 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getlivehlsstreamparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetLiveHlsStreamParams + +const QString &GetLiveHlsStreamParams::itemId() const { + return m_itemId; +} + +void GetLiveHlsStreamParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const bool &GetLiveHlsStreamParams::allowAudioStreamCopy() const { + return m_allowAudioStreamCopy.value(); +} + +void GetLiveHlsStreamParams::setAllowAudioStreamCopy(bool newAllowAudioStreamCopy) { + m_allowAudioStreamCopy = newAllowAudioStreamCopy; +} + +bool GetLiveHlsStreamParams::allowAudioStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowAudioStreamCopy.has_value(); +} + +void GetLiveHlsStreamParams::setAllowAudioStreamCopyNull() { + m_allowAudioStreamCopy = std::nullopt; +} + + +const bool &GetLiveHlsStreamParams::allowVideoStreamCopy() const { + return m_allowVideoStreamCopy.value(); +} + +void GetLiveHlsStreamParams::setAllowVideoStreamCopy(bool newAllowVideoStreamCopy) { + m_allowVideoStreamCopy = newAllowVideoStreamCopy; +} + +bool GetLiveHlsStreamParams::allowVideoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowVideoStreamCopy.has_value(); +} + +void GetLiveHlsStreamParams::setAllowVideoStreamCopyNull() { + m_allowVideoStreamCopy = std::nullopt; +} + + +const qint32 &GetLiveHlsStreamParams::audioBitRate() const { + return m_audioBitRate.value(); +} + +void GetLiveHlsStreamParams::setAudioBitRate(qint32 newAudioBitRate) { + m_audioBitRate = newAudioBitRate; +} + +bool GetLiveHlsStreamParams::audioBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioBitRate.has_value(); +} + +void GetLiveHlsStreamParams::setAudioBitRateNull() { + m_audioBitRate = std::nullopt; +} + + +const qint32 &GetLiveHlsStreamParams::audioChannels() const { + return m_audioChannels.value(); +} + +void GetLiveHlsStreamParams::setAudioChannels(qint32 newAudioChannels) { + m_audioChannels = newAudioChannels; +} + +bool GetLiveHlsStreamParams::audioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioChannels.has_value(); +} + +void GetLiveHlsStreamParams::setAudioChannelsNull() { + m_audioChannels = std::nullopt; +} + + +const QString &GetLiveHlsStreamParams::audioCodec() const { + return m_audioCodec; +} + +void GetLiveHlsStreamParams::setAudioCodec(QString newAudioCodec) { + m_audioCodec = newAudioCodec; +} + +bool GetLiveHlsStreamParams::audioCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_audioCodec.isNull(); +} + +void GetLiveHlsStreamParams::setAudioCodecNull() { + m_audioCodec.clear(); +} + + +const qint32 &GetLiveHlsStreamParams::audioSampleRate() const { + return m_audioSampleRate.value(); +} + +void GetLiveHlsStreamParams::setAudioSampleRate(qint32 newAudioSampleRate) { + m_audioSampleRate = newAudioSampleRate; +} + +bool GetLiveHlsStreamParams::audioSampleRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioSampleRate.has_value(); +} + +void GetLiveHlsStreamParams::setAudioSampleRateNull() { + m_audioSampleRate = std::nullopt; +} + + +const qint32 &GetLiveHlsStreamParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void GetLiveHlsStreamParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool GetLiveHlsStreamParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void GetLiveHlsStreamParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &GetLiveHlsStreamParams::breakOnNonKeyFrames() const { + return m_breakOnNonKeyFrames.value(); +} + +void GetLiveHlsStreamParams::setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames) { + m_breakOnNonKeyFrames = newBreakOnNonKeyFrames; +} + +bool GetLiveHlsStreamParams::breakOnNonKeyFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_breakOnNonKeyFrames.has_value(); +} + +void GetLiveHlsStreamParams::setBreakOnNonKeyFramesNull() { + m_breakOnNonKeyFrames = std::nullopt; +} + + +const QString &GetLiveHlsStreamParams::container() const { + return m_container; +} + +void GetLiveHlsStreamParams::setContainer(QString newContainer) { + m_container = newContainer; +} + +bool GetLiveHlsStreamParams::containerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_container.isNull(); +} + +void GetLiveHlsStreamParams::setContainerNull() { + m_container.clear(); +} + + +const EncodingContext &GetLiveHlsStreamParams::context() const { + return m_context; +} + +void GetLiveHlsStreamParams::setContext(EncodingContext newContext) { + m_context = newContext; +} + +bool GetLiveHlsStreamParams::contextNull() const { + // Nullable: true + // Type Nullable: true + + + return m_context== EncodingContext::EnumNotSet; +} + +void GetLiveHlsStreamParams::setContextNull() { + m_context= EncodingContext::EnumNotSet; +} + + +const bool &GetLiveHlsStreamParams::copyTimestamps() const { + return m_copyTimestamps.value(); +} + +void GetLiveHlsStreamParams::setCopyTimestamps(bool newCopyTimestamps) { + m_copyTimestamps = newCopyTimestamps; +} + +bool GetLiveHlsStreamParams::copyTimestampsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_copyTimestamps.has_value(); +} + +void GetLiveHlsStreamParams::setCopyTimestampsNull() { + m_copyTimestamps = std::nullopt; +} + + +const qint32 &GetLiveHlsStreamParams::cpuCoreLimit() const { + return m_cpuCoreLimit.value(); +} + +void GetLiveHlsStreamParams::setCpuCoreLimit(qint32 newCpuCoreLimit) { + m_cpuCoreLimit = newCpuCoreLimit; +} + +bool GetLiveHlsStreamParams::cpuCoreLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cpuCoreLimit.has_value(); +} + +void GetLiveHlsStreamParams::setCpuCoreLimitNull() { + m_cpuCoreLimit = std::nullopt; +} + + +const bool &GetLiveHlsStreamParams::deInterlace() const { + return m_deInterlace.value(); +} + +void GetLiveHlsStreamParams::setDeInterlace(bool newDeInterlace) { + m_deInterlace = newDeInterlace; +} + +bool GetLiveHlsStreamParams::deInterlaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_deInterlace.has_value(); +} + +void GetLiveHlsStreamParams::setDeInterlaceNull() { + m_deInterlace = std::nullopt; +} + + +const QString &GetLiveHlsStreamParams::deviceId() const { + return m_deviceId; +} + +void GetLiveHlsStreamParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool GetLiveHlsStreamParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void GetLiveHlsStreamParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const QString &GetLiveHlsStreamParams::deviceProfileId() const { + return m_deviceProfileId; +} + +void GetLiveHlsStreamParams::setDeviceProfileId(QString newDeviceProfileId) { + m_deviceProfileId = newDeviceProfileId; +} + +bool GetLiveHlsStreamParams::deviceProfileIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceProfileId.isNull(); +} + +void GetLiveHlsStreamParams::setDeviceProfileIdNull() { + m_deviceProfileId.clear(); +} + + +const bool &GetLiveHlsStreamParams::enableAutoStreamCopy() const { + return m_enableAutoStreamCopy.value(); +} + +void GetLiveHlsStreamParams::setEnableAutoStreamCopy(bool newEnableAutoStreamCopy) { + m_enableAutoStreamCopy = newEnableAutoStreamCopy; +} + +bool GetLiveHlsStreamParams::enableAutoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableAutoStreamCopy.has_value(); +} + +void GetLiveHlsStreamParams::setEnableAutoStreamCopyNull() { + m_enableAutoStreamCopy = std::nullopt; +} + + +const bool &GetLiveHlsStreamParams::enableMpegtsM2TsMode() const { + return m_enableMpegtsM2TsMode.value(); +} + +void GetLiveHlsStreamParams::setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode) { + m_enableMpegtsM2TsMode = newEnableMpegtsM2TsMode; +} + +bool GetLiveHlsStreamParams::enableMpegtsM2TsModeNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableMpegtsM2TsMode.has_value(); +} + +void GetLiveHlsStreamParams::setEnableMpegtsM2TsModeNull() { + m_enableMpegtsM2TsMode = std::nullopt; +} + + +const bool &GetLiveHlsStreamParams::enableSubtitlesInManifest() const { + return m_enableSubtitlesInManifest.value(); +} + +void GetLiveHlsStreamParams::setEnableSubtitlesInManifest(bool newEnableSubtitlesInManifest) { + m_enableSubtitlesInManifest = newEnableSubtitlesInManifest; +} + +bool GetLiveHlsStreamParams::enableSubtitlesInManifestNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableSubtitlesInManifest.has_value(); +} + +void GetLiveHlsStreamParams::setEnableSubtitlesInManifestNull() { + m_enableSubtitlesInManifest = std::nullopt; +} + + +const float &GetLiveHlsStreamParams::framerate() const { + return m_framerate.value(); +} + +void GetLiveHlsStreamParams::setFramerate(float newFramerate) { + m_framerate = newFramerate; +} + +bool GetLiveHlsStreamParams::framerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_framerate.has_value(); +} + +void GetLiveHlsStreamParams::setFramerateNull() { + m_framerate = std::nullopt; +} + + +const qint32 &GetLiveHlsStreamParams::height() const { + return m_height.value(); +} + +void GetLiveHlsStreamParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetLiveHlsStreamParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetLiveHlsStreamParams::setHeightNull() { + m_height = std::nullopt; +} + + +const QString &GetLiveHlsStreamParams::level() const { + return m_level; +} + +void GetLiveHlsStreamParams::setLevel(QString newLevel) { + m_level = newLevel; +} + +bool GetLiveHlsStreamParams::levelNull() const { + // Nullable: true + // Type Nullable: true + + + return m_level.isNull(); +} + +void GetLiveHlsStreamParams::setLevelNull() { + m_level.clear(); +} + + +const QString &GetLiveHlsStreamParams::liveStreamId() const { + return m_liveStreamId; +} + +void GetLiveHlsStreamParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool GetLiveHlsStreamParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void GetLiveHlsStreamParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const qint32 &GetLiveHlsStreamParams::maxAudioBitDepth() const { + return m_maxAudioBitDepth.value(); +} + +void GetLiveHlsStreamParams::setMaxAudioBitDepth(qint32 newMaxAudioBitDepth) { + m_maxAudioBitDepth = newMaxAudioBitDepth; +} + +bool GetLiveHlsStreamParams::maxAudioBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioBitDepth.has_value(); +} + +void GetLiveHlsStreamParams::setMaxAudioBitDepthNull() { + m_maxAudioBitDepth = std::nullopt; +} + + +const qint32 &GetLiveHlsStreamParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void GetLiveHlsStreamParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool GetLiveHlsStreamParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void GetLiveHlsStreamParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const float &GetLiveHlsStreamParams::maxFramerate() const { + return m_maxFramerate.value(); +} + +void GetLiveHlsStreamParams::setMaxFramerate(float newMaxFramerate) { + m_maxFramerate = newMaxFramerate; +} + +bool GetLiveHlsStreamParams::maxFramerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxFramerate.has_value(); +} + +void GetLiveHlsStreamParams::setMaxFramerateNull() { + m_maxFramerate = std::nullopt; +} + + +const qint32 &GetLiveHlsStreamParams::maxHeight() const { + return m_maxHeight.value(); +} + +void GetLiveHlsStreamParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool GetLiveHlsStreamParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void GetLiveHlsStreamParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &GetLiveHlsStreamParams::maxRefFrames() const { + return m_maxRefFrames.value(); +} + +void GetLiveHlsStreamParams::setMaxRefFrames(qint32 newMaxRefFrames) { + m_maxRefFrames = newMaxRefFrames; +} + +bool GetLiveHlsStreamParams::maxRefFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxRefFrames.has_value(); +} + +void GetLiveHlsStreamParams::setMaxRefFramesNull() { + m_maxRefFrames = std::nullopt; +} + + +const qint32 &GetLiveHlsStreamParams::maxVideoBitDepth() const { + return m_maxVideoBitDepth.value(); +} + +void GetLiveHlsStreamParams::setMaxVideoBitDepth(qint32 newMaxVideoBitDepth) { + m_maxVideoBitDepth = newMaxVideoBitDepth; +} + +bool GetLiveHlsStreamParams::maxVideoBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxVideoBitDepth.has_value(); +} + +void GetLiveHlsStreamParams::setMaxVideoBitDepthNull() { + m_maxVideoBitDepth = std::nullopt; +} + + +const qint32 &GetLiveHlsStreamParams::maxWidth() const { + return m_maxWidth.value(); +} + +void GetLiveHlsStreamParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool GetLiveHlsStreamParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void GetLiveHlsStreamParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const QString &GetLiveHlsStreamParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void GetLiveHlsStreamParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + +bool GetLiveHlsStreamParams::mediaSourceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaSourceId.isNull(); +} + +void GetLiveHlsStreamParams::setMediaSourceIdNull() { + m_mediaSourceId.clear(); +} + + +const qint32 &GetLiveHlsStreamParams::minSegments() const { + return m_minSegments.value(); +} + +void GetLiveHlsStreamParams::setMinSegments(qint32 newMinSegments) { + m_minSegments = newMinSegments; +} + +bool GetLiveHlsStreamParams::minSegmentsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minSegments.has_value(); +} + +void GetLiveHlsStreamParams::setMinSegmentsNull() { + m_minSegments = std::nullopt; +} + + +const QString &GetLiveHlsStreamParams::params() const { + return m_params; +} + +void GetLiveHlsStreamParams::setParams(QString newParams) { + m_params = newParams; +} + +bool GetLiveHlsStreamParams::paramsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_params.isNull(); +} + +void GetLiveHlsStreamParams::setParamsNull() { + m_params.clear(); +} + + +const QString &GetLiveHlsStreamParams::playSessionId() const { + return m_playSessionId; +} + +void GetLiveHlsStreamParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool GetLiveHlsStreamParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void GetLiveHlsStreamParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const QString &GetLiveHlsStreamParams::profile() const { + return m_profile; +} + +void GetLiveHlsStreamParams::setProfile(QString newProfile) { + m_profile = newProfile; +} + +bool GetLiveHlsStreamParams::profileNull() const { + // Nullable: true + // Type Nullable: true + + + return m_profile.isNull(); +} + +void GetLiveHlsStreamParams::setProfileNull() { + m_profile.clear(); +} + + +const bool &GetLiveHlsStreamParams::requireAvc() const { + return m_requireAvc.value(); +} + +void GetLiveHlsStreamParams::setRequireAvc(bool newRequireAvc) { + m_requireAvc = newRequireAvc; +} + +bool GetLiveHlsStreamParams::requireAvcNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireAvc.has_value(); +} + +void GetLiveHlsStreamParams::setRequireAvcNull() { + m_requireAvc = std::nullopt; +} + + +const bool &GetLiveHlsStreamParams::requireNonAnamorphic() const { + return m_requireNonAnamorphic.value(); +} + +void GetLiveHlsStreamParams::setRequireNonAnamorphic(bool newRequireNonAnamorphic) { + m_requireNonAnamorphic = newRequireNonAnamorphic; +} + +bool GetLiveHlsStreamParams::requireNonAnamorphicNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireNonAnamorphic.has_value(); +} + +void GetLiveHlsStreamParams::setRequireNonAnamorphicNull() { + m_requireNonAnamorphic = std::nullopt; +} + + +const QString &GetLiveHlsStreamParams::segmentContainer() const { + return m_segmentContainer; +} + +void GetLiveHlsStreamParams::setSegmentContainer(QString newSegmentContainer) { + m_segmentContainer = newSegmentContainer; +} + +bool GetLiveHlsStreamParams::segmentContainerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_segmentContainer.isNull(); +} + +void GetLiveHlsStreamParams::setSegmentContainerNull() { + m_segmentContainer.clear(); +} + + +const qint32 &GetLiveHlsStreamParams::segmentLength() const { + return m_segmentLength.value(); +} + +void GetLiveHlsStreamParams::setSegmentLength(qint32 newSegmentLength) { + m_segmentLength = newSegmentLength; +} + +bool GetLiveHlsStreamParams::segmentLengthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_segmentLength.has_value(); +} + +void GetLiveHlsStreamParams::setSegmentLengthNull() { + m_segmentLength = std::nullopt; +} + + +const qint64 &GetLiveHlsStreamParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void GetLiveHlsStreamParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool GetLiveHlsStreamParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void GetLiveHlsStreamParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const bool &GetLiveHlsStreamParams::staticStreaming() const { + return m_staticStreaming.value(); +} + +void GetLiveHlsStreamParams::setStaticStreaming(bool newStaticStreaming) { + m_staticStreaming = newStaticStreaming; +} + +bool GetLiveHlsStreamParams::staticStreamingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_staticStreaming.has_value(); +} + +void GetLiveHlsStreamParams::setStaticStreamingNull() { + m_staticStreaming = std::nullopt; +} + + +const QJsonObject &GetLiveHlsStreamParams::streamOptions() const { + return m_streamOptions; +} + +void GetLiveHlsStreamParams::setStreamOptions(QJsonObject newStreamOptions) { + m_streamOptions = newStreamOptions; +} + +bool GetLiveHlsStreamParams::streamOptionsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_streamOptions.isEmpty(); +} + +void GetLiveHlsStreamParams::setStreamOptionsNull() { + m_streamOptions= QJsonObject(); +} + + +const QString &GetLiveHlsStreamParams::subtitleCodec() const { + return m_subtitleCodec; +} + +void GetLiveHlsStreamParams::setSubtitleCodec(QString newSubtitleCodec) { + m_subtitleCodec = newSubtitleCodec; +} + +bool GetLiveHlsStreamParams::subtitleCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleCodec.isNull(); +} + +void GetLiveHlsStreamParams::setSubtitleCodecNull() { + m_subtitleCodec.clear(); +} + + +const SubtitleDeliveryMethod &GetLiveHlsStreamParams::subtitleMethod() const { + return m_subtitleMethod; +} + +void GetLiveHlsStreamParams::setSubtitleMethod(SubtitleDeliveryMethod newSubtitleMethod) { + m_subtitleMethod = newSubtitleMethod; +} + +bool GetLiveHlsStreamParams::subtitleMethodNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleMethod== SubtitleDeliveryMethod::EnumNotSet; +} + +void GetLiveHlsStreamParams::setSubtitleMethodNull() { + m_subtitleMethod= SubtitleDeliveryMethod::EnumNotSet; +} + + +const qint32 &GetLiveHlsStreamParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void GetLiveHlsStreamParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool GetLiveHlsStreamParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void GetLiveHlsStreamParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const QString &GetLiveHlsStreamParams::tag() const { + return m_tag; +} + +void GetLiveHlsStreamParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetLiveHlsStreamParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetLiveHlsStreamParams::setTagNull() { + m_tag.clear(); +} + + +const QString &GetLiveHlsStreamParams::transcodeReasons() const { + return m_transcodeReasons; +} + +void GetLiveHlsStreamParams::setTranscodeReasons(QString newTranscodeReasons) { + m_transcodeReasons = newTranscodeReasons; +} + +bool GetLiveHlsStreamParams::transcodeReasonsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodeReasons.isNull(); +} + +void GetLiveHlsStreamParams::setTranscodeReasonsNull() { + m_transcodeReasons.clear(); +} + + +const qint32 &GetLiveHlsStreamParams::transcodingMaxAudioChannels() const { + return m_transcodingMaxAudioChannels.value(); +} + +void GetLiveHlsStreamParams::setTranscodingMaxAudioChannels(qint32 newTranscodingMaxAudioChannels) { + m_transcodingMaxAudioChannels = newTranscodingMaxAudioChannels; +} + +bool GetLiveHlsStreamParams::transcodingMaxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_transcodingMaxAudioChannels.has_value(); +} + +void GetLiveHlsStreamParams::setTranscodingMaxAudioChannelsNull() { + m_transcodingMaxAudioChannels = std::nullopt; +} + + +const qint32 &GetLiveHlsStreamParams::videoBitRate() const { + return m_videoBitRate.value(); +} + +void GetLiveHlsStreamParams::setVideoBitRate(qint32 newVideoBitRate) { + m_videoBitRate = newVideoBitRate; +} + +bool GetLiveHlsStreamParams::videoBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoBitRate.has_value(); +} + +void GetLiveHlsStreamParams::setVideoBitRateNull() { + m_videoBitRate = std::nullopt; +} + + +const QString &GetLiveHlsStreamParams::videoCodec() const { + return m_videoCodec; +} + +void GetLiveHlsStreamParams::setVideoCodec(QString newVideoCodec) { + m_videoCodec = newVideoCodec; +} + +bool GetLiveHlsStreamParams::videoCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoCodec.isNull(); +} + +void GetLiveHlsStreamParams::setVideoCodecNull() { + m_videoCodec.clear(); +} + + +const qint32 &GetLiveHlsStreamParams::videoStreamIndex() const { + return m_videoStreamIndex.value(); +} + +void GetLiveHlsStreamParams::setVideoStreamIndex(qint32 newVideoStreamIndex) { + m_videoStreamIndex = newVideoStreamIndex; +} + +bool GetLiveHlsStreamParams::videoStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoStreamIndex.has_value(); +} + +void GetLiveHlsStreamParams::setVideoStreamIndexNull() { + m_videoStreamIndex = std::nullopt; +} + + +const qint32 &GetLiveHlsStreamParams::width() const { + return m_width.value(); +} + +void GetLiveHlsStreamParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetLiveHlsStreamParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetLiveHlsStreamParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getliverecordingfileparams.cpp b/core/src/loader/getliverecordingfileparams.cpp new file mode 100644 index 0000000..48c061c --- /dev/null +++ b/core/src/loader/getliverecordingfileparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getliverecordingfileparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetLiveRecordingFileParams + +const QString &GetLiveRecordingFileParams::recordingId() const { + return m_recordingId; +} + +void GetLiveRecordingFileParams::setRecordingId(QString newRecordingId) { + m_recordingId = newRecordingId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/imagesavingconvention.h b/core/src/loader/getlivestreamfileparams.cpp similarity index 72% rename from core/include/JellyfinQt/DTO/imagesavingconvention.h rename to core/src/loader/getlivestreamfileparams.cpp index bb300a7..b9314fc 100644 --- a/core/include/JellyfinQt/DTO/imagesavingconvention.h +++ b/core/src/loader/getlivestreamfileparams.cpp @@ -27,34 +27,33 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_IMAGESAVINGCONVENTION_H -#define JELLYFIN_DTO_IMAGESAVINGCONVENTION_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/getlivestreamfileparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { -class ImageSavingConventionClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Legacy, - Compatible, - }; - Q_ENUM(Value) -private: - explicit ImageSavingConventionClass(); -}; +using namespace Jellyfin::DTO; -typedef ImageSavingConventionClass::Value ImageSavingConvention; +// GetLiveStreamFileParams +const QString &GetLiveStreamFileParams::container() const { + return m_container; +} + +void GetLiveStreamFileParams::setContainer(QString newContainer) { + m_container = newContainer; +} + + +const QString &GetLiveStreamFileParams::streamId() const { + return m_streamId; +} + +void GetLiveStreamFileParams::setStreamId(QString newStreamId) { + m_streamId = newStreamId; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_IMAGESAVINGCONVENTION_H diff --git a/core/src/loader/getlivetvchannelsparams.cpp b/core/src/loader/getlivetvchannelsparams.cpp new file mode 100644 index 0000000..cd5ee56 --- /dev/null +++ b/core/src/loader/getlivetvchannelsparams.cpp @@ -0,0 +1,482 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getlivetvchannelsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetLiveTvChannelsParams + +const bool &GetLiveTvChannelsParams::addCurrentProgram() const { + return m_addCurrentProgram.value(); +} + +void GetLiveTvChannelsParams::setAddCurrentProgram(bool newAddCurrentProgram) { + m_addCurrentProgram = newAddCurrentProgram; +} + +bool GetLiveTvChannelsParams::addCurrentProgramNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_addCurrentProgram.has_value(); +} + +void GetLiveTvChannelsParams::setAddCurrentProgramNull() { + m_addCurrentProgram = std::nullopt; +} + + +const bool &GetLiveTvChannelsParams::enableFavoriteSorting() const { + return m_enableFavoriteSorting.value(); +} + +void GetLiveTvChannelsParams::setEnableFavoriteSorting(bool newEnableFavoriteSorting) { + m_enableFavoriteSorting = newEnableFavoriteSorting; +} + +bool GetLiveTvChannelsParams::enableFavoriteSortingNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableFavoriteSorting.has_value(); +} + +void GetLiveTvChannelsParams::setEnableFavoriteSortingNull() { + m_enableFavoriteSorting = std::nullopt; +} + + +const QList &GetLiveTvChannelsParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetLiveTvChannelsParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetLiveTvChannelsParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetLiveTvChannelsParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetLiveTvChannelsParams::enableImages() const { + return m_enableImages.value(); +} + +void GetLiveTvChannelsParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetLiveTvChannelsParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetLiveTvChannelsParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetLiveTvChannelsParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetLiveTvChannelsParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetLiveTvChannelsParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetLiveTvChannelsParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QList &GetLiveTvChannelsParams::fields() const { + return m_fields; +} + +void GetLiveTvChannelsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetLiveTvChannelsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetLiveTvChannelsParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetLiveTvChannelsParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetLiveTvChannelsParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetLiveTvChannelsParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetLiveTvChannelsParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const bool &GetLiveTvChannelsParams::isDisliked() const { + return m_isDisliked.value(); +} + +void GetLiveTvChannelsParams::setIsDisliked(bool newIsDisliked) { + m_isDisliked = newIsDisliked; +} + +bool GetLiveTvChannelsParams::isDislikedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isDisliked.has_value(); +} + +void GetLiveTvChannelsParams::setIsDislikedNull() { + m_isDisliked = std::nullopt; +} + + +const bool &GetLiveTvChannelsParams::isFavorite() const { + return m_isFavorite.value(); +} + +void GetLiveTvChannelsParams::setIsFavorite(bool newIsFavorite) { + m_isFavorite = newIsFavorite; +} + +bool GetLiveTvChannelsParams::isFavoriteNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isFavorite.has_value(); +} + +void GetLiveTvChannelsParams::setIsFavoriteNull() { + m_isFavorite = std::nullopt; +} + + +const bool &GetLiveTvChannelsParams::isKids() const { + return m_isKids.value(); +} + +void GetLiveTvChannelsParams::setIsKids(bool newIsKids) { + m_isKids = newIsKids; +} + +bool GetLiveTvChannelsParams::isKidsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isKids.has_value(); +} + +void GetLiveTvChannelsParams::setIsKidsNull() { + m_isKids = std::nullopt; +} + + +const bool &GetLiveTvChannelsParams::isLiked() const { + return m_isLiked.value(); +} + +void GetLiveTvChannelsParams::setIsLiked(bool newIsLiked) { + m_isLiked = newIsLiked; +} + +bool GetLiveTvChannelsParams::isLikedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isLiked.has_value(); +} + +void GetLiveTvChannelsParams::setIsLikedNull() { + m_isLiked = std::nullopt; +} + + +const bool &GetLiveTvChannelsParams::isMovie() const { + return m_isMovie.value(); +} + +void GetLiveTvChannelsParams::setIsMovie(bool newIsMovie) { + m_isMovie = newIsMovie; +} + +bool GetLiveTvChannelsParams::isMovieNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isMovie.has_value(); +} + +void GetLiveTvChannelsParams::setIsMovieNull() { + m_isMovie = std::nullopt; +} + + +const bool &GetLiveTvChannelsParams::isNews() const { + return m_isNews.value(); +} + +void GetLiveTvChannelsParams::setIsNews(bool newIsNews) { + m_isNews = newIsNews; +} + +bool GetLiveTvChannelsParams::isNewsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isNews.has_value(); +} + +void GetLiveTvChannelsParams::setIsNewsNull() { + m_isNews = std::nullopt; +} + + +const bool &GetLiveTvChannelsParams::isSeries() const { + return m_isSeries.value(); +} + +void GetLiveTvChannelsParams::setIsSeries(bool newIsSeries) { + m_isSeries = newIsSeries; +} + +bool GetLiveTvChannelsParams::isSeriesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isSeries.has_value(); +} + +void GetLiveTvChannelsParams::setIsSeriesNull() { + m_isSeries = std::nullopt; +} + + +const bool &GetLiveTvChannelsParams::isSports() const { + return m_isSports.value(); +} + +void GetLiveTvChannelsParams::setIsSports(bool newIsSports) { + m_isSports = newIsSports; +} + +bool GetLiveTvChannelsParams::isSportsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isSports.has_value(); +} + +void GetLiveTvChannelsParams::setIsSportsNull() { + m_isSports = std::nullopt; +} + + +const qint32 &GetLiveTvChannelsParams::limit() const { + return m_limit.value(); +} + +void GetLiveTvChannelsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetLiveTvChannelsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetLiveTvChannelsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QStringList &GetLiveTvChannelsParams::sortBy() const { + return m_sortBy; +} + +void GetLiveTvChannelsParams::setSortBy(QStringList newSortBy) { + m_sortBy = newSortBy; +} + +bool GetLiveTvChannelsParams::sortByNull() const { + // Nullable: true + // Type Nullable: true + + + return m_sortBy.size() == 0; +} + +void GetLiveTvChannelsParams::setSortByNull() { + m_sortBy.clear(); +} + + +const SortOrder &GetLiveTvChannelsParams::sortOrder() const { + return m_sortOrder; +} + +void GetLiveTvChannelsParams::setSortOrder(SortOrder newSortOrder) { + m_sortOrder = newSortOrder; +} + +bool GetLiveTvChannelsParams::sortOrderNull() const { + // Nullable: true + // Type Nullable: true + + + return m_sortOrder== SortOrder::EnumNotSet; +} + +void GetLiveTvChannelsParams::setSortOrderNull() { + m_sortOrder= SortOrder::EnumNotSet; +} + + +const qint32 &GetLiveTvChannelsParams::startIndex() const { + return m_startIndex.value(); +} + +void GetLiveTvChannelsParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetLiveTvChannelsParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetLiveTvChannelsParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const ChannelType &GetLiveTvChannelsParams::type() const { + return m_type; +} + +void GetLiveTvChannelsParams::setType(ChannelType newType) { + m_type = newType; +} + +bool GetLiveTvChannelsParams::typeNull() const { + // Nullable: true + // Type Nullable: true + + + return m_type== ChannelType::EnumNotSet; +} + +void GetLiveTvChannelsParams::setTypeNull() { + m_type= ChannelType::EnumNotSet; +} + + +const QString &GetLiveTvChannelsParams::userId() const { + return m_userId; +} + +void GetLiveTvChannelsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetLiveTvChannelsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetLiveTvChannelsParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getlivetvinfoparams.cpp b/core/src/loader/getlivetvinfoparams.cpp new file mode 100644 index 0000000..d9b7554 --- /dev/null +++ b/core/src/loader/getlivetvinfoparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getlivetvinfoparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetLiveTvInfoParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getlivetvprogramsparams.cpp b/core/src/loader/getlivetvprogramsparams.cpp new file mode 100644 index 0000000..a7cd272 --- /dev/null +++ b/core/src/loader/getlivetvprogramsparams.cpp @@ -0,0 +1,608 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getlivetvprogramsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetLiveTvProgramsParams + +const QStringList &GetLiveTvProgramsParams::channelIds() const { + return m_channelIds; +} + +void GetLiveTvProgramsParams::setChannelIds(QStringList newChannelIds) { + m_channelIds = newChannelIds; +} + +bool GetLiveTvProgramsParams::channelIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_channelIds.size() == 0; +} + +void GetLiveTvProgramsParams::setChannelIdsNull() { + m_channelIds.clear(); +} + + +const QList &GetLiveTvProgramsParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetLiveTvProgramsParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetLiveTvProgramsParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetLiveTvProgramsParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetLiveTvProgramsParams::enableImages() const { + return m_enableImages.value(); +} + +void GetLiveTvProgramsParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetLiveTvProgramsParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetLiveTvProgramsParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetLiveTvProgramsParams::enableTotalRecordCount() const { + return m_enableTotalRecordCount.value(); +} + +void GetLiveTvProgramsParams::setEnableTotalRecordCount(bool newEnableTotalRecordCount) { + m_enableTotalRecordCount = newEnableTotalRecordCount; +} + +bool GetLiveTvProgramsParams::enableTotalRecordCountNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableTotalRecordCount.has_value(); +} + +void GetLiveTvProgramsParams::setEnableTotalRecordCountNull() { + m_enableTotalRecordCount = std::nullopt; +} + + +const bool &GetLiveTvProgramsParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetLiveTvProgramsParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetLiveTvProgramsParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetLiveTvProgramsParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QList &GetLiveTvProgramsParams::fields() const { + return m_fields; +} + +void GetLiveTvProgramsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetLiveTvProgramsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetLiveTvProgramsParams::setFieldsNull() { + m_fields.clear(); +} + + +const QStringList &GetLiveTvProgramsParams::genreIds() const { + return m_genreIds; +} + +void GetLiveTvProgramsParams::setGenreIds(QStringList newGenreIds) { + m_genreIds = newGenreIds; +} + +bool GetLiveTvProgramsParams::genreIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_genreIds.size() == 0; +} + +void GetLiveTvProgramsParams::setGenreIdsNull() { + m_genreIds.clear(); +} + + +const QStringList &GetLiveTvProgramsParams::genres() const { + return m_genres; +} + +void GetLiveTvProgramsParams::setGenres(QStringList newGenres) { + m_genres = newGenres; +} + +bool GetLiveTvProgramsParams::genresNull() const { + // Nullable: true + // Type Nullable: true + + + return m_genres.size() == 0; +} + +void GetLiveTvProgramsParams::setGenresNull() { + m_genres.clear(); +} + + +const bool &GetLiveTvProgramsParams::hasAired() const { + return m_hasAired.value(); +} + +void GetLiveTvProgramsParams::setHasAired(bool newHasAired) { + m_hasAired = newHasAired; +} + +bool GetLiveTvProgramsParams::hasAiredNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasAired.has_value(); +} + +void GetLiveTvProgramsParams::setHasAiredNull() { + m_hasAired = std::nullopt; +} + + +const qint32 &GetLiveTvProgramsParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetLiveTvProgramsParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetLiveTvProgramsParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetLiveTvProgramsParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const bool &GetLiveTvProgramsParams::isAiring() const { + return m_isAiring.value(); +} + +void GetLiveTvProgramsParams::setIsAiring(bool newIsAiring) { + m_isAiring = newIsAiring; +} + +bool GetLiveTvProgramsParams::isAiringNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isAiring.has_value(); +} + +void GetLiveTvProgramsParams::setIsAiringNull() { + m_isAiring = std::nullopt; +} + + +const bool &GetLiveTvProgramsParams::isKids() const { + return m_isKids.value(); +} + +void GetLiveTvProgramsParams::setIsKids(bool newIsKids) { + m_isKids = newIsKids; +} + +bool GetLiveTvProgramsParams::isKidsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isKids.has_value(); +} + +void GetLiveTvProgramsParams::setIsKidsNull() { + m_isKids = std::nullopt; +} + + +const bool &GetLiveTvProgramsParams::isMovie() const { + return m_isMovie.value(); +} + +void GetLiveTvProgramsParams::setIsMovie(bool newIsMovie) { + m_isMovie = newIsMovie; +} + +bool GetLiveTvProgramsParams::isMovieNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isMovie.has_value(); +} + +void GetLiveTvProgramsParams::setIsMovieNull() { + m_isMovie = std::nullopt; +} + + +const bool &GetLiveTvProgramsParams::isNews() const { + return m_isNews.value(); +} + +void GetLiveTvProgramsParams::setIsNews(bool newIsNews) { + m_isNews = newIsNews; +} + +bool GetLiveTvProgramsParams::isNewsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isNews.has_value(); +} + +void GetLiveTvProgramsParams::setIsNewsNull() { + m_isNews = std::nullopt; +} + + +const bool &GetLiveTvProgramsParams::isSeries() const { + return m_isSeries.value(); +} + +void GetLiveTvProgramsParams::setIsSeries(bool newIsSeries) { + m_isSeries = newIsSeries; +} + +bool GetLiveTvProgramsParams::isSeriesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isSeries.has_value(); +} + +void GetLiveTvProgramsParams::setIsSeriesNull() { + m_isSeries = std::nullopt; +} + + +const bool &GetLiveTvProgramsParams::isSports() const { + return m_isSports.value(); +} + +void GetLiveTvProgramsParams::setIsSports(bool newIsSports) { + m_isSports = newIsSports; +} + +bool GetLiveTvProgramsParams::isSportsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isSports.has_value(); +} + +void GetLiveTvProgramsParams::setIsSportsNull() { + m_isSports = std::nullopt; +} + + +const QString &GetLiveTvProgramsParams::librarySeriesId() const { + return m_librarySeriesId; +} + +void GetLiveTvProgramsParams::setLibrarySeriesId(QString newLibrarySeriesId) { + m_librarySeriesId = newLibrarySeriesId; +} + +bool GetLiveTvProgramsParams::librarySeriesIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_librarySeriesId.isNull(); +} + +void GetLiveTvProgramsParams::setLibrarySeriesIdNull() { + m_librarySeriesId.clear(); +} + + +const qint32 &GetLiveTvProgramsParams::limit() const { + return m_limit.value(); +} + +void GetLiveTvProgramsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetLiveTvProgramsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetLiveTvProgramsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QDateTime &GetLiveTvProgramsParams::maxEndDate() const { + return m_maxEndDate; +} + +void GetLiveTvProgramsParams::setMaxEndDate(QDateTime newMaxEndDate) { + m_maxEndDate = newMaxEndDate; +} + +bool GetLiveTvProgramsParams::maxEndDateNull() const { + // Nullable: true + // Type Nullable: true + + + return m_maxEndDate.isNull(); +} + +void GetLiveTvProgramsParams::setMaxEndDateNull() { + m_maxEndDate= QDateTime(); +} + + +const QDateTime &GetLiveTvProgramsParams::maxStartDate() const { + return m_maxStartDate; +} + +void GetLiveTvProgramsParams::setMaxStartDate(QDateTime newMaxStartDate) { + m_maxStartDate = newMaxStartDate; +} + +bool GetLiveTvProgramsParams::maxStartDateNull() const { + // Nullable: true + // Type Nullable: true + + + return m_maxStartDate.isNull(); +} + +void GetLiveTvProgramsParams::setMaxStartDateNull() { + m_maxStartDate= QDateTime(); +} + + +const QDateTime &GetLiveTvProgramsParams::minEndDate() const { + return m_minEndDate; +} + +void GetLiveTvProgramsParams::setMinEndDate(QDateTime newMinEndDate) { + m_minEndDate = newMinEndDate; +} + +bool GetLiveTvProgramsParams::minEndDateNull() const { + // Nullable: true + // Type Nullable: true + + + return m_minEndDate.isNull(); +} + +void GetLiveTvProgramsParams::setMinEndDateNull() { + m_minEndDate= QDateTime(); +} + + +const QDateTime &GetLiveTvProgramsParams::minStartDate() const { + return m_minStartDate; +} + +void GetLiveTvProgramsParams::setMinStartDate(QDateTime newMinStartDate) { + m_minStartDate = newMinStartDate; +} + +bool GetLiveTvProgramsParams::minStartDateNull() const { + // Nullable: true + // Type Nullable: true + + + return m_minStartDate.isNull(); +} + +void GetLiveTvProgramsParams::setMinStartDateNull() { + m_minStartDate= QDateTime(); +} + + +const QString &GetLiveTvProgramsParams::seriesTimerId() const { + return m_seriesTimerId; +} + +void GetLiveTvProgramsParams::setSeriesTimerId(QString newSeriesTimerId) { + m_seriesTimerId = newSeriesTimerId; +} + +bool GetLiveTvProgramsParams::seriesTimerIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_seriesTimerId.isNull(); +} + +void GetLiveTvProgramsParams::setSeriesTimerIdNull() { + m_seriesTimerId.clear(); +} + + +const QString &GetLiveTvProgramsParams::sortBy() const { + return m_sortBy; +} + +void GetLiveTvProgramsParams::setSortBy(QString newSortBy) { + m_sortBy = newSortBy; +} + +bool GetLiveTvProgramsParams::sortByNull() const { + // Nullable: true + // Type Nullable: true + + + return m_sortBy.isNull(); +} + +void GetLiveTvProgramsParams::setSortByNull() { + m_sortBy.clear(); +} + + +const QString &GetLiveTvProgramsParams::sortOrder() const { + return m_sortOrder; +} + +void GetLiveTvProgramsParams::setSortOrder(QString newSortOrder) { + m_sortOrder = newSortOrder; +} + +bool GetLiveTvProgramsParams::sortOrderNull() const { + // Nullable: true + // Type Nullable: true + + + return m_sortOrder.isNull(); +} + +void GetLiveTvProgramsParams::setSortOrderNull() { + m_sortOrder.clear(); +} + + +const qint32 &GetLiveTvProgramsParams::startIndex() const { + return m_startIndex.value(); +} + +void GetLiveTvProgramsParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetLiveTvProgramsParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetLiveTvProgramsParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const QString &GetLiveTvProgramsParams::userId() const { + return m_userId; +} + +void GetLiveTvProgramsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetLiveTvProgramsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetLiveTvProgramsParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getlocalizationoptionsparams.cpp b/core/src/loader/getlocalizationoptionsparams.cpp new file mode 100644 index 0000000..2074c85 --- /dev/null +++ b/core/src/loader/getlocalizationoptionsparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getlocalizationoptionsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetLocalizationOptionsParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getlocaltrailersparams.cpp b/core/src/loader/getlocaltrailersparams.cpp new file mode 100644 index 0000000..8f401a0 --- /dev/null +++ b/core/src/loader/getlocaltrailersparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getlocaltrailersparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetLocalTrailersParams + +const QString &GetLocalTrailersParams::itemId() const { + return m_itemId; +} + +void GetLocalTrailersParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &GetLocalTrailersParams::userId() const { + return m_userId; +} + +void GetLocalTrailersParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getlogentriesparams.cpp b/core/src/loader/getlogentriesparams.cpp new file mode 100644 index 0000000..1231b2e --- /dev/null +++ b/core/src/loader/getlogentriesparams.cpp @@ -0,0 +1,125 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getlogentriesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetLogEntriesParams + +const bool &GetLogEntriesParams::hasUserId() const { + return m_hasUserId.value(); +} + +void GetLogEntriesParams::setHasUserId(bool newHasUserId) { + m_hasUserId = newHasUserId; +} + +bool GetLogEntriesParams::hasUserIdNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasUserId.has_value(); +} + +void GetLogEntriesParams::setHasUserIdNull() { + m_hasUserId = std::nullopt; +} + + +const qint32 &GetLogEntriesParams::limit() const { + return m_limit.value(); +} + +void GetLogEntriesParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetLogEntriesParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetLogEntriesParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QDateTime &GetLogEntriesParams::minDate() const { + return m_minDate; +} + +void GetLogEntriesParams::setMinDate(QDateTime newMinDate) { + m_minDate = newMinDate; +} + +bool GetLogEntriesParams::minDateNull() const { + // Nullable: true + // Type Nullable: true + + + return m_minDate.isNull(); +} + +void GetLogEntriesParams::setMinDateNull() { + m_minDate= QDateTime(); +} + + +const qint32 &GetLogEntriesParams::startIndex() const { + return m_startIndex.value(); +} + +void GetLogEntriesParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetLogEntriesParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetLogEntriesParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getlogfileparams.cpp b/core/src/loader/getlogfileparams.cpp new file mode 100644 index 0000000..d3cef91 --- /dev/null +++ b/core/src/loader/getlogfileparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getlogfileparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetLogFileParams + +const QString &GetLogFileParams::name() const { + return m_name; +} + +void GetLogFileParams::setName(QString newName) { + m_name = newName; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getmasterhlsaudioplaylistparams.cpp b/core/src/loader/getmasterhlsaudioplaylistparams.cpp new file mode 100644 index 0000000..40e454c --- /dev/null +++ b/core/src/loader/getmasterhlsaudioplaylistparams.cpp @@ -0,0 +1,1067 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getmasterhlsaudioplaylistparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetMasterHlsAudioPlaylistParams + +const QString &GetMasterHlsAudioPlaylistParams::itemId() const { + return m_itemId; +} + +void GetMasterHlsAudioPlaylistParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &GetMasterHlsAudioPlaylistParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void GetMasterHlsAudioPlaylistParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + + +const bool &GetMasterHlsAudioPlaylistParams::allowAudioStreamCopy() const { + return m_allowAudioStreamCopy.value(); +} + +void GetMasterHlsAudioPlaylistParams::setAllowAudioStreamCopy(bool newAllowAudioStreamCopy) { + m_allowAudioStreamCopy = newAllowAudioStreamCopy; +} + +bool GetMasterHlsAudioPlaylistParams::allowAudioStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowAudioStreamCopy.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setAllowAudioStreamCopyNull() { + m_allowAudioStreamCopy = std::nullopt; +} + + +const bool &GetMasterHlsAudioPlaylistParams::allowVideoStreamCopy() const { + return m_allowVideoStreamCopy.value(); +} + +void GetMasterHlsAudioPlaylistParams::setAllowVideoStreamCopy(bool newAllowVideoStreamCopy) { + m_allowVideoStreamCopy = newAllowVideoStreamCopy; +} + +bool GetMasterHlsAudioPlaylistParams::allowVideoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowVideoStreamCopy.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setAllowVideoStreamCopyNull() { + m_allowVideoStreamCopy = std::nullopt; +} + + +const qint32 &GetMasterHlsAudioPlaylistParams::audioBitRate() const { + return m_audioBitRate.value(); +} + +void GetMasterHlsAudioPlaylistParams::setAudioBitRate(qint32 newAudioBitRate) { + m_audioBitRate = newAudioBitRate; +} + +bool GetMasterHlsAudioPlaylistParams::audioBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioBitRate.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setAudioBitRateNull() { + m_audioBitRate = std::nullopt; +} + + +const qint32 &GetMasterHlsAudioPlaylistParams::audioChannels() const { + return m_audioChannels.value(); +} + +void GetMasterHlsAudioPlaylistParams::setAudioChannels(qint32 newAudioChannels) { + m_audioChannels = newAudioChannels; +} + +bool GetMasterHlsAudioPlaylistParams::audioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioChannels.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setAudioChannelsNull() { + m_audioChannels = std::nullopt; +} + + +const QString &GetMasterHlsAudioPlaylistParams::audioCodec() const { + return m_audioCodec; +} + +void GetMasterHlsAudioPlaylistParams::setAudioCodec(QString newAudioCodec) { + m_audioCodec = newAudioCodec; +} + +bool GetMasterHlsAudioPlaylistParams::audioCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_audioCodec.isNull(); +} + +void GetMasterHlsAudioPlaylistParams::setAudioCodecNull() { + m_audioCodec.clear(); +} + + +const qint32 &GetMasterHlsAudioPlaylistParams::audioSampleRate() const { + return m_audioSampleRate.value(); +} + +void GetMasterHlsAudioPlaylistParams::setAudioSampleRate(qint32 newAudioSampleRate) { + m_audioSampleRate = newAudioSampleRate; +} + +bool GetMasterHlsAudioPlaylistParams::audioSampleRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioSampleRate.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setAudioSampleRateNull() { + m_audioSampleRate = std::nullopt; +} + + +const qint32 &GetMasterHlsAudioPlaylistParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void GetMasterHlsAudioPlaylistParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool GetMasterHlsAudioPlaylistParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &GetMasterHlsAudioPlaylistParams::breakOnNonKeyFrames() const { + return m_breakOnNonKeyFrames.value(); +} + +void GetMasterHlsAudioPlaylistParams::setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames) { + m_breakOnNonKeyFrames = newBreakOnNonKeyFrames; +} + +bool GetMasterHlsAudioPlaylistParams::breakOnNonKeyFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_breakOnNonKeyFrames.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setBreakOnNonKeyFramesNull() { + m_breakOnNonKeyFrames = std::nullopt; +} + + +const EncodingContext &GetMasterHlsAudioPlaylistParams::context() const { + return m_context; +} + +void GetMasterHlsAudioPlaylistParams::setContext(EncodingContext newContext) { + m_context = newContext; +} + +bool GetMasterHlsAudioPlaylistParams::contextNull() const { + // Nullable: true + // Type Nullable: true + + + return m_context== EncodingContext::EnumNotSet; +} + +void GetMasterHlsAudioPlaylistParams::setContextNull() { + m_context= EncodingContext::EnumNotSet; +} + + +const bool &GetMasterHlsAudioPlaylistParams::copyTimestamps() const { + return m_copyTimestamps.value(); +} + +void GetMasterHlsAudioPlaylistParams::setCopyTimestamps(bool newCopyTimestamps) { + m_copyTimestamps = newCopyTimestamps; +} + +bool GetMasterHlsAudioPlaylistParams::copyTimestampsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_copyTimestamps.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setCopyTimestampsNull() { + m_copyTimestamps = std::nullopt; +} + + +const qint32 &GetMasterHlsAudioPlaylistParams::cpuCoreLimit() const { + return m_cpuCoreLimit.value(); +} + +void GetMasterHlsAudioPlaylistParams::setCpuCoreLimit(qint32 newCpuCoreLimit) { + m_cpuCoreLimit = newCpuCoreLimit; +} + +bool GetMasterHlsAudioPlaylistParams::cpuCoreLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cpuCoreLimit.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setCpuCoreLimitNull() { + m_cpuCoreLimit = std::nullopt; +} + + +const bool &GetMasterHlsAudioPlaylistParams::deInterlace() const { + return m_deInterlace.value(); +} + +void GetMasterHlsAudioPlaylistParams::setDeInterlace(bool newDeInterlace) { + m_deInterlace = newDeInterlace; +} + +bool GetMasterHlsAudioPlaylistParams::deInterlaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_deInterlace.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setDeInterlaceNull() { + m_deInterlace = std::nullopt; +} + + +const QString &GetMasterHlsAudioPlaylistParams::deviceId() const { + return m_deviceId; +} + +void GetMasterHlsAudioPlaylistParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool GetMasterHlsAudioPlaylistParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void GetMasterHlsAudioPlaylistParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const QString &GetMasterHlsAudioPlaylistParams::deviceProfileId() const { + return m_deviceProfileId; +} + +void GetMasterHlsAudioPlaylistParams::setDeviceProfileId(QString newDeviceProfileId) { + m_deviceProfileId = newDeviceProfileId; +} + +bool GetMasterHlsAudioPlaylistParams::deviceProfileIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceProfileId.isNull(); +} + +void GetMasterHlsAudioPlaylistParams::setDeviceProfileIdNull() { + m_deviceProfileId.clear(); +} + + +const bool &GetMasterHlsAudioPlaylistParams::enableAdaptiveBitrateStreaming() const { + return m_enableAdaptiveBitrateStreaming.value(); +} + +void GetMasterHlsAudioPlaylistParams::setEnableAdaptiveBitrateStreaming(bool newEnableAdaptiveBitrateStreaming) { + m_enableAdaptiveBitrateStreaming = newEnableAdaptiveBitrateStreaming; +} + +bool GetMasterHlsAudioPlaylistParams::enableAdaptiveBitrateStreamingNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableAdaptiveBitrateStreaming.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setEnableAdaptiveBitrateStreamingNull() { + m_enableAdaptiveBitrateStreaming = std::nullopt; +} + + +const bool &GetMasterHlsAudioPlaylistParams::enableAutoStreamCopy() const { + return m_enableAutoStreamCopy.value(); +} + +void GetMasterHlsAudioPlaylistParams::setEnableAutoStreamCopy(bool newEnableAutoStreamCopy) { + m_enableAutoStreamCopy = newEnableAutoStreamCopy; +} + +bool GetMasterHlsAudioPlaylistParams::enableAutoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableAutoStreamCopy.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setEnableAutoStreamCopyNull() { + m_enableAutoStreamCopy = std::nullopt; +} + + +const bool &GetMasterHlsAudioPlaylistParams::enableMpegtsM2TsMode() const { + return m_enableMpegtsM2TsMode.value(); +} + +void GetMasterHlsAudioPlaylistParams::setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode) { + m_enableMpegtsM2TsMode = newEnableMpegtsM2TsMode; +} + +bool GetMasterHlsAudioPlaylistParams::enableMpegtsM2TsModeNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableMpegtsM2TsMode.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setEnableMpegtsM2TsModeNull() { + m_enableMpegtsM2TsMode = std::nullopt; +} + + +const float &GetMasterHlsAudioPlaylistParams::framerate() const { + return m_framerate.value(); +} + +void GetMasterHlsAudioPlaylistParams::setFramerate(float newFramerate) { + m_framerate = newFramerate; +} + +bool GetMasterHlsAudioPlaylistParams::framerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_framerate.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setFramerateNull() { + m_framerate = std::nullopt; +} + + +const qint32 &GetMasterHlsAudioPlaylistParams::height() const { + return m_height.value(); +} + +void GetMasterHlsAudioPlaylistParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetMasterHlsAudioPlaylistParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setHeightNull() { + m_height = std::nullopt; +} + + +const QString &GetMasterHlsAudioPlaylistParams::level() const { + return m_level; +} + +void GetMasterHlsAudioPlaylistParams::setLevel(QString newLevel) { + m_level = newLevel; +} + +bool GetMasterHlsAudioPlaylistParams::levelNull() const { + // Nullable: true + // Type Nullable: true + + + return m_level.isNull(); +} + +void GetMasterHlsAudioPlaylistParams::setLevelNull() { + m_level.clear(); +} + + +const QString &GetMasterHlsAudioPlaylistParams::liveStreamId() const { + return m_liveStreamId; +} + +void GetMasterHlsAudioPlaylistParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool GetMasterHlsAudioPlaylistParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void GetMasterHlsAudioPlaylistParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const qint32 &GetMasterHlsAudioPlaylistParams::maxAudioBitDepth() const { + return m_maxAudioBitDepth.value(); +} + +void GetMasterHlsAudioPlaylistParams::setMaxAudioBitDepth(qint32 newMaxAudioBitDepth) { + m_maxAudioBitDepth = newMaxAudioBitDepth; +} + +bool GetMasterHlsAudioPlaylistParams::maxAudioBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioBitDepth.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setMaxAudioBitDepthNull() { + m_maxAudioBitDepth = std::nullopt; +} + + +const qint32 &GetMasterHlsAudioPlaylistParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void GetMasterHlsAudioPlaylistParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool GetMasterHlsAudioPlaylistParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const float &GetMasterHlsAudioPlaylistParams::maxFramerate() const { + return m_maxFramerate.value(); +} + +void GetMasterHlsAudioPlaylistParams::setMaxFramerate(float newMaxFramerate) { + m_maxFramerate = newMaxFramerate; +} + +bool GetMasterHlsAudioPlaylistParams::maxFramerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxFramerate.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setMaxFramerateNull() { + m_maxFramerate = std::nullopt; +} + + +const qint32 &GetMasterHlsAudioPlaylistParams::maxRefFrames() const { + return m_maxRefFrames.value(); +} + +void GetMasterHlsAudioPlaylistParams::setMaxRefFrames(qint32 newMaxRefFrames) { + m_maxRefFrames = newMaxRefFrames; +} + +bool GetMasterHlsAudioPlaylistParams::maxRefFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxRefFrames.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setMaxRefFramesNull() { + m_maxRefFrames = std::nullopt; +} + + +const qint32 &GetMasterHlsAudioPlaylistParams::maxStreamingBitrate() const { + return m_maxStreamingBitrate.value(); +} + +void GetMasterHlsAudioPlaylistParams::setMaxStreamingBitrate(qint32 newMaxStreamingBitrate) { + m_maxStreamingBitrate = newMaxStreamingBitrate; +} + +bool GetMasterHlsAudioPlaylistParams::maxStreamingBitrateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxStreamingBitrate.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setMaxStreamingBitrateNull() { + m_maxStreamingBitrate = std::nullopt; +} + + +const qint32 &GetMasterHlsAudioPlaylistParams::maxVideoBitDepth() const { + return m_maxVideoBitDepth.value(); +} + +void GetMasterHlsAudioPlaylistParams::setMaxVideoBitDepth(qint32 newMaxVideoBitDepth) { + m_maxVideoBitDepth = newMaxVideoBitDepth; +} + +bool GetMasterHlsAudioPlaylistParams::maxVideoBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxVideoBitDepth.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setMaxVideoBitDepthNull() { + m_maxVideoBitDepth = std::nullopt; +} + + +const qint32 &GetMasterHlsAudioPlaylistParams::minSegments() const { + return m_minSegments.value(); +} + +void GetMasterHlsAudioPlaylistParams::setMinSegments(qint32 newMinSegments) { + m_minSegments = newMinSegments; +} + +bool GetMasterHlsAudioPlaylistParams::minSegmentsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minSegments.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setMinSegmentsNull() { + m_minSegments = std::nullopt; +} + + +const QString &GetMasterHlsAudioPlaylistParams::params() const { + return m_params; +} + +void GetMasterHlsAudioPlaylistParams::setParams(QString newParams) { + m_params = newParams; +} + +bool GetMasterHlsAudioPlaylistParams::paramsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_params.isNull(); +} + +void GetMasterHlsAudioPlaylistParams::setParamsNull() { + m_params.clear(); +} + + +const QString &GetMasterHlsAudioPlaylistParams::playSessionId() const { + return m_playSessionId; +} + +void GetMasterHlsAudioPlaylistParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool GetMasterHlsAudioPlaylistParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void GetMasterHlsAudioPlaylistParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const QString &GetMasterHlsAudioPlaylistParams::profile() const { + return m_profile; +} + +void GetMasterHlsAudioPlaylistParams::setProfile(QString newProfile) { + m_profile = newProfile; +} + +bool GetMasterHlsAudioPlaylistParams::profileNull() const { + // Nullable: true + // Type Nullable: true + + + return m_profile.isNull(); +} + +void GetMasterHlsAudioPlaylistParams::setProfileNull() { + m_profile.clear(); +} + + +const bool &GetMasterHlsAudioPlaylistParams::requireAvc() const { + return m_requireAvc.value(); +} + +void GetMasterHlsAudioPlaylistParams::setRequireAvc(bool newRequireAvc) { + m_requireAvc = newRequireAvc; +} + +bool GetMasterHlsAudioPlaylistParams::requireAvcNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireAvc.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setRequireAvcNull() { + m_requireAvc = std::nullopt; +} + + +const bool &GetMasterHlsAudioPlaylistParams::requireNonAnamorphic() const { + return m_requireNonAnamorphic.value(); +} + +void GetMasterHlsAudioPlaylistParams::setRequireNonAnamorphic(bool newRequireNonAnamorphic) { + m_requireNonAnamorphic = newRequireNonAnamorphic; +} + +bool GetMasterHlsAudioPlaylistParams::requireNonAnamorphicNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireNonAnamorphic.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setRequireNonAnamorphicNull() { + m_requireNonAnamorphic = std::nullopt; +} + + +const QString &GetMasterHlsAudioPlaylistParams::segmentContainer() const { + return m_segmentContainer; +} + +void GetMasterHlsAudioPlaylistParams::setSegmentContainer(QString newSegmentContainer) { + m_segmentContainer = newSegmentContainer; +} + +bool GetMasterHlsAudioPlaylistParams::segmentContainerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_segmentContainer.isNull(); +} + +void GetMasterHlsAudioPlaylistParams::setSegmentContainerNull() { + m_segmentContainer.clear(); +} + + +const qint32 &GetMasterHlsAudioPlaylistParams::segmentLength() const { + return m_segmentLength.value(); +} + +void GetMasterHlsAudioPlaylistParams::setSegmentLength(qint32 newSegmentLength) { + m_segmentLength = newSegmentLength; +} + +bool GetMasterHlsAudioPlaylistParams::segmentLengthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_segmentLength.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setSegmentLengthNull() { + m_segmentLength = std::nullopt; +} + + +const qint64 &GetMasterHlsAudioPlaylistParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void GetMasterHlsAudioPlaylistParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool GetMasterHlsAudioPlaylistParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const bool &GetMasterHlsAudioPlaylistParams::staticStreaming() const { + return m_staticStreaming.value(); +} + +void GetMasterHlsAudioPlaylistParams::setStaticStreaming(bool newStaticStreaming) { + m_staticStreaming = newStaticStreaming; +} + +bool GetMasterHlsAudioPlaylistParams::staticStreamingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_staticStreaming.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setStaticStreamingNull() { + m_staticStreaming = std::nullopt; +} + + +const QJsonObject &GetMasterHlsAudioPlaylistParams::streamOptions() const { + return m_streamOptions; +} + +void GetMasterHlsAudioPlaylistParams::setStreamOptions(QJsonObject newStreamOptions) { + m_streamOptions = newStreamOptions; +} + +bool GetMasterHlsAudioPlaylistParams::streamOptionsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_streamOptions.isEmpty(); +} + +void GetMasterHlsAudioPlaylistParams::setStreamOptionsNull() { + m_streamOptions= QJsonObject(); +} + + +const QString &GetMasterHlsAudioPlaylistParams::subtitleCodec() const { + return m_subtitleCodec; +} + +void GetMasterHlsAudioPlaylistParams::setSubtitleCodec(QString newSubtitleCodec) { + m_subtitleCodec = newSubtitleCodec; +} + +bool GetMasterHlsAudioPlaylistParams::subtitleCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleCodec.isNull(); +} + +void GetMasterHlsAudioPlaylistParams::setSubtitleCodecNull() { + m_subtitleCodec.clear(); +} + + +const SubtitleDeliveryMethod &GetMasterHlsAudioPlaylistParams::subtitleMethod() const { + return m_subtitleMethod; +} + +void GetMasterHlsAudioPlaylistParams::setSubtitleMethod(SubtitleDeliveryMethod newSubtitleMethod) { + m_subtitleMethod = newSubtitleMethod; +} + +bool GetMasterHlsAudioPlaylistParams::subtitleMethodNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleMethod== SubtitleDeliveryMethod::EnumNotSet; +} + +void GetMasterHlsAudioPlaylistParams::setSubtitleMethodNull() { + m_subtitleMethod= SubtitleDeliveryMethod::EnumNotSet; +} + + +const qint32 &GetMasterHlsAudioPlaylistParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void GetMasterHlsAudioPlaylistParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool GetMasterHlsAudioPlaylistParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const QString &GetMasterHlsAudioPlaylistParams::tag() const { + return m_tag; +} + +void GetMasterHlsAudioPlaylistParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetMasterHlsAudioPlaylistParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetMasterHlsAudioPlaylistParams::setTagNull() { + m_tag.clear(); +} + + +const QString &GetMasterHlsAudioPlaylistParams::transcodeReasons() const { + return m_transcodeReasons; +} + +void GetMasterHlsAudioPlaylistParams::setTranscodeReasons(QString newTranscodeReasons) { + m_transcodeReasons = newTranscodeReasons; +} + +bool GetMasterHlsAudioPlaylistParams::transcodeReasonsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodeReasons.isNull(); +} + +void GetMasterHlsAudioPlaylistParams::setTranscodeReasonsNull() { + m_transcodeReasons.clear(); +} + + +const qint32 &GetMasterHlsAudioPlaylistParams::transcodingMaxAudioChannels() const { + return m_transcodingMaxAudioChannels.value(); +} + +void GetMasterHlsAudioPlaylistParams::setTranscodingMaxAudioChannels(qint32 newTranscodingMaxAudioChannels) { + m_transcodingMaxAudioChannels = newTranscodingMaxAudioChannels; +} + +bool GetMasterHlsAudioPlaylistParams::transcodingMaxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_transcodingMaxAudioChannels.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setTranscodingMaxAudioChannelsNull() { + m_transcodingMaxAudioChannels = std::nullopt; +} + + +const qint32 &GetMasterHlsAudioPlaylistParams::videoBitRate() const { + return m_videoBitRate.value(); +} + +void GetMasterHlsAudioPlaylistParams::setVideoBitRate(qint32 newVideoBitRate) { + m_videoBitRate = newVideoBitRate; +} + +bool GetMasterHlsAudioPlaylistParams::videoBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoBitRate.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setVideoBitRateNull() { + m_videoBitRate = std::nullopt; +} + + +const QString &GetMasterHlsAudioPlaylistParams::videoCodec() const { + return m_videoCodec; +} + +void GetMasterHlsAudioPlaylistParams::setVideoCodec(QString newVideoCodec) { + m_videoCodec = newVideoCodec; +} + +bool GetMasterHlsAudioPlaylistParams::videoCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoCodec.isNull(); +} + +void GetMasterHlsAudioPlaylistParams::setVideoCodecNull() { + m_videoCodec.clear(); +} + + +const qint32 &GetMasterHlsAudioPlaylistParams::videoStreamIndex() const { + return m_videoStreamIndex.value(); +} + +void GetMasterHlsAudioPlaylistParams::setVideoStreamIndex(qint32 newVideoStreamIndex) { + m_videoStreamIndex = newVideoStreamIndex; +} + +bool GetMasterHlsAudioPlaylistParams::videoStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoStreamIndex.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setVideoStreamIndexNull() { + m_videoStreamIndex = std::nullopt; +} + + +const qint32 &GetMasterHlsAudioPlaylistParams::width() const { + return m_width.value(); +} + +void GetMasterHlsAudioPlaylistParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetMasterHlsAudioPlaylistParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetMasterHlsAudioPlaylistParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getmasterhlsvideoplaylistparams.cpp b/core/src/loader/getmasterhlsvideoplaylistparams.cpp new file mode 100644 index 0000000..501b7ca --- /dev/null +++ b/core/src/loader/getmasterhlsvideoplaylistparams.cpp @@ -0,0 +1,1046 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getmasterhlsvideoplaylistparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetMasterHlsVideoPlaylistParams + +const QString &GetMasterHlsVideoPlaylistParams::itemId() const { + return m_itemId; +} + +void GetMasterHlsVideoPlaylistParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &GetMasterHlsVideoPlaylistParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void GetMasterHlsVideoPlaylistParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + + +const bool &GetMasterHlsVideoPlaylistParams::allowAudioStreamCopy() const { + return m_allowAudioStreamCopy.value(); +} + +void GetMasterHlsVideoPlaylistParams::setAllowAudioStreamCopy(bool newAllowAudioStreamCopy) { + m_allowAudioStreamCopy = newAllowAudioStreamCopy; +} + +bool GetMasterHlsVideoPlaylistParams::allowAudioStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowAudioStreamCopy.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setAllowAudioStreamCopyNull() { + m_allowAudioStreamCopy = std::nullopt; +} + + +const bool &GetMasterHlsVideoPlaylistParams::allowVideoStreamCopy() const { + return m_allowVideoStreamCopy.value(); +} + +void GetMasterHlsVideoPlaylistParams::setAllowVideoStreamCopy(bool newAllowVideoStreamCopy) { + m_allowVideoStreamCopy = newAllowVideoStreamCopy; +} + +bool GetMasterHlsVideoPlaylistParams::allowVideoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowVideoStreamCopy.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setAllowVideoStreamCopyNull() { + m_allowVideoStreamCopy = std::nullopt; +} + + +const qint32 &GetMasterHlsVideoPlaylistParams::audioBitRate() const { + return m_audioBitRate.value(); +} + +void GetMasterHlsVideoPlaylistParams::setAudioBitRate(qint32 newAudioBitRate) { + m_audioBitRate = newAudioBitRate; +} + +bool GetMasterHlsVideoPlaylistParams::audioBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioBitRate.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setAudioBitRateNull() { + m_audioBitRate = std::nullopt; +} + + +const qint32 &GetMasterHlsVideoPlaylistParams::audioChannels() const { + return m_audioChannels.value(); +} + +void GetMasterHlsVideoPlaylistParams::setAudioChannels(qint32 newAudioChannels) { + m_audioChannels = newAudioChannels; +} + +bool GetMasterHlsVideoPlaylistParams::audioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioChannels.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setAudioChannelsNull() { + m_audioChannels = std::nullopt; +} + + +const QString &GetMasterHlsVideoPlaylistParams::audioCodec() const { + return m_audioCodec; +} + +void GetMasterHlsVideoPlaylistParams::setAudioCodec(QString newAudioCodec) { + m_audioCodec = newAudioCodec; +} + +bool GetMasterHlsVideoPlaylistParams::audioCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_audioCodec.isNull(); +} + +void GetMasterHlsVideoPlaylistParams::setAudioCodecNull() { + m_audioCodec.clear(); +} + + +const qint32 &GetMasterHlsVideoPlaylistParams::audioSampleRate() const { + return m_audioSampleRate.value(); +} + +void GetMasterHlsVideoPlaylistParams::setAudioSampleRate(qint32 newAudioSampleRate) { + m_audioSampleRate = newAudioSampleRate; +} + +bool GetMasterHlsVideoPlaylistParams::audioSampleRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioSampleRate.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setAudioSampleRateNull() { + m_audioSampleRate = std::nullopt; +} + + +const qint32 &GetMasterHlsVideoPlaylistParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void GetMasterHlsVideoPlaylistParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool GetMasterHlsVideoPlaylistParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &GetMasterHlsVideoPlaylistParams::breakOnNonKeyFrames() const { + return m_breakOnNonKeyFrames.value(); +} + +void GetMasterHlsVideoPlaylistParams::setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames) { + m_breakOnNonKeyFrames = newBreakOnNonKeyFrames; +} + +bool GetMasterHlsVideoPlaylistParams::breakOnNonKeyFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_breakOnNonKeyFrames.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setBreakOnNonKeyFramesNull() { + m_breakOnNonKeyFrames = std::nullopt; +} + + +const EncodingContext &GetMasterHlsVideoPlaylistParams::context() const { + return m_context; +} + +void GetMasterHlsVideoPlaylistParams::setContext(EncodingContext newContext) { + m_context = newContext; +} + +bool GetMasterHlsVideoPlaylistParams::contextNull() const { + // Nullable: true + // Type Nullable: true + + + return m_context== EncodingContext::EnumNotSet; +} + +void GetMasterHlsVideoPlaylistParams::setContextNull() { + m_context= EncodingContext::EnumNotSet; +} + + +const bool &GetMasterHlsVideoPlaylistParams::copyTimestamps() const { + return m_copyTimestamps.value(); +} + +void GetMasterHlsVideoPlaylistParams::setCopyTimestamps(bool newCopyTimestamps) { + m_copyTimestamps = newCopyTimestamps; +} + +bool GetMasterHlsVideoPlaylistParams::copyTimestampsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_copyTimestamps.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setCopyTimestampsNull() { + m_copyTimestamps = std::nullopt; +} + + +const qint32 &GetMasterHlsVideoPlaylistParams::cpuCoreLimit() const { + return m_cpuCoreLimit.value(); +} + +void GetMasterHlsVideoPlaylistParams::setCpuCoreLimit(qint32 newCpuCoreLimit) { + m_cpuCoreLimit = newCpuCoreLimit; +} + +bool GetMasterHlsVideoPlaylistParams::cpuCoreLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cpuCoreLimit.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setCpuCoreLimitNull() { + m_cpuCoreLimit = std::nullopt; +} + + +const bool &GetMasterHlsVideoPlaylistParams::deInterlace() const { + return m_deInterlace.value(); +} + +void GetMasterHlsVideoPlaylistParams::setDeInterlace(bool newDeInterlace) { + m_deInterlace = newDeInterlace; +} + +bool GetMasterHlsVideoPlaylistParams::deInterlaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_deInterlace.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setDeInterlaceNull() { + m_deInterlace = std::nullopt; +} + + +const QString &GetMasterHlsVideoPlaylistParams::deviceId() const { + return m_deviceId; +} + +void GetMasterHlsVideoPlaylistParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool GetMasterHlsVideoPlaylistParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void GetMasterHlsVideoPlaylistParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const QString &GetMasterHlsVideoPlaylistParams::deviceProfileId() const { + return m_deviceProfileId; +} + +void GetMasterHlsVideoPlaylistParams::setDeviceProfileId(QString newDeviceProfileId) { + m_deviceProfileId = newDeviceProfileId; +} + +bool GetMasterHlsVideoPlaylistParams::deviceProfileIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceProfileId.isNull(); +} + +void GetMasterHlsVideoPlaylistParams::setDeviceProfileIdNull() { + m_deviceProfileId.clear(); +} + + +const bool &GetMasterHlsVideoPlaylistParams::enableAdaptiveBitrateStreaming() const { + return m_enableAdaptiveBitrateStreaming.value(); +} + +void GetMasterHlsVideoPlaylistParams::setEnableAdaptiveBitrateStreaming(bool newEnableAdaptiveBitrateStreaming) { + m_enableAdaptiveBitrateStreaming = newEnableAdaptiveBitrateStreaming; +} + +bool GetMasterHlsVideoPlaylistParams::enableAdaptiveBitrateStreamingNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableAdaptiveBitrateStreaming.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setEnableAdaptiveBitrateStreamingNull() { + m_enableAdaptiveBitrateStreaming = std::nullopt; +} + + +const bool &GetMasterHlsVideoPlaylistParams::enableAutoStreamCopy() const { + return m_enableAutoStreamCopy.value(); +} + +void GetMasterHlsVideoPlaylistParams::setEnableAutoStreamCopy(bool newEnableAutoStreamCopy) { + m_enableAutoStreamCopy = newEnableAutoStreamCopy; +} + +bool GetMasterHlsVideoPlaylistParams::enableAutoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableAutoStreamCopy.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setEnableAutoStreamCopyNull() { + m_enableAutoStreamCopy = std::nullopt; +} + + +const bool &GetMasterHlsVideoPlaylistParams::enableMpegtsM2TsMode() const { + return m_enableMpegtsM2TsMode.value(); +} + +void GetMasterHlsVideoPlaylistParams::setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode) { + m_enableMpegtsM2TsMode = newEnableMpegtsM2TsMode; +} + +bool GetMasterHlsVideoPlaylistParams::enableMpegtsM2TsModeNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableMpegtsM2TsMode.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setEnableMpegtsM2TsModeNull() { + m_enableMpegtsM2TsMode = std::nullopt; +} + + +const float &GetMasterHlsVideoPlaylistParams::framerate() const { + return m_framerate.value(); +} + +void GetMasterHlsVideoPlaylistParams::setFramerate(float newFramerate) { + m_framerate = newFramerate; +} + +bool GetMasterHlsVideoPlaylistParams::framerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_framerate.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setFramerateNull() { + m_framerate = std::nullopt; +} + + +const qint32 &GetMasterHlsVideoPlaylistParams::height() const { + return m_height.value(); +} + +void GetMasterHlsVideoPlaylistParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetMasterHlsVideoPlaylistParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setHeightNull() { + m_height = std::nullopt; +} + + +const QString &GetMasterHlsVideoPlaylistParams::level() const { + return m_level; +} + +void GetMasterHlsVideoPlaylistParams::setLevel(QString newLevel) { + m_level = newLevel; +} + +bool GetMasterHlsVideoPlaylistParams::levelNull() const { + // Nullable: true + // Type Nullable: true + + + return m_level.isNull(); +} + +void GetMasterHlsVideoPlaylistParams::setLevelNull() { + m_level.clear(); +} + + +const QString &GetMasterHlsVideoPlaylistParams::liveStreamId() const { + return m_liveStreamId; +} + +void GetMasterHlsVideoPlaylistParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool GetMasterHlsVideoPlaylistParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void GetMasterHlsVideoPlaylistParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const qint32 &GetMasterHlsVideoPlaylistParams::maxAudioBitDepth() const { + return m_maxAudioBitDepth.value(); +} + +void GetMasterHlsVideoPlaylistParams::setMaxAudioBitDepth(qint32 newMaxAudioBitDepth) { + m_maxAudioBitDepth = newMaxAudioBitDepth; +} + +bool GetMasterHlsVideoPlaylistParams::maxAudioBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioBitDepth.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setMaxAudioBitDepthNull() { + m_maxAudioBitDepth = std::nullopt; +} + + +const qint32 &GetMasterHlsVideoPlaylistParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void GetMasterHlsVideoPlaylistParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool GetMasterHlsVideoPlaylistParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const float &GetMasterHlsVideoPlaylistParams::maxFramerate() const { + return m_maxFramerate.value(); +} + +void GetMasterHlsVideoPlaylistParams::setMaxFramerate(float newMaxFramerate) { + m_maxFramerate = newMaxFramerate; +} + +bool GetMasterHlsVideoPlaylistParams::maxFramerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxFramerate.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setMaxFramerateNull() { + m_maxFramerate = std::nullopt; +} + + +const qint32 &GetMasterHlsVideoPlaylistParams::maxRefFrames() const { + return m_maxRefFrames.value(); +} + +void GetMasterHlsVideoPlaylistParams::setMaxRefFrames(qint32 newMaxRefFrames) { + m_maxRefFrames = newMaxRefFrames; +} + +bool GetMasterHlsVideoPlaylistParams::maxRefFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxRefFrames.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setMaxRefFramesNull() { + m_maxRefFrames = std::nullopt; +} + + +const qint32 &GetMasterHlsVideoPlaylistParams::maxVideoBitDepth() const { + return m_maxVideoBitDepth.value(); +} + +void GetMasterHlsVideoPlaylistParams::setMaxVideoBitDepth(qint32 newMaxVideoBitDepth) { + m_maxVideoBitDepth = newMaxVideoBitDepth; +} + +bool GetMasterHlsVideoPlaylistParams::maxVideoBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxVideoBitDepth.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setMaxVideoBitDepthNull() { + m_maxVideoBitDepth = std::nullopt; +} + + +const qint32 &GetMasterHlsVideoPlaylistParams::minSegments() const { + return m_minSegments.value(); +} + +void GetMasterHlsVideoPlaylistParams::setMinSegments(qint32 newMinSegments) { + m_minSegments = newMinSegments; +} + +bool GetMasterHlsVideoPlaylistParams::minSegmentsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minSegments.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setMinSegmentsNull() { + m_minSegments = std::nullopt; +} + + +const QString &GetMasterHlsVideoPlaylistParams::params() const { + return m_params; +} + +void GetMasterHlsVideoPlaylistParams::setParams(QString newParams) { + m_params = newParams; +} + +bool GetMasterHlsVideoPlaylistParams::paramsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_params.isNull(); +} + +void GetMasterHlsVideoPlaylistParams::setParamsNull() { + m_params.clear(); +} + + +const QString &GetMasterHlsVideoPlaylistParams::playSessionId() const { + return m_playSessionId; +} + +void GetMasterHlsVideoPlaylistParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool GetMasterHlsVideoPlaylistParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void GetMasterHlsVideoPlaylistParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const QString &GetMasterHlsVideoPlaylistParams::profile() const { + return m_profile; +} + +void GetMasterHlsVideoPlaylistParams::setProfile(QString newProfile) { + m_profile = newProfile; +} + +bool GetMasterHlsVideoPlaylistParams::profileNull() const { + // Nullable: true + // Type Nullable: true + + + return m_profile.isNull(); +} + +void GetMasterHlsVideoPlaylistParams::setProfileNull() { + m_profile.clear(); +} + + +const bool &GetMasterHlsVideoPlaylistParams::requireAvc() const { + return m_requireAvc.value(); +} + +void GetMasterHlsVideoPlaylistParams::setRequireAvc(bool newRequireAvc) { + m_requireAvc = newRequireAvc; +} + +bool GetMasterHlsVideoPlaylistParams::requireAvcNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireAvc.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setRequireAvcNull() { + m_requireAvc = std::nullopt; +} + + +const bool &GetMasterHlsVideoPlaylistParams::requireNonAnamorphic() const { + return m_requireNonAnamorphic.value(); +} + +void GetMasterHlsVideoPlaylistParams::setRequireNonAnamorphic(bool newRequireNonAnamorphic) { + m_requireNonAnamorphic = newRequireNonAnamorphic; +} + +bool GetMasterHlsVideoPlaylistParams::requireNonAnamorphicNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireNonAnamorphic.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setRequireNonAnamorphicNull() { + m_requireNonAnamorphic = std::nullopt; +} + + +const QString &GetMasterHlsVideoPlaylistParams::segmentContainer() const { + return m_segmentContainer; +} + +void GetMasterHlsVideoPlaylistParams::setSegmentContainer(QString newSegmentContainer) { + m_segmentContainer = newSegmentContainer; +} + +bool GetMasterHlsVideoPlaylistParams::segmentContainerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_segmentContainer.isNull(); +} + +void GetMasterHlsVideoPlaylistParams::setSegmentContainerNull() { + m_segmentContainer.clear(); +} + + +const qint32 &GetMasterHlsVideoPlaylistParams::segmentLength() const { + return m_segmentLength.value(); +} + +void GetMasterHlsVideoPlaylistParams::setSegmentLength(qint32 newSegmentLength) { + m_segmentLength = newSegmentLength; +} + +bool GetMasterHlsVideoPlaylistParams::segmentLengthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_segmentLength.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setSegmentLengthNull() { + m_segmentLength = std::nullopt; +} + + +const qint64 &GetMasterHlsVideoPlaylistParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void GetMasterHlsVideoPlaylistParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool GetMasterHlsVideoPlaylistParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const bool &GetMasterHlsVideoPlaylistParams::staticStreaming() const { + return m_staticStreaming.value(); +} + +void GetMasterHlsVideoPlaylistParams::setStaticStreaming(bool newStaticStreaming) { + m_staticStreaming = newStaticStreaming; +} + +bool GetMasterHlsVideoPlaylistParams::staticStreamingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_staticStreaming.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setStaticStreamingNull() { + m_staticStreaming = std::nullopt; +} + + +const QJsonObject &GetMasterHlsVideoPlaylistParams::streamOptions() const { + return m_streamOptions; +} + +void GetMasterHlsVideoPlaylistParams::setStreamOptions(QJsonObject newStreamOptions) { + m_streamOptions = newStreamOptions; +} + +bool GetMasterHlsVideoPlaylistParams::streamOptionsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_streamOptions.isEmpty(); +} + +void GetMasterHlsVideoPlaylistParams::setStreamOptionsNull() { + m_streamOptions= QJsonObject(); +} + + +const QString &GetMasterHlsVideoPlaylistParams::subtitleCodec() const { + return m_subtitleCodec; +} + +void GetMasterHlsVideoPlaylistParams::setSubtitleCodec(QString newSubtitleCodec) { + m_subtitleCodec = newSubtitleCodec; +} + +bool GetMasterHlsVideoPlaylistParams::subtitleCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleCodec.isNull(); +} + +void GetMasterHlsVideoPlaylistParams::setSubtitleCodecNull() { + m_subtitleCodec.clear(); +} + + +const SubtitleDeliveryMethod &GetMasterHlsVideoPlaylistParams::subtitleMethod() const { + return m_subtitleMethod; +} + +void GetMasterHlsVideoPlaylistParams::setSubtitleMethod(SubtitleDeliveryMethod newSubtitleMethod) { + m_subtitleMethod = newSubtitleMethod; +} + +bool GetMasterHlsVideoPlaylistParams::subtitleMethodNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleMethod== SubtitleDeliveryMethod::EnumNotSet; +} + +void GetMasterHlsVideoPlaylistParams::setSubtitleMethodNull() { + m_subtitleMethod= SubtitleDeliveryMethod::EnumNotSet; +} + + +const qint32 &GetMasterHlsVideoPlaylistParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void GetMasterHlsVideoPlaylistParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool GetMasterHlsVideoPlaylistParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const QString &GetMasterHlsVideoPlaylistParams::tag() const { + return m_tag; +} + +void GetMasterHlsVideoPlaylistParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetMasterHlsVideoPlaylistParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetMasterHlsVideoPlaylistParams::setTagNull() { + m_tag.clear(); +} + + +const QString &GetMasterHlsVideoPlaylistParams::transcodeReasons() const { + return m_transcodeReasons; +} + +void GetMasterHlsVideoPlaylistParams::setTranscodeReasons(QString newTranscodeReasons) { + m_transcodeReasons = newTranscodeReasons; +} + +bool GetMasterHlsVideoPlaylistParams::transcodeReasonsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodeReasons.isNull(); +} + +void GetMasterHlsVideoPlaylistParams::setTranscodeReasonsNull() { + m_transcodeReasons.clear(); +} + + +const qint32 &GetMasterHlsVideoPlaylistParams::transcodingMaxAudioChannels() const { + return m_transcodingMaxAudioChannels.value(); +} + +void GetMasterHlsVideoPlaylistParams::setTranscodingMaxAudioChannels(qint32 newTranscodingMaxAudioChannels) { + m_transcodingMaxAudioChannels = newTranscodingMaxAudioChannels; +} + +bool GetMasterHlsVideoPlaylistParams::transcodingMaxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_transcodingMaxAudioChannels.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setTranscodingMaxAudioChannelsNull() { + m_transcodingMaxAudioChannels = std::nullopt; +} + + +const qint32 &GetMasterHlsVideoPlaylistParams::videoBitRate() const { + return m_videoBitRate.value(); +} + +void GetMasterHlsVideoPlaylistParams::setVideoBitRate(qint32 newVideoBitRate) { + m_videoBitRate = newVideoBitRate; +} + +bool GetMasterHlsVideoPlaylistParams::videoBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoBitRate.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setVideoBitRateNull() { + m_videoBitRate = std::nullopt; +} + + +const QString &GetMasterHlsVideoPlaylistParams::videoCodec() const { + return m_videoCodec; +} + +void GetMasterHlsVideoPlaylistParams::setVideoCodec(QString newVideoCodec) { + m_videoCodec = newVideoCodec; +} + +bool GetMasterHlsVideoPlaylistParams::videoCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoCodec.isNull(); +} + +void GetMasterHlsVideoPlaylistParams::setVideoCodecNull() { + m_videoCodec.clear(); +} + + +const qint32 &GetMasterHlsVideoPlaylistParams::videoStreamIndex() const { + return m_videoStreamIndex.value(); +} + +void GetMasterHlsVideoPlaylistParams::setVideoStreamIndex(qint32 newVideoStreamIndex) { + m_videoStreamIndex = newVideoStreamIndex; +} + +bool GetMasterHlsVideoPlaylistParams::videoStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoStreamIndex.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setVideoStreamIndexNull() { + m_videoStreamIndex = std::nullopt; +} + + +const qint32 &GetMasterHlsVideoPlaylistParams::width() const { + return m_width.value(); +} + +void GetMasterHlsVideoPlaylistParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetMasterHlsVideoPlaylistParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetMasterHlsVideoPlaylistParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getmediafoldersparams.cpp b/core/src/loader/getmediafoldersparams.cpp new file mode 100644 index 0000000..3ce1f08 --- /dev/null +++ b/core/src/loader/getmediafoldersparams.cpp @@ -0,0 +1,62 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getmediafoldersparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetMediaFoldersParams + +const bool &GetMediaFoldersParams::isHidden() const { + return m_isHidden.value(); +} + +void GetMediaFoldersParams::setIsHidden(bool newIsHidden) { + m_isHidden = newIsHidden; +} + +bool GetMediaFoldersParams::isHiddenNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isHidden.has_value(); +} + +void GetMediaFoldersParams::setIsHiddenNull() { + m_isHidden = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/architecture.h b/core/src/loader/getmediainfoimageparams.cpp similarity index 74% rename from core/include/JellyfinQt/DTO/architecture.h rename to core/src/loader/getmediainfoimageparams.cpp index 16a91a5..41b42b3 100644 --- a/core/include/JellyfinQt/DTO/architecture.h +++ b/core/src/loader/getmediainfoimageparams.cpp @@ -27,37 +27,33 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_ARCHITECTURE_H -#define JELLYFIN_DTO_ARCHITECTURE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/getmediainfoimageparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { -class ArchitectureClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - X86, - X64, - Arm, - Arm64, - Wasm, - }; - Q_ENUM(Value) -private: - explicit ArchitectureClass(); -}; +using namespace Jellyfin::DTO; -typedef ArchitectureClass::Value Architecture; +// GetMediaInfoImageParams +const QString &GetMediaInfoImageParams::name() const { + return m_name; +} + +void GetMediaInfoImageParams::setName(QString newName) { + m_name = newName; +} + + +const QString &GetMediaInfoImageParams::theme() const { + return m_theme; +} + +void GetMediaInfoImageParams::setTheme(QString newTheme) { + m_theme = newTheme; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_ARCHITECTURE_H diff --git a/core/src/loader/getmediainfoimagesparams.cpp b/core/src/loader/getmediainfoimagesparams.cpp new file mode 100644 index 0000000..b79d792 --- /dev/null +++ b/core/src/loader/getmediainfoimagesparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getmediainfoimagesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetMediaInfoImagesParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getmediareceiverregistrar_2params.cpp b/core/src/loader/getmediareceiverregistrar_2params.cpp new file mode 100644 index 0000000..3527df2 --- /dev/null +++ b/core/src/loader/getmediareceiverregistrar_2params.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getmediareceiverregistrar_2params.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetMediaReceiverRegistrar_2Params + +const QString &GetMediaReceiverRegistrar_2Params::serverId() const { + return m_serverId; +} + +void GetMediaReceiverRegistrar_2Params::setServerId(QString newServerId) { + m_serverId = newServerId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getmediareceiverregistrar_3params.cpp b/core/src/loader/getmediareceiverregistrar_3params.cpp new file mode 100644 index 0000000..683f085 --- /dev/null +++ b/core/src/loader/getmediareceiverregistrar_3params.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getmediareceiverregistrar_3params.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetMediaReceiverRegistrar_3Params + +const QString &GetMediaReceiverRegistrar_3Params::serverId() const { + return m_serverId; +} + +void GetMediaReceiverRegistrar_3Params::setServerId(QString newServerId) { + m_serverId = newServerId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getmediareceiverregistrarparams.cpp b/core/src/loader/getmediareceiverregistrarparams.cpp new file mode 100644 index 0000000..699f1db --- /dev/null +++ b/core/src/loader/getmediareceiverregistrarparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getmediareceiverregistrarparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetMediaReceiverRegistrarParams + +const QString &GetMediaReceiverRegistrarParams::serverId() const { + return m_serverId; +} + +void GetMediaReceiverRegistrarParams::setServerId(QString newServerId) { + m_serverId = newServerId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getmetadataeditorinfoparams.cpp b/core/src/loader/getmetadataeditorinfoparams.cpp new file mode 100644 index 0000000..55c7fa0 --- /dev/null +++ b/core/src/loader/getmetadataeditorinfoparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getmetadataeditorinfoparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetMetadataEditorInfoParams + +const QString &GetMetadataEditorInfoParams::itemId() const { + return m_itemId; +} + +void GetMetadataEditorInfoParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getmovierecommendationsparams.cpp b/core/src/loader/getmovierecommendationsparams.cpp new file mode 100644 index 0000000..b88f840 --- /dev/null +++ b/core/src/loader/getmovierecommendationsparams.cpp @@ -0,0 +1,146 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getmovierecommendationsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetMovieRecommendationsParams + +const qint32 &GetMovieRecommendationsParams::categoryLimit() const { + return m_categoryLimit.value(); +} + +void GetMovieRecommendationsParams::setCategoryLimit(qint32 newCategoryLimit) { + m_categoryLimit = newCategoryLimit; +} + +bool GetMovieRecommendationsParams::categoryLimitNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_categoryLimit.has_value(); +} + +void GetMovieRecommendationsParams::setCategoryLimitNull() { + m_categoryLimit = std::nullopt; +} + + +const QList &GetMovieRecommendationsParams::fields() const { + return m_fields; +} + +void GetMovieRecommendationsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetMovieRecommendationsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetMovieRecommendationsParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetMovieRecommendationsParams::itemLimit() const { + return m_itemLimit.value(); +} + +void GetMovieRecommendationsParams::setItemLimit(qint32 newItemLimit) { + m_itemLimit = newItemLimit; +} + +bool GetMovieRecommendationsParams::itemLimitNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_itemLimit.has_value(); +} + +void GetMovieRecommendationsParams::setItemLimitNull() { + m_itemLimit = std::nullopt; +} + + +const QString &GetMovieRecommendationsParams::parentId() const { + return m_parentId; +} + +void GetMovieRecommendationsParams::setParentId(QString newParentId) { + m_parentId = newParentId; +} + +bool GetMovieRecommendationsParams::parentIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_parentId.isNull(); +} + +void GetMovieRecommendationsParams::setParentIdNull() { + m_parentId.clear(); +} + + +const QString &GetMovieRecommendationsParams::userId() const { + return m_userId; +} + +void GetMovieRecommendationsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetMovieRecommendationsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetMovieRecommendationsParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getmovieremotesearchresultsparams.cpp b/core/src/loader/getmovieremotesearchresultsparams.cpp new file mode 100644 index 0000000..4975824 --- /dev/null +++ b/core/src/loader/getmovieremotesearchresultsparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getmovieremotesearchresultsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetMovieRemoteSearchResultsParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getmusicalbumremotesearchresultsparams.cpp b/core/src/loader/getmusicalbumremotesearchresultsparams.cpp new file mode 100644 index 0000000..132285d --- /dev/null +++ b/core/src/loader/getmusicalbumremotesearchresultsparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getmusicalbumremotesearchresultsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetMusicAlbumRemoteSearchResultsParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getmusicartistremotesearchresultsparams.cpp b/core/src/loader/getmusicartistremotesearchresultsparams.cpp new file mode 100644 index 0000000..ff5e703 --- /dev/null +++ b/core/src/loader/getmusicartistremotesearchresultsparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getmusicartistremotesearchresultsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetMusicArtistRemoteSearchResultsParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getmusicgenreimagebyindexparams.cpp b/core/src/loader/getmusicgenreimagebyindexparams.cpp new file mode 100644 index 0000000..fee20f5 --- /dev/null +++ b/core/src/loader/getmusicgenreimagebyindexparams.cpp @@ -0,0 +1,362 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getmusicgenreimagebyindexparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetMusicGenreImageByIndexParams + +const qint32 &GetMusicGenreImageByIndexParams::imageIndex() const { + return m_imageIndex; +} + +void GetMusicGenreImageByIndexParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + + +const ImageType &GetMusicGenreImageByIndexParams::imageType() const { + return m_imageType; +} + +void GetMusicGenreImageByIndexParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &GetMusicGenreImageByIndexParams::name() const { + return m_name; +} + +void GetMusicGenreImageByIndexParams::setName(QString newName) { + m_name = newName; +} + + +const bool &GetMusicGenreImageByIndexParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void GetMusicGenreImageByIndexParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool GetMusicGenreImageByIndexParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void GetMusicGenreImageByIndexParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &GetMusicGenreImageByIndexParams::backgroundColor() const { + return m_backgroundColor; +} + +void GetMusicGenreImageByIndexParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool GetMusicGenreImageByIndexParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void GetMusicGenreImageByIndexParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &GetMusicGenreImageByIndexParams::blur() const { + return m_blur.value(); +} + +void GetMusicGenreImageByIndexParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool GetMusicGenreImageByIndexParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void GetMusicGenreImageByIndexParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &GetMusicGenreImageByIndexParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void GetMusicGenreImageByIndexParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool GetMusicGenreImageByIndexParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void GetMusicGenreImageByIndexParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &GetMusicGenreImageByIndexParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void GetMusicGenreImageByIndexParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool GetMusicGenreImageByIndexParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void GetMusicGenreImageByIndexParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &GetMusicGenreImageByIndexParams::format() const { + return m_format; +} + +void GetMusicGenreImageByIndexParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool GetMusicGenreImageByIndexParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void GetMusicGenreImageByIndexParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &GetMusicGenreImageByIndexParams::height() const { + return m_height.value(); +} + +void GetMusicGenreImageByIndexParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetMusicGenreImageByIndexParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetMusicGenreImageByIndexParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &GetMusicGenreImageByIndexParams::maxHeight() const { + return m_maxHeight.value(); +} + +void GetMusicGenreImageByIndexParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool GetMusicGenreImageByIndexParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void GetMusicGenreImageByIndexParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &GetMusicGenreImageByIndexParams::maxWidth() const { + return m_maxWidth.value(); +} + +void GetMusicGenreImageByIndexParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool GetMusicGenreImageByIndexParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void GetMusicGenreImageByIndexParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &GetMusicGenreImageByIndexParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void GetMusicGenreImageByIndexParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool GetMusicGenreImageByIndexParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void GetMusicGenreImageByIndexParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &GetMusicGenreImageByIndexParams::quality() const { + return m_quality.value(); +} + +void GetMusicGenreImageByIndexParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool GetMusicGenreImageByIndexParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void GetMusicGenreImageByIndexParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &GetMusicGenreImageByIndexParams::tag() const { + return m_tag; +} + +void GetMusicGenreImageByIndexParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetMusicGenreImageByIndexParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetMusicGenreImageByIndexParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &GetMusicGenreImageByIndexParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void GetMusicGenreImageByIndexParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool GetMusicGenreImageByIndexParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void GetMusicGenreImageByIndexParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &GetMusicGenreImageByIndexParams::width() const { + return m_width.value(); +} + +void GetMusicGenreImageByIndexParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetMusicGenreImageByIndexParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetMusicGenreImageByIndexParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getmusicgenreimageparams.cpp b/core/src/loader/getmusicgenreimageparams.cpp new file mode 100644 index 0000000..ace8128 --- /dev/null +++ b/core/src/loader/getmusicgenreimageparams.cpp @@ -0,0 +1,374 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getmusicgenreimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetMusicGenreImageParams + +const ImageType &GetMusicGenreImageParams::imageType() const { + return m_imageType; +} + +void GetMusicGenreImageParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &GetMusicGenreImageParams::name() const { + return m_name; +} + +void GetMusicGenreImageParams::setName(QString newName) { + m_name = newName; +} + + +const bool &GetMusicGenreImageParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void GetMusicGenreImageParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool GetMusicGenreImageParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void GetMusicGenreImageParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &GetMusicGenreImageParams::backgroundColor() const { + return m_backgroundColor; +} + +void GetMusicGenreImageParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool GetMusicGenreImageParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void GetMusicGenreImageParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &GetMusicGenreImageParams::blur() const { + return m_blur.value(); +} + +void GetMusicGenreImageParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool GetMusicGenreImageParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void GetMusicGenreImageParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &GetMusicGenreImageParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void GetMusicGenreImageParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool GetMusicGenreImageParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void GetMusicGenreImageParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &GetMusicGenreImageParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void GetMusicGenreImageParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool GetMusicGenreImageParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void GetMusicGenreImageParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &GetMusicGenreImageParams::format() const { + return m_format; +} + +void GetMusicGenreImageParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool GetMusicGenreImageParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void GetMusicGenreImageParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &GetMusicGenreImageParams::height() const { + return m_height.value(); +} + +void GetMusicGenreImageParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetMusicGenreImageParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetMusicGenreImageParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &GetMusicGenreImageParams::imageIndex() const { + return m_imageIndex.value(); +} + +void GetMusicGenreImageParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + +bool GetMusicGenreImageParams::imageIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageIndex.has_value(); +} + +void GetMusicGenreImageParams::setImageIndexNull() { + m_imageIndex = std::nullopt; +} + + +const qint32 &GetMusicGenreImageParams::maxHeight() const { + return m_maxHeight.value(); +} + +void GetMusicGenreImageParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool GetMusicGenreImageParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void GetMusicGenreImageParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &GetMusicGenreImageParams::maxWidth() const { + return m_maxWidth.value(); +} + +void GetMusicGenreImageParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool GetMusicGenreImageParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void GetMusicGenreImageParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &GetMusicGenreImageParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void GetMusicGenreImageParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool GetMusicGenreImageParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void GetMusicGenreImageParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &GetMusicGenreImageParams::quality() const { + return m_quality.value(); +} + +void GetMusicGenreImageParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool GetMusicGenreImageParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void GetMusicGenreImageParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &GetMusicGenreImageParams::tag() const { + return m_tag; +} + +void GetMusicGenreImageParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetMusicGenreImageParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetMusicGenreImageParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &GetMusicGenreImageParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void GetMusicGenreImageParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool GetMusicGenreImageParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void GetMusicGenreImageParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &GetMusicGenreImageParams::width() const { + return m_width.value(); +} + +void GetMusicGenreImageParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetMusicGenreImageParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetMusicGenreImageParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/pingrequestdto.h b/core/src/loader/getmusicgenreparams.cpp similarity index 67% rename from core/include/JellyfinQt/DTO/pingrequestdto.h rename to core/src/loader/getmusicgenreparams.cpp index 7b3a1a5..46a256b 100644 --- a/core/include/JellyfinQt/DTO/pingrequestdto.h +++ b/core/src/loader/getmusicgenreparams.cpp @@ -27,41 +27,45 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_PINGREQUESTDTO_H -#define JELLYFIN_DTO_PINGREQUESTDTO_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/getmusicgenreparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetMusicGenreParams + +const QString &GetMusicGenreParams::genreName() const { + return m_genreName; +} + +void GetMusicGenreParams::setGenreName(QString newGenreName) { + m_genreName = newGenreName; +} -class PingRequestDto { -public:PingRequestDto();PingRequestDto(const PingRequestDto &other); +const QString &GetMusicGenreParams::userId() const { + return m_userId; +} + +void GetMusicGenreParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetMusicGenreParams::userIdNull() const { + // Nullable: true + // Type Nullable: true - static PingRequestDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - /** - * @brief Gets or sets the ping time. - */ - qint64 ping() const; - /** - * @brief Gets or sets the ping time. - */ - void setPing(qint64 newPing); -protected: - qint64 m_ping; -}; + return m_userId.isNull(); +} +void GetMusicGenreParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PINGREQUESTDTO_H diff --git a/core/src/loader/getmusicgenresparams.cpp b/core/src/loader/getmusicgenresparams.cpp new file mode 100644 index 0000000..80b1bf6 --- /dev/null +++ b/core/src/loader/getmusicgenresparams.cpp @@ -0,0 +1,377 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getmusicgenresparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetMusicGenresParams + +const QList &GetMusicGenresParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetMusicGenresParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetMusicGenresParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetMusicGenresParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetMusicGenresParams::enableImages() const { + return m_enableImages.value(); +} + +void GetMusicGenresParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetMusicGenresParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetMusicGenresParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetMusicGenresParams::enableTotalRecordCount() const { + return m_enableTotalRecordCount.value(); +} + +void GetMusicGenresParams::setEnableTotalRecordCount(bool newEnableTotalRecordCount) { + m_enableTotalRecordCount = newEnableTotalRecordCount; +} + +bool GetMusicGenresParams::enableTotalRecordCountNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableTotalRecordCount.has_value(); +} + +void GetMusicGenresParams::setEnableTotalRecordCountNull() { + m_enableTotalRecordCount = std::nullopt; +} + + +const QStringList &GetMusicGenresParams::excludeItemTypes() const { + return m_excludeItemTypes; +} + +void GetMusicGenresParams::setExcludeItemTypes(QStringList newExcludeItemTypes) { + m_excludeItemTypes = newExcludeItemTypes; +} + +bool GetMusicGenresParams::excludeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeItemTypes.size() == 0; +} + +void GetMusicGenresParams::setExcludeItemTypesNull() { + m_excludeItemTypes.clear(); +} + + +const QList &GetMusicGenresParams::fields() const { + return m_fields; +} + +void GetMusicGenresParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetMusicGenresParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetMusicGenresParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetMusicGenresParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetMusicGenresParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetMusicGenresParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetMusicGenresParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const QStringList &GetMusicGenresParams::includeItemTypes() const { + return m_includeItemTypes; +} + +void GetMusicGenresParams::setIncludeItemTypes(QStringList newIncludeItemTypes) { + m_includeItemTypes = newIncludeItemTypes; +} + +bool GetMusicGenresParams::includeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_includeItemTypes.size() == 0; +} + +void GetMusicGenresParams::setIncludeItemTypesNull() { + m_includeItemTypes.clear(); +} + + +const bool &GetMusicGenresParams::isFavorite() const { + return m_isFavorite.value(); +} + +void GetMusicGenresParams::setIsFavorite(bool newIsFavorite) { + m_isFavorite = newIsFavorite; +} + +bool GetMusicGenresParams::isFavoriteNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isFavorite.has_value(); +} + +void GetMusicGenresParams::setIsFavoriteNull() { + m_isFavorite = std::nullopt; +} + + +const qint32 &GetMusicGenresParams::limit() const { + return m_limit.value(); +} + +void GetMusicGenresParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetMusicGenresParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetMusicGenresParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetMusicGenresParams::nameLessThan() const { + return m_nameLessThan; +} + +void GetMusicGenresParams::setNameLessThan(QString newNameLessThan) { + m_nameLessThan = newNameLessThan; +} + +bool GetMusicGenresParams::nameLessThanNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameLessThan.isNull(); +} + +void GetMusicGenresParams::setNameLessThanNull() { + m_nameLessThan.clear(); +} + + +const QString &GetMusicGenresParams::nameStartsWith() const { + return m_nameStartsWith; +} + +void GetMusicGenresParams::setNameStartsWith(QString newNameStartsWith) { + m_nameStartsWith = newNameStartsWith; +} + +bool GetMusicGenresParams::nameStartsWithNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameStartsWith.isNull(); +} + +void GetMusicGenresParams::setNameStartsWithNull() { + m_nameStartsWith.clear(); +} + + +const QString &GetMusicGenresParams::nameStartsWithOrGreater() const { + return m_nameStartsWithOrGreater; +} + +void GetMusicGenresParams::setNameStartsWithOrGreater(QString newNameStartsWithOrGreater) { + m_nameStartsWithOrGreater = newNameStartsWithOrGreater; +} + +bool GetMusicGenresParams::nameStartsWithOrGreaterNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameStartsWithOrGreater.isNull(); +} + +void GetMusicGenresParams::setNameStartsWithOrGreaterNull() { + m_nameStartsWithOrGreater.clear(); +} + + +const QString &GetMusicGenresParams::parentId() const { + return m_parentId; +} + +void GetMusicGenresParams::setParentId(QString newParentId) { + m_parentId = newParentId; +} + +bool GetMusicGenresParams::parentIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_parentId.isNull(); +} + +void GetMusicGenresParams::setParentIdNull() { + m_parentId.clear(); +} + + +const QString &GetMusicGenresParams::searchTerm() const { + return m_searchTerm; +} + +void GetMusicGenresParams::setSearchTerm(QString newSearchTerm) { + m_searchTerm = newSearchTerm; +} + +bool GetMusicGenresParams::searchTermNull() const { + // Nullable: true + // Type Nullable: true + + + return m_searchTerm.isNull(); +} + +void GetMusicGenresParams::setSearchTermNull() { + m_searchTerm.clear(); +} + + +const qint32 &GetMusicGenresParams::startIndex() const { + return m_startIndex.value(); +} + +void GetMusicGenresParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetMusicGenresParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetMusicGenresParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const QString &GetMusicGenresParams::userId() const { + return m_userId; +} + +void GetMusicGenresParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetMusicGenresParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetMusicGenresParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getmusicvideoremotesearchresultsparams.cpp b/core/src/loader/getmusicvideoremotesearchresultsparams.cpp new file mode 100644 index 0000000..ed86492 --- /dev/null +++ b/core/src/loader/getmusicvideoremotesearchresultsparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getmusicvideoremotesearchresultsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetMusicVideoRemoteSearchResultsParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getnamedconfigurationparams.cpp b/core/src/loader/getnamedconfigurationparams.cpp new file mode 100644 index 0000000..9ff456f --- /dev/null +++ b/core/src/loader/getnamedconfigurationparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getnamedconfigurationparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetNamedConfigurationParams + +const QString &GetNamedConfigurationParams::key() const { + return m_key; +} + +void GetNamedConfigurationParams::setKey(QString newKey) { + m_key = newKey; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getnetworksharesparams.cpp b/core/src/loader/getnetworksharesparams.cpp new file mode 100644 index 0000000..08b700a --- /dev/null +++ b/core/src/loader/getnetworksharesparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getnetworksharesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetNetworkSharesParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getnextupparams.cpp b/core/src/loader/getnextupparams.cpp new file mode 100644 index 0000000..fa97113 --- /dev/null +++ b/core/src/loader/getnextupparams.cpp @@ -0,0 +1,293 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getnextupparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetNextUpParams + +const bool &GetNextUpParams::disableFirstEpisode() const { + return m_disableFirstEpisode.value(); +} + +void GetNextUpParams::setDisableFirstEpisode(bool newDisableFirstEpisode) { + m_disableFirstEpisode = newDisableFirstEpisode; +} + +bool GetNextUpParams::disableFirstEpisodeNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_disableFirstEpisode.has_value(); +} + +void GetNextUpParams::setDisableFirstEpisodeNull() { + m_disableFirstEpisode = std::nullopt; +} + + +const QList &GetNextUpParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetNextUpParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetNextUpParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetNextUpParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetNextUpParams::enableImges() const { + return m_enableImges.value(); +} + +void GetNextUpParams::setEnableImges(bool newEnableImges) { + m_enableImges = newEnableImges; +} + +bool GetNextUpParams::enableImgesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImges.has_value(); +} + +void GetNextUpParams::setEnableImgesNull() { + m_enableImges = std::nullopt; +} + + +const bool &GetNextUpParams::enableTotalRecordCount() const { + return m_enableTotalRecordCount.value(); +} + +void GetNextUpParams::setEnableTotalRecordCount(bool newEnableTotalRecordCount) { + m_enableTotalRecordCount = newEnableTotalRecordCount; +} + +bool GetNextUpParams::enableTotalRecordCountNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableTotalRecordCount.has_value(); +} + +void GetNextUpParams::setEnableTotalRecordCountNull() { + m_enableTotalRecordCount = std::nullopt; +} + + +const bool &GetNextUpParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetNextUpParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetNextUpParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetNextUpParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QList &GetNextUpParams::fields() const { + return m_fields; +} + +void GetNextUpParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetNextUpParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetNextUpParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetNextUpParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetNextUpParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetNextUpParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetNextUpParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const qint32 &GetNextUpParams::limit() const { + return m_limit.value(); +} + +void GetNextUpParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetNextUpParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetNextUpParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetNextUpParams::parentId() const { + return m_parentId; +} + +void GetNextUpParams::setParentId(QString newParentId) { + m_parentId = newParentId; +} + +bool GetNextUpParams::parentIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_parentId.isNull(); +} + +void GetNextUpParams::setParentIdNull() { + m_parentId.clear(); +} + + +const QString &GetNextUpParams::seriesId() const { + return m_seriesId; +} + +void GetNextUpParams::setSeriesId(QString newSeriesId) { + m_seriesId = newSeriesId; +} + +bool GetNextUpParams::seriesIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_seriesId.isNull(); +} + +void GetNextUpParams::setSeriesIdNull() { + m_seriesId.clear(); +} + + +const qint32 &GetNextUpParams::startIndex() const { + return m_startIndex.value(); +} + +void GetNextUpParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetNextUpParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetNextUpParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const QString &GetNextUpParams::userId() const { + return m_userId; +} + +void GetNextUpParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetNextUpParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetNextUpParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getnotificationservicesparams.cpp b/core/src/loader/getnotificationservicesparams.cpp new file mode 100644 index 0000000..a54b99e --- /dev/null +++ b/core/src/loader/getnotificationservicesparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getnotificationservicesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetNotificationServicesParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getnotificationsparams.cpp b/core/src/loader/getnotificationsparams.cpp new file mode 100644 index 0000000..77b9a3f --- /dev/null +++ b/core/src/loader/getnotificationsparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getnotificationsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetNotificationsParams + +const QString &GetNotificationsParams::userId() const { + return m_userId; +} + +void GetNotificationsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getnotificationssummaryparams.cpp b/core/src/loader/getnotificationssummaryparams.cpp new file mode 100644 index 0000000..287c2dc --- /dev/null +++ b/core/src/loader/getnotificationssummaryparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getnotificationssummaryparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetNotificationsSummaryParams + +const QString &GetNotificationsSummaryParams::userId() const { + return m_userId; +} + +void GetNotificationsSummaryParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getnotificationtypesparams.cpp b/core/src/loader/getnotificationtypesparams.cpp new file mode 100644 index 0000000..0edf838 --- /dev/null +++ b/core/src/loader/getnotificationtypesparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getnotificationtypesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetNotificationTypesParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/localizationoption.h b/core/src/loader/getpackageinfoparams.cpp similarity index 66% rename from core/include/JellyfinQt/DTO/localizationoption.h rename to core/src/loader/getpackageinfoparams.cpp index 713678f..66579c4 100644 --- a/core/include/JellyfinQt/DTO/localizationoption.h +++ b/core/src/loader/getpackageinfoparams.cpp @@ -27,43 +27,45 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_LOCALIZATIONOPTION_H -#define JELLYFIN_DTO_LOCALIZATIONOPTION_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/getpackageinfoparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetPackageInfoParams + +const QString &GetPackageInfoParams::name() const { + return m_name; +} + +void GetPackageInfoParams::setName(QString newName) { + m_name = newName; +} -class LocalizationOption { -public:LocalizationOption();LocalizationOption(const LocalizationOption &other); +const QString &GetPackageInfoParams::assemblyGuid() const { + return m_assemblyGuid; +} + +void GetPackageInfoParams::setAssemblyGuid(QString newAssemblyGuid) { + m_assemblyGuid = newAssemblyGuid; +} + +bool GetPackageInfoParams::assemblyGuidNull() const { + // Nullable: true + // Type Nullable: true - static LocalizationOption fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - QString name() const; + return m_assemblyGuid.isNull(); +} - void setName(QString newName); +void GetPackageInfoParams::setAssemblyGuidNull() { + m_assemblyGuid.clear(); +} - QString value() const; - void setValue(QString newValue); - -protected: - QString m_name; - QString m_value; -}; +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_LOCALIZATIONOPTION_H diff --git a/core/src/loader/getpackagesparams.cpp b/core/src/loader/getpackagesparams.cpp new file mode 100644 index 0000000..55a6f41 --- /dev/null +++ b/core/src/loader/getpackagesparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getpackagesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetPackagesParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getparams.cpp b/core/src/loader/getparams.cpp new file mode 100644 index 0000000..276fc55 --- /dev/null +++ b/core/src/loader/getparams.cpp @@ -0,0 +1,407 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetParams + +const QString &GetParams::searchTerm() const { + return m_searchTerm; +} + +void GetParams::setSearchTerm(QString newSearchTerm) { + m_searchTerm = newSearchTerm; +} + + +const QStringList &GetParams::excludeItemTypes() const { + return m_excludeItemTypes; +} + +void GetParams::setExcludeItemTypes(QStringList newExcludeItemTypes) { + m_excludeItemTypes = newExcludeItemTypes; +} + +bool GetParams::excludeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeItemTypes.size() == 0; +} + +void GetParams::setExcludeItemTypesNull() { + m_excludeItemTypes.clear(); +} + + +const bool &GetParams::includeArtists() const { + return m_includeArtists.value(); +} + +void GetParams::setIncludeArtists(bool newIncludeArtists) { + m_includeArtists = newIncludeArtists; +} + +bool GetParams::includeArtistsNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_includeArtists.has_value(); +} + +void GetParams::setIncludeArtistsNull() { + m_includeArtists = std::nullopt; +} + + +const bool &GetParams::includeGenres() const { + return m_includeGenres.value(); +} + +void GetParams::setIncludeGenres(bool newIncludeGenres) { + m_includeGenres = newIncludeGenres; +} + +bool GetParams::includeGenresNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_includeGenres.has_value(); +} + +void GetParams::setIncludeGenresNull() { + m_includeGenres = std::nullopt; +} + + +const QStringList &GetParams::includeItemTypes() const { + return m_includeItemTypes; +} + +void GetParams::setIncludeItemTypes(QStringList newIncludeItemTypes) { + m_includeItemTypes = newIncludeItemTypes; +} + +bool GetParams::includeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_includeItemTypes.size() == 0; +} + +void GetParams::setIncludeItemTypesNull() { + m_includeItemTypes.clear(); +} + + +const bool &GetParams::includeMedia() const { + return m_includeMedia.value(); +} + +void GetParams::setIncludeMedia(bool newIncludeMedia) { + m_includeMedia = newIncludeMedia; +} + +bool GetParams::includeMediaNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_includeMedia.has_value(); +} + +void GetParams::setIncludeMediaNull() { + m_includeMedia = std::nullopt; +} + + +const bool &GetParams::includePeople() const { + return m_includePeople.value(); +} + +void GetParams::setIncludePeople(bool newIncludePeople) { + m_includePeople = newIncludePeople; +} + +bool GetParams::includePeopleNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_includePeople.has_value(); +} + +void GetParams::setIncludePeopleNull() { + m_includePeople = std::nullopt; +} + + +const bool &GetParams::includeStudios() const { + return m_includeStudios.value(); +} + +void GetParams::setIncludeStudios(bool newIncludeStudios) { + m_includeStudios = newIncludeStudios; +} + +bool GetParams::includeStudiosNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_includeStudios.has_value(); +} + +void GetParams::setIncludeStudiosNull() { + m_includeStudios = std::nullopt; +} + + +const bool &GetParams::isKids() const { + return m_isKids.value(); +} + +void GetParams::setIsKids(bool newIsKids) { + m_isKids = newIsKids; +} + +bool GetParams::isKidsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isKids.has_value(); +} + +void GetParams::setIsKidsNull() { + m_isKids = std::nullopt; +} + + +const bool &GetParams::isMovie() const { + return m_isMovie.value(); +} + +void GetParams::setIsMovie(bool newIsMovie) { + m_isMovie = newIsMovie; +} + +bool GetParams::isMovieNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isMovie.has_value(); +} + +void GetParams::setIsMovieNull() { + m_isMovie = std::nullopt; +} + + +const bool &GetParams::isNews() const { + return m_isNews.value(); +} + +void GetParams::setIsNews(bool newIsNews) { + m_isNews = newIsNews; +} + +bool GetParams::isNewsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isNews.has_value(); +} + +void GetParams::setIsNewsNull() { + m_isNews = std::nullopt; +} + + +const bool &GetParams::isSeries() const { + return m_isSeries.value(); +} + +void GetParams::setIsSeries(bool newIsSeries) { + m_isSeries = newIsSeries; +} + +bool GetParams::isSeriesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isSeries.has_value(); +} + +void GetParams::setIsSeriesNull() { + m_isSeries = std::nullopt; +} + + +const bool &GetParams::isSports() const { + return m_isSports.value(); +} + +void GetParams::setIsSports(bool newIsSports) { + m_isSports = newIsSports; +} + +bool GetParams::isSportsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isSports.has_value(); +} + +void GetParams::setIsSportsNull() { + m_isSports = std::nullopt; +} + + +const qint32 &GetParams::limit() const { + return m_limit.value(); +} + +void GetParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QStringList &GetParams::mediaTypes() const { + return m_mediaTypes; +} + +void GetParams::setMediaTypes(QStringList newMediaTypes) { + m_mediaTypes = newMediaTypes; +} + +bool GetParams::mediaTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaTypes.size() == 0; +} + +void GetParams::setMediaTypesNull() { + m_mediaTypes.clear(); +} + + +const QString &GetParams::parentId() const { + return m_parentId; +} + +void GetParams::setParentId(QString newParentId) { + m_parentId = newParentId; +} + +bool GetParams::parentIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_parentId.isNull(); +} + +void GetParams::setParentIdNull() { + m_parentId.clear(); +} + + +const qint32 &GetParams::startIndex() const { + return m_startIndex.value(); +} + +void GetParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const QString &GetParams::userId() const { + return m_userId; +} + +void GetParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getparentalratingsparams.cpp b/core/src/loader/getparentalratingsparams.cpp new file mode 100644 index 0000000..4c4952b --- /dev/null +++ b/core/src/loader/getparentalratingsparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getparentalratingsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetParentalRatingsParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getparentpathparams.cpp b/core/src/loader/getparentpathparams.cpp new file mode 100644 index 0000000..ba9d92c --- /dev/null +++ b/core/src/loader/getparentpathparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getparentpathparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetParentPathParams + +const QString &GetParentPathParams::path() const { + return m_path; +} + +void GetParentPathParams::setPath(QString newPath) { + m_path = newPath; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getpasswordresetprovidersparams.cpp b/core/src/loader/getpasswordresetprovidersparams.cpp new file mode 100644 index 0000000..f15db80 --- /dev/null +++ b/core/src/loader/getpasswordresetprovidersparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getpasswordresetprovidersparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetPasswordResetProvidersParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getpersonimagebyindexparams.cpp b/core/src/loader/getpersonimagebyindexparams.cpp new file mode 100644 index 0000000..c1def79 --- /dev/null +++ b/core/src/loader/getpersonimagebyindexparams.cpp @@ -0,0 +1,362 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getpersonimagebyindexparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetPersonImageByIndexParams + +const qint32 &GetPersonImageByIndexParams::imageIndex() const { + return m_imageIndex; +} + +void GetPersonImageByIndexParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + + +const ImageType &GetPersonImageByIndexParams::imageType() const { + return m_imageType; +} + +void GetPersonImageByIndexParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &GetPersonImageByIndexParams::name() const { + return m_name; +} + +void GetPersonImageByIndexParams::setName(QString newName) { + m_name = newName; +} + + +const bool &GetPersonImageByIndexParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void GetPersonImageByIndexParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool GetPersonImageByIndexParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void GetPersonImageByIndexParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &GetPersonImageByIndexParams::backgroundColor() const { + return m_backgroundColor; +} + +void GetPersonImageByIndexParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool GetPersonImageByIndexParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void GetPersonImageByIndexParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &GetPersonImageByIndexParams::blur() const { + return m_blur.value(); +} + +void GetPersonImageByIndexParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool GetPersonImageByIndexParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void GetPersonImageByIndexParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &GetPersonImageByIndexParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void GetPersonImageByIndexParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool GetPersonImageByIndexParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void GetPersonImageByIndexParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &GetPersonImageByIndexParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void GetPersonImageByIndexParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool GetPersonImageByIndexParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void GetPersonImageByIndexParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &GetPersonImageByIndexParams::format() const { + return m_format; +} + +void GetPersonImageByIndexParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool GetPersonImageByIndexParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void GetPersonImageByIndexParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &GetPersonImageByIndexParams::height() const { + return m_height.value(); +} + +void GetPersonImageByIndexParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetPersonImageByIndexParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetPersonImageByIndexParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &GetPersonImageByIndexParams::maxHeight() const { + return m_maxHeight.value(); +} + +void GetPersonImageByIndexParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool GetPersonImageByIndexParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void GetPersonImageByIndexParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &GetPersonImageByIndexParams::maxWidth() const { + return m_maxWidth.value(); +} + +void GetPersonImageByIndexParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool GetPersonImageByIndexParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void GetPersonImageByIndexParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &GetPersonImageByIndexParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void GetPersonImageByIndexParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool GetPersonImageByIndexParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void GetPersonImageByIndexParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &GetPersonImageByIndexParams::quality() const { + return m_quality.value(); +} + +void GetPersonImageByIndexParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool GetPersonImageByIndexParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void GetPersonImageByIndexParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &GetPersonImageByIndexParams::tag() const { + return m_tag; +} + +void GetPersonImageByIndexParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetPersonImageByIndexParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetPersonImageByIndexParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &GetPersonImageByIndexParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void GetPersonImageByIndexParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool GetPersonImageByIndexParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void GetPersonImageByIndexParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &GetPersonImageByIndexParams::width() const { + return m_width.value(); +} + +void GetPersonImageByIndexParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetPersonImageByIndexParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetPersonImageByIndexParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getpersonimageparams.cpp b/core/src/loader/getpersonimageparams.cpp new file mode 100644 index 0000000..6cad051 --- /dev/null +++ b/core/src/loader/getpersonimageparams.cpp @@ -0,0 +1,374 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getpersonimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetPersonImageParams + +const ImageType &GetPersonImageParams::imageType() const { + return m_imageType; +} + +void GetPersonImageParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &GetPersonImageParams::name() const { + return m_name; +} + +void GetPersonImageParams::setName(QString newName) { + m_name = newName; +} + + +const bool &GetPersonImageParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void GetPersonImageParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool GetPersonImageParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void GetPersonImageParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &GetPersonImageParams::backgroundColor() const { + return m_backgroundColor; +} + +void GetPersonImageParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool GetPersonImageParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void GetPersonImageParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &GetPersonImageParams::blur() const { + return m_blur.value(); +} + +void GetPersonImageParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool GetPersonImageParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void GetPersonImageParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &GetPersonImageParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void GetPersonImageParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool GetPersonImageParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void GetPersonImageParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &GetPersonImageParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void GetPersonImageParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool GetPersonImageParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void GetPersonImageParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &GetPersonImageParams::format() const { + return m_format; +} + +void GetPersonImageParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool GetPersonImageParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void GetPersonImageParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &GetPersonImageParams::height() const { + return m_height.value(); +} + +void GetPersonImageParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetPersonImageParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetPersonImageParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &GetPersonImageParams::imageIndex() const { + return m_imageIndex.value(); +} + +void GetPersonImageParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + +bool GetPersonImageParams::imageIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageIndex.has_value(); +} + +void GetPersonImageParams::setImageIndexNull() { + m_imageIndex = std::nullopt; +} + + +const qint32 &GetPersonImageParams::maxHeight() const { + return m_maxHeight.value(); +} + +void GetPersonImageParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool GetPersonImageParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void GetPersonImageParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &GetPersonImageParams::maxWidth() const { + return m_maxWidth.value(); +} + +void GetPersonImageParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool GetPersonImageParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void GetPersonImageParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &GetPersonImageParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void GetPersonImageParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool GetPersonImageParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void GetPersonImageParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &GetPersonImageParams::quality() const { + return m_quality.value(); +} + +void GetPersonImageParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool GetPersonImageParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void GetPersonImageParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &GetPersonImageParams::tag() const { + return m_tag; +} + +void GetPersonImageParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetPersonImageParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetPersonImageParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &GetPersonImageParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void GetPersonImageParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool GetPersonImageParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void GetPersonImageParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &GetPersonImageParams::width() const { + return m_width.value(); +} + +void GetPersonImageParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetPersonImageParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetPersonImageParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/deviceoptions.h b/core/src/loader/getpersonparams.cpp similarity index 69% rename from core/include/JellyfinQt/DTO/deviceoptions.h rename to core/src/loader/getpersonparams.cpp index 3c7853f..f0aaf82 100644 --- a/core/include/JellyfinQt/DTO/deviceoptions.h +++ b/core/src/loader/getpersonparams.cpp @@ -27,38 +27,45 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_DEVICEOPTIONS_H -#define JELLYFIN_DTO_DEVICEOPTIONS_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/getpersonparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetPersonParams + +const QString &GetPersonParams::name() const { + return m_name; +} + +void GetPersonParams::setName(QString newName) { + m_name = newName; +} -class DeviceOptions { -public:DeviceOptions();DeviceOptions(const DeviceOptions &other); +const QString &GetPersonParams::userId() const { + return m_userId; +} + +void GetPersonParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetPersonParams::userIdNull() const { + // Nullable: true + // Type Nullable: true - static DeviceOptions fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - QString customName() const; + return m_userId.isNull(); +} - void setCustomName(QString newCustomName); +void GetPersonParams::setUserIdNull() { + m_userId.clear(); +} -protected: - QString m_customName; -}; + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_DEVICEOPTIONS_H diff --git a/core/src/loader/getpersonremotesearchresultsparams.cpp b/core/src/loader/getpersonremotesearchresultsparams.cpp new file mode 100644 index 0000000..c848226 --- /dev/null +++ b/core/src/loader/getpersonremotesearchresultsparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getpersonremotesearchresultsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetPersonRemoteSearchResultsParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getpersonsparams.cpp b/core/src/loader/getpersonsparams.cpp new file mode 100644 index 0000000..25836df --- /dev/null +++ b/core/src/loader/getpersonsparams.cpp @@ -0,0 +1,314 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getpersonsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetPersonsParams + +const QString &GetPersonsParams::appearsInItemId() const { + return m_appearsInItemId; +} + +void GetPersonsParams::setAppearsInItemId(QString newAppearsInItemId) { + m_appearsInItemId = newAppearsInItemId; +} + +bool GetPersonsParams::appearsInItemIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_appearsInItemId.isNull(); +} + +void GetPersonsParams::setAppearsInItemIdNull() { + m_appearsInItemId.clear(); +} + + +const QList &GetPersonsParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetPersonsParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetPersonsParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetPersonsParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetPersonsParams::enableImages() const { + return m_enableImages.value(); +} + +void GetPersonsParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetPersonsParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetPersonsParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetPersonsParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetPersonsParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetPersonsParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetPersonsParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QStringList &GetPersonsParams::excludePersonTypes() const { + return m_excludePersonTypes; +} + +void GetPersonsParams::setExcludePersonTypes(QStringList newExcludePersonTypes) { + m_excludePersonTypes = newExcludePersonTypes; +} + +bool GetPersonsParams::excludePersonTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludePersonTypes.size() == 0; +} + +void GetPersonsParams::setExcludePersonTypesNull() { + m_excludePersonTypes.clear(); +} + + +const QList &GetPersonsParams::fields() const { + return m_fields; +} + +void GetPersonsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetPersonsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetPersonsParams::setFieldsNull() { + m_fields.clear(); +} + + +const QList &GetPersonsParams::filters() const { + return m_filters; +} + +void GetPersonsParams::setFilters(QList newFilters) { + m_filters = newFilters; +} + +bool GetPersonsParams::filtersNull() const { + // Nullable: true + // Type Nullable: true + + + return m_filters.size() == 0; +} + +void GetPersonsParams::setFiltersNull() { + m_filters.clear(); +} + + +const qint32 &GetPersonsParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetPersonsParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetPersonsParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetPersonsParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const bool &GetPersonsParams::isFavorite() const { + return m_isFavorite.value(); +} + +void GetPersonsParams::setIsFavorite(bool newIsFavorite) { + m_isFavorite = newIsFavorite; +} + +bool GetPersonsParams::isFavoriteNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isFavorite.has_value(); +} + +void GetPersonsParams::setIsFavoriteNull() { + m_isFavorite = std::nullopt; +} + + +const qint32 &GetPersonsParams::limit() const { + return m_limit.value(); +} + +void GetPersonsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetPersonsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetPersonsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QStringList &GetPersonsParams::personTypes() const { + return m_personTypes; +} + +void GetPersonsParams::setPersonTypes(QStringList newPersonTypes) { + m_personTypes = newPersonTypes; +} + +bool GetPersonsParams::personTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_personTypes.size() == 0; +} + +void GetPersonsParams::setPersonTypesNull() { + m_personTypes.clear(); +} + + +const QString &GetPersonsParams::searchTerm() const { + return m_searchTerm; +} + +void GetPersonsParams::setSearchTerm(QString newSearchTerm) { + m_searchTerm = newSearchTerm; +} + +bool GetPersonsParams::searchTermNull() const { + // Nullable: true + // Type Nullable: true + + + return m_searchTerm.isNull(); +} + +void GetPersonsParams::setSearchTermNull() { + m_searchTerm.clear(); +} + + +const QString &GetPersonsParams::userId() const { + return m_userId; +} + +void GetPersonsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetPersonsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetPersonsParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getphysicalpathsparams.cpp b/core/src/loader/getphysicalpathsparams.cpp new file mode 100644 index 0000000..bce8a99 --- /dev/null +++ b/core/src/loader/getphysicalpathsparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getphysicalpathsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetPhysicalPathsParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getpingsystemparams.cpp b/core/src/loader/getpingsystemparams.cpp new file mode 100644 index 0000000..44d0300 --- /dev/null +++ b/core/src/loader/getpingsystemparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getpingsystemparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetPingSystemParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getplaybackinfoparams.cpp b/core/src/loader/getplaybackinfoparams.cpp new file mode 100644 index 0000000..f17964f --- /dev/null +++ b/core/src/loader/getplaybackinfoparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getplaybackinfoparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetPlaybackInfoParams + +const QString &GetPlaybackInfoParams::itemId() const { + return m_itemId; +} + +void GetPlaybackInfoParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &GetPlaybackInfoParams::userId() const { + return m_userId; +} + +void GetPlaybackInfoParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getplaylistitemsparams.cpp b/core/src/loader/getplaylistitemsparams.cpp new file mode 100644 index 0000000..d17cdd5 --- /dev/null +++ b/core/src/loader/getplaylistitemsparams.cpp @@ -0,0 +1,206 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getplaylistitemsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetPlaylistItemsParams + +const QString &GetPlaylistItemsParams::playlistId() const { + return m_playlistId; +} + +void GetPlaylistItemsParams::setPlaylistId(QString newPlaylistId) { + m_playlistId = newPlaylistId; +} + + +const QString &GetPlaylistItemsParams::userId() const { + return m_userId; +} + +void GetPlaylistItemsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + +const QList &GetPlaylistItemsParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetPlaylistItemsParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetPlaylistItemsParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetPlaylistItemsParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetPlaylistItemsParams::enableImages() const { + return m_enableImages.value(); +} + +void GetPlaylistItemsParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetPlaylistItemsParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetPlaylistItemsParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetPlaylistItemsParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetPlaylistItemsParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetPlaylistItemsParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetPlaylistItemsParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QList &GetPlaylistItemsParams::fields() const { + return m_fields; +} + +void GetPlaylistItemsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetPlaylistItemsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetPlaylistItemsParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetPlaylistItemsParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetPlaylistItemsParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetPlaylistItemsParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetPlaylistItemsParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const qint32 &GetPlaylistItemsParams::limit() const { + return m_limit.value(); +} + +void GetPlaylistItemsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetPlaylistItemsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetPlaylistItemsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const qint32 &GetPlaylistItemsParams::startIndex() const { + return m_startIndex.value(); +} + +void GetPlaylistItemsParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetPlaylistItemsParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetPlaylistItemsParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getpluginconfigurationparams.cpp b/core/src/loader/getpluginconfigurationparams.cpp new file mode 100644 index 0000000..d9e3b8d --- /dev/null +++ b/core/src/loader/getpluginconfigurationparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getpluginconfigurationparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetPluginConfigurationParams + +const QString &GetPluginConfigurationParams::pluginId() const { + return m_pluginId; +} + +void GetPluginConfigurationParams::setPluginId(QString newPluginId) { + m_pluginId = newPluginId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getpluginimageparams.cpp b/core/src/loader/getpluginimageparams.cpp new file mode 100644 index 0000000..4b73975 --- /dev/null +++ b/core/src/loader/getpluginimageparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getpluginimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetPluginImageParams + +const QString &GetPluginImageParams::pluginId() const { + return m_pluginId; +} + +void GetPluginImageParams::setPluginId(QString newPluginId) { + m_pluginId = newPluginId; +} + + +const QSharedPointer &GetPluginImageParams::version() const { + return m_version; +} + +void GetPluginImageParams::setVersion(QSharedPointer newVersion) { + m_version = newVersion; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getpluginmanifestparams.cpp b/core/src/loader/getpluginmanifestparams.cpp new file mode 100644 index 0000000..efbab72 --- /dev/null +++ b/core/src/loader/getpluginmanifestparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getpluginmanifestparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetPluginManifestParams + +const QString &GetPluginManifestParams::pluginId() const { + return m_pluginId; +} + +void GetPluginManifestParams::setPluginId(QString newPluginId) { + m_pluginId = newPluginId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getpluginsparams.cpp b/core/src/loader/getpluginsparams.cpp new file mode 100644 index 0000000..794fcdc --- /dev/null +++ b/core/src/loader/getpluginsparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getpluginsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetPluginsParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getpostedplaybackinfoparams.cpp b/core/src/loader/getpostedplaybackinfoparams.cpp new file mode 100644 index 0000000..e01d8e3 --- /dev/null +++ b/core/src/loader/getpostedplaybackinfoparams.cpp @@ -0,0 +1,344 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getpostedplaybackinfoparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetPostedPlaybackInfoParams + +const QString &GetPostedPlaybackInfoParams::itemId() const { + return m_itemId; +} + +void GetPostedPlaybackInfoParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const bool &GetPostedPlaybackInfoParams::allowAudioStreamCopy() const { + return m_allowAudioStreamCopy.value(); +} + +void GetPostedPlaybackInfoParams::setAllowAudioStreamCopy(bool newAllowAudioStreamCopy) { + m_allowAudioStreamCopy = newAllowAudioStreamCopy; +} + +bool GetPostedPlaybackInfoParams::allowAudioStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowAudioStreamCopy.has_value(); +} + +void GetPostedPlaybackInfoParams::setAllowAudioStreamCopyNull() { + m_allowAudioStreamCopy = std::nullopt; +} + + +const bool &GetPostedPlaybackInfoParams::allowVideoStreamCopy() const { + return m_allowVideoStreamCopy.value(); +} + +void GetPostedPlaybackInfoParams::setAllowVideoStreamCopy(bool newAllowVideoStreamCopy) { + m_allowVideoStreamCopy = newAllowVideoStreamCopy; +} + +bool GetPostedPlaybackInfoParams::allowVideoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowVideoStreamCopy.has_value(); +} + +void GetPostedPlaybackInfoParams::setAllowVideoStreamCopyNull() { + m_allowVideoStreamCopy = std::nullopt; +} + + +const qint32 &GetPostedPlaybackInfoParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void GetPostedPlaybackInfoParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool GetPostedPlaybackInfoParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void GetPostedPlaybackInfoParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &GetPostedPlaybackInfoParams::autoOpenLiveStream() const { + return m_autoOpenLiveStream.value(); +} + +void GetPostedPlaybackInfoParams::setAutoOpenLiveStream(bool newAutoOpenLiveStream) { + m_autoOpenLiveStream = newAutoOpenLiveStream; +} + +bool GetPostedPlaybackInfoParams::autoOpenLiveStreamNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_autoOpenLiveStream.has_value(); +} + +void GetPostedPlaybackInfoParams::setAutoOpenLiveStreamNull() { + m_autoOpenLiveStream = std::nullopt; +} + + +const bool &GetPostedPlaybackInfoParams::enableDirectPlay() const { + return m_enableDirectPlay.value(); +} + +void GetPostedPlaybackInfoParams::setEnableDirectPlay(bool newEnableDirectPlay) { + m_enableDirectPlay = newEnableDirectPlay; +} + +bool GetPostedPlaybackInfoParams::enableDirectPlayNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableDirectPlay.has_value(); +} + +void GetPostedPlaybackInfoParams::setEnableDirectPlayNull() { + m_enableDirectPlay = std::nullopt; +} + + +const bool &GetPostedPlaybackInfoParams::enableDirectStream() const { + return m_enableDirectStream.value(); +} + +void GetPostedPlaybackInfoParams::setEnableDirectStream(bool newEnableDirectStream) { + m_enableDirectStream = newEnableDirectStream; +} + +bool GetPostedPlaybackInfoParams::enableDirectStreamNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableDirectStream.has_value(); +} + +void GetPostedPlaybackInfoParams::setEnableDirectStreamNull() { + m_enableDirectStream = std::nullopt; +} + + +const bool &GetPostedPlaybackInfoParams::enableTranscoding() const { + return m_enableTranscoding.value(); +} + +void GetPostedPlaybackInfoParams::setEnableTranscoding(bool newEnableTranscoding) { + m_enableTranscoding = newEnableTranscoding; +} + +bool GetPostedPlaybackInfoParams::enableTranscodingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableTranscoding.has_value(); +} + +void GetPostedPlaybackInfoParams::setEnableTranscodingNull() { + m_enableTranscoding = std::nullopt; +} + + +const QString &GetPostedPlaybackInfoParams::liveStreamId() const { + return m_liveStreamId; +} + +void GetPostedPlaybackInfoParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool GetPostedPlaybackInfoParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void GetPostedPlaybackInfoParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const qint32 &GetPostedPlaybackInfoParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void GetPostedPlaybackInfoParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool GetPostedPlaybackInfoParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void GetPostedPlaybackInfoParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const qint32 &GetPostedPlaybackInfoParams::maxStreamingBitrate() const { + return m_maxStreamingBitrate.value(); +} + +void GetPostedPlaybackInfoParams::setMaxStreamingBitrate(qint32 newMaxStreamingBitrate) { + m_maxStreamingBitrate = newMaxStreamingBitrate; +} + +bool GetPostedPlaybackInfoParams::maxStreamingBitrateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxStreamingBitrate.has_value(); +} + +void GetPostedPlaybackInfoParams::setMaxStreamingBitrateNull() { + m_maxStreamingBitrate = std::nullopt; +} + + +const QString &GetPostedPlaybackInfoParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void GetPostedPlaybackInfoParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + +bool GetPostedPlaybackInfoParams::mediaSourceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaSourceId.isNull(); +} + +void GetPostedPlaybackInfoParams::setMediaSourceIdNull() { + m_mediaSourceId.clear(); +} + + +const qint64 &GetPostedPlaybackInfoParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void GetPostedPlaybackInfoParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool GetPostedPlaybackInfoParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void GetPostedPlaybackInfoParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const qint32 &GetPostedPlaybackInfoParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void GetPostedPlaybackInfoParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool GetPostedPlaybackInfoParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void GetPostedPlaybackInfoParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const QString &GetPostedPlaybackInfoParams::userId() const { + return m_userId; +} + +void GetPostedPlaybackInfoParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetPostedPlaybackInfoParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetPostedPlaybackInfoParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getprofileinfosparams.cpp b/core/src/loader/getprofileinfosparams.cpp new file mode 100644 index 0000000..b28a982 --- /dev/null +++ b/core/src/loader/getprofileinfosparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getprofileinfosparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetProfileInfosParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getprofileparams.cpp b/core/src/loader/getprofileparams.cpp new file mode 100644 index 0000000..e433098 --- /dev/null +++ b/core/src/loader/getprofileparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getprofileparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetProfileParams + +const QString &GetProfileParams::profileId() const { + return m_profileId; +} + +void GetProfileParams::setProfileId(QString newProfileId) { + m_profileId = newProfileId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getprogramparams.cpp b/core/src/loader/getprogramparams.cpp new file mode 100644 index 0000000..607d912 --- /dev/null +++ b/core/src/loader/getprogramparams.cpp @@ -0,0 +1,71 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getprogramparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetProgramParams + +const QString &GetProgramParams::programId() const { + return m_programId; +} + +void GetProgramParams::setProgramId(QString newProgramId) { + m_programId = newProgramId; +} + + +const QString &GetProgramParams::userId() const { + return m_userId; +} + +void GetProgramParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetProgramParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetProgramParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getprogramsparams.cpp b/core/src/loader/getprogramsparams.cpp new file mode 100644 index 0000000..9fa6216 --- /dev/null +++ b/core/src/loader/getprogramsparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getprogramsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetProgramsParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getpublicsysteminfoparams.cpp b/core/src/loader/getpublicsysteminfoparams.cpp new file mode 100644 index 0000000..06d237e --- /dev/null +++ b/core/src/loader/getpublicsysteminfoparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getpublicsysteminfoparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetPublicSystemInfoParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getpublicusersparams.cpp b/core/src/loader/getpublicusersparams.cpp new file mode 100644 index 0000000..f04127a --- /dev/null +++ b/core/src/loader/getpublicusersparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getpublicusersparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetPublicUsersParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getqueryfilterslegacyparams.cpp b/core/src/loader/getqueryfilterslegacyparams.cpp new file mode 100644 index 0000000..d2c2490 --- /dev/null +++ b/core/src/loader/getqueryfilterslegacyparams.cpp @@ -0,0 +1,125 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getqueryfilterslegacyparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetQueryFiltersLegacyParams + +const QStringList &GetQueryFiltersLegacyParams::includeItemTypes() const { + return m_includeItemTypes; +} + +void GetQueryFiltersLegacyParams::setIncludeItemTypes(QStringList newIncludeItemTypes) { + m_includeItemTypes = newIncludeItemTypes; +} + +bool GetQueryFiltersLegacyParams::includeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_includeItemTypes.size() == 0; +} + +void GetQueryFiltersLegacyParams::setIncludeItemTypesNull() { + m_includeItemTypes.clear(); +} + + +const QStringList &GetQueryFiltersLegacyParams::mediaTypes() const { + return m_mediaTypes; +} + +void GetQueryFiltersLegacyParams::setMediaTypes(QStringList newMediaTypes) { + m_mediaTypes = newMediaTypes; +} + +bool GetQueryFiltersLegacyParams::mediaTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaTypes.size() == 0; +} + +void GetQueryFiltersLegacyParams::setMediaTypesNull() { + m_mediaTypes.clear(); +} + + +const QString &GetQueryFiltersLegacyParams::parentId() const { + return m_parentId; +} + +void GetQueryFiltersLegacyParams::setParentId(QString newParentId) { + m_parentId = newParentId; +} + +bool GetQueryFiltersLegacyParams::parentIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_parentId.isNull(); +} + +void GetQueryFiltersLegacyParams::setParentIdNull() { + m_parentId.clear(); +} + + +const QString &GetQueryFiltersLegacyParams::userId() const { + return m_userId; +} + +void GetQueryFiltersLegacyParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetQueryFiltersLegacyParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetQueryFiltersLegacyParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getqueryfiltersparams.cpp b/core/src/loader/getqueryfiltersparams.cpp new file mode 100644 index 0000000..ecf8fac --- /dev/null +++ b/core/src/loader/getqueryfiltersparams.cpp @@ -0,0 +1,251 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getqueryfiltersparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetQueryFiltersParams + +const QStringList &GetQueryFiltersParams::includeItemTypes() const { + return m_includeItemTypes; +} + +void GetQueryFiltersParams::setIncludeItemTypes(QStringList newIncludeItemTypes) { + m_includeItemTypes = newIncludeItemTypes; +} + +bool GetQueryFiltersParams::includeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_includeItemTypes.size() == 0; +} + +void GetQueryFiltersParams::setIncludeItemTypesNull() { + m_includeItemTypes.clear(); +} + + +const bool &GetQueryFiltersParams::isAiring() const { + return m_isAiring.value(); +} + +void GetQueryFiltersParams::setIsAiring(bool newIsAiring) { + m_isAiring = newIsAiring; +} + +bool GetQueryFiltersParams::isAiringNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isAiring.has_value(); +} + +void GetQueryFiltersParams::setIsAiringNull() { + m_isAiring = std::nullopt; +} + + +const bool &GetQueryFiltersParams::isKids() const { + return m_isKids.value(); +} + +void GetQueryFiltersParams::setIsKids(bool newIsKids) { + m_isKids = newIsKids; +} + +bool GetQueryFiltersParams::isKidsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isKids.has_value(); +} + +void GetQueryFiltersParams::setIsKidsNull() { + m_isKids = std::nullopt; +} + + +const bool &GetQueryFiltersParams::isMovie() const { + return m_isMovie.value(); +} + +void GetQueryFiltersParams::setIsMovie(bool newIsMovie) { + m_isMovie = newIsMovie; +} + +bool GetQueryFiltersParams::isMovieNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isMovie.has_value(); +} + +void GetQueryFiltersParams::setIsMovieNull() { + m_isMovie = std::nullopt; +} + + +const bool &GetQueryFiltersParams::isNews() const { + return m_isNews.value(); +} + +void GetQueryFiltersParams::setIsNews(bool newIsNews) { + m_isNews = newIsNews; +} + +bool GetQueryFiltersParams::isNewsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isNews.has_value(); +} + +void GetQueryFiltersParams::setIsNewsNull() { + m_isNews = std::nullopt; +} + + +const bool &GetQueryFiltersParams::isSeries() const { + return m_isSeries.value(); +} + +void GetQueryFiltersParams::setIsSeries(bool newIsSeries) { + m_isSeries = newIsSeries; +} + +bool GetQueryFiltersParams::isSeriesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isSeries.has_value(); +} + +void GetQueryFiltersParams::setIsSeriesNull() { + m_isSeries = std::nullopt; +} + + +const bool &GetQueryFiltersParams::isSports() const { + return m_isSports.value(); +} + +void GetQueryFiltersParams::setIsSports(bool newIsSports) { + m_isSports = newIsSports; +} + +bool GetQueryFiltersParams::isSportsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isSports.has_value(); +} + +void GetQueryFiltersParams::setIsSportsNull() { + m_isSports = std::nullopt; +} + + +const QString &GetQueryFiltersParams::parentId() const { + return m_parentId; +} + +void GetQueryFiltersParams::setParentId(QString newParentId) { + m_parentId = newParentId; +} + +bool GetQueryFiltersParams::parentIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_parentId.isNull(); +} + +void GetQueryFiltersParams::setParentIdNull() { + m_parentId.clear(); +} + + +const bool &GetQueryFiltersParams::recursive() const { + return m_recursive.value(); +} + +void GetQueryFiltersParams::setRecursive(bool newRecursive) { + m_recursive = newRecursive; +} + +bool GetQueryFiltersParams::recursiveNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_recursive.has_value(); +} + +void GetQueryFiltersParams::setRecursiveNull() { + m_recursive = std::nullopt; +} + + +const QString &GetQueryFiltersParams::userId() const { + return m_userId; +} + +void GetQueryFiltersParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetQueryFiltersParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetQueryFiltersParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/daypattern.h b/core/src/loader/getratingimageparams.cpp similarity index 75% rename from core/include/JellyfinQt/DTO/daypattern.h rename to core/src/loader/getratingimageparams.cpp index 1804a92..57521c8 100644 --- a/core/include/JellyfinQt/DTO/daypattern.h +++ b/core/src/loader/getratingimageparams.cpp @@ -27,35 +27,33 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_DAYPATTERN_H -#define JELLYFIN_DTO_DAYPATTERN_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/getratingimageparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { -class DayPatternClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Daily, - Weekdays, - Weekends, - }; - Q_ENUM(Value) -private: - explicit DayPatternClass(); -}; +using namespace Jellyfin::DTO; -typedef DayPatternClass::Value DayPattern; +// GetRatingImageParams +const QString &GetRatingImageParams::name() const { + return m_name; +} + +void GetRatingImageParams::setName(QString newName) { + m_name = newName; +} + + +const QString &GetRatingImageParams::theme() const { + return m_theme; +} + +void GetRatingImageParams::setTheme(QString newTheme) { + m_theme = newTheme; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_DAYPATTERN_H diff --git a/core/src/loader/getratingimagesparams.cpp b/core/src/loader/getratingimagesparams.cpp new file mode 100644 index 0000000..4fb7cc6 --- /dev/null +++ b/core/src/loader/getratingimagesparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getratingimagesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetRatingImagesParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getrecommendedprogramsparams.cpp b/core/src/loader/getrecommendedprogramsparams.cpp new file mode 100644 index 0000000..8463fa2 --- /dev/null +++ b/core/src/loader/getrecommendedprogramsparams.cpp @@ -0,0 +1,377 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getrecommendedprogramsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetRecommendedProgramsParams + +const QList &GetRecommendedProgramsParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetRecommendedProgramsParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetRecommendedProgramsParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetRecommendedProgramsParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetRecommendedProgramsParams::enableImages() const { + return m_enableImages.value(); +} + +void GetRecommendedProgramsParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetRecommendedProgramsParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetRecommendedProgramsParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetRecommendedProgramsParams::enableTotalRecordCount() const { + return m_enableTotalRecordCount.value(); +} + +void GetRecommendedProgramsParams::setEnableTotalRecordCount(bool newEnableTotalRecordCount) { + m_enableTotalRecordCount = newEnableTotalRecordCount; +} + +bool GetRecommendedProgramsParams::enableTotalRecordCountNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableTotalRecordCount.has_value(); +} + +void GetRecommendedProgramsParams::setEnableTotalRecordCountNull() { + m_enableTotalRecordCount = std::nullopt; +} + + +const bool &GetRecommendedProgramsParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetRecommendedProgramsParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetRecommendedProgramsParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetRecommendedProgramsParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QList &GetRecommendedProgramsParams::fields() const { + return m_fields; +} + +void GetRecommendedProgramsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetRecommendedProgramsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetRecommendedProgramsParams::setFieldsNull() { + m_fields.clear(); +} + + +const QStringList &GetRecommendedProgramsParams::genreIds() const { + return m_genreIds; +} + +void GetRecommendedProgramsParams::setGenreIds(QStringList newGenreIds) { + m_genreIds = newGenreIds; +} + +bool GetRecommendedProgramsParams::genreIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_genreIds.size() == 0; +} + +void GetRecommendedProgramsParams::setGenreIdsNull() { + m_genreIds.clear(); +} + + +const bool &GetRecommendedProgramsParams::hasAired() const { + return m_hasAired.value(); +} + +void GetRecommendedProgramsParams::setHasAired(bool newHasAired) { + m_hasAired = newHasAired; +} + +bool GetRecommendedProgramsParams::hasAiredNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasAired.has_value(); +} + +void GetRecommendedProgramsParams::setHasAiredNull() { + m_hasAired = std::nullopt; +} + + +const qint32 &GetRecommendedProgramsParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetRecommendedProgramsParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetRecommendedProgramsParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetRecommendedProgramsParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const bool &GetRecommendedProgramsParams::isAiring() const { + return m_isAiring.value(); +} + +void GetRecommendedProgramsParams::setIsAiring(bool newIsAiring) { + m_isAiring = newIsAiring; +} + +bool GetRecommendedProgramsParams::isAiringNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isAiring.has_value(); +} + +void GetRecommendedProgramsParams::setIsAiringNull() { + m_isAiring = std::nullopt; +} + + +const bool &GetRecommendedProgramsParams::isKids() const { + return m_isKids.value(); +} + +void GetRecommendedProgramsParams::setIsKids(bool newIsKids) { + m_isKids = newIsKids; +} + +bool GetRecommendedProgramsParams::isKidsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isKids.has_value(); +} + +void GetRecommendedProgramsParams::setIsKidsNull() { + m_isKids = std::nullopt; +} + + +const bool &GetRecommendedProgramsParams::isMovie() const { + return m_isMovie.value(); +} + +void GetRecommendedProgramsParams::setIsMovie(bool newIsMovie) { + m_isMovie = newIsMovie; +} + +bool GetRecommendedProgramsParams::isMovieNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isMovie.has_value(); +} + +void GetRecommendedProgramsParams::setIsMovieNull() { + m_isMovie = std::nullopt; +} + + +const bool &GetRecommendedProgramsParams::isNews() const { + return m_isNews.value(); +} + +void GetRecommendedProgramsParams::setIsNews(bool newIsNews) { + m_isNews = newIsNews; +} + +bool GetRecommendedProgramsParams::isNewsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isNews.has_value(); +} + +void GetRecommendedProgramsParams::setIsNewsNull() { + m_isNews = std::nullopt; +} + + +const bool &GetRecommendedProgramsParams::isSeries() const { + return m_isSeries.value(); +} + +void GetRecommendedProgramsParams::setIsSeries(bool newIsSeries) { + m_isSeries = newIsSeries; +} + +bool GetRecommendedProgramsParams::isSeriesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isSeries.has_value(); +} + +void GetRecommendedProgramsParams::setIsSeriesNull() { + m_isSeries = std::nullopt; +} + + +const bool &GetRecommendedProgramsParams::isSports() const { + return m_isSports.value(); +} + +void GetRecommendedProgramsParams::setIsSports(bool newIsSports) { + m_isSports = newIsSports; +} + +bool GetRecommendedProgramsParams::isSportsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isSports.has_value(); +} + +void GetRecommendedProgramsParams::setIsSportsNull() { + m_isSports = std::nullopt; +} + + +const qint32 &GetRecommendedProgramsParams::limit() const { + return m_limit.value(); +} + +void GetRecommendedProgramsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetRecommendedProgramsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetRecommendedProgramsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetRecommendedProgramsParams::userId() const { + return m_userId; +} + +void GetRecommendedProgramsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetRecommendedProgramsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetRecommendedProgramsParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getrecordingfoldersparams.cpp b/core/src/loader/getrecordingfoldersparams.cpp new file mode 100644 index 0000000..14d1a24 --- /dev/null +++ b/core/src/loader/getrecordingfoldersparams.cpp @@ -0,0 +1,62 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getrecordingfoldersparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetRecordingFoldersParams + +const QString &GetRecordingFoldersParams::userId() const { + return m_userId; +} + +void GetRecordingFoldersParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetRecordingFoldersParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetRecordingFoldersParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getrecordinggroupparams.cpp b/core/src/loader/getrecordinggroupparams.cpp new file mode 100644 index 0000000..b9892f9 --- /dev/null +++ b/core/src/loader/getrecordinggroupparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getrecordinggroupparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetRecordingGroupParams + +const QString &GetRecordingGroupParams::groupId() const { + return m_groupId; +} + +void GetRecordingGroupParams::setGroupId(QString newGroupId) { + m_groupId = newGroupId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/configurationpagetype.h b/core/src/loader/getrecordinggroupsparams.cpp similarity index 72% rename from core/include/JellyfinQt/DTO/configurationpagetype.h rename to core/src/loader/getrecordinggroupsparams.cpp index d5d3257..adb6470 100644 --- a/core/include/JellyfinQt/DTO/configurationpagetype.h +++ b/core/src/loader/getrecordinggroupsparams.cpp @@ -27,34 +27,36 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_CONFIGURATIONPAGETYPE_H -#define JELLYFIN_DTO_CONFIGURATIONPAGETYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/getrecordinggroupsparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { -class ConfigurationPageTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - PluginConfiguration, - None, - }; - Q_ENUM(Value) -private: - explicit ConfigurationPageTypeClass(); -}; +using namespace Jellyfin::DTO; -typedef ConfigurationPageTypeClass::Value ConfigurationPageType; +// GetRecordingGroupsParams +const QString &GetRecordingGroupsParams::userId() const { + return m_userId; +} + +void GetRecordingGroupsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetRecordingGroupsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetRecordingGroupsParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_CONFIGURATIONPAGETYPE_H diff --git a/core/src/loader/getrecordingparams.cpp b/core/src/loader/getrecordingparams.cpp new file mode 100644 index 0000000..80f19df --- /dev/null +++ b/core/src/loader/getrecordingparams.cpp @@ -0,0 +1,71 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getrecordingparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetRecordingParams + +const QString &GetRecordingParams::recordingId() const { + return m_recordingId; +} + +void GetRecordingParams::setRecordingId(QString newRecordingId) { + m_recordingId = newRecordingId; +} + + +const QString &GetRecordingParams::userId() const { + return m_userId; +} + +void GetRecordingParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetRecordingParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetRecordingParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getrecordingsparams.cpp b/core/src/loader/getrecordingsparams.cpp new file mode 100644 index 0000000..2413ead --- /dev/null +++ b/core/src/loader/getrecordingsparams.cpp @@ -0,0 +1,440 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getrecordingsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetRecordingsParams + +const QString &GetRecordingsParams::channelId() const { + return m_channelId; +} + +void GetRecordingsParams::setChannelId(QString newChannelId) { + m_channelId = newChannelId; +} + +bool GetRecordingsParams::channelIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_channelId.isNull(); +} + +void GetRecordingsParams::setChannelIdNull() { + m_channelId.clear(); +} + + +const QList &GetRecordingsParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetRecordingsParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetRecordingsParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetRecordingsParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetRecordingsParams::enableImages() const { + return m_enableImages.value(); +} + +void GetRecordingsParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetRecordingsParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetRecordingsParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetRecordingsParams::enableTotalRecordCount() const { + return m_enableTotalRecordCount.value(); +} + +void GetRecordingsParams::setEnableTotalRecordCount(bool newEnableTotalRecordCount) { + m_enableTotalRecordCount = newEnableTotalRecordCount; +} + +bool GetRecordingsParams::enableTotalRecordCountNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableTotalRecordCount.has_value(); +} + +void GetRecordingsParams::setEnableTotalRecordCountNull() { + m_enableTotalRecordCount = std::nullopt; +} + + +const bool &GetRecordingsParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetRecordingsParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetRecordingsParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetRecordingsParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QList &GetRecordingsParams::fields() const { + return m_fields; +} + +void GetRecordingsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetRecordingsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetRecordingsParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetRecordingsParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetRecordingsParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetRecordingsParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetRecordingsParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const bool &GetRecordingsParams::isInProgress() const { + return m_isInProgress.value(); +} + +void GetRecordingsParams::setIsInProgress(bool newIsInProgress) { + m_isInProgress = newIsInProgress; +} + +bool GetRecordingsParams::isInProgressNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isInProgress.has_value(); +} + +void GetRecordingsParams::setIsInProgressNull() { + m_isInProgress = std::nullopt; +} + + +const bool &GetRecordingsParams::isKids() const { + return m_isKids.value(); +} + +void GetRecordingsParams::setIsKids(bool newIsKids) { + m_isKids = newIsKids; +} + +bool GetRecordingsParams::isKidsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isKids.has_value(); +} + +void GetRecordingsParams::setIsKidsNull() { + m_isKids = std::nullopt; +} + + +const bool &GetRecordingsParams::isLibraryItem() const { + return m_isLibraryItem.value(); +} + +void GetRecordingsParams::setIsLibraryItem(bool newIsLibraryItem) { + m_isLibraryItem = newIsLibraryItem; +} + +bool GetRecordingsParams::isLibraryItemNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isLibraryItem.has_value(); +} + +void GetRecordingsParams::setIsLibraryItemNull() { + m_isLibraryItem = std::nullopt; +} + + +const bool &GetRecordingsParams::isMovie() const { + return m_isMovie.value(); +} + +void GetRecordingsParams::setIsMovie(bool newIsMovie) { + m_isMovie = newIsMovie; +} + +bool GetRecordingsParams::isMovieNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isMovie.has_value(); +} + +void GetRecordingsParams::setIsMovieNull() { + m_isMovie = std::nullopt; +} + + +const bool &GetRecordingsParams::isNews() const { + return m_isNews.value(); +} + +void GetRecordingsParams::setIsNews(bool newIsNews) { + m_isNews = newIsNews; +} + +bool GetRecordingsParams::isNewsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isNews.has_value(); +} + +void GetRecordingsParams::setIsNewsNull() { + m_isNews = std::nullopt; +} + + +const bool &GetRecordingsParams::isSeries() const { + return m_isSeries.value(); +} + +void GetRecordingsParams::setIsSeries(bool newIsSeries) { + m_isSeries = newIsSeries; +} + +bool GetRecordingsParams::isSeriesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isSeries.has_value(); +} + +void GetRecordingsParams::setIsSeriesNull() { + m_isSeries = std::nullopt; +} + + +const bool &GetRecordingsParams::isSports() const { + return m_isSports.value(); +} + +void GetRecordingsParams::setIsSports(bool newIsSports) { + m_isSports = newIsSports; +} + +bool GetRecordingsParams::isSportsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isSports.has_value(); +} + +void GetRecordingsParams::setIsSportsNull() { + m_isSports = std::nullopt; +} + + +const qint32 &GetRecordingsParams::limit() const { + return m_limit.value(); +} + +void GetRecordingsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetRecordingsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetRecordingsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetRecordingsParams::seriesTimerId() const { + return m_seriesTimerId; +} + +void GetRecordingsParams::setSeriesTimerId(QString newSeriesTimerId) { + m_seriesTimerId = newSeriesTimerId; +} + +bool GetRecordingsParams::seriesTimerIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_seriesTimerId.isNull(); +} + +void GetRecordingsParams::setSeriesTimerIdNull() { + m_seriesTimerId.clear(); +} + + +const qint32 &GetRecordingsParams::startIndex() const { + return m_startIndex.value(); +} + +void GetRecordingsParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetRecordingsParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetRecordingsParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const RecordingStatus &GetRecordingsParams::status() const { + return m_status; +} + +void GetRecordingsParams::setStatus(RecordingStatus newStatus) { + m_status = newStatus; +} + +bool GetRecordingsParams::statusNull() const { + // Nullable: true + // Type Nullable: true + + + return m_status== RecordingStatus::EnumNotSet; +} + +void GetRecordingsParams::setStatusNull() { + m_status= RecordingStatus::EnumNotSet; +} + + +const QString &GetRecordingsParams::userId() const { + return m_userId; +} + +void GetRecordingsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetRecordingsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetRecordingsParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getrecordingsseriesparams.cpp b/core/src/loader/getrecordingsseriesparams.cpp new file mode 100644 index 0000000..e8f0e70 --- /dev/null +++ b/core/src/loader/getrecordingsseriesparams.cpp @@ -0,0 +1,335 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getrecordingsseriesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetRecordingsSeriesParams + +const QString &GetRecordingsSeriesParams::channelId() const { + return m_channelId; +} + +void GetRecordingsSeriesParams::setChannelId(QString newChannelId) { + m_channelId = newChannelId; +} + +bool GetRecordingsSeriesParams::channelIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_channelId.isNull(); +} + +void GetRecordingsSeriesParams::setChannelIdNull() { + m_channelId.clear(); +} + + +const QList &GetRecordingsSeriesParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetRecordingsSeriesParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetRecordingsSeriesParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetRecordingsSeriesParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetRecordingsSeriesParams::enableImages() const { + return m_enableImages.value(); +} + +void GetRecordingsSeriesParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetRecordingsSeriesParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetRecordingsSeriesParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetRecordingsSeriesParams::enableTotalRecordCount() const { + return m_enableTotalRecordCount.value(); +} + +void GetRecordingsSeriesParams::setEnableTotalRecordCount(bool newEnableTotalRecordCount) { + m_enableTotalRecordCount = newEnableTotalRecordCount; +} + +bool GetRecordingsSeriesParams::enableTotalRecordCountNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableTotalRecordCount.has_value(); +} + +void GetRecordingsSeriesParams::setEnableTotalRecordCountNull() { + m_enableTotalRecordCount = std::nullopt; +} + + +const bool &GetRecordingsSeriesParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetRecordingsSeriesParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetRecordingsSeriesParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetRecordingsSeriesParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QList &GetRecordingsSeriesParams::fields() const { + return m_fields; +} + +void GetRecordingsSeriesParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetRecordingsSeriesParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetRecordingsSeriesParams::setFieldsNull() { + m_fields.clear(); +} + + +const QString &GetRecordingsSeriesParams::groupId() const { + return m_groupId; +} + +void GetRecordingsSeriesParams::setGroupId(QString newGroupId) { + m_groupId = newGroupId; +} + +bool GetRecordingsSeriesParams::groupIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_groupId.isNull(); +} + +void GetRecordingsSeriesParams::setGroupIdNull() { + m_groupId.clear(); +} + + +const qint32 &GetRecordingsSeriesParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetRecordingsSeriesParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetRecordingsSeriesParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetRecordingsSeriesParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const bool &GetRecordingsSeriesParams::isInProgress() const { + return m_isInProgress.value(); +} + +void GetRecordingsSeriesParams::setIsInProgress(bool newIsInProgress) { + m_isInProgress = newIsInProgress; +} + +bool GetRecordingsSeriesParams::isInProgressNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isInProgress.has_value(); +} + +void GetRecordingsSeriesParams::setIsInProgressNull() { + m_isInProgress = std::nullopt; +} + + +const qint32 &GetRecordingsSeriesParams::limit() const { + return m_limit.value(); +} + +void GetRecordingsSeriesParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetRecordingsSeriesParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetRecordingsSeriesParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetRecordingsSeriesParams::seriesTimerId() const { + return m_seriesTimerId; +} + +void GetRecordingsSeriesParams::setSeriesTimerId(QString newSeriesTimerId) { + m_seriesTimerId = newSeriesTimerId; +} + +bool GetRecordingsSeriesParams::seriesTimerIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_seriesTimerId.isNull(); +} + +void GetRecordingsSeriesParams::setSeriesTimerIdNull() { + m_seriesTimerId.clear(); +} + + +const qint32 &GetRecordingsSeriesParams::startIndex() const { + return m_startIndex.value(); +} + +void GetRecordingsSeriesParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetRecordingsSeriesParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetRecordingsSeriesParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const RecordingStatus &GetRecordingsSeriesParams::status() const { + return m_status; +} + +void GetRecordingsSeriesParams::setStatus(RecordingStatus newStatus) { + m_status = newStatus; +} + +bool GetRecordingsSeriesParams::statusNull() const { + // Nullable: true + // Type Nullable: true + + + return m_status== RecordingStatus::EnumNotSet; +} + +void GetRecordingsSeriesParams::setStatusNull() { + m_status= RecordingStatus::EnumNotSet; +} + + +const QString &GetRecordingsSeriesParams::userId() const { + return m_userId; +} + +void GetRecordingsSeriesParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetRecordingsSeriesParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetRecordingsSeriesParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getremoteimageparams.cpp b/core/src/loader/getremoteimageparams.cpp new file mode 100644 index 0000000..89f8157 --- /dev/null +++ b/core/src/loader/getremoteimageparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getremoteimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetRemoteImageParams + +const QString &GetRemoteImageParams::imageUrl() const { + return m_imageUrl; +} + +void GetRemoteImageParams::setImageUrl(QString newImageUrl) { + m_imageUrl = newImageUrl; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getremoteimageprovidersparams.cpp b/core/src/loader/getremoteimageprovidersparams.cpp new file mode 100644 index 0000000..b7c9f41 --- /dev/null +++ b/core/src/loader/getremoteimageprovidersparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getremoteimageprovidersparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetRemoteImageProvidersParams + +const QString &GetRemoteImageProvidersParams::itemId() const { + return m_itemId; +} + +void GetRemoteImageProvidersParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getremoteimagesparams.cpp b/core/src/loader/getremoteimagesparams.cpp new file mode 100644 index 0000000..99adfd5 --- /dev/null +++ b/core/src/loader/getremoteimagesparams.cpp @@ -0,0 +1,155 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getremoteimagesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetRemoteImagesParams + +const QString &GetRemoteImagesParams::itemId() const { + return m_itemId; +} + +void GetRemoteImagesParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const bool &GetRemoteImagesParams::includeAllLanguages() const { + return m_includeAllLanguages.value(); +} + +void GetRemoteImagesParams::setIncludeAllLanguages(bool newIncludeAllLanguages) { + m_includeAllLanguages = newIncludeAllLanguages; +} + +bool GetRemoteImagesParams::includeAllLanguagesNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_includeAllLanguages.has_value(); +} + +void GetRemoteImagesParams::setIncludeAllLanguagesNull() { + m_includeAllLanguages = std::nullopt; +} + + +const qint32 &GetRemoteImagesParams::limit() const { + return m_limit.value(); +} + +void GetRemoteImagesParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetRemoteImagesParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetRemoteImagesParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetRemoteImagesParams::providerName() const { + return m_providerName; +} + +void GetRemoteImagesParams::setProviderName(QString newProviderName) { + m_providerName = newProviderName; +} + +bool GetRemoteImagesParams::providerNameNull() const { + // Nullable: true + // Type Nullable: true + + + return m_providerName.isNull(); +} + +void GetRemoteImagesParams::setProviderNameNull() { + m_providerName.clear(); +} + + +const qint32 &GetRemoteImagesParams::startIndex() const { + return m_startIndex.value(); +} + +void GetRemoteImagesParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetRemoteImagesParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetRemoteImagesParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const ImageType &GetRemoteImagesParams::type() const { + return m_type; +} + +void GetRemoteImagesParams::setType(ImageType newType) { + m_type = newType; +} + +bool GetRemoteImagesParams::typeNull() const { + // Nullable: true + // Type Nullable: true + + + return m_type== ImageType::EnumNotSet; +} + +void GetRemoteImagesParams::setTypeNull() { + m_type= ImageType::EnumNotSet; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/pluginstatus.h b/core/src/loader/getremotesearchimageparams.cpp similarity index 72% rename from core/include/JellyfinQt/DTO/pluginstatus.h rename to core/src/loader/getremotesearchimageparams.cpp index ec80939..0eefe40 100644 --- a/core/include/JellyfinQt/DTO/pluginstatus.h +++ b/core/src/loader/getremotesearchimageparams.cpp @@ -27,39 +27,33 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_PLUGINSTATUS_H -#define JELLYFIN_DTO_PLUGINSTATUS_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/getremotesearchimageparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { -class PluginStatusClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Active, - Restart, - Deleted, - Superceded, - Malfunctioned, - NotSupported, - Disabled, - }; - Q_ENUM(Value) -private: - explicit PluginStatusClass(); -}; +using namespace Jellyfin::DTO; -typedef PluginStatusClass::Value PluginStatus; +// GetRemoteSearchImageParams +const QString &GetRemoteSearchImageParams::imageUrl() const { + return m_imageUrl; +} + +void GetRemoteSearchImageParams::setImageUrl(QString newImageUrl) { + m_imageUrl = newImageUrl; +} + + +const QString &GetRemoteSearchImageParams::providerName() const { + return m_providerName; +} + +void GetRemoteSearchImageParams::setProviderName(QString newProviderName) { + m_providerName = newProviderName; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PLUGINSTATUS_H diff --git a/core/src/loader/getremotesubtitlesparams.cpp b/core/src/loader/getremotesubtitlesparams.cpp new file mode 100644 index 0000000..a152cd5 --- /dev/null +++ b/core/src/loader/getremotesubtitlesparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getremotesubtitlesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetRemoteSubtitlesParams + +const QString &GetRemoteSubtitlesParams::jellyfinId() const { + return m_jellyfinId; +} + +void GetRemoteSubtitlesParams::setJellyfinId(QString newJellyfinId) { + m_jellyfinId = newJellyfinId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getrepositoriesparams.cpp b/core/src/loader/getrepositoriesparams.cpp new file mode 100644 index 0000000..325e33f --- /dev/null +++ b/core/src/loader/getrepositoriesparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getrepositoriesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetRepositoriesParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getresumeitemsparams.cpp b/core/src/loader/getresumeitemsparams.cpp new file mode 100644 index 0000000..95c39cc --- /dev/null +++ b/core/src/loader/getresumeitemsparams.cpp @@ -0,0 +1,323 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getresumeitemsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetResumeItemsParams + +const QString &GetResumeItemsParams::userId() const { + return m_userId; +} + +void GetResumeItemsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + +const QList &GetResumeItemsParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetResumeItemsParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetResumeItemsParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetResumeItemsParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetResumeItemsParams::enableImages() const { + return m_enableImages.value(); +} + +void GetResumeItemsParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetResumeItemsParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetResumeItemsParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetResumeItemsParams::enableTotalRecordCount() const { + return m_enableTotalRecordCount.value(); +} + +void GetResumeItemsParams::setEnableTotalRecordCount(bool newEnableTotalRecordCount) { + m_enableTotalRecordCount = newEnableTotalRecordCount; +} + +bool GetResumeItemsParams::enableTotalRecordCountNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableTotalRecordCount.has_value(); +} + +void GetResumeItemsParams::setEnableTotalRecordCountNull() { + m_enableTotalRecordCount = std::nullopt; +} + + +const bool &GetResumeItemsParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetResumeItemsParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetResumeItemsParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetResumeItemsParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QStringList &GetResumeItemsParams::excludeItemTypes() const { + return m_excludeItemTypes; +} + +void GetResumeItemsParams::setExcludeItemTypes(QStringList newExcludeItemTypes) { + m_excludeItemTypes = newExcludeItemTypes; +} + +bool GetResumeItemsParams::excludeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeItemTypes.size() == 0; +} + +void GetResumeItemsParams::setExcludeItemTypesNull() { + m_excludeItemTypes.clear(); +} + + +const QList &GetResumeItemsParams::fields() const { + return m_fields; +} + +void GetResumeItemsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetResumeItemsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetResumeItemsParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetResumeItemsParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetResumeItemsParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetResumeItemsParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetResumeItemsParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const QStringList &GetResumeItemsParams::includeItemTypes() const { + return m_includeItemTypes; +} + +void GetResumeItemsParams::setIncludeItemTypes(QStringList newIncludeItemTypes) { + m_includeItemTypes = newIncludeItemTypes; +} + +bool GetResumeItemsParams::includeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_includeItemTypes.size() == 0; +} + +void GetResumeItemsParams::setIncludeItemTypesNull() { + m_includeItemTypes.clear(); +} + + +const qint32 &GetResumeItemsParams::limit() const { + return m_limit.value(); +} + +void GetResumeItemsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetResumeItemsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetResumeItemsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QStringList &GetResumeItemsParams::mediaTypes() const { + return m_mediaTypes; +} + +void GetResumeItemsParams::setMediaTypes(QStringList newMediaTypes) { + m_mediaTypes = newMediaTypes; +} + +bool GetResumeItemsParams::mediaTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaTypes.size() == 0; +} + +void GetResumeItemsParams::setMediaTypesNull() { + m_mediaTypes.clear(); +} + + +const QString &GetResumeItemsParams::parentId() const { + return m_parentId; +} + +void GetResumeItemsParams::setParentId(QString newParentId) { + m_parentId = newParentId; +} + +bool GetResumeItemsParams::parentIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_parentId.isNull(); +} + +void GetResumeItemsParams::setParentIdNull() { + m_parentId.clear(); +} + + +const QString &GetResumeItemsParams::searchTerm() const { + return m_searchTerm; +} + +void GetResumeItemsParams::setSearchTerm(QString newSearchTerm) { + m_searchTerm = newSearchTerm; +} + +bool GetResumeItemsParams::searchTermNull() const { + // Nullable: true + // Type Nullable: true + + + return m_searchTerm.isNull(); +} + +void GetResumeItemsParams::setSearchTermNull() { + m_searchTerm.clear(); +} + + +const qint32 &GetResumeItemsParams::startIndex() const { + return m_startIndex.value(); +} + +void GetResumeItemsParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetResumeItemsParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetResumeItemsParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getrootfolderparams.cpp b/core/src/loader/getrootfolderparams.cpp new file mode 100644 index 0000000..fcf1113 --- /dev/null +++ b/core/src/loader/getrootfolderparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getrootfolderparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetRootFolderParams + +const QString &GetRootFolderParams::userId() const { + return m_userId; +} + +void GetRootFolderParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getschedulesdirectcountriesparams.cpp b/core/src/loader/getschedulesdirectcountriesparams.cpp new file mode 100644 index 0000000..64cd478 --- /dev/null +++ b/core/src/loader/getschedulesdirectcountriesparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getschedulesdirectcountriesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetSchedulesDirectCountriesParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getseasonsparams.cpp b/core/src/loader/getseasonsparams.cpp new file mode 100644 index 0000000..5fc34f3 --- /dev/null +++ b/core/src/loader/getseasonsparams.cpp @@ -0,0 +1,239 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getseasonsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetSeasonsParams + +const QString &GetSeasonsParams::seriesId() const { + return m_seriesId; +} + +void GetSeasonsParams::setSeriesId(QString newSeriesId) { + m_seriesId = newSeriesId; +} + + +const QString &GetSeasonsParams::adjacentTo() const { + return m_adjacentTo; +} + +void GetSeasonsParams::setAdjacentTo(QString newAdjacentTo) { + m_adjacentTo = newAdjacentTo; +} + +bool GetSeasonsParams::adjacentToNull() const { + // Nullable: true + // Type Nullable: true + + + return m_adjacentTo.isNull(); +} + +void GetSeasonsParams::setAdjacentToNull() { + m_adjacentTo.clear(); +} + + +const QList &GetSeasonsParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetSeasonsParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetSeasonsParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetSeasonsParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetSeasonsParams::enableImages() const { + return m_enableImages.value(); +} + +void GetSeasonsParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetSeasonsParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetSeasonsParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetSeasonsParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetSeasonsParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetSeasonsParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetSeasonsParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QList &GetSeasonsParams::fields() const { + return m_fields; +} + +void GetSeasonsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetSeasonsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetSeasonsParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetSeasonsParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetSeasonsParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetSeasonsParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetSeasonsParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const bool &GetSeasonsParams::isMissing() const { + return m_isMissing.value(); +} + +void GetSeasonsParams::setIsMissing(bool newIsMissing) { + m_isMissing = newIsMissing; +} + +bool GetSeasonsParams::isMissingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isMissing.has_value(); +} + +void GetSeasonsParams::setIsMissingNull() { + m_isMissing = std::nullopt; +} + + +const bool &GetSeasonsParams::isSpecialSeason() const { + return m_isSpecialSeason.value(); +} + +void GetSeasonsParams::setIsSpecialSeason(bool newIsSpecialSeason) { + m_isSpecialSeason = newIsSpecialSeason; +} + +bool GetSeasonsParams::isSpecialSeasonNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isSpecialSeason.has_value(); +} + +void GetSeasonsParams::setIsSpecialSeasonNull() { + m_isSpecialSeason = std::nullopt; +} + + +const QString &GetSeasonsParams::userId() const { + return m_userId; +} + +void GetSeasonsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetSeasonsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetSeasonsParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getseriesremotesearchresultsparams.cpp b/core/src/loader/getseriesremotesearchresultsparams.cpp new file mode 100644 index 0000000..2ae8131 --- /dev/null +++ b/core/src/loader/getseriesremotesearchresultsparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getseriesremotesearchresultsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetSeriesRemoteSearchResultsParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getseriestimerparams.cpp b/core/src/loader/getseriestimerparams.cpp new file mode 100644 index 0000000..179ffa1 --- /dev/null +++ b/core/src/loader/getseriestimerparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getseriestimerparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetSeriesTimerParams + +const QString &GetSeriesTimerParams::timerId() const { + return m_timerId; +} + +void GetSeriesTimerParams::setTimerId(QString newTimerId) { + m_timerId = newTimerId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/problemdetails.h b/core/src/loader/getseriestimersparams.cpp similarity index 60% rename from core/include/JellyfinQt/DTO/problemdetails.h rename to core/src/loader/getseriestimersparams.cpp index 10505f2..60e1e30 100644 --- a/core/include/JellyfinQt/DTO/problemdetails.h +++ b/core/src/loader/getseriestimersparams.cpp @@ -27,58 +27,57 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_PROBLEMDETAILS_H -#define JELLYFIN_DTO_PROBLEMDETAILS_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/getseriestimersparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { +using namespace Jellyfin::DTO; -class ProblemDetails { -public:ProblemDetails();ProblemDetails(const ProblemDetails &other); +// GetSeriesTimersParams + +const QString &GetSeriesTimersParams::sortBy() const { + return m_sortBy; +} + +void GetSeriesTimersParams::setSortBy(QString newSortBy) { + m_sortBy = newSortBy; +} + +bool GetSeriesTimersParams::sortByNull() const { + // Nullable: true + // Type Nullable: true - static ProblemDetails fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); + + return m_sortBy.isNull(); +} + +void GetSeriesTimersParams::setSortByNull() { + m_sortBy.clear(); +} + + +const SortOrder &GetSeriesTimersParams::sortOrder() const { + return m_sortOrder; +} + +void GetSeriesTimersParams::setSortOrder(SortOrder newSortOrder) { + m_sortOrder = newSortOrder; +} + +bool GetSeriesTimersParams::sortOrderNull() const { + // Nullable: true + // Type Nullable: true - // Properties - QString type() const; + return m_sortOrder== SortOrder::EnumNotSet; +} - void setType(QString newType); +void GetSeriesTimersParams::setSortOrderNull() { + m_sortOrder= SortOrder::EnumNotSet; +} - QString title() const; - void setTitle(QString newTitle); - - qint32 status() const; - - void setStatus(qint32 newStatus); - - QString detail() const; - - void setDetail(QString newDetail); - - QString instance() const; - - void setInstance(QString newInstance); - -protected: - QString m_type; - QString m_title; - qint32 m_status; - QString m_detail; - QString m_instance; -}; +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PROBLEMDETAILS_H diff --git a/core/src/loader/getserverlogsparams.cpp b/core/src/loader/getserverlogsparams.cpp new file mode 100644 index 0000000..6380883 --- /dev/null +++ b/core/src/loader/getserverlogsparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getserverlogsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetServerLogsParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getsessionsparams.cpp b/core/src/loader/getsessionsparams.cpp new file mode 100644 index 0000000..eb4a996 --- /dev/null +++ b/core/src/loader/getsessionsparams.cpp @@ -0,0 +1,104 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getsessionsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetSessionsParams + +const qint32 &GetSessionsParams::activeWithinSeconds() const { + return m_activeWithinSeconds.value(); +} + +void GetSessionsParams::setActiveWithinSeconds(qint32 newActiveWithinSeconds) { + m_activeWithinSeconds = newActiveWithinSeconds; +} + +bool GetSessionsParams::activeWithinSecondsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_activeWithinSeconds.has_value(); +} + +void GetSessionsParams::setActiveWithinSecondsNull() { + m_activeWithinSeconds = std::nullopt; +} + + +const QString &GetSessionsParams::controllableByUserId() const { + return m_controllableByUserId; +} + +void GetSessionsParams::setControllableByUserId(QString newControllableByUserId) { + m_controllableByUserId = newControllableByUserId; +} + +bool GetSessionsParams::controllableByUserIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_controllableByUserId.isNull(); +} + +void GetSessionsParams::setControllableByUserIdNull() { + m_controllableByUserId.clear(); +} + + +const QString &GetSessionsParams::deviceId() const { + return m_deviceId; +} + +void GetSessionsParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool GetSessionsParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void GetSessionsParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getsimilaralbumsparams.cpp b/core/src/loader/getsimilaralbumsparams.cpp new file mode 100644 index 0000000..bfb1cfd --- /dev/null +++ b/core/src/loader/getsimilaralbumsparams.cpp @@ -0,0 +1,134 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getsimilaralbumsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetSimilarAlbumsParams + +const QString &GetSimilarAlbumsParams::itemId() const { + return m_itemId; +} + +void GetSimilarAlbumsParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QStringList &GetSimilarAlbumsParams::excludeArtistIds() const { + return m_excludeArtistIds; +} + +void GetSimilarAlbumsParams::setExcludeArtistIds(QStringList newExcludeArtistIds) { + m_excludeArtistIds = newExcludeArtistIds; +} + +bool GetSimilarAlbumsParams::excludeArtistIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeArtistIds.size() == 0; +} + +void GetSimilarAlbumsParams::setExcludeArtistIdsNull() { + m_excludeArtistIds.clear(); +} + + +const QList &GetSimilarAlbumsParams::fields() const { + return m_fields; +} + +void GetSimilarAlbumsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetSimilarAlbumsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetSimilarAlbumsParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetSimilarAlbumsParams::limit() const { + return m_limit.value(); +} + +void GetSimilarAlbumsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetSimilarAlbumsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetSimilarAlbumsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetSimilarAlbumsParams::userId() const { + return m_userId; +} + +void GetSimilarAlbumsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetSimilarAlbumsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetSimilarAlbumsParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getsimilarartistsparams.cpp b/core/src/loader/getsimilarartistsparams.cpp new file mode 100644 index 0000000..b09f1bb --- /dev/null +++ b/core/src/loader/getsimilarartistsparams.cpp @@ -0,0 +1,134 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getsimilarartistsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetSimilarArtistsParams + +const QString &GetSimilarArtistsParams::itemId() const { + return m_itemId; +} + +void GetSimilarArtistsParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QStringList &GetSimilarArtistsParams::excludeArtistIds() const { + return m_excludeArtistIds; +} + +void GetSimilarArtistsParams::setExcludeArtistIds(QStringList newExcludeArtistIds) { + m_excludeArtistIds = newExcludeArtistIds; +} + +bool GetSimilarArtistsParams::excludeArtistIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeArtistIds.size() == 0; +} + +void GetSimilarArtistsParams::setExcludeArtistIdsNull() { + m_excludeArtistIds.clear(); +} + + +const QList &GetSimilarArtistsParams::fields() const { + return m_fields; +} + +void GetSimilarArtistsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetSimilarArtistsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetSimilarArtistsParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetSimilarArtistsParams::limit() const { + return m_limit.value(); +} + +void GetSimilarArtistsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetSimilarArtistsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetSimilarArtistsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetSimilarArtistsParams::userId() const { + return m_userId; +} + +void GetSimilarArtistsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetSimilarArtistsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetSimilarArtistsParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getsimilaritemsparams.cpp b/core/src/loader/getsimilaritemsparams.cpp new file mode 100644 index 0000000..09dd1e9 --- /dev/null +++ b/core/src/loader/getsimilaritemsparams.cpp @@ -0,0 +1,134 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getsimilaritemsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetSimilarItemsParams + +const QString &GetSimilarItemsParams::itemId() const { + return m_itemId; +} + +void GetSimilarItemsParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QStringList &GetSimilarItemsParams::excludeArtistIds() const { + return m_excludeArtistIds; +} + +void GetSimilarItemsParams::setExcludeArtistIds(QStringList newExcludeArtistIds) { + m_excludeArtistIds = newExcludeArtistIds; +} + +bool GetSimilarItemsParams::excludeArtistIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeArtistIds.size() == 0; +} + +void GetSimilarItemsParams::setExcludeArtistIdsNull() { + m_excludeArtistIds.clear(); +} + + +const QList &GetSimilarItemsParams::fields() const { + return m_fields; +} + +void GetSimilarItemsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetSimilarItemsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetSimilarItemsParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetSimilarItemsParams::limit() const { + return m_limit.value(); +} + +void GetSimilarItemsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetSimilarItemsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetSimilarItemsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetSimilarItemsParams::userId() const { + return m_userId; +} + +void GetSimilarItemsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetSimilarItemsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetSimilarItemsParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getsimilarmoviesparams.cpp b/core/src/loader/getsimilarmoviesparams.cpp new file mode 100644 index 0000000..55bd511 --- /dev/null +++ b/core/src/loader/getsimilarmoviesparams.cpp @@ -0,0 +1,134 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getsimilarmoviesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetSimilarMoviesParams + +const QString &GetSimilarMoviesParams::itemId() const { + return m_itemId; +} + +void GetSimilarMoviesParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QStringList &GetSimilarMoviesParams::excludeArtistIds() const { + return m_excludeArtistIds; +} + +void GetSimilarMoviesParams::setExcludeArtistIds(QStringList newExcludeArtistIds) { + m_excludeArtistIds = newExcludeArtistIds; +} + +bool GetSimilarMoviesParams::excludeArtistIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeArtistIds.size() == 0; +} + +void GetSimilarMoviesParams::setExcludeArtistIdsNull() { + m_excludeArtistIds.clear(); +} + + +const QList &GetSimilarMoviesParams::fields() const { + return m_fields; +} + +void GetSimilarMoviesParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetSimilarMoviesParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetSimilarMoviesParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetSimilarMoviesParams::limit() const { + return m_limit.value(); +} + +void GetSimilarMoviesParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetSimilarMoviesParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetSimilarMoviesParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetSimilarMoviesParams::userId() const { + return m_userId; +} + +void GetSimilarMoviesParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetSimilarMoviesParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetSimilarMoviesParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getsimilarshowsparams.cpp b/core/src/loader/getsimilarshowsparams.cpp new file mode 100644 index 0000000..bf67ac6 --- /dev/null +++ b/core/src/loader/getsimilarshowsparams.cpp @@ -0,0 +1,134 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getsimilarshowsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetSimilarShowsParams + +const QString &GetSimilarShowsParams::itemId() const { + return m_itemId; +} + +void GetSimilarShowsParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QStringList &GetSimilarShowsParams::excludeArtistIds() const { + return m_excludeArtistIds; +} + +void GetSimilarShowsParams::setExcludeArtistIds(QStringList newExcludeArtistIds) { + m_excludeArtistIds = newExcludeArtistIds; +} + +bool GetSimilarShowsParams::excludeArtistIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeArtistIds.size() == 0; +} + +void GetSimilarShowsParams::setExcludeArtistIdsNull() { + m_excludeArtistIds.clear(); +} + + +const QList &GetSimilarShowsParams::fields() const { + return m_fields; +} + +void GetSimilarShowsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetSimilarShowsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetSimilarShowsParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetSimilarShowsParams::limit() const { + return m_limit.value(); +} + +void GetSimilarShowsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetSimilarShowsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetSimilarShowsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetSimilarShowsParams::userId() const { + return m_userId; +} + +void GetSimilarShowsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetSimilarShowsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetSimilarShowsParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getsimilartrailersparams.cpp b/core/src/loader/getsimilartrailersparams.cpp new file mode 100644 index 0000000..2a31d5a --- /dev/null +++ b/core/src/loader/getsimilartrailersparams.cpp @@ -0,0 +1,134 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getsimilartrailersparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetSimilarTrailersParams + +const QString &GetSimilarTrailersParams::itemId() const { + return m_itemId; +} + +void GetSimilarTrailersParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QStringList &GetSimilarTrailersParams::excludeArtistIds() const { + return m_excludeArtistIds; +} + +void GetSimilarTrailersParams::setExcludeArtistIds(QStringList newExcludeArtistIds) { + m_excludeArtistIds = newExcludeArtistIds; +} + +bool GetSimilarTrailersParams::excludeArtistIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeArtistIds.size() == 0; +} + +void GetSimilarTrailersParams::setExcludeArtistIdsNull() { + m_excludeArtistIds.clear(); +} + + +const QList &GetSimilarTrailersParams::fields() const { + return m_fields; +} + +void GetSimilarTrailersParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetSimilarTrailersParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetSimilarTrailersParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetSimilarTrailersParams::limit() const { + return m_limit.value(); +} + +void GetSimilarTrailersParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetSimilarTrailersParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetSimilarTrailersParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetSimilarTrailersParams::userId() const { + return m_userId; +} + +void GetSimilarTrailersParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetSimilarTrailersParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetSimilarTrailersParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getspecialfeaturesparams.cpp b/core/src/loader/getspecialfeaturesparams.cpp new file mode 100644 index 0000000..ac04098 --- /dev/null +++ b/core/src/loader/getspecialfeaturesparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getspecialfeaturesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetSpecialFeaturesParams + +const QString &GetSpecialFeaturesParams::itemId() const { + return m_itemId; +} + +void GetSpecialFeaturesParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &GetSpecialFeaturesParams::userId() const { + return m_userId; +} + +void GetSpecialFeaturesParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getstartupconfigurationparams.cpp b/core/src/loader/getstartupconfigurationparams.cpp new file mode 100644 index 0000000..ffd1b93 --- /dev/null +++ b/core/src/loader/getstartupconfigurationparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getstartupconfigurationparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetStartupConfigurationParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getstatusparams.cpp b/core/src/loader/getstatusparams.cpp new file mode 100644 index 0000000..b8528f9 --- /dev/null +++ b/core/src/loader/getstatusparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getstatusparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetStatusParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getstudioimagebyindexparams.cpp b/core/src/loader/getstudioimagebyindexparams.cpp new file mode 100644 index 0000000..5bd7ce5 --- /dev/null +++ b/core/src/loader/getstudioimagebyindexparams.cpp @@ -0,0 +1,362 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getstudioimagebyindexparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetStudioImageByIndexParams + +const qint32 &GetStudioImageByIndexParams::imageIndex() const { + return m_imageIndex; +} + +void GetStudioImageByIndexParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + + +const ImageType &GetStudioImageByIndexParams::imageType() const { + return m_imageType; +} + +void GetStudioImageByIndexParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &GetStudioImageByIndexParams::name() const { + return m_name; +} + +void GetStudioImageByIndexParams::setName(QString newName) { + m_name = newName; +} + + +const bool &GetStudioImageByIndexParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void GetStudioImageByIndexParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool GetStudioImageByIndexParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void GetStudioImageByIndexParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &GetStudioImageByIndexParams::backgroundColor() const { + return m_backgroundColor; +} + +void GetStudioImageByIndexParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool GetStudioImageByIndexParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void GetStudioImageByIndexParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &GetStudioImageByIndexParams::blur() const { + return m_blur.value(); +} + +void GetStudioImageByIndexParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool GetStudioImageByIndexParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void GetStudioImageByIndexParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &GetStudioImageByIndexParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void GetStudioImageByIndexParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool GetStudioImageByIndexParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void GetStudioImageByIndexParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &GetStudioImageByIndexParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void GetStudioImageByIndexParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool GetStudioImageByIndexParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void GetStudioImageByIndexParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &GetStudioImageByIndexParams::format() const { + return m_format; +} + +void GetStudioImageByIndexParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool GetStudioImageByIndexParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void GetStudioImageByIndexParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &GetStudioImageByIndexParams::height() const { + return m_height.value(); +} + +void GetStudioImageByIndexParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetStudioImageByIndexParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetStudioImageByIndexParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &GetStudioImageByIndexParams::maxHeight() const { + return m_maxHeight.value(); +} + +void GetStudioImageByIndexParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool GetStudioImageByIndexParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void GetStudioImageByIndexParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &GetStudioImageByIndexParams::maxWidth() const { + return m_maxWidth.value(); +} + +void GetStudioImageByIndexParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool GetStudioImageByIndexParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void GetStudioImageByIndexParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &GetStudioImageByIndexParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void GetStudioImageByIndexParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool GetStudioImageByIndexParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void GetStudioImageByIndexParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &GetStudioImageByIndexParams::quality() const { + return m_quality.value(); +} + +void GetStudioImageByIndexParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool GetStudioImageByIndexParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void GetStudioImageByIndexParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &GetStudioImageByIndexParams::tag() const { + return m_tag; +} + +void GetStudioImageByIndexParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetStudioImageByIndexParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetStudioImageByIndexParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &GetStudioImageByIndexParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void GetStudioImageByIndexParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool GetStudioImageByIndexParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void GetStudioImageByIndexParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &GetStudioImageByIndexParams::width() const { + return m_width.value(); +} + +void GetStudioImageByIndexParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetStudioImageByIndexParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetStudioImageByIndexParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getstudioimageparams.cpp b/core/src/loader/getstudioimageparams.cpp new file mode 100644 index 0000000..b13d436 --- /dev/null +++ b/core/src/loader/getstudioimageparams.cpp @@ -0,0 +1,374 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getstudioimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetStudioImageParams + +const ImageType &GetStudioImageParams::imageType() const { + return m_imageType; +} + +void GetStudioImageParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &GetStudioImageParams::name() const { + return m_name; +} + +void GetStudioImageParams::setName(QString newName) { + m_name = newName; +} + + +const bool &GetStudioImageParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void GetStudioImageParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool GetStudioImageParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void GetStudioImageParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &GetStudioImageParams::backgroundColor() const { + return m_backgroundColor; +} + +void GetStudioImageParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool GetStudioImageParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void GetStudioImageParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &GetStudioImageParams::blur() const { + return m_blur.value(); +} + +void GetStudioImageParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool GetStudioImageParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void GetStudioImageParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &GetStudioImageParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void GetStudioImageParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool GetStudioImageParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void GetStudioImageParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &GetStudioImageParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void GetStudioImageParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool GetStudioImageParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void GetStudioImageParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &GetStudioImageParams::format() const { + return m_format; +} + +void GetStudioImageParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool GetStudioImageParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void GetStudioImageParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &GetStudioImageParams::height() const { + return m_height.value(); +} + +void GetStudioImageParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetStudioImageParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetStudioImageParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &GetStudioImageParams::imageIndex() const { + return m_imageIndex.value(); +} + +void GetStudioImageParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + +bool GetStudioImageParams::imageIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageIndex.has_value(); +} + +void GetStudioImageParams::setImageIndexNull() { + m_imageIndex = std::nullopt; +} + + +const qint32 &GetStudioImageParams::maxHeight() const { + return m_maxHeight.value(); +} + +void GetStudioImageParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool GetStudioImageParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void GetStudioImageParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &GetStudioImageParams::maxWidth() const { + return m_maxWidth.value(); +} + +void GetStudioImageParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool GetStudioImageParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void GetStudioImageParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &GetStudioImageParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void GetStudioImageParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool GetStudioImageParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void GetStudioImageParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &GetStudioImageParams::quality() const { + return m_quality.value(); +} + +void GetStudioImageParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool GetStudioImageParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void GetStudioImageParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &GetStudioImageParams::tag() const { + return m_tag; +} + +void GetStudioImageParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetStudioImageParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetStudioImageParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &GetStudioImageParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void GetStudioImageParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool GetStudioImageParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void GetStudioImageParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &GetStudioImageParams::width() const { + return m_width.value(); +} + +void GetStudioImageParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetStudioImageParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetStudioImageParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/ffmpeglocation.h b/core/src/loader/getstudioparams.cpp similarity index 70% rename from core/include/JellyfinQt/DTO/ffmpeglocation.h rename to core/src/loader/getstudioparams.cpp index b5956ef..0fd7569 100644 --- a/core/include/JellyfinQt/DTO/ffmpeglocation.h +++ b/core/src/loader/getstudioparams.cpp @@ -27,36 +27,45 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_FFMPEGLOCATION_H -#define JELLYFIN_DTO_FFMPEGLOCATION_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/getstudioparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { -class FFmpegLocationClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - NotFound, - SetByArgument, - Custom, - System, - }; - Q_ENUM(Value) -private: - explicit FFmpegLocationClass(); -}; +using namespace Jellyfin::DTO; -typedef FFmpegLocationClass::Value FFmpegLocation; +// GetStudioParams +const QString &GetStudioParams::name() const { + return m_name; +} + +void GetStudioParams::setName(QString newName) { + m_name = newName; +} + + +const QString &GetStudioParams::userId() const { + return m_userId; +} + +void GetStudioParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetStudioParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetStudioParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_FFMPEGLOCATION_H diff --git a/core/src/loader/getstudiosparams.cpp b/core/src/loader/getstudiosparams.cpp new file mode 100644 index 0000000..a18c968 --- /dev/null +++ b/core/src/loader/getstudiosparams.cpp @@ -0,0 +1,398 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getstudiosparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetStudiosParams + +const QList &GetStudiosParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetStudiosParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetStudiosParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetStudiosParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetStudiosParams::enableImages() const { + return m_enableImages.value(); +} + +void GetStudiosParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetStudiosParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetStudiosParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetStudiosParams::enableTotalRecordCount() const { + return m_enableTotalRecordCount.value(); +} + +void GetStudiosParams::setEnableTotalRecordCount(bool newEnableTotalRecordCount) { + m_enableTotalRecordCount = newEnableTotalRecordCount; +} + +bool GetStudiosParams::enableTotalRecordCountNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableTotalRecordCount.has_value(); +} + +void GetStudiosParams::setEnableTotalRecordCountNull() { + m_enableTotalRecordCount = std::nullopt; +} + + +const bool &GetStudiosParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetStudiosParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetStudiosParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetStudiosParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QStringList &GetStudiosParams::excludeItemTypes() const { + return m_excludeItemTypes; +} + +void GetStudiosParams::setExcludeItemTypes(QStringList newExcludeItemTypes) { + m_excludeItemTypes = newExcludeItemTypes; +} + +bool GetStudiosParams::excludeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeItemTypes.size() == 0; +} + +void GetStudiosParams::setExcludeItemTypesNull() { + m_excludeItemTypes.clear(); +} + + +const QList &GetStudiosParams::fields() const { + return m_fields; +} + +void GetStudiosParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetStudiosParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetStudiosParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetStudiosParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetStudiosParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetStudiosParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetStudiosParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const QStringList &GetStudiosParams::includeItemTypes() const { + return m_includeItemTypes; +} + +void GetStudiosParams::setIncludeItemTypes(QStringList newIncludeItemTypes) { + m_includeItemTypes = newIncludeItemTypes; +} + +bool GetStudiosParams::includeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_includeItemTypes.size() == 0; +} + +void GetStudiosParams::setIncludeItemTypesNull() { + m_includeItemTypes.clear(); +} + + +const bool &GetStudiosParams::isFavorite() const { + return m_isFavorite.value(); +} + +void GetStudiosParams::setIsFavorite(bool newIsFavorite) { + m_isFavorite = newIsFavorite; +} + +bool GetStudiosParams::isFavoriteNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isFavorite.has_value(); +} + +void GetStudiosParams::setIsFavoriteNull() { + m_isFavorite = std::nullopt; +} + + +const qint32 &GetStudiosParams::limit() const { + return m_limit.value(); +} + +void GetStudiosParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetStudiosParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetStudiosParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetStudiosParams::nameLessThan() const { + return m_nameLessThan; +} + +void GetStudiosParams::setNameLessThan(QString newNameLessThan) { + m_nameLessThan = newNameLessThan; +} + +bool GetStudiosParams::nameLessThanNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameLessThan.isNull(); +} + +void GetStudiosParams::setNameLessThanNull() { + m_nameLessThan.clear(); +} + + +const QString &GetStudiosParams::nameStartsWith() const { + return m_nameStartsWith; +} + +void GetStudiosParams::setNameStartsWith(QString newNameStartsWith) { + m_nameStartsWith = newNameStartsWith; +} + +bool GetStudiosParams::nameStartsWithNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameStartsWith.isNull(); +} + +void GetStudiosParams::setNameStartsWithNull() { + m_nameStartsWith.clear(); +} + + +const QString &GetStudiosParams::nameStartsWithOrGreater() const { + return m_nameStartsWithOrGreater; +} + +void GetStudiosParams::setNameStartsWithOrGreater(QString newNameStartsWithOrGreater) { + m_nameStartsWithOrGreater = newNameStartsWithOrGreater; +} + +bool GetStudiosParams::nameStartsWithOrGreaterNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameStartsWithOrGreater.isNull(); +} + +void GetStudiosParams::setNameStartsWithOrGreaterNull() { + m_nameStartsWithOrGreater.clear(); +} + + +const QString &GetStudiosParams::parentId() const { + return m_parentId; +} + +void GetStudiosParams::setParentId(QString newParentId) { + m_parentId = newParentId; +} + +bool GetStudiosParams::parentIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_parentId.isNull(); +} + +void GetStudiosParams::setParentIdNull() { + m_parentId.clear(); +} + + +const QString &GetStudiosParams::searchTerm() const { + return m_searchTerm; +} + +void GetStudiosParams::setSearchTerm(QString newSearchTerm) { + m_searchTerm = newSearchTerm; +} + +bool GetStudiosParams::searchTermNull() const { + // Nullable: true + // Type Nullable: true + + + return m_searchTerm.isNull(); +} + +void GetStudiosParams::setSearchTermNull() { + m_searchTerm.clear(); +} + + +const qint32 &GetStudiosParams::startIndex() const { + return m_startIndex.value(); +} + +void GetStudiosParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetStudiosParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetStudiosParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const QString &GetStudiosParams::userId() const { + return m_userId; +} + +void GetStudiosParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetStudiosParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetStudiosParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getsubtitleparams.cpp b/core/src/loader/getsubtitleparams.cpp new file mode 100644 index 0000000..d3cc77a --- /dev/null +++ b/core/src/loader/getsubtitleparams.cpp @@ -0,0 +1,161 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getsubtitleparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetSubtitleParams + +const QString &GetSubtitleParams::format() const { + return m_format; +} + +void GetSubtitleParams::setFormat(QString newFormat) { + m_format = newFormat; +} + + +const qint32 &GetSubtitleParams::index() const { + return m_index; +} + +void GetSubtitleParams::setIndex(qint32 newIndex) { + m_index = newIndex; +} + + +const QString &GetSubtitleParams::itemId() const { + return m_itemId; +} + +void GetSubtitleParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &GetSubtitleParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void GetSubtitleParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + + +const bool &GetSubtitleParams::addVttTimeMap() const { + return m_addVttTimeMap.value(); +} + +void GetSubtitleParams::setAddVttTimeMap(bool newAddVttTimeMap) { + m_addVttTimeMap = newAddVttTimeMap; +} + +bool GetSubtitleParams::addVttTimeMapNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_addVttTimeMap.has_value(); +} + +void GetSubtitleParams::setAddVttTimeMapNull() { + m_addVttTimeMap = std::nullopt; +} + + +const bool &GetSubtitleParams::copyTimestamps() const { + return m_copyTimestamps.value(); +} + +void GetSubtitleParams::setCopyTimestamps(bool newCopyTimestamps) { + m_copyTimestamps = newCopyTimestamps; +} + +bool GetSubtitleParams::copyTimestampsNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_copyTimestamps.has_value(); +} + +void GetSubtitleParams::setCopyTimestampsNull() { + m_copyTimestamps = std::nullopt; +} + + +const qint64 &GetSubtitleParams::endPositionTicks() const { + return m_endPositionTicks.value(); +} + +void GetSubtitleParams::setEndPositionTicks(qint64 newEndPositionTicks) { + m_endPositionTicks = newEndPositionTicks; +} + +bool GetSubtitleParams::endPositionTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_endPositionTicks.has_value(); +} + +void GetSubtitleParams::setEndPositionTicksNull() { + m_endPositionTicks = std::nullopt; +} + + +const qint64 &GetSubtitleParams::startPositionTicks() const { + return m_startPositionTicks.value(); +} + +void GetSubtitleParams::setStartPositionTicks(qint64 newStartPositionTicks) { + m_startPositionTicks = newStartPositionTicks; +} + +bool GetSubtitleParams::startPositionTicksNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_startPositionTicks.has_value(); +} + +void GetSubtitleParams::setStartPositionTicksNull() { + m_startPositionTicks = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getsubtitleplaylistparams.cpp b/core/src/loader/getsubtitleplaylistparams.cpp new file mode 100644 index 0000000..307675b --- /dev/null +++ b/core/src/loader/getsubtitleplaylistparams.cpp @@ -0,0 +1,77 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getsubtitleplaylistparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetSubtitlePlaylistParams + +const qint32 &GetSubtitlePlaylistParams::index() const { + return m_index; +} + +void GetSubtitlePlaylistParams::setIndex(qint32 newIndex) { + m_index = newIndex; +} + + +const QString &GetSubtitlePlaylistParams::itemId() const { + return m_itemId; +} + +void GetSubtitlePlaylistParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &GetSubtitlePlaylistParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void GetSubtitlePlaylistParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + + +const qint32 &GetSubtitlePlaylistParams::segmentLength() const { + return m_segmentLength; +} + +void GetSubtitlePlaylistParams::setSegmentLength(qint32 newSegmentLength) { + m_segmentLength = newSegmentLength; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getsubtitlewithticksparams.cpp b/core/src/loader/getsubtitlewithticksparams.cpp new file mode 100644 index 0000000..25d231c --- /dev/null +++ b/core/src/loader/getsubtitlewithticksparams.cpp @@ -0,0 +1,149 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getsubtitlewithticksparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetSubtitleWithTicksParams + +const QString &GetSubtitleWithTicksParams::format() const { + return m_format; +} + +void GetSubtitleWithTicksParams::setFormat(QString newFormat) { + m_format = newFormat; +} + + +const qint32 &GetSubtitleWithTicksParams::index() const { + return m_index; +} + +void GetSubtitleWithTicksParams::setIndex(qint32 newIndex) { + m_index = newIndex; +} + + +const QString &GetSubtitleWithTicksParams::itemId() const { + return m_itemId; +} + +void GetSubtitleWithTicksParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &GetSubtitleWithTicksParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void GetSubtitleWithTicksParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + + +const qint64 &GetSubtitleWithTicksParams::startPositionTicks() const { + return m_startPositionTicks; +} + +void GetSubtitleWithTicksParams::setStartPositionTicks(qint64 newStartPositionTicks) { + m_startPositionTicks = newStartPositionTicks; +} + + +const bool &GetSubtitleWithTicksParams::addVttTimeMap() const { + return m_addVttTimeMap.value(); +} + +void GetSubtitleWithTicksParams::setAddVttTimeMap(bool newAddVttTimeMap) { + m_addVttTimeMap = newAddVttTimeMap; +} + +bool GetSubtitleWithTicksParams::addVttTimeMapNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_addVttTimeMap.has_value(); +} + +void GetSubtitleWithTicksParams::setAddVttTimeMapNull() { + m_addVttTimeMap = std::nullopt; +} + + +const bool &GetSubtitleWithTicksParams::copyTimestamps() const { + return m_copyTimestamps.value(); +} + +void GetSubtitleWithTicksParams::setCopyTimestamps(bool newCopyTimestamps) { + m_copyTimestamps = newCopyTimestamps; +} + +bool GetSubtitleWithTicksParams::copyTimestampsNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_copyTimestamps.has_value(); +} + +void GetSubtitleWithTicksParams::setCopyTimestampsNull() { + m_copyTimestamps = std::nullopt; +} + + +const qint64 &GetSubtitleWithTicksParams::endPositionTicks() const { + return m_endPositionTicks.value(); +} + +void GetSubtitleWithTicksParams::setEndPositionTicks(qint64 newEndPositionTicks) { + m_endPositionTicks = newEndPositionTicks; +} + +bool GetSubtitleWithTicksParams::endPositionTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_endPositionTicks.has_value(); +} + +void GetSubtitleWithTicksParams::setEndPositionTicksNull() { + m_endPositionTicks = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getsuggestionsparams.cpp b/core/src/loader/getsuggestionsparams.cpp new file mode 100644 index 0000000..4608b7f --- /dev/null +++ b/core/src/loader/getsuggestionsparams.cpp @@ -0,0 +1,155 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getsuggestionsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetSuggestionsParams + +const QString &GetSuggestionsParams::userId() const { + return m_userId; +} + +void GetSuggestionsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + +const bool &GetSuggestionsParams::enableTotalRecordCount() const { + return m_enableTotalRecordCount.value(); +} + +void GetSuggestionsParams::setEnableTotalRecordCount(bool newEnableTotalRecordCount) { + m_enableTotalRecordCount = newEnableTotalRecordCount; +} + +bool GetSuggestionsParams::enableTotalRecordCountNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableTotalRecordCount.has_value(); +} + +void GetSuggestionsParams::setEnableTotalRecordCountNull() { + m_enableTotalRecordCount = std::nullopt; +} + + +const qint32 &GetSuggestionsParams::limit() const { + return m_limit.value(); +} + +void GetSuggestionsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetSuggestionsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetSuggestionsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QStringList &GetSuggestionsParams::mediaType() const { + return m_mediaType; +} + +void GetSuggestionsParams::setMediaType(QStringList newMediaType) { + m_mediaType = newMediaType; +} + +bool GetSuggestionsParams::mediaTypeNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaType.size() == 0; +} + +void GetSuggestionsParams::setMediaTypeNull() { + m_mediaType.clear(); +} + + +const qint32 &GetSuggestionsParams::startIndex() const { + return m_startIndex.value(); +} + +void GetSuggestionsParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetSuggestionsParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetSuggestionsParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const QStringList &GetSuggestionsParams::type() const { + return m_type; +} + +void GetSuggestionsParams::setType(QStringList newType) { + m_type = newType; +} + +bool GetSuggestionsParams::typeNull() const { + // Nullable: true + // Type Nullable: true + + + return m_type.size() == 0; +} + +void GetSuggestionsParams::setTypeNull() { + m_type.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getsysteminfoparams.cpp b/core/src/loader/getsysteminfoparams.cpp new file mode 100644 index 0000000..8a553d2 --- /dev/null +++ b/core/src/loader/getsysteminfoparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getsysteminfoparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetSystemInfoParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/gettaskparams.cpp b/core/src/loader/gettaskparams.cpp new file mode 100644 index 0000000..dcfd071 --- /dev/null +++ b/core/src/loader/gettaskparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/gettaskparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetTaskParams + +const QString &GetTaskParams::taskId() const { + return m_taskId; +} + +void GetTaskParams::setTaskId(QString newTaskId) { + m_taskId = newTaskId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/gettasksparams.cpp b/core/src/loader/gettasksparams.cpp new file mode 100644 index 0000000..12f5dc7 --- /dev/null +++ b/core/src/loader/gettasksparams.cpp @@ -0,0 +1,83 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/gettasksparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetTasksParams + +const bool &GetTasksParams::isEnabled() const { + return m_isEnabled.value(); +} + +void GetTasksParams::setIsEnabled(bool newIsEnabled) { + m_isEnabled = newIsEnabled; +} + +bool GetTasksParams::isEnabledNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isEnabled.has_value(); +} + +void GetTasksParams::setIsEnabledNull() { + m_isEnabled = std::nullopt; +} + + +const bool &GetTasksParams::isHidden() const { + return m_isHidden.value(); +} + +void GetTasksParams::setIsHidden(bool newIsHidden) { + m_isHidden = newIsHidden; +} + +bool GetTasksParams::isHiddenNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isHidden.has_value(); +} + +void GetTasksParams::setIsHiddenNull() { + m_isHidden = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getthememediaparams.cpp b/core/src/loader/getthememediaparams.cpp new file mode 100644 index 0000000..826495a --- /dev/null +++ b/core/src/loader/getthememediaparams.cpp @@ -0,0 +1,92 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getthememediaparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetThemeMediaParams + +const QString &GetThemeMediaParams::itemId() const { + return m_itemId; +} + +void GetThemeMediaParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const bool &GetThemeMediaParams::inheritFromParent() const { + return m_inheritFromParent.value(); +} + +void GetThemeMediaParams::setInheritFromParent(bool newInheritFromParent) { + m_inheritFromParent = newInheritFromParent; +} + +bool GetThemeMediaParams::inheritFromParentNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_inheritFromParent.has_value(); +} + +void GetThemeMediaParams::setInheritFromParentNull() { + m_inheritFromParent = std::nullopt; +} + + +const QString &GetThemeMediaParams::userId() const { + return m_userId; +} + +void GetThemeMediaParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetThemeMediaParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetThemeMediaParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getthemesongsparams.cpp b/core/src/loader/getthemesongsparams.cpp new file mode 100644 index 0000000..1f92fe9 --- /dev/null +++ b/core/src/loader/getthemesongsparams.cpp @@ -0,0 +1,92 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getthemesongsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetThemeSongsParams + +const QString &GetThemeSongsParams::itemId() const { + return m_itemId; +} + +void GetThemeSongsParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const bool &GetThemeSongsParams::inheritFromParent() const { + return m_inheritFromParent.value(); +} + +void GetThemeSongsParams::setInheritFromParent(bool newInheritFromParent) { + m_inheritFromParent = newInheritFromParent; +} + +bool GetThemeSongsParams::inheritFromParentNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_inheritFromParent.has_value(); +} + +void GetThemeSongsParams::setInheritFromParentNull() { + m_inheritFromParent = std::nullopt; +} + + +const QString &GetThemeSongsParams::userId() const { + return m_userId; +} + +void GetThemeSongsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetThemeSongsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetThemeSongsParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getthemevideosparams.cpp b/core/src/loader/getthemevideosparams.cpp new file mode 100644 index 0000000..809afb0 --- /dev/null +++ b/core/src/loader/getthemevideosparams.cpp @@ -0,0 +1,92 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getthemevideosparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetThemeVideosParams + +const QString &GetThemeVideosParams::itemId() const { + return m_itemId; +} + +void GetThemeVideosParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const bool &GetThemeVideosParams::inheritFromParent() const { + return m_inheritFromParent.value(); +} + +void GetThemeVideosParams::setInheritFromParent(bool newInheritFromParent) { + m_inheritFromParent = newInheritFromParent; +} + +bool GetThemeVideosParams::inheritFromParentNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_inheritFromParent.has_value(); +} + +void GetThemeVideosParams::setInheritFromParentNull() { + m_inheritFromParent = std::nullopt; +} + + +const QString &GetThemeVideosParams::userId() const { + return m_userId; +} + +void GetThemeVideosParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetThemeVideosParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetThemeVideosParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/gettimerparams.cpp b/core/src/loader/gettimerparams.cpp new file mode 100644 index 0000000..4049e57 --- /dev/null +++ b/core/src/loader/gettimerparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/gettimerparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetTimerParams + +const QString &GetTimerParams::timerId() const { + return m_timerId; +} + +void GetTimerParams::setTimerId(QString newTimerId) { + m_timerId = newTimerId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/gettimersparams.cpp b/core/src/loader/gettimersparams.cpp new file mode 100644 index 0000000..a453e52 --- /dev/null +++ b/core/src/loader/gettimersparams.cpp @@ -0,0 +1,125 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/gettimersparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetTimersParams + +const QString &GetTimersParams::channelId() const { + return m_channelId; +} + +void GetTimersParams::setChannelId(QString newChannelId) { + m_channelId = newChannelId; +} + +bool GetTimersParams::channelIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_channelId.isNull(); +} + +void GetTimersParams::setChannelIdNull() { + m_channelId.clear(); +} + + +const bool &GetTimersParams::isActive() const { + return m_isActive.value(); +} + +void GetTimersParams::setIsActive(bool newIsActive) { + m_isActive = newIsActive; +} + +bool GetTimersParams::isActiveNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isActive.has_value(); +} + +void GetTimersParams::setIsActiveNull() { + m_isActive = std::nullopt; +} + + +const bool &GetTimersParams::isScheduled() const { + return m_isScheduled.value(); +} + +void GetTimersParams::setIsScheduled(bool newIsScheduled) { + m_isScheduled = newIsScheduled; +} + +bool GetTimersParams::isScheduledNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isScheduled.has_value(); +} + +void GetTimersParams::setIsScheduledNull() { + m_isScheduled = std::nullopt; +} + + +const QString &GetTimersParams::seriesTimerId() const { + return m_seriesTimerId; +} + +void GetTimersParams::setSeriesTimerId(QString newSeriesTimerId) { + m_seriesTimerId = newSeriesTimerId; +} + +bool GetTimersParams::seriesTimerIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_seriesTimerId.isNull(); +} + +void GetTimersParams::setSeriesTimerIdNull() { + m_seriesTimerId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/gettrailerremotesearchresultsparams.cpp b/core/src/loader/gettrailerremotesearchresultsparams.cpp new file mode 100644 index 0000000..63486df --- /dev/null +++ b/core/src/loader/gettrailerremotesearchresultsparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/gettrailerremotesearchresultsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetTrailerRemoteSearchResultsParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/gettrailersparams.cpp b/core/src/loader/gettrailersparams.cpp new file mode 100644 index 0000000..a782b19 --- /dev/null +++ b/core/src/loader/gettrailersparams.cpp @@ -0,0 +1,1700 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/gettrailersparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetTrailersParams + +const QString &GetTrailersParams::adjacentTo() const { + return m_adjacentTo; +} + +void GetTrailersParams::setAdjacentTo(QString newAdjacentTo) { + m_adjacentTo = newAdjacentTo; +} + +bool GetTrailersParams::adjacentToNull() const { + // Nullable: true + // Type Nullable: true + + + return m_adjacentTo.isNull(); +} + +void GetTrailersParams::setAdjacentToNull() { + m_adjacentTo.clear(); +} + + +const QStringList &GetTrailersParams::albumArtistIds() const { + return m_albumArtistIds; +} + +void GetTrailersParams::setAlbumArtistIds(QStringList newAlbumArtistIds) { + m_albumArtistIds = newAlbumArtistIds; +} + +bool GetTrailersParams::albumArtistIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_albumArtistIds.size() == 0; +} + +void GetTrailersParams::setAlbumArtistIdsNull() { + m_albumArtistIds.clear(); +} + + +const QStringList &GetTrailersParams::albumIds() const { + return m_albumIds; +} + +void GetTrailersParams::setAlbumIds(QStringList newAlbumIds) { + m_albumIds = newAlbumIds; +} + +bool GetTrailersParams::albumIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_albumIds.size() == 0; +} + +void GetTrailersParams::setAlbumIdsNull() { + m_albumIds.clear(); +} + + +const QStringList &GetTrailersParams::albums() const { + return m_albums; +} + +void GetTrailersParams::setAlbums(QStringList newAlbums) { + m_albums = newAlbums; +} + +bool GetTrailersParams::albumsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_albums.size() == 0; +} + +void GetTrailersParams::setAlbumsNull() { + m_albums.clear(); +} + + +const QStringList &GetTrailersParams::artistIds() const { + return m_artistIds; +} + +void GetTrailersParams::setArtistIds(QStringList newArtistIds) { + m_artistIds = newArtistIds; +} + +bool GetTrailersParams::artistIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_artistIds.size() == 0; +} + +void GetTrailersParams::setArtistIdsNull() { + m_artistIds.clear(); +} + + +const QStringList &GetTrailersParams::artists() const { + return m_artists; +} + +void GetTrailersParams::setArtists(QStringList newArtists) { + m_artists = newArtists; +} + +bool GetTrailersParams::artistsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_artists.size() == 0; +} + +void GetTrailersParams::setArtistsNull() { + m_artists.clear(); +} + + +const bool &GetTrailersParams::collapseBoxSetItems() const { + return m_collapseBoxSetItems.value(); +} + +void GetTrailersParams::setCollapseBoxSetItems(bool newCollapseBoxSetItems) { + m_collapseBoxSetItems = newCollapseBoxSetItems; +} + +bool GetTrailersParams::collapseBoxSetItemsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_collapseBoxSetItems.has_value(); +} + +void GetTrailersParams::setCollapseBoxSetItemsNull() { + m_collapseBoxSetItems = std::nullopt; +} + + +const QStringList &GetTrailersParams::contributingArtistIds() const { + return m_contributingArtistIds; +} + +void GetTrailersParams::setContributingArtistIds(QStringList newContributingArtistIds) { + m_contributingArtistIds = newContributingArtistIds; +} + +bool GetTrailersParams::contributingArtistIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_contributingArtistIds.size() == 0; +} + +void GetTrailersParams::setContributingArtistIdsNull() { + m_contributingArtistIds.clear(); +} + + +const QList &GetTrailersParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetTrailersParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetTrailersParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetTrailersParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetTrailersParams::enableImages() const { + return m_enableImages.value(); +} + +void GetTrailersParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetTrailersParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetTrailersParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetTrailersParams::enableTotalRecordCount() const { + return m_enableTotalRecordCount.value(); +} + +void GetTrailersParams::setEnableTotalRecordCount(bool newEnableTotalRecordCount) { + m_enableTotalRecordCount = newEnableTotalRecordCount; +} + +bool GetTrailersParams::enableTotalRecordCountNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableTotalRecordCount.has_value(); +} + +void GetTrailersParams::setEnableTotalRecordCountNull() { + m_enableTotalRecordCount = std::nullopt; +} + + +const bool &GetTrailersParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetTrailersParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetTrailersParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetTrailersParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QStringList &GetTrailersParams::excludeArtistIds() const { + return m_excludeArtistIds; +} + +void GetTrailersParams::setExcludeArtistIds(QStringList newExcludeArtistIds) { + m_excludeArtistIds = newExcludeArtistIds; +} + +bool GetTrailersParams::excludeArtistIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeArtistIds.size() == 0; +} + +void GetTrailersParams::setExcludeArtistIdsNull() { + m_excludeArtistIds.clear(); +} + + +const QStringList &GetTrailersParams::excludeItemIds() const { + return m_excludeItemIds; +} + +void GetTrailersParams::setExcludeItemIds(QStringList newExcludeItemIds) { + m_excludeItemIds = newExcludeItemIds; +} + +bool GetTrailersParams::excludeItemIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeItemIds.size() == 0; +} + +void GetTrailersParams::setExcludeItemIdsNull() { + m_excludeItemIds.clear(); +} + + +const QStringList &GetTrailersParams::excludeItemTypes() const { + return m_excludeItemTypes; +} + +void GetTrailersParams::setExcludeItemTypes(QStringList newExcludeItemTypes) { + m_excludeItemTypes = newExcludeItemTypes; +} + +bool GetTrailersParams::excludeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeItemTypes.size() == 0; +} + +void GetTrailersParams::setExcludeItemTypesNull() { + m_excludeItemTypes.clear(); +} + + +const QList &GetTrailersParams::excludeLocationTypes() const { + return m_excludeLocationTypes; +} + +void GetTrailersParams::setExcludeLocationTypes(QList newExcludeLocationTypes) { + m_excludeLocationTypes = newExcludeLocationTypes; +} + +bool GetTrailersParams::excludeLocationTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeLocationTypes.size() == 0; +} + +void GetTrailersParams::setExcludeLocationTypesNull() { + m_excludeLocationTypes.clear(); +} + + +const QList &GetTrailersParams::fields() const { + return m_fields; +} + +void GetTrailersParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetTrailersParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetTrailersParams::setFieldsNull() { + m_fields.clear(); +} + + +const QList &GetTrailersParams::filters() const { + return m_filters; +} + +void GetTrailersParams::setFilters(QList newFilters) { + m_filters = newFilters; +} + +bool GetTrailersParams::filtersNull() const { + // Nullable: true + // Type Nullable: true + + + return m_filters.size() == 0; +} + +void GetTrailersParams::setFiltersNull() { + m_filters.clear(); +} + + +const QStringList &GetTrailersParams::genreIds() const { + return m_genreIds; +} + +void GetTrailersParams::setGenreIds(QStringList newGenreIds) { + m_genreIds = newGenreIds; +} + +bool GetTrailersParams::genreIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_genreIds.size() == 0; +} + +void GetTrailersParams::setGenreIdsNull() { + m_genreIds.clear(); +} + + +const QStringList &GetTrailersParams::genres() const { + return m_genres; +} + +void GetTrailersParams::setGenres(QStringList newGenres) { + m_genres = newGenres; +} + +bool GetTrailersParams::genresNull() const { + // Nullable: true + // Type Nullable: true + + + return m_genres.size() == 0; +} + +void GetTrailersParams::setGenresNull() { + m_genres.clear(); +} + + +const bool &GetTrailersParams::hasImdbId() const { + return m_hasImdbId.value(); +} + +void GetTrailersParams::setHasImdbId(bool newHasImdbId) { + m_hasImdbId = newHasImdbId; +} + +bool GetTrailersParams::hasImdbIdNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasImdbId.has_value(); +} + +void GetTrailersParams::setHasImdbIdNull() { + m_hasImdbId = std::nullopt; +} + + +const bool &GetTrailersParams::hasOfficialRating() const { + return m_hasOfficialRating.value(); +} + +void GetTrailersParams::setHasOfficialRating(bool newHasOfficialRating) { + m_hasOfficialRating = newHasOfficialRating; +} + +bool GetTrailersParams::hasOfficialRatingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasOfficialRating.has_value(); +} + +void GetTrailersParams::setHasOfficialRatingNull() { + m_hasOfficialRating = std::nullopt; +} + + +const bool &GetTrailersParams::hasOverview() const { + return m_hasOverview.value(); +} + +void GetTrailersParams::setHasOverview(bool newHasOverview) { + m_hasOverview = newHasOverview; +} + +bool GetTrailersParams::hasOverviewNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasOverview.has_value(); +} + +void GetTrailersParams::setHasOverviewNull() { + m_hasOverview = std::nullopt; +} + + +const bool &GetTrailersParams::hasParentalRating() const { + return m_hasParentalRating.value(); +} + +void GetTrailersParams::setHasParentalRating(bool newHasParentalRating) { + m_hasParentalRating = newHasParentalRating; +} + +bool GetTrailersParams::hasParentalRatingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasParentalRating.has_value(); +} + +void GetTrailersParams::setHasParentalRatingNull() { + m_hasParentalRating = std::nullopt; +} + + +const bool &GetTrailersParams::hasSpecialFeature() const { + return m_hasSpecialFeature.value(); +} + +void GetTrailersParams::setHasSpecialFeature(bool newHasSpecialFeature) { + m_hasSpecialFeature = newHasSpecialFeature; +} + +bool GetTrailersParams::hasSpecialFeatureNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasSpecialFeature.has_value(); +} + +void GetTrailersParams::setHasSpecialFeatureNull() { + m_hasSpecialFeature = std::nullopt; +} + + +const bool &GetTrailersParams::hasSubtitles() const { + return m_hasSubtitles.value(); +} + +void GetTrailersParams::setHasSubtitles(bool newHasSubtitles) { + m_hasSubtitles = newHasSubtitles; +} + +bool GetTrailersParams::hasSubtitlesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasSubtitles.has_value(); +} + +void GetTrailersParams::setHasSubtitlesNull() { + m_hasSubtitles = std::nullopt; +} + + +const bool &GetTrailersParams::hasThemeSong() const { + return m_hasThemeSong.value(); +} + +void GetTrailersParams::setHasThemeSong(bool newHasThemeSong) { + m_hasThemeSong = newHasThemeSong; +} + +bool GetTrailersParams::hasThemeSongNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasThemeSong.has_value(); +} + +void GetTrailersParams::setHasThemeSongNull() { + m_hasThemeSong = std::nullopt; +} + + +const bool &GetTrailersParams::hasThemeVideo() const { + return m_hasThemeVideo.value(); +} + +void GetTrailersParams::setHasThemeVideo(bool newHasThemeVideo) { + m_hasThemeVideo = newHasThemeVideo; +} + +bool GetTrailersParams::hasThemeVideoNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasThemeVideo.has_value(); +} + +void GetTrailersParams::setHasThemeVideoNull() { + m_hasThemeVideo = std::nullopt; +} + + +const bool &GetTrailersParams::hasTmdbId() const { + return m_hasTmdbId.value(); +} + +void GetTrailersParams::setHasTmdbId(bool newHasTmdbId) { + m_hasTmdbId = newHasTmdbId; +} + +bool GetTrailersParams::hasTmdbIdNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasTmdbId.has_value(); +} + +void GetTrailersParams::setHasTmdbIdNull() { + m_hasTmdbId = std::nullopt; +} + + +const bool &GetTrailersParams::hasTrailer() const { + return m_hasTrailer.value(); +} + +void GetTrailersParams::setHasTrailer(bool newHasTrailer) { + m_hasTrailer = newHasTrailer; +} + +bool GetTrailersParams::hasTrailerNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasTrailer.has_value(); +} + +void GetTrailersParams::setHasTrailerNull() { + m_hasTrailer = std::nullopt; +} + + +const bool &GetTrailersParams::hasTvdbId() const { + return m_hasTvdbId.value(); +} + +void GetTrailersParams::setHasTvdbId(bool newHasTvdbId) { + m_hasTvdbId = newHasTvdbId; +} + +bool GetTrailersParams::hasTvdbIdNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_hasTvdbId.has_value(); +} + +void GetTrailersParams::setHasTvdbIdNull() { + m_hasTvdbId = std::nullopt; +} + + +const QStringList &GetTrailersParams::ids() const { + return m_ids; +} + +void GetTrailersParams::setIds(QStringList newIds) { + m_ids = newIds; +} + +bool GetTrailersParams::idsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_ids.size() == 0; +} + +void GetTrailersParams::setIdsNull() { + m_ids.clear(); +} + + +const qint32 &GetTrailersParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetTrailersParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetTrailersParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetTrailersParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const QList &GetTrailersParams::imageTypes() const { + return m_imageTypes; +} + +void GetTrailersParams::setImageTypes(QList newImageTypes) { + m_imageTypes = newImageTypes; +} + +bool GetTrailersParams::imageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_imageTypes.size() == 0; +} + +void GetTrailersParams::setImageTypesNull() { + m_imageTypes.clear(); +} + + +const bool &GetTrailersParams::is3D() const { + return m_is3D.value(); +} + +void GetTrailersParams::setIs3D(bool newIs3D) { + m_is3D = newIs3D; +} + +bool GetTrailersParams::is3DNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_is3D.has_value(); +} + +void GetTrailersParams::setIs3DNull() { + m_is3D = std::nullopt; +} + + +const bool &GetTrailersParams::is4K() const { + return m_is4K.value(); +} + +void GetTrailersParams::setIs4K(bool newIs4K) { + m_is4K = newIs4K; +} + +bool GetTrailersParams::is4KNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_is4K.has_value(); +} + +void GetTrailersParams::setIs4KNull() { + m_is4K = std::nullopt; +} + + +const bool &GetTrailersParams::isFavorite() const { + return m_isFavorite.value(); +} + +void GetTrailersParams::setIsFavorite(bool newIsFavorite) { + m_isFavorite = newIsFavorite; +} + +bool GetTrailersParams::isFavoriteNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isFavorite.has_value(); +} + +void GetTrailersParams::setIsFavoriteNull() { + m_isFavorite = std::nullopt; +} + + +const bool &GetTrailersParams::isHd() const { + return m_isHd.value(); +} + +void GetTrailersParams::setIsHd(bool newIsHd) { + m_isHd = newIsHd; +} + +bool GetTrailersParams::isHdNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isHd.has_value(); +} + +void GetTrailersParams::setIsHdNull() { + m_isHd = std::nullopt; +} + + +const bool &GetTrailersParams::isLocked() const { + return m_isLocked.value(); +} + +void GetTrailersParams::setIsLocked(bool newIsLocked) { + m_isLocked = newIsLocked; +} + +bool GetTrailersParams::isLockedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isLocked.has_value(); +} + +void GetTrailersParams::setIsLockedNull() { + m_isLocked = std::nullopt; +} + + +const bool &GetTrailersParams::isMissing() const { + return m_isMissing.value(); +} + +void GetTrailersParams::setIsMissing(bool newIsMissing) { + m_isMissing = newIsMissing; +} + +bool GetTrailersParams::isMissingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isMissing.has_value(); +} + +void GetTrailersParams::setIsMissingNull() { + m_isMissing = std::nullopt; +} + + +const bool &GetTrailersParams::isPlaceHolder() const { + return m_isPlaceHolder.value(); +} + +void GetTrailersParams::setIsPlaceHolder(bool newIsPlaceHolder) { + m_isPlaceHolder = newIsPlaceHolder; +} + +bool GetTrailersParams::isPlaceHolderNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isPlaceHolder.has_value(); +} + +void GetTrailersParams::setIsPlaceHolderNull() { + m_isPlaceHolder = std::nullopt; +} + + +const bool &GetTrailersParams::isPlayed() const { + return m_isPlayed.value(); +} + +void GetTrailersParams::setIsPlayed(bool newIsPlayed) { + m_isPlayed = newIsPlayed; +} + +bool GetTrailersParams::isPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isPlayed.has_value(); +} + +void GetTrailersParams::setIsPlayedNull() { + m_isPlayed = std::nullopt; +} + + +const bool &GetTrailersParams::isUnaired() const { + return m_isUnaired.value(); +} + +void GetTrailersParams::setIsUnaired(bool newIsUnaired) { + m_isUnaired = newIsUnaired; +} + +bool GetTrailersParams::isUnairedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isUnaired.has_value(); +} + +void GetTrailersParams::setIsUnairedNull() { + m_isUnaired = std::nullopt; +} + + +const qint32 &GetTrailersParams::limit() const { + return m_limit.value(); +} + +void GetTrailersParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetTrailersParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetTrailersParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QList &GetTrailersParams::locationTypes() const { + return m_locationTypes; +} + +void GetTrailersParams::setLocationTypes(QList newLocationTypes) { + m_locationTypes = newLocationTypes; +} + +bool GetTrailersParams::locationTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_locationTypes.size() == 0; +} + +void GetTrailersParams::setLocationTypesNull() { + m_locationTypes.clear(); +} + + +const qint32 &GetTrailersParams::maxHeight() const { + return m_maxHeight.value(); +} + +void GetTrailersParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool GetTrailersParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void GetTrailersParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const QString &GetTrailersParams::maxOfficialRating() const { + return m_maxOfficialRating; +} + +void GetTrailersParams::setMaxOfficialRating(QString newMaxOfficialRating) { + m_maxOfficialRating = newMaxOfficialRating; +} + +bool GetTrailersParams::maxOfficialRatingNull() const { + // Nullable: true + // Type Nullable: true + + + return m_maxOfficialRating.isNull(); +} + +void GetTrailersParams::setMaxOfficialRatingNull() { + m_maxOfficialRating.clear(); +} + + +const QDateTime &GetTrailersParams::maxPremiereDate() const { + return m_maxPremiereDate; +} + +void GetTrailersParams::setMaxPremiereDate(QDateTime newMaxPremiereDate) { + m_maxPremiereDate = newMaxPremiereDate; +} + +bool GetTrailersParams::maxPremiereDateNull() const { + // Nullable: true + // Type Nullable: true + + + return m_maxPremiereDate.isNull(); +} + +void GetTrailersParams::setMaxPremiereDateNull() { + m_maxPremiereDate= QDateTime(); +} + + +const qint32 &GetTrailersParams::maxWidth() const { + return m_maxWidth.value(); +} + +void GetTrailersParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool GetTrailersParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void GetTrailersParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const QStringList &GetTrailersParams::mediaTypes() const { + return m_mediaTypes; +} + +void GetTrailersParams::setMediaTypes(QStringList newMediaTypes) { + m_mediaTypes = newMediaTypes; +} + +bool GetTrailersParams::mediaTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaTypes.size() == 0; +} + +void GetTrailersParams::setMediaTypesNull() { + m_mediaTypes.clear(); +} + + +const double &GetTrailersParams::minCommunityRating() const { + return m_minCommunityRating.value(); +} + +void GetTrailersParams::setMinCommunityRating(double newMinCommunityRating) { + m_minCommunityRating = newMinCommunityRating; +} + +bool GetTrailersParams::minCommunityRatingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minCommunityRating.has_value(); +} + +void GetTrailersParams::setMinCommunityRatingNull() { + m_minCommunityRating = std::nullopt; +} + + +const double &GetTrailersParams::minCriticRating() const { + return m_minCriticRating.value(); +} + +void GetTrailersParams::setMinCriticRating(double newMinCriticRating) { + m_minCriticRating = newMinCriticRating; +} + +bool GetTrailersParams::minCriticRatingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minCriticRating.has_value(); +} + +void GetTrailersParams::setMinCriticRatingNull() { + m_minCriticRating = std::nullopt; +} + + +const QDateTime &GetTrailersParams::minDateLastSaved() const { + return m_minDateLastSaved; +} + +void GetTrailersParams::setMinDateLastSaved(QDateTime newMinDateLastSaved) { + m_minDateLastSaved = newMinDateLastSaved; +} + +bool GetTrailersParams::minDateLastSavedNull() const { + // Nullable: true + // Type Nullable: true + + + return m_minDateLastSaved.isNull(); +} + +void GetTrailersParams::setMinDateLastSavedNull() { + m_minDateLastSaved= QDateTime(); +} + + +const QDateTime &GetTrailersParams::minDateLastSavedForUser() const { + return m_minDateLastSavedForUser; +} + +void GetTrailersParams::setMinDateLastSavedForUser(QDateTime newMinDateLastSavedForUser) { + m_minDateLastSavedForUser = newMinDateLastSavedForUser; +} + +bool GetTrailersParams::minDateLastSavedForUserNull() const { + // Nullable: true + // Type Nullable: true + + + return m_minDateLastSavedForUser.isNull(); +} + +void GetTrailersParams::setMinDateLastSavedForUserNull() { + m_minDateLastSavedForUser= QDateTime(); +} + + +const qint32 &GetTrailersParams::minHeight() const { + return m_minHeight.value(); +} + +void GetTrailersParams::setMinHeight(qint32 newMinHeight) { + m_minHeight = newMinHeight; +} + +bool GetTrailersParams::minHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minHeight.has_value(); +} + +void GetTrailersParams::setMinHeightNull() { + m_minHeight = std::nullopt; +} + + +const QString &GetTrailersParams::minOfficialRating() const { + return m_minOfficialRating; +} + +void GetTrailersParams::setMinOfficialRating(QString newMinOfficialRating) { + m_minOfficialRating = newMinOfficialRating; +} + +bool GetTrailersParams::minOfficialRatingNull() const { + // Nullable: true + // Type Nullable: true + + + return m_minOfficialRating.isNull(); +} + +void GetTrailersParams::setMinOfficialRatingNull() { + m_minOfficialRating.clear(); +} + + +const QDateTime &GetTrailersParams::minPremiereDate() const { + return m_minPremiereDate; +} + +void GetTrailersParams::setMinPremiereDate(QDateTime newMinPremiereDate) { + m_minPremiereDate = newMinPremiereDate; +} + +bool GetTrailersParams::minPremiereDateNull() const { + // Nullable: true + // Type Nullable: true + + + return m_minPremiereDate.isNull(); +} + +void GetTrailersParams::setMinPremiereDateNull() { + m_minPremiereDate= QDateTime(); +} + + +const qint32 &GetTrailersParams::minWidth() const { + return m_minWidth.value(); +} + +void GetTrailersParams::setMinWidth(qint32 newMinWidth) { + m_minWidth = newMinWidth; +} + +bool GetTrailersParams::minWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minWidth.has_value(); +} + +void GetTrailersParams::setMinWidthNull() { + m_minWidth = std::nullopt; +} + + +const QString &GetTrailersParams::nameLessThan() const { + return m_nameLessThan; +} + +void GetTrailersParams::setNameLessThan(QString newNameLessThan) { + m_nameLessThan = newNameLessThan; +} + +bool GetTrailersParams::nameLessThanNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameLessThan.isNull(); +} + +void GetTrailersParams::setNameLessThanNull() { + m_nameLessThan.clear(); +} + + +const QString &GetTrailersParams::nameStartsWith() const { + return m_nameStartsWith; +} + +void GetTrailersParams::setNameStartsWith(QString newNameStartsWith) { + m_nameStartsWith = newNameStartsWith; +} + +bool GetTrailersParams::nameStartsWithNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameStartsWith.isNull(); +} + +void GetTrailersParams::setNameStartsWithNull() { + m_nameStartsWith.clear(); +} + + +const QString &GetTrailersParams::nameStartsWithOrGreater() const { + return m_nameStartsWithOrGreater; +} + +void GetTrailersParams::setNameStartsWithOrGreater(QString newNameStartsWithOrGreater) { + m_nameStartsWithOrGreater = newNameStartsWithOrGreater; +} + +bool GetTrailersParams::nameStartsWithOrGreaterNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nameStartsWithOrGreater.isNull(); +} + +void GetTrailersParams::setNameStartsWithOrGreaterNull() { + m_nameStartsWithOrGreater.clear(); +} + + +const QStringList &GetTrailersParams::officialRatings() const { + return m_officialRatings; +} + +void GetTrailersParams::setOfficialRatings(QStringList newOfficialRatings) { + m_officialRatings = newOfficialRatings; +} + +bool GetTrailersParams::officialRatingsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_officialRatings.size() == 0; +} + +void GetTrailersParams::setOfficialRatingsNull() { + m_officialRatings.clear(); +} + + +const QString &GetTrailersParams::parentId() const { + return m_parentId; +} + +void GetTrailersParams::setParentId(QString newParentId) { + m_parentId = newParentId; +} + +bool GetTrailersParams::parentIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_parentId.isNull(); +} + +void GetTrailersParams::setParentIdNull() { + m_parentId.clear(); +} + + +const qint32 &GetTrailersParams::parentIndexNumber() const { + return m_parentIndexNumber.value(); +} + +void GetTrailersParams::setParentIndexNumber(qint32 newParentIndexNumber) { + m_parentIndexNumber = newParentIndexNumber; +} + +bool GetTrailersParams::parentIndexNumberNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_parentIndexNumber.has_value(); +} + +void GetTrailersParams::setParentIndexNumberNull() { + m_parentIndexNumber = std::nullopt; +} + + +const QString &GetTrailersParams::person() const { + return m_person; +} + +void GetTrailersParams::setPerson(QString newPerson) { + m_person = newPerson; +} + +bool GetTrailersParams::personNull() const { + // Nullable: true + // Type Nullable: true + + + return m_person.isNull(); +} + +void GetTrailersParams::setPersonNull() { + m_person.clear(); +} + + +const QStringList &GetTrailersParams::personIds() const { + return m_personIds; +} + +void GetTrailersParams::setPersonIds(QStringList newPersonIds) { + m_personIds = newPersonIds; +} + +bool GetTrailersParams::personIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_personIds.size() == 0; +} + +void GetTrailersParams::setPersonIdsNull() { + m_personIds.clear(); +} + + +const QStringList &GetTrailersParams::personTypes() const { + return m_personTypes; +} + +void GetTrailersParams::setPersonTypes(QStringList newPersonTypes) { + m_personTypes = newPersonTypes; +} + +bool GetTrailersParams::personTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_personTypes.size() == 0; +} + +void GetTrailersParams::setPersonTypesNull() { + m_personTypes.clear(); +} + + +const bool &GetTrailersParams::recursive() const { + return m_recursive.value(); +} + +void GetTrailersParams::setRecursive(bool newRecursive) { + m_recursive = newRecursive; +} + +bool GetTrailersParams::recursiveNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_recursive.has_value(); +} + +void GetTrailersParams::setRecursiveNull() { + m_recursive = std::nullopt; +} + + +const QString &GetTrailersParams::searchTerm() const { + return m_searchTerm; +} + +void GetTrailersParams::setSearchTerm(QString newSearchTerm) { + m_searchTerm = newSearchTerm; +} + +bool GetTrailersParams::searchTermNull() const { + // Nullable: true + // Type Nullable: true + + + return m_searchTerm.isNull(); +} + +void GetTrailersParams::setSearchTermNull() { + m_searchTerm.clear(); +} + + +const QList &GetTrailersParams::seriesStatus() const { + return m_seriesStatus; +} + +void GetTrailersParams::setSeriesStatus(QList newSeriesStatus) { + m_seriesStatus = newSeriesStatus; +} + +bool GetTrailersParams::seriesStatusNull() const { + // Nullable: true + // Type Nullable: true + + + return m_seriesStatus.size() == 0; +} + +void GetTrailersParams::setSeriesStatusNull() { + m_seriesStatus.clear(); +} + + +const QString &GetTrailersParams::sortBy() const { + return m_sortBy; +} + +void GetTrailersParams::setSortBy(QString newSortBy) { + m_sortBy = newSortBy; +} + +bool GetTrailersParams::sortByNull() const { + // Nullable: true + // Type Nullable: true + + + return m_sortBy.isNull(); +} + +void GetTrailersParams::setSortByNull() { + m_sortBy.clear(); +} + + +const QString &GetTrailersParams::sortOrder() const { + return m_sortOrder; +} + +void GetTrailersParams::setSortOrder(QString newSortOrder) { + m_sortOrder = newSortOrder; +} + +bool GetTrailersParams::sortOrderNull() const { + // Nullable: true + // Type Nullable: true + + + return m_sortOrder.isNull(); +} + +void GetTrailersParams::setSortOrderNull() { + m_sortOrder.clear(); +} + + +const qint32 &GetTrailersParams::startIndex() const { + return m_startIndex.value(); +} + +void GetTrailersParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetTrailersParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetTrailersParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const QStringList &GetTrailersParams::studioIds() const { + return m_studioIds; +} + +void GetTrailersParams::setStudioIds(QStringList newStudioIds) { + m_studioIds = newStudioIds; +} + +bool GetTrailersParams::studioIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_studioIds.size() == 0; +} + +void GetTrailersParams::setStudioIdsNull() { + m_studioIds.clear(); +} + + +const QStringList &GetTrailersParams::studios() const { + return m_studios; +} + +void GetTrailersParams::setStudios(QStringList newStudios) { + m_studios = newStudios; +} + +bool GetTrailersParams::studiosNull() const { + // Nullable: true + // Type Nullable: true + + + return m_studios.size() == 0; +} + +void GetTrailersParams::setStudiosNull() { + m_studios.clear(); +} + + +const QStringList &GetTrailersParams::tags() const { + return m_tags; +} + +void GetTrailersParams::setTags(QStringList newTags) { + m_tags = newTags; +} + +bool GetTrailersParams::tagsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tags.size() == 0; +} + +void GetTrailersParams::setTagsNull() { + m_tags.clear(); +} + + +const QString &GetTrailersParams::userId() const { + return m_userId; +} + +void GetTrailersParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetTrailersParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetTrailersParams::setUserIdNull() { + m_userId.clear(); +} + + +const QList &GetTrailersParams::videoTypes() const { + return m_videoTypes; +} + +void GetTrailersParams::setVideoTypes(QList newVideoTypes) { + m_videoTypes = newVideoTypes; +} + +bool GetTrailersParams::videoTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoTypes.size() == 0; +} + +void GetTrailersParams::setVideoTypesNull() { + m_videoTypes.clear(); +} + + +const QList &GetTrailersParams::years() const { + return m_years; +} + +void GetTrailersParams::setYears(QList newYears) { + m_years = newYears; +} + +bool GetTrailersParams::yearsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_years.size() == 0; +} + +void GetTrailersParams::setYearsNull() { + m_years.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/gettunerhosttypesparams.cpp b/core/src/loader/gettunerhosttypesparams.cpp new file mode 100644 index 0000000..7058825 --- /dev/null +++ b/core/src/loader/gettunerhosttypesparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/gettunerhosttypesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetTunerHostTypesParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getuniversalaudiostreamparams.cpp b/core/src/loader/getuniversalaudiostreamparams.cpp new file mode 100644 index 0000000..9d3ea27 --- /dev/null +++ b/core/src/loader/getuniversalaudiostreamparams.cpp @@ -0,0 +1,407 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getuniversalaudiostreamparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetUniversalAudioStreamParams + +const QString &GetUniversalAudioStreamParams::itemId() const { + return m_itemId; +} + +void GetUniversalAudioStreamParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const qint32 &GetUniversalAudioStreamParams::audioBitRate() const { + return m_audioBitRate.value(); +} + +void GetUniversalAudioStreamParams::setAudioBitRate(qint32 newAudioBitRate) { + m_audioBitRate = newAudioBitRate; +} + +bool GetUniversalAudioStreamParams::audioBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioBitRate.has_value(); +} + +void GetUniversalAudioStreamParams::setAudioBitRateNull() { + m_audioBitRate = std::nullopt; +} + + +const QString &GetUniversalAudioStreamParams::audioCodec() const { + return m_audioCodec; +} + +void GetUniversalAudioStreamParams::setAudioCodec(QString newAudioCodec) { + m_audioCodec = newAudioCodec; +} + +bool GetUniversalAudioStreamParams::audioCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_audioCodec.isNull(); +} + +void GetUniversalAudioStreamParams::setAudioCodecNull() { + m_audioCodec.clear(); +} + + +const bool &GetUniversalAudioStreamParams::breakOnNonKeyFrames() const { + return m_breakOnNonKeyFrames.value(); +} + +void GetUniversalAudioStreamParams::setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames) { + m_breakOnNonKeyFrames = newBreakOnNonKeyFrames; +} + +bool GetUniversalAudioStreamParams::breakOnNonKeyFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_breakOnNonKeyFrames.has_value(); +} + +void GetUniversalAudioStreamParams::setBreakOnNonKeyFramesNull() { + m_breakOnNonKeyFrames = std::nullopt; +} + + +const QStringList &GetUniversalAudioStreamParams::container() const { + return m_container; +} + +void GetUniversalAudioStreamParams::setContainer(QStringList newContainer) { + m_container = newContainer; +} + +bool GetUniversalAudioStreamParams::containerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_container.size() == 0; +} + +void GetUniversalAudioStreamParams::setContainerNull() { + m_container.clear(); +} + + +const QString &GetUniversalAudioStreamParams::deviceId() const { + return m_deviceId; +} + +void GetUniversalAudioStreamParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool GetUniversalAudioStreamParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void GetUniversalAudioStreamParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const bool &GetUniversalAudioStreamParams::enableRedirection() const { + return m_enableRedirection.value(); +} + +void GetUniversalAudioStreamParams::setEnableRedirection(bool newEnableRedirection) { + m_enableRedirection = newEnableRedirection; +} + +bool GetUniversalAudioStreamParams::enableRedirectionNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableRedirection.has_value(); +} + +void GetUniversalAudioStreamParams::setEnableRedirectionNull() { + m_enableRedirection = std::nullopt; +} + + +const bool &GetUniversalAudioStreamParams::enableRemoteMedia() const { + return m_enableRemoteMedia.value(); +} + +void GetUniversalAudioStreamParams::setEnableRemoteMedia(bool newEnableRemoteMedia) { + m_enableRemoteMedia = newEnableRemoteMedia; +} + +bool GetUniversalAudioStreamParams::enableRemoteMediaNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableRemoteMedia.has_value(); +} + +void GetUniversalAudioStreamParams::setEnableRemoteMediaNull() { + m_enableRemoteMedia = std::nullopt; +} + + +const qint32 &GetUniversalAudioStreamParams::maxAudioBitDepth() const { + return m_maxAudioBitDepth.value(); +} + +void GetUniversalAudioStreamParams::setMaxAudioBitDepth(qint32 newMaxAudioBitDepth) { + m_maxAudioBitDepth = newMaxAudioBitDepth; +} + +bool GetUniversalAudioStreamParams::maxAudioBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioBitDepth.has_value(); +} + +void GetUniversalAudioStreamParams::setMaxAudioBitDepthNull() { + m_maxAudioBitDepth = std::nullopt; +} + + +const qint32 &GetUniversalAudioStreamParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void GetUniversalAudioStreamParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool GetUniversalAudioStreamParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void GetUniversalAudioStreamParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const qint32 &GetUniversalAudioStreamParams::maxAudioSampleRate() const { + return m_maxAudioSampleRate.value(); +} + +void GetUniversalAudioStreamParams::setMaxAudioSampleRate(qint32 newMaxAudioSampleRate) { + m_maxAudioSampleRate = newMaxAudioSampleRate; +} + +bool GetUniversalAudioStreamParams::maxAudioSampleRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioSampleRate.has_value(); +} + +void GetUniversalAudioStreamParams::setMaxAudioSampleRateNull() { + m_maxAudioSampleRate = std::nullopt; +} + + +const qint32 &GetUniversalAudioStreamParams::maxStreamingBitrate() const { + return m_maxStreamingBitrate.value(); +} + +void GetUniversalAudioStreamParams::setMaxStreamingBitrate(qint32 newMaxStreamingBitrate) { + m_maxStreamingBitrate = newMaxStreamingBitrate; +} + +bool GetUniversalAudioStreamParams::maxStreamingBitrateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxStreamingBitrate.has_value(); +} + +void GetUniversalAudioStreamParams::setMaxStreamingBitrateNull() { + m_maxStreamingBitrate = std::nullopt; +} + + +const QString &GetUniversalAudioStreamParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void GetUniversalAudioStreamParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + +bool GetUniversalAudioStreamParams::mediaSourceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaSourceId.isNull(); +} + +void GetUniversalAudioStreamParams::setMediaSourceIdNull() { + m_mediaSourceId.clear(); +} + + +const qint64 &GetUniversalAudioStreamParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void GetUniversalAudioStreamParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool GetUniversalAudioStreamParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void GetUniversalAudioStreamParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const qint32 &GetUniversalAudioStreamParams::transcodingAudioChannels() const { + return m_transcodingAudioChannels.value(); +} + +void GetUniversalAudioStreamParams::setTranscodingAudioChannels(qint32 newTranscodingAudioChannels) { + m_transcodingAudioChannels = newTranscodingAudioChannels; +} + +bool GetUniversalAudioStreamParams::transcodingAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_transcodingAudioChannels.has_value(); +} + +void GetUniversalAudioStreamParams::setTranscodingAudioChannelsNull() { + m_transcodingAudioChannels = std::nullopt; +} + + +const QString &GetUniversalAudioStreamParams::transcodingContainer() const { + return m_transcodingContainer; +} + +void GetUniversalAudioStreamParams::setTranscodingContainer(QString newTranscodingContainer) { + m_transcodingContainer = newTranscodingContainer; +} + +bool GetUniversalAudioStreamParams::transcodingContainerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodingContainer.isNull(); +} + +void GetUniversalAudioStreamParams::setTranscodingContainerNull() { + m_transcodingContainer.clear(); +} + + +const QString &GetUniversalAudioStreamParams::transcodingProtocol() const { + return m_transcodingProtocol; +} + +void GetUniversalAudioStreamParams::setTranscodingProtocol(QString newTranscodingProtocol) { + m_transcodingProtocol = newTranscodingProtocol; +} + +bool GetUniversalAudioStreamParams::transcodingProtocolNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodingProtocol.isNull(); +} + +void GetUniversalAudioStreamParams::setTranscodingProtocolNull() { + m_transcodingProtocol.clear(); +} + + +const QString &GetUniversalAudioStreamParams::userId() const { + return m_userId; +} + +void GetUniversalAudioStreamParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetUniversalAudioStreamParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetUniversalAudioStreamParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getupcomingepisodesparams.cpp b/core/src/loader/getupcomingepisodesparams.cpp new file mode 100644 index 0000000..fb1d5bf --- /dev/null +++ b/core/src/loader/getupcomingepisodesparams.cpp @@ -0,0 +1,230 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getupcomingepisodesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetUpcomingEpisodesParams + +const QList &GetUpcomingEpisodesParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetUpcomingEpisodesParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetUpcomingEpisodesParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetUpcomingEpisodesParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetUpcomingEpisodesParams::enableImges() const { + return m_enableImges.value(); +} + +void GetUpcomingEpisodesParams::setEnableImges(bool newEnableImges) { + m_enableImges = newEnableImges; +} + +bool GetUpcomingEpisodesParams::enableImgesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImges.has_value(); +} + +void GetUpcomingEpisodesParams::setEnableImgesNull() { + m_enableImges = std::nullopt; +} + + +const bool &GetUpcomingEpisodesParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetUpcomingEpisodesParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetUpcomingEpisodesParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetUpcomingEpisodesParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QList &GetUpcomingEpisodesParams::fields() const { + return m_fields; +} + +void GetUpcomingEpisodesParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetUpcomingEpisodesParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetUpcomingEpisodesParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetUpcomingEpisodesParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetUpcomingEpisodesParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetUpcomingEpisodesParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetUpcomingEpisodesParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const qint32 &GetUpcomingEpisodesParams::limit() const { + return m_limit.value(); +} + +void GetUpcomingEpisodesParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetUpcomingEpisodesParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetUpcomingEpisodesParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QString &GetUpcomingEpisodesParams::parentId() const { + return m_parentId; +} + +void GetUpcomingEpisodesParams::setParentId(QString newParentId) { + m_parentId = newParentId; +} + +bool GetUpcomingEpisodesParams::parentIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_parentId.isNull(); +} + +void GetUpcomingEpisodesParams::setParentIdNull() { + m_parentId.clear(); +} + + +const qint32 &GetUpcomingEpisodesParams::startIndex() const { + return m_startIndex.value(); +} + +void GetUpcomingEpisodesParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetUpcomingEpisodesParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetUpcomingEpisodesParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const QString &GetUpcomingEpisodesParams::userId() const { + return m_userId; +} + +void GetUpcomingEpisodesParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetUpcomingEpisodesParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetUpcomingEpisodesParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getuserbyidparams.cpp b/core/src/loader/getuserbyidparams.cpp new file mode 100644 index 0000000..0c903ea --- /dev/null +++ b/core/src/loader/getuserbyidparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getuserbyidparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetUserByIdParams + +const QString &GetUserByIdParams::userId() const { + return m_userId; +} + +void GetUserByIdParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getuserimagebyindexparams.cpp b/core/src/loader/getuserimagebyindexparams.cpp new file mode 100644 index 0000000..eab2c58 --- /dev/null +++ b/core/src/loader/getuserimagebyindexparams.cpp @@ -0,0 +1,362 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getuserimagebyindexparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetUserImageByIndexParams + +const qint32 &GetUserImageByIndexParams::imageIndex() const { + return m_imageIndex; +} + +void GetUserImageByIndexParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + + +const ImageType &GetUserImageByIndexParams::imageType() const { + return m_imageType; +} + +void GetUserImageByIndexParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &GetUserImageByIndexParams::userId() const { + return m_userId; +} + +void GetUserImageByIndexParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + +const bool &GetUserImageByIndexParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void GetUserImageByIndexParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool GetUserImageByIndexParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void GetUserImageByIndexParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &GetUserImageByIndexParams::backgroundColor() const { + return m_backgroundColor; +} + +void GetUserImageByIndexParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool GetUserImageByIndexParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void GetUserImageByIndexParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &GetUserImageByIndexParams::blur() const { + return m_blur.value(); +} + +void GetUserImageByIndexParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool GetUserImageByIndexParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void GetUserImageByIndexParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &GetUserImageByIndexParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void GetUserImageByIndexParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool GetUserImageByIndexParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void GetUserImageByIndexParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &GetUserImageByIndexParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void GetUserImageByIndexParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool GetUserImageByIndexParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void GetUserImageByIndexParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &GetUserImageByIndexParams::format() const { + return m_format; +} + +void GetUserImageByIndexParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool GetUserImageByIndexParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void GetUserImageByIndexParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &GetUserImageByIndexParams::height() const { + return m_height.value(); +} + +void GetUserImageByIndexParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetUserImageByIndexParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetUserImageByIndexParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &GetUserImageByIndexParams::maxHeight() const { + return m_maxHeight.value(); +} + +void GetUserImageByIndexParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool GetUserImageByIndexParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void GetUserImageByIndexParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &GetUserImageByIndexParams::maxWidth() const { + return m_maxWidth.value(); +} + +void GetUserImageByIndexParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool GetUserImageByIndexParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void GetUserImageByIndexParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &GetUserImageByIndexParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void GetUserImageByIndexParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool GetUserImageByIndexParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void GetUserImageByIndexParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &GetUserImageByIndexParams::quality() const { + return m_quality.value(); +} + +void GetUserImageByIndexParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool GetUserImageByIndexParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void GetUserImageByIndexParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &GetUserImageByIndexParams::tag() const { + return m_tag; +} + +void GetUserImageByIndexParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetUserImageByIndexParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetUserImageByIndexParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &GetUserImageByIndexParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void GetUserImageByIndexParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool GetUserImageByIndexParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void GetUserImageByIndexParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &GetUserImageByIndexParams::width() const { + return m_width.value(); +} + +void GetUserImageByIndexParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetUserImageByIndexParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetUserImageByIndexParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getuserimageparams.cpp b/core/src/loader/getuserimageparams.cpp new file mode 100644 index 0000000..375fd0a --- /dev/null +++ b/core/src/loader/getuserimageparams.cpp @@ -0,0 +1,374 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getuserimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetUserImageParams + +const ImageType &GetUserImageParams::imageType() const { + return m_imageType; +} + +void GetUserImageParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &GetUserImageParams::userId() const { + return m_userId; +} + +void GetUserImageParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + +const bool &GetUserImageParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void GetUserImageParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool GetUserImageParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void GetUserImageParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &GetUserImageParams::backgroundColor() const { + return m_backgroundColor; +} + +void GetUserImageParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool GetUserImageParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void GetUserImageParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &GetUserImageParams::blur() const { + return m_blur.value(); +} + +void GetUserImageParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool GetUserImageParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void GetUserImageParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &GetUserImageParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void GetUserImageParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool GetUserImageParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void GetUserImageParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &GetUserImageParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void GetUserImageParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool GetUserImageParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void GetUserImageParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &GetUserImageParams::format() const { + return m_format; +} + +void GetUserImageParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool GetUserImageParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void GetUserImageParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &GetUserImageParams::height() const { + return m_height.value(); +} + +void GetUserImageParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetUserImageParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetUserImageParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &GetUserImageParams::imageIndex() const { + return m_imageIndex.value(); +} + +void GetUserImageParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + +bool GetUserImageParams::imageIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageIndex.has_value(); +} + +void GetUserImageParams::setImageIndexNull() { + m_imageIndex = std::nullopt; +} + + +const qint32 &GetUserImageParams::maxHeight() const { + return m_maxHeight.value(); +} + +void GetUserImageParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool GetUserImageParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void GetUserImageParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &GetUserImageParams::maxWidth() const { + return m_maxWidth.value(); +} + +void GetUserImageParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool GetUserImageParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void GetUserImageParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &GetUserImageParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void GetUserImageParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool GetUserImageParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void GetUserImageParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &GetUserImageParams::quality() const { + return m_quality.value(); +} + +void GetUserImageParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool GetUserImageParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void GetUserImageParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &GetUserImageParams::tag() const { + return m_tag; +} + +void GetUserImageParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetUserImageParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetUserImageParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &GetUserImageParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void GetUserImageParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool GetUserImageParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void GetUserImageParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &GetUserImageParams::width() const { + return m_width.value(); +} + +void GetUserImageParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetUserImageParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetUserImageParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getusersparams.cpp b/core/src/loader/getusersparams.cpp new file mode 100644 index 0000000..b1ccc4f --- /dev/null +++ b/core/src/loader/getusersparams.cpp @@ -0,0 +1,83 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getusersparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetUsersParams + +const bool &GetUsersParams::isDisabled() const { + return m_isDisabled.value(); +} + +void GetUsersParams::setIsDisabled(bool newIsDisabled) { + m_isDisabled = newIsDisabled; +} + +bool GetUsersParams::isDisabledNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isDisabled.has_value(); +} + +void GetUsersParams::setIsDisabledNull() { + m_isDisabled = std::nullopt; +} + + +const bool &GetUsersParams::isHidden() const { + return m_isHidden.value(); +} + +void GetUsersParams::setIsHidden(bool newIsHidden) { + m_isHidden = newIsHidden; +} + +bool GetUsersParams::isHiddenNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isHidden.has_value(); +} + +void GetUsersParams::setIsHiddenNull() { + m_isHidden = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getuserviewsparams.cpp b/core/src/loader/getuserviewsparams.cpp new file mode 100644 index 0000000..3fe82c5 --- /dev/null +++ b/core/src/loader/getuserviewsparams.cpp @@ -0,0 +1,113 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getuserviewsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetUserViewsParams + +const QString &GetUserViewsParams::userId() const { + return m_userId; +} + +void GetUserViewsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + +const bool &GetUserViewsParams::includeExternalContent() const { + return m_includeExternalContent.value(); +} + +void GetUserViewsParams::setIncludeExternalContent(bool newIncludeExternalContent) { + m_includeExternalContent = newIncludeExternalContent; +} + +bool GetUserViewsParams::includeExternalContentNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_includeExternalContent.has_value(); +} + +void GetUserViewsParams::setIncludeExternalContentNull() { + m_includeExternalContent = std::nullopt; +} + + +const bool &GetUserViewsParams::includeHidden() const { + return m_includeHidden.value(); +} + +void GetUserViewsParams::setIncludeHidden(bool newIncludeHidden) { + m_includeHidden = newIncludeHidden; +} + +bool GetUserViewsParams::includeHiddenNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_includeHidden.has_value(); +} + +void GetUserViewsParams::setIncludeHiddenNull() { + m_includeHidden = std::nullopt; +} + + +const QStringList &GetUserViewsParams::presetViews() const { + return m_presetViews; +} + +void GetUserViewsParams::setPresetViews(QStringList newPresetViews) { + m_presetViews = newPresetViews; +} + +bool GetUserViewsParams::presetViewsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_presetViews.size() == 0; +} + +void GetUserViewsParams::setPresetViewsNull() { + m_presetViews.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getutctimeparams.cpp b/core/src/loader/getutctimeparams.cpp new file mode 100644 index 0000000..3e3cbf0 --- /dev/null +++ b/core/src/loader/getutctimeparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getutctimeparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetUtcTimeParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getvarianthlsaudioplaylistparams.cpp b/core/src/loader/getvarianthlsaudioplaylistparams.cpp new file mode 100644 index 0000000..a9925b2 --- /dev/null +++ b/core/src/loader/getvarianthlsaudioplaylistparams.cpp @@ -0,0 +1,1058 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getvarianthlsaudioplaylistparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetVariantHlsAudioPlaylistParams + +const QString &GetVariantHlsAudioPlaylistParams::itemId() const { + return m_itemId; +} + +void GetVariantHlsAudioPlaylistParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const bool &GetVariantHlsAudioPlaylistParams::allowAudioStreamCopy() const { + return m_allowAudioStreamCopy.value(); +} + +void GetVariantHlsAudioPlaylistParams::setAllowAudioStreamCopy(bool newAllowAudioStreamCopy) { + m_allowAudioStreamCopy = newAllowAudioStreamCopy; +} + +bool GetVariantHlsAudioPlaylistParams::allowAudioStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowAudioStreamCopy.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setAllowAudioStreamCopyNull() { + m_allowAudioStreamCopy = std::nullopt; +} + + +const bool &GetVariantHlsAudioPlaylistParams::allowVideoStreamCopy() const { + return m_allowVideoStreamCopy.value(); +} + +void GetVariantHlsAudioPlaylistParams::setAllowVideoStreamCopy(bool newAllowVideoStreamCopy) { + m_allowVideoStreamCopy = newAllowVideoStreamCopy; +} + +bool GetVariantHlsAudioPlaylistParams::allowVideoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowVideoStreamCopy.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setAllowVideoStreamCopyNull() { + m_allowVideoStreamCopy = std::nullopt; +} + + +const qint32 &GetVariantHlsAudioPlaylistParams::audioBitRate() const { + return m_audioBitRate.value(); +} + +void GetVariantHlsAudioPlaylistParams::setAudioBitRate(qint32 newAudioBitRate) { + m_audioBitRate = newAudioBitRate; +} + +bool GetVariantHlsAudioPlaylistParams::audioBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioBitRate.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setAudioBitRateNull() { + m_audioBitRate = std::nullopt; +} + + +const qint32 &GetVariantHlsAudioPlaylistParams::audioChannels() const { + return m_audioChannels.value(); +} + +void GetVariantHlsAudioPlaylistParams::setAudioChannels(qint32 newAudioChannels) { + m_audioChannels = newAudioChannels; +} + +bool GetVariantHlsAudioPlaylistParams::audioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioChannels.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setAudioChannelsNull() { + m_audioChannels = std::nullopt; +} + + +const QString &GetVariantHlsAudioPlaylistParams::audioCodec() const { + return m_audioCodec; +} + +void GetVariantHlsAudioPlaylistParams::setAudioCodec(QString newAudioCodec) { + m_audioCodec = newAudioCodec; +} + +bool GetVariantHlsAudioPlaylistParams::audioCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_audioCodec.isNull(); +} + +void GetVariantHlsAudioPlaylistParams::setAudioCodecNull() { + m_audioCodec.clear(); +} + + +const qint32 &GetVariantHlsAudioPlaylistParams::audioSampleRate() const { + return m_audioSampleRate.value(); +} + +void GetVariantHlsAudioPlaylistParams::setAudioSampleRate(qint32 newAudioSampleRate) { + m_audioSampleRate = newAudioSampleRate; +} + +bool GetVariantHlsAudioPlaylistParams::audioSampleRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioSampleRate.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setAudioSampleRateNull() { + m_audioSampleRate = std::nullopt; +} + + +const qint32 &GetVariantHlsAudioPlaylistParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void GetVariantHlsAudioPlaylistParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool GetVariantHlsAudioPlaylistParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &GetVariantHlsAudioPlaylistParams::breakOnNonKeyFrames() const { + return m_breakOnNonKeyFrames.value(); +} + +void GetVariantHlsAudioPlaylistParams::setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames) { + m_breakOnNonKeyFrames = newBreakOnNonKeyFrames; +} + +bool GetVariantHlsAudioPlaylistParams::breakOnNonKeyFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_breakOnNonKeyFrames.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setBreakOnNonKeyFramesNull() { + m_breakOnNonKeyFrames = std::nullopt; +} + + +const EncodingContext &GetVariantHlsAudioPlaylistParams::context() const { + return m_context; +} + +void GetVariantHlsAudioPlaylistParams::setContext(EncodingContext newContext) { + m_context = newContext; +} + +bool GetVariantHlsAudioPlaylistParams::contextNull() const { + // Nullable: true + // Type Nullable: true + + + return m_context== EncodingContext::EnumNotSet; +} + +void GetVariantHlsAudioPlaylistParams::setContextNull() { + m_context= EncodingContext::EnumNotSet; +} + + +const bool &GetVariantHlsAudioPlaylistParams::copyTimestamps() const { + return m_copyTimestamps.value(); +} + +void GetVariantHlsAudioPlaylistParams::setCopyTimestamps(bool newCopyTimestamps) { + m_copyTimestamps = newCopyTimestamps; +} + +bool GetVariantHlsAudioPlaylistParams::copyTimestampsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_copyTimestamps.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setCopyTimestampsNull() { + m_copyTimestamps = std::nullopt; +} + + +const qint32 &GetVariantHlsAudioPlaylistParams::cpuCoreLimit() const { + return m_cpuCoreLimit.value(); +} + +void GetVariantHlsAudioPlaylistParams::setCpuCoreLimit(qint32 newCpuCoreLimit) { + m_cpuCoreLimit = newCpuCoreLimit; +} + +bool GetVariantHlsAudioPlaylistParams::cpuCoreLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cpuCoreLimit.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setCpuCoreLimitNull() { + m_cpuCoreLimit = std::nullopt; +} + + +const bool &GetVariantHlsAudioPlaylistParams::deInterlace() const { + return m_deInterlace.value(); +} + +void GetVariantHlsAudioPlaylistParams::setDeInterlace(bool newDeInterlace) { + m_deInterlace = newDeInterlace; +} + +bool GetVariantHlsAudioPlaylistParams::deInterlaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_deInterlace.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setDeInterlaceNull() { + m_deInterlace = std::nullopt; +} + + +const QString &GetVariantHlsAudioPlaylistParams::deviceId() const { + return m_deviceId; +} + +void GetVariantHlsAudioPlaylistParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool GetVariantHlsAudioPlaylistParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void GetVariantHlsAudioPlaylistParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const QString &GetVariantHlsAudioPlaylistParams::deviceProfileId() const { + return m_deviceProfileId; +} + +void GetVariantHlsAudioPlaylistParams::setDeviceProfileId(QString newDeviceProfileId) { + m_deviceProfileId = newDeviceProfileId; +} + +bool GetVariantHlsAudioPlaylistParams::deviceProfileIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceProfileId.isNull(); +} + +void GetVariantHlsAudioPlaylistParams::setDeviceProfileIdNull() { + m_deviceProfileId.clear(); +} + + +const bool &GetVariantHlsAudioPlaylistParams::enableAutoStreamCopy() const { + return m_enableAutoStreamCopy.value(); +} + +void GetVariantHlsAudioPlaylistParams::setEnableAutoStreamCopy(bool newEnableAutoStreamCopy) { + m_enableAutoStreamCopy = newEnableAutoStreamCopy; +} + +bool GetVariantHlsAudioPlaylistParams::enableAutoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableAutoStreamCopy.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setEnableAutoStreamCopyNull() { + m_enableAutoStreamCopy = std::nullopt; +} + + +const bool &GetVariantHlsAudioPlaylistParams::enableMpegtsM2TsMode() const { + return m_enableMpegtsM2TsMode.value(); +} + +void GetVariantHlsAudioPlaylistParams::setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode) { + m_enableMpegtsM2TsMode = newEnableMpegtsM2TsMode; +} + +bool GetVariantHlsAudioPlaylistParams::enableMpegtsM2TsModeNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableMpegtsM2TsMode.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setEnableMpegtsM2TsModeNull() { + m_enableMpegtsM2TsMode = std::nullopt; +} + + +const float &GetVariantHlsAudioPlaylistParams::framerate() const { + return m_framerate.value(); +} + +void GetVariantHlsAudioPlaylistParams::setFramerate(float newFramerate) { + m_framerate = newFramerate; +} + +bool GetVariantHlsAudioPlaylistParams::framerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_framerate.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setFramerateNull() { + m_framerate = std::nullopt; +} + + +const qint32 &GetVariantHlsAudioPlaylistParams::height() const { + return m_height.value(); +} + +void GetVariantHlsAudioPlaylistParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetVariantHlsAudioPlaylistParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setHeightNull() { + m_height = std::nullopt; +} + + +const QString &GetVariantHlsAudioPlaylistParams::level() const { + return m_level; +} + +void GetVariantHlsAudioPlaylistParams::setLevel(QString newLevel) { + m_level = newLevel; +} + +bool GetVariantHlsAudioPlaylistParams::levelNull() const { + // Nullable: true + // Type Nullable: true + + + return m_level.isNull(); +} + +void GetVariantHlsAudioPlaylistParams::setLevelNull() { + m_level.clear(); +} + + +const QString &GetVariantHlsAudioPlaylistParams::liveStreamId() const { + return m_liveStreamId; +} + +void GetVariantHlsAudioPlaylistParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool GetVariantHlsAudioPlaylistParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void GetVariantHlsAudioPlaylistParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const qint32 &GetVariantHlsAudioPlaylistParams::maxAudioBitDepth() const { + return m_maxAudioBitDepth.value(); +} + +void GetVariantHlsAudioPlaylistParams::setMaxAudioBitDepth(qint32 newMaxAudioBitDepth) { + m_maxAudioBitDepth = newMaxAudioBitDepth; +} + +bool GetVariantHlsAudioPlaylistParams::maxAudioBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioBitDepth.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setMaxAudioBitDepthNull() { + m_maxAudioBitDepth = std::nullopt; +} + + +const qint32 &GetVariantHlsAudioPlaylistParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void GetVariantHlsAudioPlaylistParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool GetVariantHlsAudioPlaylistParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const float &GetVariantHlsAudioPlaylistParams::maxFramerate() const { + return m_maxFramerate.value(); +} + +void GetVariantHlsAudioPlaylistParams::setMaxFramerate(float newMaxFramerate) { + m_maxFramerate = newMaxFramerate; +} + +bool GetVariantHlsAudioPlaylistParams::maxFramerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxFramerate.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setMaxFramerateNull() { + m_maxFramerate = std::nullopt; +} + + +const qint32 &GetVariantHlsAudioPlaylistParams::maxRefFrames() const { + return m_maxRefFrames.value(); +} + +void GetVariantHlsAudioPlaylistParams::setMaxRefFrames(qint32 newMaxRefFrames) { + m_maxRefFrames = newMaxRefFrames; +} + +bool GetVariantHlsAudioPlaylistParams::maxRefFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxRefFrames.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setMaxRefFramesNull() { + m_maxRefFrames = std::nullopt; +} + + +const qint32 &GetVariantHlsAudioPlaylistParams::maxStreamingBitrate() const { + return m_maxStreamingBitrate.value(); +} + +void GetVariantHlsAudioPlaylistParams::setMaxStreamingBitrate(qint32 newMaxStreamingBitrate) { + m_maxStreamingBitrate = newMaxStreamingBitrate; +} + +bool GetVariantHlsAudioPlaylistParams::maxStreamingBitrateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxStreamingBitrate.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setMaxStreamingBitrateNull() { + m_maxStreamingBitrate = std::nullopt; +} + + +const qint32 &GetVariantHlsAudioPlaylistParams::maxVideoBitDepth() const { + return m_maxVideoBitDepth.value(); +} + +void GetVariantHlsAudioPlaylistParams::setMaxVideoBitDepth(qint32 newMaxVideoBitDepth) { + m_maxVideoBitDepth = newMaxVideoBitDepth; +} + +bool GetVariantHlsAudioPlaylistParams::maxVideoBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxVideoBitDepth.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setMaxVideoBitDepthNull() { + m_maxVideoBitDepth = std::nullopt; +} + + +const QString &GetVariantHlsAudioPlaylistParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void GetVariantHlsAudioPlaylistParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + +bool GetVariantHlsAudioPlaylistParams::mediaSourceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaSourceId.isNull(); +} + +void GetVariantHlsAudioPlaylistParams::setMediaSourceIdNull() { + m_mediaSourceId.clear(); +} + + +const qint32 &GetVariantHlsAudioPlaylistParams::minSegments() const { + return m_minSegments.value(); +} + +void GetVariantHlsAudioPlaylistParams::setMinSegments(qint32 newMinSegments) { + m_minSegments = newMinSegments; +} + +bool GetVariantHlsAudioPlaylistParams::minSegmentsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minSegments.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setMinSegmentsNull() { + m_minSegments = std::nullopt; +} + + +const QString &GetVariantHlsAudioPlaylistParams::params() const { + return m_params; +} + +void GetVariantHlsAudioPlaylistParams::setParams(QString newParams) { + m_params = newParams; +} + +bool GetVariantHlsAudioPlaylistParams::paramsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_params.isNull(); +} + +void GetVariantHlsAudioPlaylistParams::setParamsNull() { + m_params.clear(); +} + + +const QString &GetVariantHlsAudioPlaylistParams::playSessionId() const { + return m_playSessionId; +} + +void GetVariantHlsAudioPlaylistParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool GetVariantHlsAudioPlaylistParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void GetVariantHlsAudioPlaylistParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const QString &GetVariantHlsAudioPlaylistParams::profile() const { + return m_profile; +} + +void GetVariantHlsAudioPlaylistParams::setProfile(QString newProfile) { + m_profile = newProfile; +} + +bool GetVariantHlsAudioPlaylistParams::profileNull() const { + // Nullable: true + // Type Nullable: true + + + return m_profile.isNull(); +} + +void GetVariantHlsAudioPlaylistParams::setProfileNull() { + m_profile.clear(); +} + + +const bool &GetVariantHlsAudioPlaylistParams::requireAvc() const { + return m_requireAvc.value(); +} + +void GetVariantHlsAudioPlaylistParams::setRequireAvc(bool newRequireAvc) { + m_requireAvc = newRequireAvc; +} + +bool GetVariantHlsAudioPlaylistParams::requireAvcNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireAvc.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setRequireAvcNull() { + m_requireAvc = std::nullopt; +} + + +const bool &GetVariantHlsAudioPlaylistParams::requireNonAnamorphic() const { + return m_requireNonAnamorphic.value(); +} + +void GetVariantHlsAudioPlaylistParams::setRequireNonAnamorphic(bool newRequireNonAnamorphic) { + m_requireNonAnamorphic = newRequireNonAnamorphic; +} + +bool GetVariantHlsAudioPlaylistParams::requireNonAnamorphicNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireNonAnamorphic.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setRequireNonAnamorphicNull() { + m_requireNonAnamorphic = std::nullopt; +} + + +const QString &GetVariantHlsAudioPlaylistParams::segmentContainer() const { + return m_segmentContainer; +} + +void GetVariantHlsAudioPlaylistParams::setSegmentContainer(QString newSegmentContainer) { + m_segmentContainer = newSegmentContainer; +} + +bool GetVariantHlsAudioPlaylistParams::segmentContainerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_segmentContainer.isNull(); +} + +void GetVariantHlsAudioPlaylistParams::setSegmentContainerNull() { + m_segmentContainer.clear(); +} + + +const qint32 &GetVariantHlsAudioPlaylistParams::segmentLength() const { + return m_segmentLength.value(); +} + +void GetVariantHlsAudioPlaylistParams::setSegmentLength(qint32 newSegmentLength) { + m_segmentLength = newSegmentLength; +} + +bool GetVariantHlsAudioPlaylistParams::segmentLengthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_segmentLength.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setSegmentLengthNull() { + m_segmentLength = std::nullopt; +} + + +const qint64 &GetVariantHlsAudioPlaylistParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void GetVariantHlsAudioPlaylistParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool GetVariantHlsAudioPlaylistParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const bool &GetVariantHlsAudioPlaylistParams::staticStreaming() const { + return m_staticStreaming.value(); +} + +void GetVariantHlsAudioPlaylistParams::setStaticStreaming(bool newStaticStreaming) { + m_staticStreaming = newStaticStreaming; +} + +bool GetVariantHlsAudioPlaylistParams::staticStreamingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_staticStreaming.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setStaticStreamingNull() { + m_staticStreaming = std::nullopt; +} + + +const QJsonObject &GetVariantHlsAudioPlaylistParams::streamOptions() const { + return m_streamOptions; +} + +void GetVariantHlsAudioPlaylistParams::setStreamOptions(QJsonObject newStreamOptions) { + m_streamOptions = newStreamOptions; +} + +bool GetVariantHlsAudioPlaylistParams::streamOptionsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_streamOptions.isEmpty(); +} + +void GetVariantHlsAudioPlaylistParams::setStreamOptionsNull() { + m_streamOptions= QJsonObject(); +} + + +const QString &GetVariantHlsAudioPlaylistParams::subtitleCodec() const { + return m_subtitleCodec; +} + +void GetVariantHlsAudioPlaylistParams::setSubtitleCodec(QString newSubtitleCodec) { + m_subtitleCodec = newSubtitleCodec; +} + +bool GetVariantHlsAudioPlaylistParams::subtitleCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleCodec.isNull(); +} + +void GetVariantHlsAudioPlaylistParams::setSubtitleCodecNull() { + m_subtitleCodec.clear(); +} + + +const SubtitleDeliveryMethod &GetVariantHlsAudioPlaylistParams::subtitleMethod() const { + return m_subtitleMethod; +} + +void GetVariantHlsAudioPlaylistParams::setSubtitleMethod(SubtitleDeliveryMethod newSubtitleMethod) { + m_subtitleMethod = newSubtitleMethod; +} + +bool GetVariantHlsAudioPlaylistParams::subtitleMethodNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleMethod== SubtitleDeliveryMethod::EnumNotSet; +} + +void GetVariantHlsAudioPlaylistParams::setSubtitleMethodNull() { + m_subtitleMethod= SubtitleDeliveryMethod::EnumNotSet; +} + + +const qint32 &GetVariantHlsAudioPlaylistParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void GetVariantHlsAudioPlaylistParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool GetVariantHlsAudioPlaylistParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const QString &GetVariantHlsAudioPlaylistParams::tag() const { + return m_tag; +} + +void GetVariantHlsAudioPlaylistParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetVariantHlsAudioPlaylistParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetVariantHlsAudioPlaylistParams::setTagNull() { + m_tag.clear(); +} + + +const QString &GetVariantHlsAudioPlaylistParams::transcodeReasons() const { + return m_transcodeReasons; +} + +void GetVariantHlsAudioPlaylistParams::setTranscodeReasons(QString newTranscodeReasons) { + m_transcodeReasons = newTranscodeReasons; +} + +bool GetVariantHlsAudioPlaylistParams::transcodeReasonsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodeReasons.isNull(); +} + +void GetVariantHlsAudioPlaylistParams::setTranscodeReasonsNull() { + m_transcodeReasons.clear(); +} + + +const qint32 &GetVariantHlsAudioPlaylistParams::transcodingMaxAudioChannels() const { + return m_transcodingMaxAudioChannels.value(); +} + +void GetVariantHlsAudioPlaylistParams::setTranscodingMaxAudioChannels(qint32 newTranscodingMaxAudioChannels) { + m_transcodingMaxAudioChannels = newTranscodingMaxAudioChannels; +} + +bool GetVariantHlsAudioPlaylistParams::transcodingMaxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_transcodingMaxAudioChannels.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setTranscodingMaxAudioChannelsNull() { + m_transcodingMaxAudioChannels = std::nullopt; +} + + +const qint32 &GetVariantHlsAudioPlaylistParams::videoBitRate() const { + return m_videoBitRate.value(); +} + +void GetVariantHlsAudioPlaylistParams::setVideoBitRate(qint32 newVideoBitRate) { + m_videoBitRate = newVideoBitRate; +} + +bool GetVariantHlsAudioPlaylistParams::videoBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoBitRate.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setVideoBitRateNull() { + m_videoBitRate = std::nullopt; +} + + +const QString &GetVariantHlsAudioPlaylistParams::videoCodec() const { + return m_videoCodec; +} + +void GetVariantHlsAudioPlaylistParams::setVideoCodec(QString newVideoCodec) { + m_videoCodec = newVideoCodec; +} + +bool GetVariantHlsAudioPlaylistParams::videoCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoCodec.isNull(); +} + +void GetVariantHlsAudioPlaylistParams::setVideoCodecNull() { + m_videoCodec.clear(); +} + + +const qint32 &GetVariantHlsAudioPlaylistParams::videoStreamIndex() const { + return m_videoStreamIndex.value(); +} + +void GetVariantHlsAudioPlaylistParams::setVideoStreamIndex(qint32 newVideoStreamIndex) { + m_videoStreamIndex = newVideoStreamIndex; +} + +bool GetVariantHlsAudioPlaylistParams::videoStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoStreamIndex.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setVideoStreamIndexNull() { + m_videoStreamIndex = std::nullopt; +} + + +const qint32 &GetVariantHlsAudioPlaylistParams::width() const { + return m_width.value(); +} + +void GetVariantHlsAudioPlaylistParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetVariantHlsAudioPlaylistParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetVariantHlsAudioPlaylistParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getvarianthlsvideoplaylistparams.cpp b/core/src/loader/getvarianthlsvideoplaylistparams.cpp new file mode 100644 index 0000000..3ca9bdc --- /dev/null +++ b/core/src/loader/getvarianthlsvideoplaylistparams.cpp @@ -0,0 +1,1037 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getvarianthlsvideoplaylistparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetVariantHlsVideoPlaylistParams + +const QString &GetVariantHlsVideoPlaylistParams::itemId() const { + return m_itemId; +} + +void GetVariantHlsVideoPlaylistParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const bool &GetVariantHlsVideoPlaylistParams::allowAudioStreamCopy() const { + return m_allowAudioStreamCopy.value(); +} + +void GetVariantHlsVideoPlaylistParams::setAllowAudioStreamCopy(bool newAllowAudioStreamCopy) { + m_allowAudioStreamCopy = newAllowAudioStreamCopy; +} + +bool GetVariantHlsVideoPlaylistParams::allowAudioStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowAudioStreamCopy.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setAllowAudioStreamCopyNull() { + m_allowAudioStreamCopy = std::nullopt; +} + + +const bool &GetVariantHlsVideoPlaylistParams::allowVideoStreamCopy() const { + return m_allowVideoStreamCopy.value(); +} + +void GetVariantHlsVideoPlaylistParams::setAllowVideoStreamCopy(bool newAllowVideoStreamCopy) { + m_allowVideoStreamCopy = newAllowVideoStreamCopy; +} + +bool GetVariantHlsVideoPlaylistParams::allowVideoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowVideoStreamCopy.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setAllowVideoStreamCopyNull() { + m_allowVideoStreamCopy = std::nullopt; +} + + +const qint32 &GetVariantHlsVideoPlaylistParams::audioBitRate() const { + return m_audioBitRate.value(); +} + +void GetVariantHlsVideoPlaylistParams::setAudioBitRate(qint32 newAudioBitRate) { + m_audioBitRate = newAudioBitRate; +} + +bool GetVariantHlsVideoPlaylistParams::audioBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioBitRate.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setAudioBitRateNull() { + m_audioBitRate = std::nullopt; +} + + +const qint32 &GetVariantHlsVideoPlaylistParams::audioChannels() const { + return m_audioChannels.value(); +} + +void GetVariantHlsVideoPlaylistParams::setAudioChannels(qint32 newAudioChannels) { + m_audioChannels = newAudioChannels; +} + +bool GetVariantHlsVideoPlaylistParams::audioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioChannels.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setAudioChannelsNull() { + m_audioChannels = std::nullopt; +} + + +const QString &GetVariantHlsVideoPlaylistParams::audioCodec() const { + return m_audioCodec; +} + +void GetVariantHlsVideoPlaylistParams::setAudioCodec(QString newAudioCodec) { + m_audioCodec = newAudioCodec; +} + +bool GetVariantHlsVideoPlaylistParams::audioCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_audioCodec.isNull(); +} + +void GetVariantHlsVideoPlaylistParams::setAudioCodecNull() { + m_audioCodec.clear(); +} + + +const qint32 &GetVariantHlsVideoPlaylistParams::audioSampleRate() const { + return m_audioSampleRate.value(); +} + +void GetVariantHlsVideoPlaylistParams::setAudioSampleRate(qint32 newAudioSampleRate) { + m_audioSampleRate = newAudioSampleRate; +} + +bool GetVariantHlsVideoPlaylistParams::audioSampleRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioSampleRate.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setAudioSampleRateNull() { + m_audioSampleRate = std::nullopt; +} + + +const qint32 &GetVariantHlsVideoPlaylistParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void GetVariantHlsVideoPlaylistParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool GetVariantHlsVideoPlaylistParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &GetVariantHlsVideoPlaylistParams::breakOnNonKeyFrames() const { + return m_breakOnNonKeyFrames.value(); +} + +void GetVariantHlsVideoPlaylistParams::setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames) { + m_breakOnNonKeyFrames = newBreakOnNonKeyFrames; +} + +bool GetVariantHlsVideoPlaylistParams::breakOnNonKeyFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_breakOnNonKeyFrames.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setBreakOnNonKeyFramesNull() { + m_breakOnNonKeyFrames = std::nullopt; +} + + +const EncodingContext &GetVariantHlsVideoPlaylistParams::context() const { + return m_context; +} + +void GetVariantHlsVideoPlaylistParams::setContext(EncodingContext newContext) { + m_context = newContext; +} + +bool GetVariantHlsVideoPlaylistParams::contextNull() const { + // Nullable: true + // Type Nullable: true + + + return m_context== EncodingContext::EnumNotSet; +} + +void GetVariantHlsVideoPlaylistParams::setContextNull() { + m_context= EncodingContext::EnumNotSet; +} + + +const bool &GetVariantHlsVideoPlaylistParams::copyTimestamps() const { + return m_copyTimestamps.value(); +} + +void GetVariantHlsVideoPlaylistParams::setCopyTimestamps(bool newCopyTimestamps) { + m_copyTimestamps = newCopyTimestamps; +} + +bool GetVariantHlsVideoPlaylistParams::copyTimestampsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_copyTimestamps.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setCopyTimestampsNull() { + m_copyTimestamps = std::nullopt; +} + + +const qint32 &GetVariantHlsVideoPlaylistParams::cpuCoreLimit() const { + return m_cpuCoreLimit.value(); +} + +void GetVariantHlsVideoPlaylistParams::setCpuCoreLimit(qint32 newCpuCoreLimit) { + m_cpuCoreLimit = newCpuCoreLimit; +} + +bool GetVariantHlsVideoPlaylistParams::cpuCoreLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cpuCoreLimit.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setCpuCoreLimitNull() { + m_cpuCoreLimit = std::nullopt; +} + + +const bool &GetVariantHlsVideoPlaylistParams::deInterlace() const { + return m_deInterlace.value(); +} + +void GetVariantHlsVideoPlaylistParams::setDeInterlace(bool newDeInterlace) { + m_deInterlace = newDeInterlace; +} + +bool GetVariantHlsVideoPlaylistParams::deInterlaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_deInterlace.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setDeInterlaceNull() { + m_deInterlace = std::nullopt; +} + + +const QString &GetVariantHlsVideoPlaylistParams::deviceId() const { + return m_deviceId; +} + +void GetVariantHlsVideoPlaylistParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool GetVariantHlsVideoPlaylistParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void GetVariantHlsVideoPlaylistParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const QString &GetVariantHlsVideoPlaylistParams::deviceProfileId() const { + return m_deviceProfileId; +} + +void GetVariantHlsVideoPlaylistParams::setDeviceProfileId(QString newDeviceProfileId) { + m_deviceProfileId = newDeviceProfileId; +} + +bool GetVariantHlsVideoPlaylistParams::deviceProfileIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceProfileId.isNull(); +} + +void GetVariantHlsVideoPlaylistParams::setDeviceProfileIdNull() { + m_deviceProfileId.clear(); +} + + +const bool &GetVariantHlsVideoPlaylistParams::enableAutoStreamCopy() const { + return m_enableAutoStreamCopy.value(); +} + +void GetVariantHlsVideoPlaylistParams::setEnableAutoStreamCopy(bool newEnableAutoStreamCopy) { + m_enableAutoStreamCopy = newEnableAutoStreamCopy; +} + +bool GetVariantHlsVideoPlaylistParams::enableAutoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableAutoStreamCopy.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setEnableAutoStreamCopyNull() { + m_enableAutoStreamCopy = std::nullopt; +} + + +const bool &GetVariantHlsVideoPlaylistParams::enableMpegtsM2TsMode() const { + return m_enableMpegtsM2TsMode.value(); +} + +void GetVariantHlsVideoPlaylistParams::setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode) { + m_enableMpegtsM2TsMode = newEnableMpegtsM2TsMode; +} + +bool GetVariantHlsVideoPlaylistParams::enableMpegtsM2TsModeNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableMpegtsM2TsMode.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setEnableMpegtsM2TsModeNull() { + m_enableMpegtsM2TsMode = std::nullopt; +} + + +const float &GetVariantHlsVideoPlaylistParams::framerate() const { + return m_framerate.value(); +} + +void GetVariantHlsVideoPlaylistParams::setFramerate(float newFramerate) { + m_framerate = newFramerate; +} + +bool GetVariantHlsVideoPlaylistParams::framerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_framerate.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setFramerateNull() { + m_framerate = std::nullopt; +} + + +const qint32 &GetVariantHlsVideoPlaylistParams::height() const { + return m_height.value(); +} + +void GetVariantHlsVideoPlaylistParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetVariantHlsVideoPlaylistParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setHeightNull() { + m_height = std::nullopt; +} + + +const QString &GetVariantHlsVideoPlaylistParams::level() const { + return m_level; +} + +void GetVariantHlsVideoPlaylistParams::setLevel(QString newLevel) { + m_level = newLevel; +} + +bool GetVariantHlsVideoPlaylistParams::levelNull() const { + // Nullable: true + // Type Nullable: true + + + return m_level.isNull(); +} + +void GetVariantHlsVideoPlaylistParams::setLevelNull() { + m_level.clear(); +} + + +const QString &GetVariantHlsVideoPlaylistParams::liveStreamId() const { + return m_liveStreamId; +} + +void GetVariantHlsVideoPlaylistParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool GetVariantHlsVideoPlaylistParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void GetVariantHlsVideoPlaylistParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const qint32 &GetVariantHlsVideoPlaylistParams::maxAudioBitDepth() const { + return m_maxAudioBitDepth.value(); +} + +void GetVariantHlsVideoPlaylistParams::setMaxAudioBitDepth(qint32 newMaxAudioBitDepth) { + m_maxAudioBitDepth = newMaxAudioBitDepth; +} + +bool GetVariantHlsVideoPlaylistParams::maxAudioBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioBitDepth.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setMaxAudioBitDepthNull() { + m_maxAudioBitDepth = std::nullopt; +} + + +const qint32 &GetVariantHlsVideoPlaylistParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void GetVariantHlsVideoPlaylistParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool GetVariantHlsVideoPlaylistParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const float &GetVariantHlsVideoPlaylistParams::maxFramerate() const { + return m_maxFramerate.value(); +} + +void GetVariantHlsVideoPlaylistParams::setMaxFramerate(float newMaxFramerate) { + m_maxFramerate = newMaxFramerate; +} + +bool GetVariantHlsVideoPlaylistParams::maxFramerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxFramerate.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setMaxFramerateNull() { + m_maxFramerate = std::nullopt; +} + + +const qint32 &GetVariantHlsVideoPlaylistParams::maxRefFrames() const { + return m_maxRefFrames.value(); +} + +void GetVariantHlsVideoPlaylistParams::setMaxRefFrames(qint32 newMaxRefFrames) { + m_maxRefFrames = newMaxRefFrames; +} + +bool GetVariantHlsVideoPlaylistParams::maxRefFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxRefFrames.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setMaxRefFramesNull() { + m_maxRefFrames = std::nullopt; +} + + +const qint32 &GetVariantHlsVideoPlaylistParams::maxVideoBitDepth() const { + return m_maxVideoBitDepth.value(); +} + +void GetVariantHlsVideoPlaylistParams::setMaxVideoBitDepth(qint32 newMaxVideoBitDepth) { + m_maxVideoBitDepth = newMaxVideoBitDepth; +} + +bool GetVariantHlsVideoPlaylistParams::maxVideoBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxVideoBitDepth.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setMaxVideoBitDepthNull() { + m_maxVideoBitDepth = std::nullopt; +} + + +const QString &GetVariantHlsVideoPlaylistParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void GetVariantHlsVideoPlaylistParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + +bool GetVariantHlsVideoPlaylistParams::mediaSourceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaSourceId.isNull(); +} + +void GetVariantHlsVideoPlaylistParams::setMediaSourceIdNull() { + m_mediaSourceId.clear(); +} + + +const qint32 &GetVariantHlsVideoPlaylistParams::minSegments() const { + return m_minSegments.value(); +} + +void GetVariantHlsVideoPlaylistParams::setMinSegments(qint32 newMinSegments) { + m_minSegments = newMinSegments; +} + +bool GetVariantHlsVideoPlaylistParams::minSegmentsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minSegments.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setMinSegmentsNull() { + m_minSegments = std::nullopt; +} + + +const QString &GetVariantHlsVideoPlaylistParams::params() const { + return m_params; +} + +void GetVariantHlsVideoPlaylistParams::setParams(QString newParams) { + m_params = newParams; +} + +bool GetVariantHlsVideoPlaylistParams::paramsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_params.isNull(); +} + +void GetVariantHlsVideoPlaylistParams::setParamsNull() { + m_params.clear(); +} + + +const QString &GetVariantHlsVideoPlaylistParams::playSessionId() const { + return m_playSessionId; +} + +void GetVariantHlsVideoPlaylistParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool GetVariantHlsVideoPlaylistParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void GetVariantHlsVideoPlaylistParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const QString &GetVariantHlsVideoPlaylistParams::profile() const { + return m_profile; +} + +void GetVariantHlsVideoPlaylistParams::setProfile(QString newProfile) { + m_profile = newProfile; +} + +bool GetVariantHlsVideoPlaylistParams::profileNull() const { + // Nullable: true + // Type Nullable: true + + + return m_profile.isNull(); +} + +void GetVariantHlsVideoPlaylistParams::setProfileNull() { + m_profile.clear(); +} + + +const bool &GetVariantHlsVideoPlaylistParams::requireAvc() const { + return m_requireAvc.value(); +} + +void GetVariantHlsVideoPlaylistParams::setRequireAvc(bool newRequireAvc) { + m_requireAvc = newRequireAvc; +} + +bool GetVariantHlsVideoPlaylistParams::requireAvcNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireAvc.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setRequireAvcNull() { + m_requireAvc = std::nullopt; +} + + +const bool &GetVariantHlsVideoPlaylistParams::requireNonAnamorphic() const { + return m_requireNonAnamorphic.value(); +} + +void GetVariantHlsVideoPlaylistParams::setRequireNonAnamorphic(bool newRequireNonAnamorphic) { + m_requireNonAnamorphic = newRequireNonAnamorphic; +} + +bool GetVariantHlsVideoPlaylistParams::requireNonAnamorphicNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireNonAnamorphic.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setRequireNonAnamorphicNull() { + m_requireNonAnamorphic = std::nullopt; +} + + +const QString &GetVariantHlsVideoPlaylistParams::segmentContainer() const { + return m_segmentContainer; +} + +void GetVariantHlsVideoPlaylistParams::setSegmentContainer(QString newSegmentContainer) { + m_segmentContainer = newSegmentContainer; +} + +bool GetVariantHlsVideoPlaylistParams::segmentContainerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_segmentContainer.isNull(); +} + +void GetVariantHlsVideoPlaylistParams::setSegmentContainerNull() { + m_segmentContainer.clear(); +} + + +const qint32 &GetVariantHlsVideoPlaylistParams::segmentLength() const { + return m_segmentLength.value(); +} + +void GetVariantHlsVideoPlaylistParams::setSegmentLength(qint32 newSegmentLength) { + m_segmentLength = newSegmentLength; +} + +bool GetVariantHlsVideoPlaylistParams::segmentLengthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_segmentLength.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setSegmentLengthNull() { + m_segmentLength = std::nullopt; +} + + +const qint64 &GetVariantHlsVideoPlaylistParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void GetVariantHlsVideoPlaylistParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool GetVariantHlsVideoPlaylistParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const bool &GetVariantHlsVideoPlaylistParams::staticStreaming() const { + return m_staticStreaming.value(); +} + +void GetVariantHlsVideoPlaylistParams::setStaticStreaming(bool newStaticStreaming) { + m_staticStreaming = newStaticStreaming; +} + +bool GetVariantHlsVideoPlaylistParams::staticStreamingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_staticStreaming.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setStaticStreamingNull() { + m_staticStreaming = std::nullopt; +} + + +const QJsonObject &GetVariantHlsVideoPlaylistParams::streamOptions() const { + return m_streamOptions; +} + +void GetVariantHlsVideoPlaylistParams::setStreamOptions(QJsonObject newStreamOptions) { + m_streamOptions = newStreamOptions; +} + +bool GetVariantHlsVideoPlaylistParams::streamOptionsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_streamOptions.isEmpty(); +} + +void GetVariantHlsVideoPlaylistParams::setStreamOptionsNull() { + m_streamOptions= QJsonObject(); +} + + +const QString &GetVariantHlsVideoPlaylistParams::subtitleCodec() const { + return m_subtitleCodec; +} + +void GetVariantHlsVideoPlaylistParams::setSubtitleCodec(QString newSubtitleCodec) { + m_subtitleCodec = newSubtitleCodec; +} + +bool GetVariantHlsVideoPlaylistParams::subtitleCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleCodec.isNull(); +} + +void GetVariantHlsVideoPlaylistParams::setSubtitleCodecNull() { + m_subtitleCodec.clear(); +} + + +const SubtitleDeliveryMethod &GetVariantHlsVideoPlaylistParams::subtitleMethod() const { + return m_subtitleMethod; +} + +void GetVariantHlsVideoPlaylistParams::setSubtitleMethod(SubtitleDeliveryMethod newSubtitleMethod) { + m_subtitleMethod = newSubtitleMethod; +} + +bool GetVariantHlsVideoPlaylistParams::subtitleMethodNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleMethod== SubtitleDeliveryMethod::EnumNotSet; +} + +void GetVariantHlsVideoPlaylistParams::setSubtitleMethodNull() { + m_subtitleMethod= SubtitleDeliveryMethod::EnumNotSet; +} + + +const qint32 &GetVariantHlsVideoPlaylistParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void GetVariantHlsVideoPlaylistParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool GetVariantHlsVideoPlaylistParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const QString &GetVariantHlsVideoPlaylistParams::tag() const { + return m_tag; +} + +void GetVariantHlsVideoPlaylistParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetVariantHlsVideoPlaylistParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetVariantHlsVideoPlaylistParams::setTagNull() { + m_tag.clear(); +} + + +const QString &GetVariantHlsVideoPlaylistParams::transcodeReasons() const { + return m_transcodeReasons; +} + +void GetVariantHlsVideoPlaylistParams::setTranscodeReasons(QString newTranscodeReasons) { + m_transcodeReasons = newTranscodeReasons; +} + +bool GetVariantHlsVideoPlaylistParams::transcodeReasonsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodeReasons.isNull(); +} + +void GetVariantHlsVideoPlaylistParams::setTranscodeReasonsNull() { + m_transcodeReasons.clear(); +} + + +const qint32 &GetVariantHlsVideoPlaylistParams::transcodingMaxAudioChannels() const { + return m_transcodingMaxAudioChannels.value(); +} + +void GetVariantHlsVideoPlaylistParams::setTranscodingMaxAudioChannels(qint32 newTranscodingMaxAudioChannels) { + m_transcodingMaxAudioChannels = newTranscodingMaxAudioChannels; +} + +bool GetVariantHlsVideoPlaylistParams::transcodingMaxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_transcodingMaxAudioChannels.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setTranscodingMaxAudioChannelsNull() { + m_transcodingMaxAudioChannels = std::nullopt; +} + + +const qint32 &GetVariantHlsVideoPlaylistParams::videoBitRate() const { + return m_videoBitRate.value(); +} + +void GetVariantHlsVideoPlaylistParams::setVideoBitRate(qint32 newVideoBitRate) { + m_videoBitRate = newVideoBitRate; +} + +bool GetVariantHlsVideoPlaylistParams::videoBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoBitRate.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setVideoBitRateNull() { + m_videoBitRate = std::nullopt; +} + + +const QString &GetVariantHlsVideoPlaylistParams::videoCodec() const { + return m_videoCodec; +} + +void GetVariantHlsVideoPlaylistParams::setVideoCodec(QString newVideoCodec) { + m_videoCodec = newVideoCodec; +} + +bool GetVariantHlsVideoPlaylistParams::videoCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoCodec.isNull(); +} + +void GetVariantHlsVideoPlaylistParams::setVideoCodecNull() { + m_videoCodec.clear(); +} + + +const qint32 &GetVariantHlsVideoPlaylistParams::videoStreamIndex() const { + return m_videoStreamIndex.value(); +} + +void GetVariantHlsVideoPlaylistParams::setVideoStreamIndex(qint32 newVideoStreamIndex) { + m_videoStreamIndex = newVideoStreamIndex; +} + +bool GetVariantHlsVideoPlaylistParams::videoStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoStreamIndex.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setVideoStreamIndexNull() { + m_videoStreamIndex = std::nullopt; +} + + +const qint32 &GetVariantHlsVideoPlaylistParams::width() const { + return m_width.value(); +} + +void GetVariantHlsVideoPlaylistParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetVariantHlsVideoPlaylistParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetVariantHlsVideoPlaylistParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getvideostreambycontainerparams.cpp b/core/src/loader/getvideostreambycontainerparams.cpp new file mode 100644 index 0000000..3a9441a --- /dev/null +++ b/core/src/loader/getvideostreambycontainerparams.cpp @@ -0,0 +1,1055 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getvideostreambycontainerparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetVideoStreamByContainerParams + +const QString &GetVideoStreamByContainerParams::container() const { + return m_container; +} + +void GetVideoStreamByContainerParams::setContainer(QString newContainer) { + m_container = newContainer; +} + + +const QString &GetVideoStreamByContainerParams::itemId() const { + return m_itemId; +} + +void GetVideoStreamByContainerParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &GetVideoStreamByContainerParams::stream() const { + return m_stream; +} + +void GetVideoStreamByContainerParams::setStream(QString newStream) { + m_stream = newStream; +} + + +const bool &GetVideoStreamByContainerParams::allowAudioStreamCopy() const { + return m_allowAudioStreamCopy.value(); +} + +void GetVideoStreamByContainerParams::setAllowAudioStreamCopy(bool newAllowAudioStreamCopy) { + m_allowAudioStreamCopy = newAllowAudioStreamCopy; +} + +bool GetVideoStreamByContainerParams::allowAudioStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowAudioStreamCopy.has_value(); +} + +void GetVideoStreamByContainerParams::setAllowAudioStreamCopyNull() { + m_allowAudioStreamCopy = std::nullopt; +} + + +const bool &GetVideoStreamByContainerParams::allowVideoStreamCopy() const { + return m_allowVideoStreamCopy.value(); +} + +void GetVideoStreamByContainerParams::setAllowVideoStreamCopy(bool newAllowVideoStreamCopy) { + m_allowVideoStreamCopy = newAllowVideoStreamCopy; +} + +bool GetVideoStreamByContainerParams::allowVideoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowVideoStreamCopy.has_value(); +} + +void GetVideoStreamByContainerParams::setAllowVideoStreamCopyNull() { + m_allowVideoStreamCopy = std::nullopt; +} + + +const qint32 &GetVideoStreamByContainerParams::audioBitRate() const { + return m_audioBitRate.value(); +} + +void GetVideoStreamByContainerParams::setAudioBitRate(qint32 newAudioBitRate) { + m_audioBitRate = newAudioBitRate; +} + +bool GetVideoStreamByContainerParams::audioBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioBitRate.has_value(); +} + +void GetVideoStreamByContainerParams::setAudioBitRateNull() { + m_audioBitRate = std::nullopt; +} + + +const qint32 &GetVideoStreamByContainerParams::audioChannels() const { + return m_audioChannels.value(); +} + +void GetVideoStreamByContainerParams::setAudioChannels(qint32 newAudioChannels) { + m_audioChannels = newAudioChannels; +} + +bool GetVideoStreamByContainerParams::audioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioChannels.has_value(); +} + +void GetVideoStreamByContainerParams::setAudioChannelsNull() { + m_audioChannels = std::nullopt; +} + + +const QString &GetVideoStreamByContainerParams::audioCodec() const { + return m_audioCodec; +} + +void GetVideoStreamByContainerParams::setAudioCodec(QString newAudioCodec) { + m_audioCodec = newAudioCodec; +} + +bool GetVideoStreamByContainerParams::audioCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_audioCodec.isNull(); +} + +void GetVideoStreamByContainerParams::setAudioCodecNull() { + m_audioCodec.clear(); +} + + +const qint32 &GetVideoStreamByContainerParams::audioSampleRate() const { + return m_audioSampleRate.value(); +} + +void GetVideoStreamByContainerParams::setAudioSampleRate(qint32 newAudioSampleRate) { + m_audioSampleRate = newAudioSampleRate; +} + +bool GetVideoStreamByContainerParams::audioSampleRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioSampleRate.has_value(); +} + +void GetVideoStreamByContainerParams::setAudioSampleRateNull() { + m_audioSampleRate = std::nullopt; +} + + +const qint32 &GetVideoStreamByContainerParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void GetVideoStreamByContainerParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool GetVideoStreamByContainerParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void GetVideoStreamByContainerParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &GetVideoStreamByContainerParams::breakOnNonKeyFrames() const { + return m_breakOnNonKeyFrames.value(); +} + +void GetVideoStreamByContainerParams::setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames) { + m_breakOnNonKeyFrames = newBreakOnNonKeyFrames; +} + +bool GetVideoStreamByContainerParams::breakOnNonKeyFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_breakOnNonKeyFrames.has_value(); +} + +void GetVideoStreamByContainerParams::setBreakOnNonKeyFramesNull() { + m_breakOnNonKeyFrames = std::nullopt; +} + + +const EncodingContext &GetVideoStreamByContainerParams::context() const { + return m_context; +} + +void GetVideoStreamByContainerParams::setContext(EncodingContext newContext) { + m_context = newContext; +} + +bool GetVideoStreamByContainerParams::contextNull() const { + // Nullable: true + // Type Nullable: true + + + return m_context== EncodingContext::EnumNotSet; +} + +void GetVideoStreamByContainerParams::setContextNull() { + m_context= EncodingContext::EnumNotSet; +} + + +const bool &GetVideoStreamByContainerParams::copyTimestamps() const { + return m_copyTimestamps.value(); +} + +void GetVideoStreamByContainerParams::setCopyTimestamps(bool newCopyTimestamps) { + m_copyTimestamps = newCopyTimestamps; +} + +bool GetVideoStreamByContainerParams::copyTimestampsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_copyTimestamps.has_value(); +} + +void GetVideoStreamByContainerParams::setCopyTimestampsNull() { + m_copyTimestamps = std::nullopt; +} + + +const qint32 &GetVideoStreamByContainerParams::cpuCoreLimit() const { + return m_cpuCoreLimit.value(); +} + +void GetVideoStreamByContainerParams::setCpuCoreLimit(qint32 newCpuCoreLimit) { + m_cpuCoreLimit = newCpuCoreLimit; +} + +bool GetVideoStreamByContainerParams::cpuCoreLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cpuCoreLimit.has_value(); +} + +void GetVideoStreamByContainerParams::setCpuCoreLimitNull() { + m_cpuCoreLimit = std::nullopt; +} + + +const bool &GetVideoStreamByContainerParams::deInterlace() const { + return m_deInterlace.value(); +} + +void GetVideoStreamByContainerParams::setDeInterlace(bool newDeInterlace) { + m_deInterlace = newDeInterlace; +} + +bool GetVideoStreamByContainerParams::deInterlaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_deInterlace.has_value(); +} + +void GetVideoStreamByContainerParams::setDeInterlaceNull() { + m_deInterlace = std::nullopt; +} + + +const QString &GetVideoStreamByContainerParams::deviceId() const { + return m_deviceId; +} + +void GetVideoStreamByContainerParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool GetVideoStreamByContainerParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void GetVideoStreamByContainerParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const QString &GetVideoStreamByContainerParams::deviceProfileId() const { + return m_deviceProfileId; +} + +void GetVideoStreamByContainerParams::setDeviceProfileId(QString newDeviceProfileId) { + m_deviceProfileId = newDeviceProfileId; +} + +bool GetVideoStreamByContainerParams::deviceProfileIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceProfileId.isNull(); +} + +void GetVideoStreamByContainerParams::setDeviceProfileIdNull() { + m_deviceProfileId.clear(); +} + + +const bool &GetVideoStreamByContainerParams::enableAutoStreamCopy() const { + return m_enableAutoStreamCopy.value(); +} + +void GetVideoStreamByContainerParams::setEnableAutoStreamCopy(bool newEnableAutoStreamCopy) { + m_enableAutoStreamCopy = newEnableAutoStreamCopy; +} + +bool GetVideoStreamByContainerParams::enableAutoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableAutoStreamCopy.has_value(); +} + +void GetVideoStreamByContainerParams::setEnableAutoStreamCopyNull() { + m_enableAutoStreamCopy = std::nullopt; +} + + +const bool &GetVideoStreamByContainerParams::enableMpegtsM2TsMode() const { + return m_enableMpegtsM2TsMode.value(); +} + +void GetVideoStreamByContainerParams::setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode) { + m_enableMpegtsM2TsMode = newEnableMpegtsM2TsMode; +} + +bool GetVideoStreamByContainerParams::enableMpegtsM2TsModeNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableMpegtsM2TsMode.has_value(); +} + +void GetVideoStreamByContainerParams::setEnableMpegtsM2TsModeNull() { + m_enableMpegtsM2TsMode = std::nullopt; +} + + +const float &GetVideoStreamByContainerParams::framerate() const { + return m_framerate.value(); +} + +void GetVideoStreamByContainerParams::setFramerate(float newFramerate) { + m_framerate = newFramerate; +} + +bool GetVideoStreamByContainerParams::framerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_framerate.has_value(); +} + +void GetVideoStreamByContainerParams::setFramerateNull() { + m_framerate = std::nullopt; +} + + +const qint32 &GetVideoStreamByContainerParams::height() const { + return m_height.value(); +} + +void GetVideoStreamByContainerParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetVideoStreamByContainerParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetVideoStreamByContainerParams::setHeightNull() { + m_height = std::nullopt; +} + + +const QString &GetVideoStreamByContainerParams::level() const { + return m_level; +} + +void GetVideoStreamByContainerParams::setLevel(QString newLevel) { + m_level = newLevel; +} + +bool GetVideoStreamByContainerParams::levelNull() const { + // Nullable: true + // Type Nullable: true + + + return m_level.isNull(); +} + +void GetVideoStreamByContainerParams::setLevelNull() { + m_level.clear(); +} + + +const QString &GetVideoStreamByContainerParams::liveStreamId() const { + return m_liveStreamId; +} + +void GetVideoStreamByContainerParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool GetVideoStreamByContainerParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void GetVideoStreamByContainerParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const qint32 &GetVideoStreamByContainerParams::maxAudioBitDepth() const { + return m_maxAudioBitDepth.value(); +} + +void GetVideoStreamByContainerParams::setMaxAudioBitDepth(qint32 newMaxAudioBitDepth) { + m_maxAudioBitDepth = newMaxAudioBitDepth; +} + +bool GetVideoStreamByContainerParams::maxAudioBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioBitDepth.has_value(); +} + +void GetVideoStreamByContainerParams::setMaxAudioBitDepthNull() { + m_maxAudioBitDepth = std::nullopt; +} + + +const qint32 &GetVideoStreamByContainerParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void GetVideoStreamByContainerParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool GetVideoStreamByContainerParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void GetVideoStreamByContainerParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const float &GetVideoStreamByContainerParams::maxFramerate() const { + return m_maxFramerate.value(); +} + +void GetVideoStreamByContainerParams::setMaxFramerate(float newMaxFramerate) { + m_maxFramerate = newMaxFramerate; +} + +bool GetVideoStreamByContainerParams::maxFramerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxFramerate.has_value(); +} + +void GetVideoStreamByContainerParams::setMaxFramerateNull() { + m_maxFramerate = std::nullopt; +} + + +const qint32 &GetVideoStreamByContainerParams::maxRefFrames() const { + return m_maxRefFrames.value(); +} + +void GetVideoStreamByContainerParams::setMaxRefFrames(qint32 newMaxRefFrames) { + m_maxRefFrames = newMaxRefFrames; +} + +bool GetVideoStreamByContainerParams::maxRefFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxRefFrames.has_value(); +} + +void GetVideoStreamByContainerParams::setMaxRefFramesNull() { + m_maxRefFrames = std::nullopt; +} + + +const qint32 &GetVideoStreamByContainerParams::maxVideoBitDepth() const { + return m_maxVideoBitDepth.value(); +} + +void GetVideoStreamByContainerParams::setMaxVideoBitDepth(qint32 newMaxVideoBitDepth) { + m_maxVideoBitDepth = newMaxVideoBitDepth; +} + +bool GetVideoStreamByContainerParams::maxVideoBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxVideoBitDepth.has_value(); +} + +void GetVideoStreamByContainerParams::setMaxVideoBitDepthNull() { + m_maxVideoBitDepth = std::nullopt; +} + + +const QString &GetVideoStreamByContainerParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void GetVideoStreamByContainerParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + +bool GetVideoStreamByContainerParams::mediaSourceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaSourceId.isNull(); +} + +void GetVideoStreamByContainerParams::setMediaSourceIdNull() { + m_mediaSourceId.clear(); +} + + +const qint32 &GetVideoStreamByContainerParams::minSegments() const { + return m_minSegments.value(); +} + +void GetVideoStreamByContainerParams::setMinSegments(qint32 newMinSegments) { + m_minSegments = newMinSegments; +} + +bool GetVideoStreamByContainerParams::minSegmentsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minSegments.has_value(); +} + +void GetVideoStreamByContainerParams::setMinSegmentsNull() { + m_minSegments = std::nullopt; +} + + +const QString &GetVideoStreamByContainerParams::params() const { + return m_params; +} + +void GetVideoStreamByContainerParams::setParams(QString newParams) { + m_params = newParams; +} + +bool GetVideoStreamByContainerParams::paramsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_params.isNull(); +} + +void GetVideoStreamByContainerParams::setParamsNull() { + m_params.clear(); +} + + +const QString &GetVideoStreamByContainerParams::playSessionId() const { + return m_playSessionId; +} + +void GetVideoStreamByContainerParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool GetVideoStreamByContainerParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void GetVideoStreamByContainerParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const QString &GetVideoStreamByContainerParams::profile() const { + return m_profile; +} + +void GetVideoStreamByContainerParams::setProfile(QString newProfile) { + m_profile = newProfile; +} + +bool GetVideoStreamByContainerParams::profileNull() const { + // Nullable: true + // Type Nullable: true + + + return m_profile.isNull(); +} + +void GetVideoStreamByContainerParams::setProfileNull() { + m_profile.clear(); +} + + +const bool &GetVideoStreamByContainerParams::requireAvc() const { + return m_requireAvc.value(); +} + +void GetVideoStreamByContainerParams::setRequireAvc(bool newRequireAvc) { + m_requireAvc = newRequireAvc; +} + +bool GetVideoStreamByContainerParams::requireAvcNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireAvc.has_value(); +} + +void GetVideoStreamByContainerParams::setRequireAvcNull() { + m_requireAvc = std::nullopt; +} + + +const bool &GetVideoStreamByContainerParams::requireNonAnamorphic() const { + return m_requireNonAnamorphic.value(); +} + +void GetVideoStreamByContainerParams::setRequireNonAnamorphic(bool newRequireNonAnamorphic) { + m_requireNonAnamorphic = newRequireNonAnamorphic; +} + +bool GetVideoStreamByContainerParams::requireNonAnamorphicNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireNonAnamorphic.has_value(); +} + +void GetVideoStreamByContainerParams::setRequireNonAnamorphicNull() { + m_requireNonAnamorphic = std::nullopt; +} + + +const QString &GetVideoStreamByContainerParams::segmentContainer() const { + return m_segmentContainer; +} + +void GetVideoStreamByContainerParams::setSegmentContainer(QString newSegmentContainer) { + m_segmentContainer = newSegmentContainer; +} + +bool GetVideoStreamByContainerParams::segmentContainerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_segmentContainer.isNull(); +} + +void GetVideoStreamByContainerParams::setSegmentContainerNull() { + m_segmentContainer.clear(); +} + + +const qint32 &GetVideoStreamByContainerParams::segmentLength() const { + return m_segmentLength.value(); +} + +void GetVideoStreamByContainerParams::setSegmentLength(qint32 newSegmentLength) { + m_segmentLength = newSegmentLength; +} + +bool GetVideoStreamByContainerParams::segmentLengthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_segmentLength.has_value(); +} + +void GetVideoStreamByContainerParams::setSegmentLengthNull() { + m_segmentLength = std::nullopt; +} + + +const qint64 &GetVideoStreamByContainerParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void GetVideoStreamByContainerParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool GetVideoStreamByContainerParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void GetVideoStreamByContainerParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const bool &GetVideoStreamByContainerParams::staticStreaming() const { + return m_staticStreaming.value(); +} + +void GetVideoStreamByContainerParams::setStaticStreaming(bool newStaticStreaming) { + m_staticStreaming = newStaticStreaming; +} + +bool GetVideoStreamByContainerParams::staticStreamingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_staticStreaming.has_value(); +} + +void GetVideoStreamByContainerParams::setStaticStreamingNull() { + m_staticStreaming = std::nullopt; +} + + +const QJsonObject &GetVideoStreamByContainerParams::streamOptions() const { + return m_streamOptions; +} + +void GetVideoStreamByContainerParams::setStreamOptions(QJsonObject newStreamOptions) { + m_streamOptions = newStreamOptions; +} + +bool GetVideoStreamByContainerParams::streamOptionsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_streamOptions.isEmpty(); +} + +void GetVideoStreamByContainerParams::setStreamOptionsNull() { + m_streamOptions= QJsonObject(); +} + + +const QString &GetVideoStreamByContainerParams::subtitleCodec() const { + return m_subtitleCodec; +} + +void GetVideoStreamByContainerParams::setSubtitleCodec(QString newSubtitleCodec) { + m_subtitleCodec = newSubtitleCodec; +} + +bool GetVideoStreamByContainerParams::subtitleCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleCodec.isNull(); +} + +void GetVideoStreamByContainerParams::setSubtitleCodecNull() { + m_subtitleCodec.clear(); +} + + +const SubtitleDeliveryMethod &GetVideoStreamByContainerParams::subtitleMethod() const { + return m_subtitleMethod; +} + +void GetVideoStreamByContainerParams::setSubtitleMethod(SubtitleDeliveryMethod newSubtitleMethod) { + m_subtitleMethod = newSubtitleMethod; +} + +bool GetVideoStreamByContainerParams::subtitleMethodNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleMethod== SubtitleDeliveryMethod::EnumNotSet; +} + +void GetVideoStreamByContainerParams::setSubtitleMethodNull() { + m_subtitleMethod= SubtitleDeliveryMethod::EnumNotSet; +} + + +const qint32 &GetVideoStreamByContainerParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void GetVideoStreamByContainerParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool GetVideoStreamByContainerParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void GetVideoStreamByContainerParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const QString &GetVideoStreamByContainerParams::tag() const { + return m_tag; +} + +void GetVideoStreamByContainerParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetVideoStreamByContainerParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetVideoStreamByContainerParams::setTagNull() { + m_tag.clear(); +} + + +const QString &GetVideoStreamByContainerParams::transcodeReasons() const { + return m_transcodeReasons; +} + +void GetVideoStreamByContainerParams::setTranscodeReasons(QString newTranscodeReasons) { + m_transcodeReasons = newTranscodeReasons; +} + +bool GetVideoStreamByContainerParams::transcodeReasonsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodeReasons.isNull(); +} + +void GetVideoStreamByContainerParams::setTranscodeReasonsNull() { + m_transcodeReasons.clear(); +} + + +const qint32 &GetVideoStreamByContainerParams::transcodingMaxAudioChannels() const { + return m_transcodingMaxAudioChannels.value(); +} + +void GetVideoStreamByContainerParams::setTranscodingMaxAudioChannels(qint32 newTranscodingMaxAudioChannels) { + m_transcodingMaxAudioChannels = newTranscodingMaxAudioChannels; +} + +bool GetVideoStreamByContainerParams::transcodingMaxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_transcodingMaxAudioChannels.has_value(); +} + +void GetVideoStreamByContainerParams::setTranscodingMaxAudioChannelsNull() { + m_transcodingMaxAudioChannels = std::nullopt; +} + + +const qint32 &GetVideoStreamByContainerParams::videoBitRate() const { + return m_videoBitRate.value(); +} + +void GetVideoStreamByContainerParams::setVideoBitRate(qint32 newVideoBitRate) { + m_videoBitRate = newVideoBitRate; +} + +bool GetVideoStreamByContainerParams::videoBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoBitRate.has_value(); +} + +void GetVideoStreamByContainerParams::setVideoBitRateNull() { + m_videoBitRate = std::nullopt; +} + + +const QString &GetVideoStreamByContainerParams::videoCodec() const { + return m_videoCodec; +} + +void GetVideoStreamByContainerParams::setVideoCodec(QString newVideoCodec) { + m_videoCodec = newVideoCodec; +} + +bool GetVideoStreamByContainerParams::videoCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoCodec.isNull(); +} + +void GetVideoStreamByContainerParams::setVideoCodecNull() { + m_videoCodec.clear(); +} + + +const qint32 &GetVideoStreamByContainerParams::videoStreamIndex() const { + return m_videoStreamIndex.value(); +} + +void GetVideoStreamByContainerParams::setVideoStreamIndex(qint32 newVideoStreamIndex) { + m_videoStreamIndex = newVideoStreamIndex; +} + +bool GetVideoStreamByContainerParams::videoStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoStreamIndex.has_value(); +} + +void GetVideoStreamByContainerParams::setVideoStreamIndexNull() { + m_videoStreamIndex = std::nullopt; +} + + +const qint32 &GetVideoStreamByContainerParams::width() const { + return m_width.value(); +} + +void GetVideoStreamByContainerParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetVideoStreamByContainerParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetVideoStreamByContainerParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getvideostreamparams.cpp b/core/src/loader/getvideostreamparams.cpp new file mode 100644 index 0000000..cad0766 --- /dev/null +++ b/core/src/loader/getvideostreamparams.cpp @@ -0,0 +1,1058 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getvideostreamparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetVideoStreamParams + +const QString &GetVideoStreamParams::itemId() const { + return m_itemId; +} + +void GetVideoStreamParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const bool &GetVideoStreamParams::allowAudioStreamCopy() const { + return m_allowAudioStreamCopy.value(); +} + +void GetVideoStreamParams::setAllowAudioStreamCopy(bool newAllowAudioStreamCopy) { + m_allowAudioStreamCopy = newAllowAudioStreamCopy; +} + +bool GetVideoStreamParams::allowAudioStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowAudioStreamCopy.has_value(); +} + +void GetVideoStreamParams::setAllowAudioStreamCopyNull() { + m_allowAudioStreamCopy = std::nullopt; +} + + +const bool &GetVideoStreamParams::allowVideoStreamCopy() const { + return m_allowVideoStreamCopy.value(); +} + +void GetVideoStreamParams::setAllowVideoStreamCopy(bool newAllowVideoStreamCopy) { + m_allowVideoStreamCopy = newAllowVideoStreamCopy; +} + +bool GetVideoStreamParams::allowVideoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowVideoStreamCopy.has_value(); +} + +void GetVideoStreamParams::setAllowVideoStreamCopyNull() { + m_allowVideoStreamCopy = std::nullopt; +} + + +const qint32 &GetVideoStreamParams::audioBitRate() const { + return m_audioBitRate.value(); +} + +void GetVideoStreamParams::setAudioBitRate(qint32 newAudioBitRate) { + m_audioBitRate = newAudioBitRate; +} + +bool GetVideoStreamParams::audioBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioBitRate.has_value(); +} + +void GetVideoStreamParams::setAudioBitRateNull() { + m_audioBitRate = std::nullopt; +} + + +const qint32 &GetVideoStreamParams::audioChannels() const { + return m_audioChannels.value(); +} + +void GetVideoStreamParams::setAudioChannels(qint32 newAudioChannels) { + m_audioChannels = newAudioChannels; +} + +bool GetVideoStreamParams::audioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioChannels.has_value(); +} + +void GetVideoStreamParams::setAudioChannelsNull() { + m_audioChannels = std::nullopt; +} + + +const QString &GetVideoStreamParams::audioCodec() const { + return m_audioCodec; +} + +void GetVideoStreamParams::setAudioCodec(QString newAudioCodec) { + m_audioCodec = newAudioCodec; +} + +bool GetVideoStreamParams::audioCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_audioCodec.isNull(); +} + +void GetVideoStreamParams::setAudioCodecNull() { + m_audioCodec.clear(); +} + + +const qint32 &GetVideoStreamParams::audioSampleRate() const { + return m_audioSampleRate.value(); +} + +void GetVideoStreamParams::setAudioSampleRate(qint32 newAudioSampleRate) { + m_audioSampleRate = newAudioSampleRate; +} + +bool GetVideoStreamParams::audioSampleRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioSampleRate.has_value(); +} + +void GetVideoStreamParams::setAudioSampleRateNull() { + m_audioSampleRate = std::nullopt; +} + + +const qint32 &GetVideoStreamParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void GetVideoStreamParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool GetVideoStreamParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void GetVideoStreamParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &GetVideoStreamParams::breakOnNonKeyFrames() const { + return m_breakOnNonKeyFrames.value(); +} + +void GetVideoStreamParams::setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames) { + m_breakOnNonKeyFrames = newBreakOnNonKeyFrames; +} + +bool GetVideoStreamParams::breakOnNonKeyFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_breakOnNonKeyFrames.has_value(); +} + +void GetVideoStreamParams::setBreakOnNonKeyFramesNull() { + m_breakOnNonKeyFrames = std::nullopt; +} + + +const QString &GetVideoStreamParams::container() const { + return m_container; +} + +void GetVideoStreamParams::setContainer(QString newContainer) { + m_container = newContainer; +} + +bool GetVideoStreamParams::containerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_container.isNull(); +} + +void GetVideoStreamParams::setContainerNull() { + m_container.clear(); +} + + +const EncodingContext &GetVideoStreamParams::context() const { + return m_context; +} + +void GetVideoStreamParams::setContext(EncodingContext newContext) { + m_context = newContext; +} + +bool GetVideoStreamParams::contextNull() const { + // Nullable: true + // Type Nullable: true + + + return m_context== EncodingContext::EnumNotSet; +} + +void GetVideoStreamParams::setContextNull() { + m_context= EncodingContext::EnumNotSet; +} + + +const bool &GetVideoStreamParams::copyTimestamps() const { + return m_copyTimestamps.value(); +} + +void GetVideoStreamParams::setCopyTimestamps(bool newCopyTimestamps) { + m_copyTimestamps = newCopyTimestamps; +} + +bool GetVideoStreamParams::copyTimestampsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_copyTimestamps.has_value(); +} + +void GetVideoStreamParams::setCopyTimestampsNull() { + m_copyTimestamps = std::nullopt; +} + + +const qint32 &GetVideoStreamParams::cpuCoreLimit() const { + return m_cpuCoreLimit.value(); +} + +void GetVideoStreamParams::setCpuCoreLimit(qint32 newCpuCoreLimit) { + m_cpuCoreLimit = newCpuCoreLimit; +} + +bool GetVideoStreamParams::cpuCoreLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cpuCoreLimit.has_value(); +} + +void GetVideoStreamParams::setCpuCoreLimitNull() { + m_cpuCoreLimit = std::nullopt; +} + + +const bool &GetVideoStreamParams::deInterlace() const { + return m_deInterlace.value(); +} + +void GetVideoStreamParams::setDeInterlace(bool newDeInterlace) { + m_deInterlace = newDeInterlace; +} + +bool GetVideoStreamParams::deInterlaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_deInterlace.has_value(); +} + +void GetVideoStreamParams::setDeInterlaceNull() { + m_deInterlace = std::nullopt; +} + + +const QString &GetVideoStreamParams::deviceId() const { + return m_deviceId; +} + +void GetVideoStreamParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool GetVideoStreamParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void GetVideoStreamParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const QString &GetVideoStreamParams::deviceProfileId() const { + return m_deviceProfileId; +} + +void GetVideoStreamParams::setDeviceProfileId(QString newDeviceProfileId) { + m_deviceProfileId = newDeviceProfileId; +} + +bool GetVideoStreamParams::deviceProfileIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceProfileId.isNull(); +} + +void GetVideoStreamParams::setDeviceProfileIdNull() { + m_deviceProfileId.clear(); +} + + +const bool &GetVideoStreamParams::enableAutoStreamCopy() const { + return m_enableAutoStreamCopy.value(); +} + +void GetVideoStreamParams::setEnableAutoStreamCopy(bool newEnableAutoStreamCopy) { + m_enableAutoStreamCopy = newEnableAutoStreamCopy; +} + +bool GetVideoStreamParams::enableAutoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableAutoStreamCopy.has_value(); +} + +void GetVideoStreamParams::setEnableAutoStreamCopyNull() { + m_enableAutoStreamCopy = std::nullopt; +} + + +const bool &GetVideoStreamParams::enableMpegtsM2TsMode() const { + return m_enableMpegtsM2TsMode.value(); +} + +void GetVideoStreamParams::setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode) { + m_enableMpegtsM2TsMode = newEnableMpegtsM2TsMode; +} + +bool GetVideoStreamParams::enableMpegtsM2TsModeNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableMpegtsM2TsMode.has_value(); +} + +void GetVideoStreamParams::setEnableMpegtsM2TsModeNull() { + m_enableMpegtsM2TsMode = std::nullopt; +} + + +const float &GetVideoStreamParams::framerate() const { + return m_framerate.value(); +} + +void GetVideoStreamParams::setFramerate(float newFramerate) { + m_framerate = newFramerate; +} + +bool GetVideoStreamParams::framerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_framerate.has_value(); +} + +void GetVideoStreamParams::setFramerateNull() { + m_framerate = std::nullopt; +} + + +const qint32 &GetVideoStreamParams::height() const { + return m_height.value(); +} + +void GetVideoStreamParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool GetVideoStreamParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void GetVideoStreamParams::setHeightNull() { + m_height = std::nullopt; +} + + +const QString &GetVideoStreamParams::level() const { + return m_level; +} + +void GetVideoStreamParams::setLevel(QString newLevel) { + m_level = newLevel; +} + +bool GetVideoStreamParams::levelNull() const { + // Nullable: true + // Type Nullable: true + + + return m_level.isNull(); +} + +void GetVideoStreamParams::setLevelNull() { + m_level.clear(); +} + + +const QString &GetVideoStreamParams::liveStreamId() const { + return m_liveStreamId; +} + +void GetVideoStreamParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool GetVideoStreamParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void GetVideoStreamParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const qint32 &GetVideoStreamParams::maxAudioBitDepth() const { + return m_maxAudioBitDepth.value(); +} + +void GetVideoStreamParams::setMaxAudioBitDepth(qint32 newMaxAudioBitDepth) { + m_maxAudioBitDepth = newMaxAudioBitDepth; +} + +bool GetVideoStreamParams::maxAudioBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioBitDepth.has_value(); +} + +void GetVideoStreamParams::setMaxAudioBitDepthNull() { + m_maxAudioBitDepth = std::nullopt; +} + + +const qint32 &GetVideoStreamParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void GetVideoStreamParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool GetVideoStreamParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void GetVideoStreamParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const float &GetVideoStreamParams::maxFramerate() const { + return m_maxFramerate.value(); +} + +void GetVideoStreamParams::setMaxFramerate(float newMaxFramerate) { + m_maxFramerate = newMaxFramerate; +} + +bool GetVideoStreamParams::maxFramerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxFramerate.has_value(); +} + +void GetVideoStreamParams::setMaxFramerateNull() { + m_maxFramerate = std::nullopt; +} + + +const qint32 &GetVideoStreamParams::maxRefFrames() const { + return m_maxRefFrames.value(); +} + +void GetVideoStreamParams::setMaxRefFrames(qint32 newMaxRefFrames) { + m_maxRefFrames = newMaxRefFrames; +} + +bool GetVideoStreamParams::maxRefFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxRefFrames.has_value(); +} + +void GetVideoStreamParams::setMaxRefFramesNull() { + m_maxRefFrames = std::nullopt; +} + + +const qint32 &GetVideoStreamParams::maxVideoBitDepth() const { + return m_maxVideoBitDepth.value(); +} + +void GetVideoStreamParams::setMaxVideoBitDepth(qint32 newMaxVideoBitDepth) { + m_maxVideoBitDepth = newMaxVideoBitDepth; +} + +bool GetVideoStreamParams::maxVideoBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxVideoBitDepth.has_value(); +} + +void GetVideoStreamParams::setMaxVideoBitDepthNull() { + m_maxVideoBitDepth = std::nullopt; +} + + +const QString &GetVideoStreamParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void GetVideoStreamParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + +bool GetVideoStreamParams::mediaSourceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaSourceId.isNull(); +} + +void GetVideoStreamParams::setMediaSourceIdNull() { + m_mediaSourceId.clear(); +} + + +const qint32 &GetVideoStreamParams::minSegments() const { + return m_minSegments.value(); +} + +void GetVideoStreamParams::setMinSegments(qint32 newMinSegments) { + m_minSegments = newMinSegments; +} + +bool GetVideoStreamParams::minSegmentsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minSegments.has_value(); +} + +void GetVideoStreamParams::setMinSegmentsNull() { + m_minSegments = std::nullopt; +} + + +const QString &GetVideoStreamParams::params() const { + return m_params; +} + +void GetVideoStreamParams::setParams(QString newParams) { + m_params = newParams; +} + +bool GetVideoStreamParams::paramsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_params.isNull(); +} + +void GetVideoStreamParams::setParamsNull() { + m_params.clear(); +} + + +const QString &GetVideoStreamParams::playSessionId() const { + return m_playSessionId; +} + +void GetVideoStreamParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool GetVideoStreamParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void GetVideoStreamParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const QString &GetVideoStreamParams::profile() const { + return m_profile; +} + +void GetVideoStreamParams::setProfile(QString newProfile) { + m_profile = newProfile; +} + +bool GetVideoStreamParams::profileNull() const { + // Nullable: true + // Type Nullable: true + + + return m_profile.isNull(); +} + +void GetVideoStreamParams::setProfileNull() { + m_profile.clear(); +} + + +const bool &GetVideoStreamParams::requireAvc() const { + return m_requireAvc.value(); +} + +void GetVideoStreamParams::setRequireAvc(bool newRequireAvc) { + m_requireAvc = newRequireAvc; +} + +bool GetVideoStreamParams::requireAvcNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireAvc.has_value(); +} + +void GetVideoStreamParams::setRequireAvcNull() { + m_requireAvc = std::nullopt; +} + + +const bool &GetVideoStreamParams::requireNonAnamorphic() const { + return m_requireNonAnamorphic.value(); +} + +void GetVideoStreamParams::setRequireNonAnamorphic(bool newRequireNonAnamorphic) { + m_requireNonAnamorphic = newRequireNonAnamorphic; +} + +bool GetVideoStreamParams::requireNonAnamorphicNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireNonAnamorphic.has_value(); +} + +void GetVideoStreamParams::setRequireNonAnamorphicNull() { + m_requireNonAnamorphic = std::nullopt; +} + + +const QString &GetVideoStreamParams::segmentContainer() const { + return m_segmentContainer; +} + +void GetVideoStreamParams::setSegmentContainer(QString newSegmentContainer) { + m_segmentContainer = newSegmentContainer; +} + +bool GetVideoStreamParams::segmentContainerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_segmentContainer.isNull(); +} + +void GetVideoStreamParams::setSegmentContainerNull() { + m_segmentContainer.clear(); +} + + +const qint32 &GetVideoStreamParams::segmentLength() const { + return m_segmentLength.value(); +} + +void GetVideoStreamParams::setSegmentLength(qint32 newSegmentLength) { + m_segmentLength = newSegmentLength; +} + +bool GetVideoStreamParams::segmentLengthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_segmentLength.has_value(); +} + +void GetVideoStreamParams::setSegmentLengthNull() { + m_segmentLength = std::nullopt; +} + + +const qint64 &GetVideoStreamParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void GetVideoStreamParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool GetVideoStreamParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void GetVideoStreamParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const bool &GetVideoStreamParams::staticStreaming() const { + return m_staticStreaming.value(); +} + +void GetVideoStreamParams::setStaticStreaming(bool newStaticStreaming) { + m_staticStreaming = newStaticStreaming; +} + +bool GetVideoStreamParams::staticStreamingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_staticStreaming.has_value(); +} + +void GetVideoStreamParams::setStaticStreamingNull() { + m_staticStreaming = std::nullopt; +} + + +const QJsonObject &GetVideoStreamParams::streamOptions() const { + return m_streamOptions; +} + +void GetVideoStreamParams::setStreamOptions(QJsonObject newStreamOptions) { + m_streamOptions = newStreamOptions; +} + +bool GetVideoStreamParams::streamOptionsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_streamOptions.isEmpty(); +} + +void GetVideoStreamParams::setStreamOptionsNull() { + m_streamOptions= QJsonObject(); +} + + +const QString &GetVideoStreamParams::subtitleCodec() const { + return m_subtitleCodec; +} + +void GetVideoStreamParams::setSubtitleCodec(QString newSubtitleCodec) { + m_subtitleCodec = newSubtitleCodec; +} + +bool GetVideoStreamParams::subtitleCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleCodec.isNull(); +} + +void GetVideoStreamParams::setSubtitleCodecNull() { + m_subtitleCodec.clear(); +} + + +const SubtitleDeliveryMethod &GetVideoStreamParams::subtitleMethod() const { + return m_subtitleMethod; +} + +void GetVideoStreamParams::setSubtitleMethod(SubtitleDeliveryMethod newSubtitleMethod) { + m_subtitleMethod = newSubtitleMethod; +} + +bool GetVideoStreamParams::subtitleMethodNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleMethod== SubtitleDeliveryMethod::EnumNotSet; +} + +void GetVideoStreamParams::setSubtitleMethodNull() { + m_subtitleMethod= SubtitleDeliveryMethod::EnumNotSet; +} + + +const qint32 &GetVideoStreamParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void GetVideoStreamParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool GetVideoStreamParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void GetVideoStreamParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const QString &GetVideoStreamParams::tag() const { + return m_tag; +} + +void GetVideoStreamParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool GetVideoStreamParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void GetVideoStreamParams::setTagNull() { + m_tag.clear(); +} + + +const QString &GetVideoStreamParams::transcodeReasons() const { + return m_transcodeReasons; +} + +void GetVideoStreamParams::setTranscodeReasons(QString newTranscodeReasons) { + m_transcodeReasons = newTranscodeReasons; +} + +bool GetVideoStreamParams::transcodeReasonsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodeReasons.isNull(); +} + +void GetVideoStreamParams::setTranscodeReasonsNull() { + m_transcodeReasons.clear(); +} + + +const qint32 &GetVideoStreamParams::transcodingMaxAudioChannels() const { + return m_transcodingMaxAudioChannels.value(); +} + +void GetVideoStreamParams::setTranscodingMaxAudioChannels(qint32 newTranscodingMaxAudioChannels) { + m_transcodingMaxAudioChannels = newTranscodingMaxAudioChannels; +} + +bool GetVideoStreamParams::transcodingMaxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_transcodingMaxAudioChannels.has_value(); +} + +void GetVideoStreamParams::setTranscodingMaxAudioChannelsNull() { + m_transcodingMaxAudioChannels = std::nullopt; +} + + +const qint32 &GetVideoStreamParams::videoBitRate() const { + return m_videoBitRate.value(); +} + +void GetVideoStreamParams::setVideoBitRate(qint32 newVideoBitRate) { + m_videoBitRate = newVideoBitRate; +} + +bool GetVideoStreamParams::videoBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoBitRate.has_value(); +} + +void GetVideoStreamParams::setVideoBitRateNull() { + m_videoBitRate = std::nullopt; +} + + +const QString &GetVideoStreamParams::videoCodec() const { + return m_videoCodec; +} + +void GetVideoStreamParams::setVideoCodec(QString newVideoCodec) { + m_videoCodec = newVideoCodec; +} + +bool GetVideoStreamParams::videoCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoCodec.isNull(); +} + +void GetVideoStreamParams::setVideoCodecNull() { + m_videoCodec.clear(); +} + + +const qint32 &GetVideoStreamParams::videoStreamIndex() const { + return m_videoStreamIndex.value(); +} + +void GetVideoStreamParams::setVideoStreamIndex(qint32 newVideoStreamIndex) { + m_videoStreamIndex = newVideoStreamIndex; +} + +bool GetVideoStreamParams::videoStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoStreamIndex.has_value(); +} + +void GetVideoStreamParams::setVideoStreamIndexNull() { + m_videoStreamIndex = std::nullopt; +} + + +const qint32 &GetVideoStreamParams::width() const { + return m_width.value(); +} + +void GetVideoStreamParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool GetVideoStreamParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void GetVideoStreamParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getvirtualfoldersparams.cpp b/core/src/loader/getvirtualfoldersparams.cpp new file mode 100644 index 0000000..a0f6eab --- /dev/null +++ b/core/src/loader/getvirtualfoldersparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getvirtualfoldersparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetVirtualFoldersParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/getwakeonlaninfoparams.cpp b/core/src/loader/getwakeonlaninfoparams.cpp new file mode 100644 index 0000000..f29a3b3 --- /dev/null +++ b/core/src/loader/getwakeonlaninfoparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getwakeonlaninfoparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetWakeOnLanInfoParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/channelitemsortfield.h b/core/src/loader/getyearparams.cpp similarity index 70% rename from core/include/JellyfinQt/DTO/channelitemsortfield.h rename to core/src/loader/getyearparams.cpp index 7886638..cb98047 100644 --- a/core/include/JellyfinQt/DTO/channelitemsortfield.h +++ b/core/src/loader/getyearparams.cpp @@ -27,39 +27,45 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_CHANNELITEMSORTFIELD_H -#define JELLYFIN_DTO_CHANNELITEMSORTFIELD_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/getyearparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { -class ChannelItemSortFieldClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Name, - CommunityRating, - PremiereDate, - DateCreated, - Runtime, - PlayCount, - CommunityPlayCount, - }; - Q_ENUM(Value) -private: - explicit ChannelItemSortFieldClass(); -}; +using namespace Jellyfin::DTO; -typedef ChannelItemSortFieldClass::Value ChannelItemSortField; +// GetYearParams +const qint32 &GetYearParams::year() const { + return m_year; +} + +void GetYearParams::setYear(qint32 newYear) { + m_year = newYear; +} + + +const QString &GetYearParams::userId() const { + return m_userId; +} + +void GetYearParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetYearParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetYearParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_CHANNELITEMSORTFIELD_H diff --git a/core/src/loader/getyearsparams.cpp b/core/src/loader/getyearsparams.cpp new file mode 100644 index 0000000..bc76046 --- /dev/null +++ b/core/src/loader/getyearsparams.cpp @@ -0,0 +1,356 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/getyearsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// GetYearsParams + +const QList &GetYearsParams::enableImageTypes() const { + return m_enableImageTypes; +} + +void GetYearsParams::setEnableImageTypes(QList newEnableImageTypes) { + m_enableImageTypes = newEnableImageTypes; +} + +bool GetYearsParams::enableImageTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_enableImageTypes.size() == 0; +} + +void GetYearsParams::setEnableImageTypesNull() { + m_enableImageTypes.clear(); +} + + +const bool &GetYearsParams::enableImages() const { + return m_enableImages.value(); +} + +void GetYearsParams::setEnableImages(bool newEnableImages) { + m_enableImages = newEnableImages; +} + +bool GetYearsParams::enableImagesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableImages.has_value(); +} + +void GetYearsParams::setEnableImagesNull() { + m_enableImages = std::nullopt; +} + + +const bool &GetYearsParams::enableUserData() const { + return m_enableUserData.value(); +} + +void GetYearsParams::setEnableUserData(bool newEnableUserData) { + m_enableUserData = newEnableUserData; +} + +bool GetYearsParams::enableUserDataNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableUserData.has_value(); +} + +void GetYearsParams::setEnableUserDataNull() { + m_enableUserData = std::nullopt; +} + + +const QStringList &GetYearsParams::excludeItemTypes() const { + return m_excludeItemTypes; +} + +void GetYearsParams::setExcludeItemTypes(QStringList newExcludeItemTypes) { + m_excludeItemTypes = newExcludeItemTypes; +} + +bool GetYearsParams::excludeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_excludeItemTypes.size() == 0; +} + +void GetYearsParams::setExcludeItemTypesNull() { + m_excludeItemTypes.clear(); +} + + +const QList &GetYearsParams::fields() const { + return m_fields; +} + +void GetYearsParams::setFields(QList newFields) { + m_fields = newFields; +} + +bool GetYearsParams::fieldsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_fields.size() == 0; +} + +void GetYearsParams::setFieldsNull() { + m_fields.clear(); +} + + +const qint32 &GetYearsParams::imageTypeLimit() const { + return m_imageTypeLimit.value(); +} + +void GetYearsParams::setImageTypeLimit(qint32 newImageTypeLimit) { + m_imageTypeLimit = newImageTypeLimit; +} + +bool GetYearsParams::imageTypeLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageTypeLimit.has_value(); +} + +void GetYearsParams::setImageTypeLimitNull() { + m_imageTypeLimit = std::nullopt; +} + + +const QStringList &GetYearsParams::includeItemTypes() const { + return m_includeItemTypes; +} + +void GetYearsParams::setIncludeItemTypes(QStringList newIncludeItemTypes) { + m_includeItemTypes = newIncludeItemTypes; +} + +bool GetYearsParams::includeItemTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_includeItemTypes.size() == 0; +} + +void GetYearsParams::setIncludeItemTypesNull() { + m_includeItemTypes.clear(); +} + + +const qint32 &GetYearsParams::limit() const { + return m_limit.value(); +} + +void GetYearsParams::setLimit(qint32 newLimit) { + m_limit = newLimit; +} + +bool GetYearsParams::limitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_limit.has_value(); +} + +void GetYearsParams::setLimitNull() { + m_limit = std::nullopt; +} + + +const QStringList &GetYearsParams::mediaTypes() const { + return m_mediaTypes; +} + +void GetYearsParams::setMediaTypes(QStringList newMediaTypes) { + m_mediaTypes = newMediaTypes; +} + +bool GetYearsParams::mediaTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaTypes.size() == 0; +} + +void GetYearsParams::setMediaTypesNull() { + m_mediaTypes.clear(); +} + + +const QString &GetYearsParams::parentId() const { + return m_parentId; +} + +void GetYearsParams::setParentId(QString newParentId) { + m_parentId = newParentId; +} + +bool GetYearsParams::parentIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_parentId.isNull(); +} + +void GetYearsParams::setParentIdNull() { + m_parentId.clear(); +} + + +const bool &GetYearsParams::recursive() const { + return m_recursive.value(); +} + +void GetYearsParams::setRecursive(bool newRecursive) { + m_recursive = newRecursive; +} + +bool GetYearsParams::recursiveNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_recursive.has_value(); +} + +void GetYearsParams::setRecursiveNull() { + m_recursive = std::nullopt; +} + + +const QString &GetYearsParams::sortBy() const { + return m_sortBy; +} + +void GetYearsParams::setSortBy(QString newSortBy) { + m_sortBy = newSortBy; +} + +bool GetYearsParams::sortByNull() const { + // Nullable: true + // Type Nullable: true + + + return m_sortBy.isNull(); +} + +void GetYearsParams::setSortByNull() { + m_sortBy.clear(); +} + + +const QString &GetYearsParams::sortOrder() const { + return m_sortOrder; +} + +void GetYearsParams::setSortOrder(QString newSortOrder) { + m_sortOrder = newSortOrder; +} + +bool GetYearsParams::sortOrderNull() const { + // Nullable: true + // Type Nullable: true + + + return m_sortOrder.isNull(); +} + +void GetYearsParams::setSortOrderNull() { + m_sortOrder.clear(); +} + + +const qint32 &GetYearsParams::startIndex() const { + return m_startIndex.value(); +} + +void GetYearsParams::setStartIndex(qint32 newStartIndex) { + m_startIndex = newStartIndex; +} + +bool GetYearsParams::startIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startIndex.has_value(); +} + +void GetYearsParams::setStartIndexNull() { + m_startIndex = std::nullopt; +} + + +const QString &GetYearsParams::userId() const { + return m_userId; +} + +void GetYearsParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool GetYearsParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void GetYearsParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headartistimageparams.cpp b/core/src/loader/headartistimageparams.cpp new file mode 100644 index 0000000..95f8d95 --- /dev/null +++ b/core/src/loader/headartistimageparams.cpp @@ -0,0 +1,362 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headartistimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadArtistImageParams + +const qint32 &HeadArtistImageParams::imageIndex() const { + return m_imageIndex; +} + +void HeadArtistImageParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + + +const ImageType &HeadArtistImageParams::imageType() const { + return m_imageType; +} + +void HeadArtistImageParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &HeadArtistImageParams::name() const { + return m_name; +} + +void HeadArtistImageParams::setName(QString newName) { + m_name = newName; +} + + +const bool &HeadArtistImageParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void HeadArtistImageParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool HeadArtistImageParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void HeadArtistImageParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &HeadArtistImageParams::backgroundColor() const { + return m_backgroundColor; +} + +void HeadArtistImageParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool HeadArtistImageParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void HeadArtistImageParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &HeadArtistImageParams::blur() const { + return m_blur.value(); +} + +void HeadArtistImageParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool HeadArtistImageParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void HeadArtistImageParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &HeadArtistImageParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void HeadArtistImageParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool HeadArtistImageParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void HeadArtistImageParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &HeadArtistImageParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void HeadArtistImageParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool HeadArtistImageParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void HeadArtistImageParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &HeadArtistImageParams::format() const { + return m_format; +} + +void HeadArtistImageParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool HeadArtistImageParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void HeadArtistImageParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &HeadArtistImageParams::height() const { + return m_height.value(); +} + +void HeadArtistImageParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadArtistImageParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadArtistImageParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &HeadArtistImageParams::maxHeight() const { + return m_maxHeight.value(); +} + +void HeadArtistImageParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool HeadArtistImageParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void HeadArtistImageParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &HeadArtistImageParams::maxWidth() const { + return m_maxWidth.value(); +} + +void HeadArtistImageParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool HeadArtistImageParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void HeadArtistImageParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &HeadArtistImageParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void HeadArtistImageParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool HeadArtistImageParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void HeadArtistImageParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &HeadArtistImageParams::quality() const { + return m_quality.value(); +} + +void HeadArtistImageParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool HeadArtistImageParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void HeadArtistImageParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &HeadArtistImageParams::tag() const { + return m_tag; +} + +void HeadArtistImageParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool HeadArtistImageParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void HeadArtistImageParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &HeadArtistImageParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void HeadArtistImageParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool HeadArtistImageParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void HeadArtistImageParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &HeadArtistImageParams::width() const { + return m_width.value(); +} + +void HeadArtistImageParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadArtistImageParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadArtistImageParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headaudiostreambycontainerparams.cpp b/core/src/loader/headaudiostreambycontainerparams.cpp new file mode 100644 index 0000000..fa2628f --- /dev/null +++ b/core/src/loader/headaudiostreambycontainerparams.cpp @@ -0,0 +1,1046 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headaudiostreambycontainerparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadAudioStreamByContainerParams + +const QString &HeadAudioStreamByContainerParams::container() const { + return m_container; +} + +void HeadAudioStreamByContainerParams::setContainer(QString newContainer) { + m_container = newContainer; +} + + +const QString &HeadAudioStreamByContainerParams::itemId() const { + return m_itemId; +} + +void HeadAudioStreamByContainerParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const bool &HeadAudioStreamByContainerParams::allowAudioStreamCopy() const { + return m_allowAudioStreamCopy.value(); +} + +void HeadAudioStreamByContainerParams::setAllowAudioStreamCopy(bool newAllowAudioStreamCopy) { + m_allowAudioStreamCopy = newAllowAudioStreamCopy; +} + +bool HeadAudioStreamByContainerParams::allowAudioStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowAudioStreamCopy.has_value(); +} + +void HeadAudioStreamByContainerParams::setAllowAudioStreamCopyNull() { + m_allowAudioStreamCopy = std::nullopt; +} + + +const bool &HeadAudioStreamByContainerParams::allowVideoStreamCopy() const { + return m_allowVideoStreamCopy.value(); +} + +void HeadAudioStreamByContainerParams::setAllowVideoStreamCopy(bool newAllowVideoStreamCopy) { + m_allowVideoStreamCopy = newAllowVideoStreamCopy; +} + +bool HeadAudioStreamByContainerParams::allowVideoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowVideoStreamCopy.has_value(); +} + +void HeadAudioStreamByContainerParams::setAllowVideoStreamCopyNull() { + m_allowVideoStreamCopy = std::nullopt; +} + + +const qint32 &HeadAudioStreamByContainerParams::audioBitRate() const { + return m_audioBitRate.value(); +} + +void HeadAudioStreamByContainerParams::setAudioBitRate(qint32 newAudioBitRate) { + m_audioBitRate = newAudioBitRate; +} + +bool HeadAudioStreamByContainerParams::audioBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioBitRate.has_value(); +} + +void HeadAudioStreamByContainerParams::setAudioBitRateNull() { + m_audioBitRate = std::nullopt; +} + + +const qint32 &HeadAudioStreamByContainerParams::audioChannels() const { + return m_audioChannels.value(); +} + +void HeadAudioStreamByContainerParams::setAudioChannels(qint32 newAudioChannels) { + m_audioChannels = newAudioChannels; +} + +bool HeadAudioStreamByContainerParams::audioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioChannels.has_value(); +} + +void HeadAudioStreamByContainerParams::setAudioChannelsNull() { + m_audioChannels = std::nullopt; +} + + +const QString &HeadAudioStreamByContainerParams::audioCodec() const { + return m_audioCodec; +} + +void HeadAudioStreamByContainerParams::setAudioCodec(QString newAudioCodec) { + m_audioCodec = newAudioCodec; +} + +bool HeadAudioStreamByContainerParams::audioCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_audioCodec.isNull(); +} + +void HeadAudioStreamByContainerParams::setAudioCodecNull() { + m_audioCodec.clear(); +} + + +const qint32 &HeadAudioStreamByContainerParams::audioSampleRate() const { + return m_audioSampleRate.value(); +} + +void HeadAudioStreamByContainerParams::setAudioSampleRate(qint32 newAudioSampleRate) { + m_audioSampleRate = newAudioSampleRate; +} + +bool HeadAudioStreamByContainerParams::audioSampleRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioSampleRate.has_value(); +} + +void HeadAudioStreamByContainerParams::setAudioSampleRateNull() { + m_audioSampleRate = std::nullopt; +} + + +const qint32 &HeadAudioStreamByContainerParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void HeadAudioStreamByContainerParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool HeadAudioStreamByContainerParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void HeadAudioStreamByContainerParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &HeadAudioStreamByContainerParams::breakOnNonKeyFrames() const { + return m_breakOnNonKeyFrames.value(); +} + +void HeadAudioStreamByContainerParams::setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames) { + m_breakOnNonKeyFrames = newBreakOnNonKeyFrames; +} + +bool HeadAudioStreamByContainerParams::breakOnNonKeyFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_breakOnNonKeyFrames.has_value(); +} + +void HeadAudioStreamByContainerParams::setBreakOnNonKeyFramesNull() { + m_breakOnNonKeyFrames = std::nullopt; +} + + +const EncodingContext &HeadAudioStreamByContainerParams::context() const { + return m_context; +} + +void HeadAudioStreamByContainerParams::setContext(EncodingContext newContext) { + m_context = newContext; +} + +bool HeadAudioStreamByContainerParams::contextNull() const { + // Nullable: true + // Type Nullable: true + + + return m_context== EncodingContext::EnumNotSet; +} + +void HeadAudioStreamByContainerParams::setContextNull() { + m_context= EncodingContext::EnumNotSet; +} + + +const bool &HeadAudioStreamByContainerParams::copyTimestamps() const { + return m_copyTimestamps.value(); +} + +void HeadAudioStreamByContainerParams::setCopyTimestamps(bool newCopyTimestamps) { + m_copyTimestamps = newCopyTimestamps; +} + +bool HeadAudioStreamByContainerParams::copyTimestampsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_copyTimestamps.has_value(); +} + +void HeadAudioStreamByContainerParams::setCopyTimestampsNull() { + m_copyTimestamps = std::nullopt; +} + + +const qint32 &HeadAudioStreamByContainerParams::cpuCoreLimit() const { + return m_cpuCoreLimit.value(); +} + +void HeadAudioStreamByContainerParams::setCpuCoreLimit(qint32 newCpuCoreLimit) { + m_cpuCoreLimit = newCpuCoreLimit; +} + +bool HeadAudioStreamByContainerParams::cpuCoreLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cpuCoreLimit.has_value(); +} + +void HeadAudioStreamByContainerParams::setCpuCoreLimitNull() { + m_cpuCoreLimit = std::nullopt; +} + + +const bool &HeadAudioStreamByContainerParams::deInterlace() const { + return m_deInterlace.value(); +} + +void HeadAudioStreamByContainerParams::setDeInterlace(bool newDeInterlace) { + m_deInterlace = newDeInterlace; +} + +bool HeadAudioStreamByContainerParams::deInterlaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_deInterlace.has_value(); +} + +void HeadAudioStreamByContainerParams::setDeInterlaceNull() { + m_deInterlace = std::nullopt; +} + + +const QString &HeadAudioStreamByContainerParams::deviceId() const { + return m_deviceId; +} + +void HeadAudioStreamByContainerParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool HeadAudioStreamByContainerParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void HeadAudioStreamByContainerParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const QString &HeadAudioStreamByContainerParams::deviceProfileId() const { + return m_deviceProfileId; +} + +void HeadAudioStreamByContainerParams::setDeviceProfileId(QString newDeviceProfileId) { + m_deviceProfileId = newDeviceProfileId; +} + +bool HeadAudioStreamByContainerParams::deviceProfileIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceProfileId.isNull(); +} + +void HeadAudioStreamByContainerParams::setDeviceProfileIdNull() { + m_deviceProfileId.clear(); +} + + +const bool &HeadAudioStreamByContainerParams::enableAutoStreamCopy() const { + return m_enableAutoStreamCopy.value(); +} + +void HeadAudioStreamByContainerParams::setEnableAutoStreamCopy(bool newEnableAutoStreamCopy) { + m_enableAutoStreamCopy = newEnableAutoStreamCopy; +} + +bool HeadAudioStreamByContainerParams::enableAutoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableAutoStreamCopy.has_value(); +} + +void HeadAudioStreamByContainerParams::setEnableAutoStreamCopyNull() { + m_enableAutoStreamCopy = std::nullopt; +} + + +const bool &HeadAudioStreamByContainerParams::enableMpegtsM2TsMode() const { + return m_enableMpegtsM2TsMode.value(); +} + +void HeadAudioStreamByContainerParams::setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode) { + m_enableMpegtsM2TsMode = newEnableMpegtsM2TsMode; +} + +bool HeadAudioStreamByContainerParams::enableMpegtsM2TsModeNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableMpegtsM2TsMode.has_value(); +} + +void HeadAudioStreamByContainerParams::setEnableMpegtsM2TsModeNull() { + m_enableMpegtsM2TsMode = std::nullopt; +} + + +const float &HeadAudioStreamByContainerParams::framerate() const { + return m_framerate.value(); +} + +void HeadAudioStreamByContainerParams::setFramerate(float newFramerate) { + m_framerate = newFramerate; +} + +bool HeadAudioStreamByContainerParams::framerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_framerate.has_value(); +} + +void HeadAudioStreamByContainerParams::setFramerateNull() { + m_framerate = std::nullopt; +} + + +const qint32 &HeadAudioStreamByContainerParams::height() const { + return m_height.value(); +} + +void HeadAudioStreamByContainerParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadAudioStreamByContainerParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadAudioStreamByContainerParams::setHeightNull() { + m_height = std::nullopt; +} + + +const QString &HeadAudioStreamByContainerParams::level() const { + return m_level; +} + +void HeadAudioStreamByContainerParams::setLevel(QString newLevel) { + m_level = newLevel; +} + +bool HeadAudioStreamByContainerParams::levelNull() const { + // Nullable: true + // Type Nullable: true + + + return m_level.isNull(); +} + +void HeadAudioStreamByContainerParams::setLevelNull() { + m_level.clear(); +} + + +const QString &HeadAudioStreamByContainerParams::liveStreamId() const { + return m_liveStreamId; +} + +void HeadAudioStreamByContainerParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool HeadAudioStreamByContainerParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void HeadAudioStreamByContainerParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const qint32 &HeadAudioStreamByContainerParams::maxAudioBitDepth() const { + return m_maxAudioBitDepth.value(); +} + +void HeadAudioStreamByContainerParams::setMaxAudioBitDepth(qint32 newMaxAudioBitDepth) { + m_maxAudioBitDepth = newMaxAudioBitDepth; +} + +bool HeadAudioStreamByContainerParams::maxAudioBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioBitDepth.has_value(); +} + +void HeadAudioStreamByContainerParams::setMaxAudioBitDepthNull() { + m_maxAudioBitDepth = std::nullopt; +} + + +const qint32 &HeadAudioStreamByContainerParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void HeadAudioStreamByContainerParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool HeadAudioStreamByContainerParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void HeadAudioStreamByContainerParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const float &HeadAudioStreamByContainerParams::maxFramerate() const { + return m_maxFramerate.value(); +} + +void HeadAudioStreamByContainerParams::setMaxFramerate(float newMaxFramerate) { + m_maxFramerate = newMaxFramerate; +} + +bool HeadAudioStreamByContainerParams::maxFramerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxFramerate.has_value(); +} + +void HeadAudioStreamByContainerParams::setMaxFramerateNull() { + m_maxFramerate = std::nullopt; +} + + +const qint32 &HeadAudioStreamByContainerParams::maxRefFrames() const { + return m_maxRefFrames.value(); +} + +void HeadAudioStreamByContainerParams::setMaxRefFrames(qint32 newMaxRefFrames) { + m_maxRefFrames = newMaxRefFrames; +} + +bool HeadAudioStreamByContainerParams::maxRefFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxRefFrames.has_value(); +} + +void HeadAudioStreamByContainerParams::setMaxRefFramesNull() { + m_maxRefFrames = std::nullopt; +} + + +const qint32 &HeadAudioStreamByContainerParams::maxVideoBitDepth() const { + return m_maxVideoBitDepth.value(); +} + +void HeadAudioStreamByContainerParams::setMaxVideoBitDepth(qint32 newMaxVideoBitDepth) { + m_maxVideoBitDepth = newMaxVideoBitDepth; +} + +bool HeadAudioStreamByContainerParams::maxVideoBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxVideoBitDepth.has_value(); +} + +void HeadAudioStreamByContainerParams::setMaxVideoBitDepthNull() { + m_maxVideoBitDepth = std::nullopt; +} + + +const QString &HeadAudioStreamByContainerParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void HeadAudioStreamByContainerParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + +bool HeadAudioStreamByContainerParams::mediaSourceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaSourceId.isNull(); +} + +void HeadAudioStreamByContainerParams::setMediaSourceIdNull() { + m_mediaSourceId.clear(); +} + + +const qint32 &HeadAudioStreamByContainerParams::minSegments() const { + return m_minSegments.value(); +} + +void HeadAudioStreamByContainerParams::setMinSegments(qint32 newMinSegments) { + m_minSegments = newMinSegments; +} + +bool HeadAudioStreamByContainerParams::minSegmentsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minSegments.has_value(); +} + +void HeadAudioStreamByContainerParams::setMinSegmentsNull() { + m_minSegments = std::nullopt; +} + + +const QString &HeadAudioStreamByContainerParams::params() const { + return m_params; +} + +void HeadAudioStreamByContainerParams::setParams(QString newParams) { + m_params = newParams; +} + +bool HeadAudioStreamByContainerParams::paramsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_params.isNull(); +} + +void HeadAudioStreamByContainerParams::setParamsNull() { + m_params.clear(); +} + + +const QString &HeadAudioStreamByContainerParams::playSessionId() const { + return m_playSessionId; +} + +void HeadAudioStreamByContainerParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool HeadAudioStreamByContainerParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void HeadAudioStreamByContainerParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const QString &HeadAudioStreamByContainerParams::profile() const { + return m_profile; +} + +void HeadAudioStreamByContainerParams::setProfile(QString newProfile) { + m_profile = newProfile; +} + +bool HeadAudioStreamByContainerParams::profileNull() const { + // Nullable: true + // Type Nullable: true + + + return m_profile.isNull(); +} + +void HeadAudioStreamByContainerParams::setProfileNull() { + m_profile.clear(); +} + + +const bool &HeadAudioStreamByContainerParams::requireAvc() const { + return m_requireAvc.value(); +} + +void HeadAudioStreamByContainerParams::setRequireAvc(bool newRequireAvc) { + m_requireAvc = newRequireAvc; +} + +bool HeadAudioStreamByContainerParams::requireAvcNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireAvc.has_value(); +} + +void HeadAudioStreamByContainerParams::setRequireAvcNull() { + m_requireAvc = std::nullopt; +} + + +const bool &HeadAudioStreamByContainerParams::requireNonAnamorphic() const { + return m_requireNonAnamorphic.value(); +} + +void HeadAudioStreamByContainerParams::setRequireNonAnamorphic(bool newRequireNonAnamorphic) { + m_requireNonAnamorphic = newRequireNonAnamorphic; +} + +bool HeadAudioStreamByContainerParams::requireNonAnamorphicNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireNonAnamorphic.has_value(); +} + +void HeadAudioStreamByContainerParams::setRequireNonAnamorphicNull() { + m_requireNonAnamorphic = std::nullopt; +} + + +const QString &HeadAudioStreamByContainerParams::segmentContainer() const { + return m_segmentContainer; +} + +void HeadAudioStreamByContainerParams::setSegmentContainer(QString newSegmentContainer) { + m_segmentContainer = newSegmentContainer; +} + +bool HeadAudioStreamByContainerParams::segmentContainerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_segmentContainer.isNull(); +} + +void HeadAudioStreamByContainerParams::setSegmentContainerNull() { + m_segmentContainer.clear(); +} + + +const qint32 &HeadAudioStreamByContainerParams::segmentLength() const { + return m_segmentLength.value(); +} + +void HeadAudioStreamByContainerParams::setSegmentLength(qint32 newSegmentLength) { + m_segmentLength = newSegmentLength; +} + +bool HeadAudioStreamByContainerParams::segmentLengthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_segmentLength.has_value(); +} + +void HeadAudioStreamByContainerParams::setSegmentLengthNull() { + m_segmentLength = std::nullopt; +} + + +const qint64 &HeadAudioStreamByContainerParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void HeadAudioStreamByContainerParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool HeadAudioStreamByContainerParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void HeadAudioStreamByContainerParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const bool &HeadAudioStreamByContainerParams::staticStreaming() const { + return m_staticStreaming.value(); +} + +void HeadAudioStreamByContainerParams::setStaticStreaming(bool newStaticStreaming) { + m_staticStreaming = newStaticStreaming; +} + +bool HeadAudioStreamByContainerParams::staticStreamingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_staticStreaming.has_value(); +} + +void HeadAudioStreamByContainerParams::setStaticStreamingNull() { + m_staticStreaming = std::nullopt; +} + + +const QJsonObject &HeadAudioStreamByContainerParams::streamOptions() const { + return m_streamOptions; +} + +void HeadAudioStreamByContainerParams::setStreamOptions(QJsonObject newStreamOptions) { + m_streamOptions = newStreamOptions; +} + +bool HeadAudioStreamByContainerParams::streamOptionsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_streamOptions.isEmpty(); +} + +void HeadAudioStreamByContainerParams::setStreamOptionsNull() { + m_streamOptions= QJsonObject(); +} + + +const QString &HeadAudioStreamByContainerParams::subtitleCodec() const { + return m_subtitleCodec; +} + +void HeadAudioStreamByContainerParams::setSubtitleCodec(QString newSubtitleCodec) { + m_subtitleCodec = newSubtitleCodec; +} + +bool HeadAudioStreamByContainerParams::subtitleCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleCodec.isNull(); +} + +void HeadAudioStreamByContainerParams::setSubtitleCodecNull() { + m_subtitleCodec.clear(); +} + + +const SubtitleDeliveryMethod &HeadAudioStreamByContainerParams::subtitleMethod() const { + return m_subtitleMethod; +} + +void HeadAudioStreamByContainerParams::setSubtitleMethod(SubtitleDeliveryMethod newSubtitleMethod) { + m_subtitleMethod = newSubtitleMethod; +} + +bool HeadAudioStreamByContainerParams::subtitleMethodNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleMethod== SubtitleDeliveryMethod::EnumNotSet; +} + +void HeadAudioStreamByContainerParams::setSubtitleMethodNull() { + m_subtitleMethod= SubtitleDeliveryMethod::EnumNotSet; +} + + +const qint32 &HeadAudioStreamByContainerParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void HeadAudioStreamByContainerParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool HeadAudioStreamByContainerParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void HeadAudioStreamByContainerParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const QString &HeadAudioStreamByContainerParams::tag() const { + return m_tag; +} + +void HeadAudioStreamByContainerParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool HeadAudioStreamByContainerParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void HeadAudioStreamByContainerParams::setTagNull() { + m_tag.clear(); +} + + +const QString &HeadAudioStreamByContainerParams::transcodeReasons() const { + return m_transcodeReasons; +} + +void HeadAudioStreamByContainerParams::setTranscodeReasons(QString newTranscodeReasons) { + m_transcodeReasons = newTranscodeReasons; +} + +bool HeadAudioStreamByContainerParams::transcodeReasonsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodeReasons.isNull(); +} + +void HeadAudioStreamByContainerParams::setTranscodeReasonsNull() { + m_transcodeReasons.clear(); +} + + +const qint32 &HeadAudioStreamByContainerParams::transcodingMaxAudioChannels() const { + return m_transcodingMaxAudioChannels.value(); +} + +void HeadAudioStreamByContainerParams::setTranscodingMaxAudioChannels(qint32 newTranscodingMaxAudioChannels) { + m_transcodingMaxAudioChannels = newTranscodingMaxAudioChannels; +} + +bool HeadAudioStreamByContainerParams::transcodingMaxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_transcodingMaxAudioChannels.has_value(); +} + +void HeadAudioStreamByContainerParams::setTranscodingMaxAudioChannelsNull() { + m_transcodingMaxAudioChannels = std::nullopt; +} + + +const qint32 &HeadAudioStreamByContainerParams::videoBitRate() const { + return m_videoBitRate.value(); +} + +void HeadAudioStreamByContainerParams::setVideoBitRate(qint32 newVideoBitRate) { + m_videoBitRate = newVideoBitRate; +} + +bool HeadAudioStreamByContainerParams::videoBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoBitRate.has_value(); +} + +void HeadAudioStreamByContainerParams::setVideoBitRateNull() { + m_videoBitRate = std::nullopt; +} + + +const QString &HeadAudioStreamByContainerParams::videoCodec() const { + return m_videoCodec; +} + +void HeadAudioStreamByContainerParams::setVideoCodec(QString newVideoCodec) { + m_videoCodec = newVideoCodec; +} + +bool HeadAudioStreamByContainerParams::videoCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoCodec.isNull(); +} + +void HeadAudioStreamByContainerParams::setVideoCodecNull() { + m_videoCodec.clear(); +} + + +const qint32 &HeadAudioStreamByContainerParams::videoStreamIndex() const { + return m_videoStreamIndex.value(); +} + +void HeadAudioStreamByContainerParams::setVideoStreamIndex(qint32 newVideoStreamIndex) { + m_videoStreamIndex = newVideoStreamIndex; +} + +bool HeadAudioStreamByContainerParams::videoStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoStreamIndex.has_value(); +} + +void HeadAudioStreamByContainerParams::setVideoStreamIndexNull() { + m_videoStreamIndex = std::nullopt; +} + + +const qint32 &HeadAudioStreamByContainerParams::width() const { + return m_width.value(); +} + +void HeadAudioStreamByContainerParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadAudioStreamByContainerParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadAudioStreamByContainerParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headaudiostreamparams.cpp b/core/src/loader/headaudiostreamparams.cpp new file mode 100644 index 0000000..79c6ae3 --- /dev/null +++ b/core/src/loader/headaudiostreamparams.cpp @@ -0,0 +1,1058 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headaudiostreamparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadAudioStreamParams + +const QString &HeadAudioStreamParams::itemId() const { + return m_itemId; +} + +void HeadAudioStreamParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const bool &HeadAudioStreamParams::allowAudioStreamCopy() const { + return m_allowAudioStreamCopy.value(); +} + +void HeadAudioStreamParams::setAllowAudioStreamCopy(bool newAllowAudioStreamCopy) { + m_allowAudioStreamCopy = newAllowAudioStreamCopy; +} + +bool HeadAudioStreamParams::allowAudioStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowAudioStreamCopy.has_value(); +} + +void HeadAudioStreamParams::setAllowAudioStreamCopyNull() { + m_allowAudioStreamCopy = std::nullopt; +} + + +const bool &HeadAudioStreamParams::allowVideoStreamCopy() const { + return m_allowVideoStreamCopy.value(); +} + +void HeadAudioStreamParams::setAllowVideoStreamCopy(bool newAllowVideoStreamCopy) { + m_allowVideoStreamCopy = newAllowVideoStreamCopy; +} + +bool HeadAudioStreamParams::allowVideoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowVideoStreamCopy.has_value(); +} + +void HeadAudioStreamParams::setAllowVideoStreamCopyNull() { + m_allowVideoStreamCopy = std::nullopt; +} + + +const qint32 &HeadAudioStreamParams::audioBitRate() const { + return m_audioBitRate.value(); +} + +void HeadAudioStreamParams::setAudioBitRate(qint32 newAudioBitRate) { + m_audioBitRate = newAudioBitRate; +} + +bool HeadAudioStreamParams::audioBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioBitRate.has_value(); +} + +void HeadAudioStreamParams::setAudioBitRateNull() { + m_audioBitRate = std::nullopt; +} + + +const qint32 &HeadAudioStreamParams::audioChannels() const { + return m_audioChannels.value(); +} + +void HeadAudioStreamParams::setAudioChannels(qint32 newAudioChannels) { + m_audioChannels = newAudioChannels; +} + +bool HeadAudioStreamParams::audioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioChannels.has_value(); +} + +void HeadAudioStreamParams::setAudioChannelsNull() { + m_audioChannels = std::nullopt; +} + + +const QString &HeadAudioStreamParams::audioCodec() const { + return m_audioCodec; +} + +void HeadAudioStreamParams::setAudioCodec(QString newAudioCodec) { + m_audioCodec = newAudioCodec; +} + +bool HeadAudioStreamParams::audioCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_audioCodec.isNull(); +} + +void HeadAudioStreamParams::setAudioCodecNull() { + m_audioCodec.clear(); +} + + +const qint32 &HeadAudioStreamParams::audioSampleRate() const { + return m_audioSampleRate.value(); +} + +void HeadAudioStreamParams::setAudioSampleRate(qint32 newAudioSampleRate) { + m_audioSampleRate = newAudioSampleRate; +} + +bool HeadAudioStreamParams::audioSampleRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioSampleRate.has_value(); +} + +void HeadAudioStreamParams::setAudioSampleRateNull() { + m_audioSampleRate = std::nullopt; +} + + +const qint32 &HeadAudioStreamParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void HeadAudioStreamParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool HeadAudioStreamParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void HeadAudioStreamParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &HeadAudioStreamParams::breakOnNonKeyFrames() const { + return m_breakOnNonKeyFrames.value(); +} + +void HeadAudioStreamParams::setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames) { + m_breakOnNonKeyFrames = newBreakOnNonKeyFrames; +} + +bool HeadAudioStreamParams::breakOnNonKeyFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_breakOnNonKeyFrames.has_value(); +} + +void HeadAudioStreamParams::setBreakOnNonKeyFramesNull() { + m_breakOnNonKeyFrames = std::nullopt; +} + + +const QString &HeadAudioStreamParams::container() const { + return m_container; +} + +void HeadAudioStreamParams::setContainer(QString newContainer) { + m_container = newContainer; +} + +bool HeadAudioStreamParams::containerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_container.isNull(); +} + +void HeadAudioStreamParams::setContainerNull() { + m_container.clear(); +} + + +const EncodingContext &HeadAudioStreamParams::context() const { + return m_context; +} + +void HeadAudioStreamParams::setContext(EncodingContext newContext) { + m_context = newContext; +} + +bool HeadAudioStreamParams::contextNull() const { + // Nullable: true + // Type Nullable: true + + + return m_context== EncodingContext::EnumNotSet; +} + +void HeadAudioStreamParams::setContextNull() { + m_context= EncodingContext::EnumNotSet; +} + + +const bool &HeadAudioStreamParams::copyTimestamps() const { + return m_copyTimestamps.value(); +} + +void HeadAudioStreamParams::setCopyTimestamps(bool newCopyTimestamps) { + m_copyTimestamps = newCopyTimestamps; +} + +bool HeadAudioStreamParams::copyTimestampsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_copyTimestamps.has_value(); +} + +void HeadAudioStreamParams::setCopyTimestampsNull() { + m_copyTimestamps = std::nullopt; +} + + +const qint32 &HeadAudioStreamParams::cpuCoreLimit() const { + return m_cpuCoreLimit.value(); +} + +void HeadAudioStreamParams::setCpuCoreLimit(qint32 newCpuCoreLimit) { + m_cpuCoreLimit = newCpuCoreLimit; +} + +bool HeadAudioStreamParams::cpuCoreLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cpuCoreLimit.has_value(); +} + +void HeadAudioStreamParams::setCpuCoreLimitNull() { + m_cpuCoreLimit = std::nullopt; +} + + +const bool &HeadAudioStreamParams::deInterlace() const { + return m_deInterlace.value(); +} + +void HeadAudioStreamParams::setDeInterlace(bool newDeInterlace) { + m_deInterlace = newDeInterlace; +} + +bool HeadAudioStreamParams::deInterlaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_deInterlace.has_value(); +} + +void HeadAudioStreamParams::setDeInterlaceNull() { + m_deInterlace = std::nullopt; +} + + +const QString &HeadAudioStreamParams::deviceId() const { + return m_deviceId; +} + +void HeadAudioStreamParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool HeadAudioStreamParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void HeadAudioStreamParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const QString &HeadAudioStreamParams::deviceProfileId() const { + return m_deviceProfileId; +} + +void HeadAudioStreamParams::setDeviceProfileId(QString newDeviceProfileId) { + m_deviceProfileId = newDeviceProfileId; +} + +bool HeadAudioStreamParams::deviceProfileIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceProfileId.isNull(); +} + +void HeadAudioStreamParams::setDeviceProfileIdNull() { + m_deviceProfileId.clear(); +} + + +const bool &HeadAudioStreamParams::enableAutoStreamCopy() const { + return m_enableAutoStreamCopy.value(); +} + +void HeadAudioStreamParams::setEnableAutoStreamCopy(bool newEnableAutoStreamCopy) { + m_enableAutoStreamCopy = newEnableAutoStreamCopy; +} + +bool HeadAudioStreamParams::enableAutoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableAutoStreamCopy.has_value(); +} + +void HeadAudioStreamParams::setEnableAutoStreamCopyNull() { + m_enableAutoStreamCopy = std::nullopt; +} + + +const bool &HeadAudioStreamParams::enableMpegtsM2TsMode() const { + return m_enableMpegtsM2TsMode.value(); +} + +void HeadAudioStreamParams::setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode) { + m_enableMpegtsM2TsMode = newEnableMpegtsM2TsMode; +} + +bool HeadAudioStreamParams::enableMpegtsM2TsModeNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableMpegtsM2TsMode.has_value(); +} + +void HeadAudioStreamParams::setEnableMpegtsM2TsModeNull() { + m_enableMpegtsM2TsMode = std::nullopt; +} + + +const float &HeadAudioStreamParams::framerate() const { + return m_framerate.value(); +} + +void HeadAudioStreamParams::setFramerate(float newFramerate) { + m_framerate = newFramerate; +} + +bool HeadAudioStreamParams::framerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_framerate.has_value(); +} + +void HeadAudioStreamParams::setFramerateNull() { + m_framerate = std::nullopt; +} + + +const qint32 &HeadAudioStreamParams::height() const { + return m_height.value(); +} + +void HeadAudioStreamParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadAudioStreamParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadAudioStreamParams::setHeightNull() { + m_height = std::nullopt; +} + + +const QString &HeadAudioStreamParams::level() const { + return m_level; +} + +void HeadAudioStreamParams::setLevel(QString newLevel) { + m_level = newLevel; +} + +bool HeadAudioStreamParams::levelNull() const { + // Nullable: true + // Type Nullable: true + + + return m_level.isNull(); +} + +void HeadAudioStreamParams::setLevelNull() { + m_level.clear(); +} + + +const QString &HeadAudioStreamParams::liveStreamId() const { + return m_liveStreamId; +} + +void HeadAudioStreamParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool HeadAudioStreamParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void HeadAudioStreamParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const qint32 &HeadAudioStreamParams::maxAudioBitDepth() const { + return m_maxAudioBitDepth.value(); +} + +void HeadAudioStreamParams::setMaxAudioBitDepth(qint32 newMaxAudioBitDepth) { + m_maxAudioBitDepth = newMaxAudioBitDepth; +} + +bool HeadAudioStreamParams::maxAudioBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioBitDepth.has_value(); +} + +void HeadAudioStreamParams::setMaxAudioBitDepthNull() { + m_maxAudioBitDepth = std::nullopt; +} + + +const qint32 &HeadAudioStreamParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void HeadAudioStreamParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool HeadAudioStreamParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void HeadAudioStreamParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const float &HeadAudioStreamParams::maxFramerate() const { + return m_maxFramerate.value(); +} + +void HeadAudioStreamParams::setMaxFramerate(float newMaxFramerate) { + m_maxFramerate = newMaxFramerate; +} + +bool HeadAudioStreamParams::maxFramerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxFramerate.has_value(); +} + +void HeadAudioStreamParams::setMaxFramerateNull() { + m_maxFramerate = std::nullopt; +} + + +const qint32 &HeadAudioStreamParams::maxRefFrames() const { + return m_maxRefFrames.value(); +} + +void HeadAudioStreamParams::setMaxRefFrames(qint32 newMaxRefFrames) { + m_maxRefFrames = newMaxRefFrames; +} + +bool HeadAudioStreamParams::maxRefFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxRefFrames.has_value(); +} + +void HeadAudioStreamParams::setMaxRefFramesNull() { + m_maxRefFrames = std::nullopt; +} + + +const qint32 &HeadAudioStreamParams::maxVideoBitDepth() const { + return m_maxVideoBitDepth.value(); +} + +void HeadAudioStreamParams::setMaxVideoBitDepth(qint32 newMaxVideoBitDepth) { + m_maxVideoBitDepth = newMaxVideoBitDepth; +} + +bool HeadAudioStreamParams::maxVideoBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxVideoBitDepth.has_value(); +} + +void HeadAudioStreamParams::setMaxVideoBitDepthNull() { + m_maxVideoBitDepth = std::nullopt; +} + + +const QString &HeadAudioStreamParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void HeadAudioStreamParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + +bool HeadAudioStreamParams::mediaSourceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaSourceId.isNull(); +} + +void HeadAudioStreamParams::setMediaSourceIdNull() { + m_mediaSourceId.clear(); +} + + +const qint32 &HeadAudioStreamParams::minSegments() const { + return m_minSegments.value(); +} + +void HeadAudioStreamParams::setMinSegments(qint32 newMinSegments) { + m_minSegments = newMinSegments; +} + +bool HeadAudioStreamParams::minSegmentsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minSegments.has_value(); +} + +void HeadAudioStreamParams::setMinSegmentsNull() { + m_minSegments = std::nullopt; +} + + +const QString &HeadAudioStreamParams::params() const { + return m_params; +} + +void HeadAudioStreamParams::setParams(QString newParams) { + m_params = newParams; +} + +bool HeadAudioStreamParams::paramsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_params.isNull(); +} + +void HeadAudioStreamParams::setParamsNull() { + m_params.clear(); +} + + +const QString &HeadAudioStreamParams::playSessionId() const { + return m_playSessionId; +} + +void HeadAudioStreamParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool HeadAudioStreamParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void HeadAudioStreamParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const QString &HeadAudioStreamParams::profile() const { + return m_profile; +} + +void HeadAudioStreamParams::setProfile(QString newProfile) { + m_profile = newProfile; +} + +bool HeadAudioStreamParams::profileNull() const { + // Nullable: true + // Type Nullable: true + + + return m_profile.isNull(); +} + +void HeadAudioStreamParams::setProfileNull() { + m_profile.clear(); +} + + +const bool &HeadAudioStreamParams::requireAvc() const { + return m_requireAvc.value(); +} + +void HeadAudioStreamParams::setRequireAvc(bool newRequireAvc) { + m_requireAvc = newRequireAvc; +} + +bool HeadAudioStreamParams::requireAvcNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireAvc.has_value(); +} + +void HeadAudioStreamParams::setRequireAvcNull() { + m_requireAvc = std::nullopt; +} + + +const bool &HeadAudioStreamParams::requireNonAnamorphic() const { + return m_requireNonAnamorphic.value(); +} + +void HeadAudioStreamParams::setRequireNonAnamorphic(bool newRequireNonAnamorphic) { + m_requireNonAnamorphic = newRequireNonAnamorphic; +} + +bool HeadAudioStreamParams::requireNonAnamorphicNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireNonAnamorphic.has_value(); +} + +void HeadAudioStreamParams::setRequireNonAnamorphicNull() { + m_requireNonAnamorphic = std::nullopt; +} + + +const QString &HeadAudioStreamParams::segmentContainer() const { + return m_segmentContainer; +} + +void HeadAudioStreamParams::setSegmentContainer(QString newSegmentContainer) { + m_segmentContainer = newSegmentContainer; +} + +bool HeadAudioStreamParams::segmentContainerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_segmentContainer.isNull(); +} + +void HeadAudioStreamParams::setSegmentContainerNull() { + m_segmentContainer.clear(); +} + + +const qint32 &HeadAudioStreamParams::segmentLength() const { + return m_segmentLength.value(); +} + +void HeadAudioStreamParams::setSegmentLength(qint32 newSegmentLength) { + m_segmentLength = newSegmentLength; +} + +bool HeadAudioStreamParams::segmentLengthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_segmentLength.has_value(); +} + +void HeadAudioStreamParams::setSegmentLengthNull() { + m_segmentLength = std::nullopt; +} + + +const qint64 &HeadAudioStreamParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void HeadAudioStreamParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool HeadAudioStreamParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void HeadAudioStreamParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const bool &HeadAudioStreamParams::staticStreaming() const { + return m_staticStreaming.value(); +} + +void HeadAudioStreamParams::setStaticStreaming(bool newStaticStreaming) { + m_staticStreaming = newStaticStreaming; +} + +bool HeadAudioStreamParams::staticStreamingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_staticStreaming.has_value(); +} + +void HeadAudioStreamParams::setStaticStreamingNull() { + m_staticStreaming = std::nullopt; +} + + +const QJsonObject &HeadAudioStreamParams::streamOptions() const { + return m_streamOptions; +} + +void HeadAudioStreamParams::setStreamOptions(QJsonObject newStreamOptions) { + m_streamOptions = newStreamOptions; +} + +bool HeadAudioStreamParams::streamOptionsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_streamOptions.isEmpty(); +} + +void HeadAudioStreamParams::setStreamOptionsNull() { + m_streamOptions= QJsonObject(); +} + + +const QString &HeadAudioStreamParams::subtitleCodec() const { + return m_subtitleCodec; +} + +void HeadAudioStreamParams::setSubtitleCodec(QString newSubtitleCodec) { + m_subtitleCodec = newSubtitleCodec; +} + +bool HeadAudioStreamParams::subtitleCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleCodec.isNull(); +} + +void HeadAudioStreamParams::setSubtitleCodecNull() { + m_subtitleCodec.clear(); +} + + +const SubtitleDeliveryMethod &HeadAudioStreamParams::subtitleMethod() const { + return m_subtitleMethod; +} + +void HeadAudioStreamParams::setSubtitleMethod(SubtitleDeliveryMethod newSubtitleMethod) { + m_subtitleMethod = newSubtitleMethod; +} + +bool HeadAudioStreamParams::subtitleMethodNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleMethod== SubtitleDeliveryMethod::EnumNotSet; +} + +void HeadAudioStreamParams::setSubtitleMethodNull() { + m_subtitleMethod= SubtitleDeliveryMethod::EnumNotSet; +} + + +const qint32 &HeadAudioStreamParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void HeadAudioStreamParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool HeadAudioStreamParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void HeadAudioStreamParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const QString &HeadAudioStreamParams::tag() const { + return m_tag; +} + +void HeadAudioStreamParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool HeadAudioStreamParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void HeadAudioStreamParams::setTagNull() { + m_tag.clear(); +} + + +const QString &HeadAudioStreamParams::transcodeReasons() const { + return m_transcodeReasons; +} + +void HeadAudioStreamParams::setTranscodeReasons(QString newTranscodeReasons) { + m_transcodeReasons = newTranscodeReasons; +} + +bool HeadAudioStreamParams::transcodeReasonsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodeReasons.isNull(); +} + +void HeadAudioStreamParams::setTranscodeReasonsNull() { + m_transcodeReasons.clear(); +} + + +const qint32 &HeadAudioStreamParams::transcodingMaxAudioChannels() const { + return m_transcodingMaxAudioChannels.value(); +} + +void HeadAudioStreamParams::setTranscodingMaxAudioChannels(qint32 newTranscodingMaxAudioChannels) { + m_transcodingMaxAudioChannels = newTranscodingMaxAudioChannels; +} + +bool HeadAudioStreamParams::transcodingMaxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_transcodingMaxAudioChannels.has_value(); +} + +void HeadAudioStreamParams::setTranscodingMaxAudioChannelsNull() { + m_transcodingMaxAudioChannels = std::nullopt; +} + + +const qint32 &HeadAudioStreamParams::videoBitRate() const { + return m_videoBitRate.value(); +} + +void HeadAudioStreamParams::setVideoBitRate(qint32 newVideoBitRate) { + m_videoBitRate = newVideoBitRate; +} + +bool HeadAudioStreamParams::videoBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoBitRate.has_value(); +} + +void HeadAudioStreamParams::setVideoBitRateNull() { + m_videoBitRate = std::nullopt; +} + + +const QString &HeadAudioStreamParams::videoCodec() const { + return m_videoCodec; +} + +void HeadAudioStreamParams::setVideoCodec(QString newVideoCodec) { + m_videoCodec = newVideoCodec; +} + +bool HeadAudioStreamParams::videoCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoCodec.isNull(); +} + +void HeadAudioStreamParams::setVideoCodecNull() { + m_videoCodec.clear(); +} + + +const qint32 &HeadAudioStreamParams::videoStreamIndex() const { + return m_videoStreamIndex.value(); +} + +void HeadAudioStreamParams::setVideoStreamIndex(qint32 newVideoStreamIndex) { + m_videoStreamIndex = newVideoStreamIndex; +} + +bool HeadAudioStreamParams::videoStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoStreamIndex.has_value(); +} + +void HeadAudioStreamParams::setVideoStreamIndexNull() { + m_videoStreamIndex = std::nullopt; +} + + +const qint32 &HeadAudioStreamParams::width() const { + return m_width.value(); +} + +void HeadAudioStreamParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadAudioStreamParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadAudioStreamParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headgenreimagebyindexparams.cpp b/core/src/loader/headgenreimagebyindexparams.cpp new file mode 100644 index 0000000..5d85236 --- /dev/null +++ b/core/src/loader/headgenreimagebyindexparams.cpp @@ -0,0 +1,362 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headgenreimagebyindexparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadGenreImageByIndexParams + +const qint32 &HeadGenreImageByIndexParams::imageIndex() const { + return m_imageIndex; +} + +void HeadGenreImageByIndexParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + + +const ImageType &HeadGenreImageByIndexParams::imageType() const { + return m_imageType; +} + +void HeadGenreImageByIndexParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &HeadGenreImageByIndexParams::name() const { + return m_name; +} + +void HeadGenreImageByIndexParams::setName(QString newName) { + m_name = newName; +} + + +const bool &HeadGenreImageByIndexParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void HeadGenreImageByIndexParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool HeadGenreImageByIndexParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void HeadGenreImageByIndexParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &HeadGenreImageByIndexParams::backgroundColor() const { + return m_backgroundColor; +} + +void HeadGenreImageByIndexParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool HeadGenreImageByIndexParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void HeadGenreImageByIndexParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &HeadGenreImageByIndexParams::blur() const { + return m_blur.value(); +} + +void HeadGenreImageByIndexParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool HeadGenreImageByIndexParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void HeadGenreImageByIndexParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &HeadGenreImageByIndexParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void HeadGenreImageByIndexParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool HeadGenreImageByIndexParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void HeadGenreImageByIndexParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &HeadGenreImageByIndexParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void HeadGenreImageByIndexParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool HeadGenreImageByIndexParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void HeadGenreImageByIndexParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &HeadGenreImageByIndexParams::format() const { + return m_format; +} + +void HeadGenreImageByIndexParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool HeadGenreImageByIndexParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void HeadGenreImageByIndexParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &HeadGenreImageByIndexParams::height() const { + return m_height.value(); +} + +void HeadGenreImageByIndexParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadGenreImageByIndexParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadGenreImageByIndexParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &HeadGenreImageByIndexParams::maxHeight() const { + return m_maxHeight.value(); +} + +void HeadGenreImageByIndexParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool HeadGenreImageByIndexParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void HeadGenreImageByIndexParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &HeadGenreImageByIndexParams::maxWidth() const { + return m_maxWidth.value(); +} + +void HeadGenreImageByIndexParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool HeadGenreImageByIndexParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void HeadGenreImageByIndexParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &HeadGenreImageByIndexParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void HeadGenreImageByIndexParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool HeadGenreImageByIndexParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void HeadGenreImageByIndexParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &HeadGenreImageByIndexParams::quality() const { + return m_quality.value(); +} + +void HeadGenreImageByIndexParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool HeadGenreImageByIndexParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void HeadGenreImageByIndexParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &HeadGenreImageByIndexParams::tag() const { + return m_tag; +} + +void HeadGenreImageByIndexParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool HeadGenreImageByIndexParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void HeadGenreImageByIndexParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &HeadGenreImageByIndexParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void HeadGenreImageByIndexParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool HeadGenreImageByIndexParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void HeadGenreImageByIndexParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &HeadGenreImageByIndexParams::width() const { + return m_width.value(); +} + +void HeadGenreImageByIndexParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadGenreImageByIndexParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadGenreImageByIndexParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headgenreimageparams.cpp b/core/src/loader/headgenreimageparams.cpp new file mode 100644 index 0000000..4e831f8 --- /dev/null +++ b/core/src/loader/headgenreimageparams.cpp @@ -0,0 +1,374 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headgenreimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadGenreImageParams + +const ImageType &HeadGenreImageParams::imageType() const { + return m_imageType; +} + +void HeadGenreImageParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &HeadGenreImageParams::name() const { + return m_name; +} + +void HeadGenreImageParams::setName(QString newName) { + m_name = newName; +} + + +const bool &HeadGenreImageParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void HeadGenreImageParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool HeadGenreImageParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void HeadGenreImageParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &HeadGenreImageParams::backgroundColor() const { + return m_backgroundColor; +} + +void HeadGenreImageParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool HeadGenreImageParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void HeadGenreImageParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &HeadGenreImageParams::blur() const { + return m_blur.value(); +} + +void HeadGenreImageParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool HeadGenreImageParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void HeadGenreImageParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &HeadGenreImageParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void HeadGenreImageParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool HeadGenreImageParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void HeadGenreImageParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &HeadGenreImageParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void HeadGenreImageParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool HeadGenreImageParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void HeadGenreImageParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &HeadGenreImageParams::format() const { + return m_format; +} + +void HeadGenreImageParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool HeadGenreImageParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void HeadGenreImageParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &HeadGenreImageParams::height() const { + return m_height.value(); +} + +void HeadGenreImageParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadGenreImageParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadGenreImageParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &HeadGenreImageParams::imageIndex() const { + return m_imageIndex.value(); +} + +void HeadGenreImageParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + +bool HeadGenreImageParams::imageIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageIndex.has_value(); +} + +void HeadGenreImageParams::setImageIndexNull() { + m_imageIndex = std::nullopt; +} + + +const qint32 &HeadGenreImageParams::maxHeight() const { + return m_maxHeight.value(); +} + +void HeadGenreImageParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool HeadGenreImageParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void HeadGenreImageParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &HeadGenreImageParams::maxWidth() const { + return m_maxWidth.value(); +} + +void HeadGenreImageParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool HeadGenreImageParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void HeadGenreImageParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &HeadGenreImageParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void HeadGenreImageParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool HeadGenreImageParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void HeadGenreImageParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &HeadGenreImageParams::quality() const { + return m_quality.value(); +} + +void HeadGenreImageParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool HeadGenreImageParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void HeadGenreImageParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &HeadGenreImageParams::tag() const { + return m_tag; +} + +void HeadGenreImageParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool HeadGenreImageParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void HeadGenreImageParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &HeadGenreImageParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void HeadGenreImageParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool HeadGenreImageParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void HeadGenreImageParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &HeadGenreImageParams::width() const { + return m_width.value(); +} + +void HeadGenreImageParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadGenreImageParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadGenreImageParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headitemimage2params.cpp b/core/src/loader/headitemimage2params.cpp new file mode 100644 index 0000000..9225f7f --- /dev/null +++ b/core/src/loader/headitemimage2params.cpp @@ -0,0 +1,290 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headitemimage2params.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadItemImage2Params + +const ImageFormat &HeadItemImage2Params::format() const { + return m_format; +} + +void HeadItemImage2Params::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + + +const qint32 &HeadItemImage2Params::imageIndex() const { + return m_imageIndex; +} + +void HeadItemImage2Params::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + + +const ImageType &HeadItemImage2Params::imageType() const { + return m_imageType; +} + +void HeadItemImage2Params::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &HeadItemImage2Params::itemId() const { + return m_itemId; +} + +void HeadItemImage2Params::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const qint32 &HeadItemImage2Params::maxHeight() const { + return m_maxHeight; +} + +void HeadItemImage2Params::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + + +const qint32 &HeadItemImage2Params::maxWidth() const { + return m_maxWidth; +} + +void HeadItemImage2Params::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + + +const double &HeadItemImage2Params::percentPlayed() const { + return m_percentPlayed; +} + +void HeadItemImage2Params::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + + +const QString &HeadItemImage2Params::tag() const { + return m_tag; +} + +void HeadItemImage2Params::setTag(QString newTag) { + m_tag = newTag; +} + + +const qint32 &HeadItemImage2Params::unplayedCount() const { + return m_unplayedCount; +} + +void HeadItemImage2Params::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + + +const bool &HeadItemImage2Params::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void HeadItemImage2Params::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool HeadItemImage2Params::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void HeadItemImage2Params::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &HeadItemImage2Params::backgroundColor() const { + return m_backgroundColor; +} + +void HeadItemImage2Params::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool HeadItemImage2Params::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void HeadItemImage2Params::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &HeadItemImage2Params::blur() const { + return m_blur.value(); +} + +void HeadItemImage2Params::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool HeadItemImage2Params::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void HeadItemImage2Params::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &HeadItemImage2Params::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void HeadItemImage2Params::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool HeadItemImage2Params::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void HeadItemImage2Params::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &HeadItemImage2Params::foregroundLayer() const { + return m_foregroundLayer; +} + +void HeadItemImage2Params::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool HeadItemImage2Params::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void HeadItemImage2Params::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const qint32 &HeadItemImage2Params::height() const { + return m_height.value(); +} + +void HeadItemImage2Params::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadItemImage2Params::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadItemImage2Params::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &HeadItemImage2Params::quality() const { + return m_quality.value(); +} + +void HeadItemImage2Params::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool HeadItemImage2Params::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void HeadItemImage2Params::setQualityNull() { + m_quality = std::nullopt; +} + + +const qint32 &HeadItemImage2Params::width() const { + return m_width.value(); +} + +void HeadItemImage2Params::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadItemImage2Params::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadItemImage2Params::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headitemimagebyindexparams.cpp b/core/src/loader/headitemimagebyindexparams.cpp new file mode 100644 index 0000000..3acfda5 --- /dev/null +++ b/core/src/loader/headitemimagebyindexparams.cpp @@ -0,0 +1,362 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headitemimagebyindexparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadItemImageByIndexParams + +const qint32 &HeadItemImageByIndexParams::imageIndex() const { + return m_imageIndex; +} + +void HeadItemImageByIndexParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + + +const ImageType &HeadItemImageByIndexParams::imageType() const { + return m_imageType; +} + +void HeadItemImageByIndexParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &HeadItemImageByIndexParams::itemId() const { + return m_itemId; +} + +void HeadItemImageByIndexParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const bool &HeadItemImageByIndexParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void HeadItemImageByIndexParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool HeadItemImageByIndexParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void HeadItemImageByIndexParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &HeadItemImageByIndexParams::backgroundColor() const { + return m_backgroundColor; +} + +void HeadItemImageByIndexParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool HeadItemImageByIndexParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void HeadItemImageByIndexParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &HeadItemImageByIndexParams::blur() const { + return m_blur.value(); +} + +void HeadItemImageByIndexParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool HeadItemImageByIndexParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void HeadItemImageByIndexParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &HeadItemImageByIndexParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void HeadItemImageByIndexParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool HeadItemImageByIndexParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void HeadItemImageByIndexParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &HeadItemImageByIndexParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void HeadItemImageByIndexParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool HeadItemImageByIndexParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void HeadItemImageByIndexParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &HeadItemImageByIndexParams::format() const { + return m_format; +} + +void HeadItemImageByIndexParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool HeadItemImageByIndexParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void HeadItemImageByIndexParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &HeadItemImageByIndexParams::height() const { + return m_height.value(); +} + +void HeadItemImageByIndexParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadItemImageByIndexParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadItemImageByIndexParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &HeadItemImageByIndexParams::maxHeight() const { + return m_maxHeight.value(); +} + +void HeadItemImageByIndexParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool HeadItemImageByIndexParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void HeadItemImageByIndexParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &HeadItemImageByIndexParams::maxWidth() const { + return m_maxWidth.value(); +} + +void HeadItemImageByIndexParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool HeadItemImageByIndexParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void HeadItemImageByIndexParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &HeadItemImageByIndexParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void HeadItemImageByIndexParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool HeadItemImageByIndexParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void HeadItemImageByIndexParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &HeadItemImageByIndexParams::quality() const { + return m_quality.value(); +} + +void HeadItemImageByIndexParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool HeadItemImageByIndexParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void HeadItemImageByIndexParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &HeadItemImageByIndexParams::tag() const { + return m_tag; +} + +void HeadItemImageByIndexParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool HeadItemImageByIndexParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void HeadItemImageByIndexParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &HeadItemImageByIndexParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void HeadItemImageByIndexParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool HeadItemImageByIndexParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void HeadItemImageByIndexParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &HeadItemImageByIndexParams::width() const { + return m_width.value(); +} + +void HeadItemImageByIndexParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadItemImageByIndexParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadItemImageByIndexParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headitemimageparams.cpp b/core/src/loader/headitemimageparams.cpp new file mode 100644 index 0000000..2e94591 --- /dev/null +++ b/core/src/loader/headitemimageparams.cpp @@ -0,0 +1,374 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headitemimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadItemImageParams + +const ImageType &HeadItemImageParams::imageType() const { + return m_imageType; +} + +void HeadItemImageParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &HeadItemImageParams::itemId() const { + return m_itemId; +} + +void HeadItemImageParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const bool &HeadItemImageParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void HeadItemImageParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool HeadItemImageParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void HeadItemImageParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &HeadItemImageParams::backgroundColor() const { + return m_backgroundColor; +} + +void HeadItemImageParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool HeadItemImageParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void HeadItemImageParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &HeadItemImageParams::blur() const { + return m_blur.value(); +} + +void HeadItemImageParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool HeadItemImageParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void HeadItemImageParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &HeadItemImageParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void HeadItemImageParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool HeadItemImageParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void HeadItemImageParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &HeadItemImageParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void HeadItemImageParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool HeadItemImageParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void HeadItemImageParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &HeadItemImageParams::format() const { + return m_format; +} + +void HeadItemImageParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool HeadItemImageParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void HeadItemImageParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &HeadItemImageParams::height() const { + return m_height.value(); +} + +void HeadItemImageParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadItemImageParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadItemImageParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &HeadItemImageParams::imageIndex() const { + return m_imageIndex.value(); +} + +void HeadItemImageParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + +bool HeadItemImageParams::imageIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageIndex.has_value(); +} + +void HeadItemImageParams::setImageIndexNull() { + m_imageIndex = std::nullopt; +} + + +const qint32 &HeadItemImageParams::maxHeight() const { + return m_maxHeight.value(); +} + +void HeadItemImageParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool HeadItemImageParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void HeadItemImageParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &HeadItemImageParams::maxWidth() const { + return m_maxWidth.value(); +} + +void HeadItemImageParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool HeadItemImageParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void HeadItemImageParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &HeadItemImageParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void HeadItemImageParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool HeadItemImageParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void HeadItemImageParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &HeadItemImageParams::quality() const { + return m_quality.value(); +} + +void HeadItemImageParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool HeadItemImageParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void HeadItemImageParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &HeadItemImageParams::tag() const { + return m_tag; +} + +void HeadItemImageParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool HeadItemImageParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void HeadItemImageParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &HeadItemImageParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void HeadItemImageParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool HeadItemImageParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void HeadItemImageParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &HeadItemImageParams::width() const { + return m_width.value(); +} + +void HeadItemImageParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadItemImageParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadItemImageParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headmasterhlsaudioplaylistparams.cpp b/core/src/loader/headmasterhlsaudioplaylistparams.cpp new file mode 100644 index 0000000..4261906 --- /dev/null +++ b/core/src/loader/headmasterhlsaudioplaylistparams.cpp @@ -0,0 +1,1067 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headmasterhlsaudioplaylistparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadMasterHlsAudioPlaylistParams + +const QString &HeadMasterHlsAudioPlaylistParams::itemId() const { + return m_itemId; +} + +void HeadMasterHlsAudioPlaylistParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &HeadMasterHlsAudioPlaylistParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void HeadMasterHlsAudioPlaylistParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + + +const bool &HeadMasterHlsAudioPlaylistParams::allowAudioStreamCopy() const { + return m_allowAudioStreamCopy.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setAllowAudioStreamCopy(bool newAllowAudioStreamCopy) { + m_allowAudioStreamCopy = newAllowAudioStreamCopy; +} + +bool HeadMasterHlsAudioPlaylistParams::allowAudioStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowAudioStreamCopy.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setAllowAudioStreamCopyNull() { + m_allowAudioStreamCopy = std::nullopt; +} + + +const bool &HeadMasterHlsAudioPlaylistParams::allowVideoStreamCopy() const { + return m_allowVideoStreamCopy.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setAllowVideoStreamCopy(bool newAllowVideoStreamCopy) { + m_allowVideoStreamCopy = newAllowVideoStreamCopy; +} + +bool HeadMasterHlsAudioPlaylistParams::allowVideoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowVideoStreamCopy.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setAllowVideoStreamCopyNull() { + m_allowVideoStreamCopy = std::nullopt; +} + + +const qint32 &HeadMasterHlsAudioPlaylistParams::audioBitRate() const { + return m_audioBitRate.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setAudioBitRate(qint32 newAudioBitRate) { + m_audioBitRate = newAudioBitRate; +} + +bool HeadMasterHlsAudioPlaylistParams::audioBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioBitRate.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setAudioBitRateNull() { + m_audioBitRate = std::nullopt; +} + + +const qint32 &HeadMasterHlsAudioPlaylistParams::audioChannels() const { + return m_audioChannels.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setAudioChannels(qint32 newAudioChannels) { + m_audioChannels = newAudioChannels; +} + +bool HeadMasterHlsAudioPlaylistParams::audioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioChannels.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setAudioChannelsNull() { + m_audioChannels = std::nullopt; +} + + +const QString &HeadMasterHlsAudioPlaylistParams::audioCodec() const { + return m_audioCodec; +} + +void HeadMasterHlsAudioPlaylistParams::setAudioCodec(QString newAudioCodec) { + m_audioCodec = newAudioCodec; +} + +bool HeadMasterHlsAudioPlaylistParams::audioCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_audioCodec.isNull(); +} + +void HeadMasterHlsAudioPlaylistParams::setAudioCodecNull() { + m_audioCodec.clear(); +} + + +const qint32 &HeadMasterHlsAudioPlaylistParams::audioSampleRate() const { + return m_audioSampleRate.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setAudioSampleRate(qint32 newAudioSampleRate) { + m_audioSampleRate = newAudioSampleRate; +} + +bool HeadMasterHlsAudioPlaylistParams::audioSampleRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioSampleRate.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setAudioSampleRateNull() { + m_audioSampleRate = std::nullopt; +} + + +const qint32 &HeadMasterHlsAudioPlaylistParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool HeadMasterHlsAudioPlaylistParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &HeadMasterHlsAudioPlaylistParams::breakOnNonKeyFrames() const { + return m_breakOnNonKeyFrames.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames) { + m_breakOnNonKeyFrames = newBreakOnNonKeyFrames; +} + +bool HeadMasterHlsAudioPlaylistParams::breakOnNonKeyFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_breakOnNonKeyFrames.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setBreakOnNonKeyFramesNull() { + m_breakOnNonKeyFrames = std::nullopt; +} + + +const EncodingContext &HeadMasterHlsAudioPlaylistParams::context() const { + return m_context; +} + +void HeadMasterHlsAudioPlaylistParams::setContext(EncodingContext newContext) { + m_context = newContext; +} + +bool HeadMasterHlsAudioPlaylistParams::contextNull() const { + // Nullable: true + // Type Nullable: true + + + return m_context== EncodingContext::EnumNotSet; +} + +void HeadMasterHlsAudioPlaylistParams::setContextNull() { + m_context= EncodingContext::EnumNotSet; +} + + +const bool &HeadMasterHlsAudioPlaylistParams::copyTimestamps() const { + return m_copyTimestamps.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setCopyTimestamps(bool newCopyTimestamps) { + m_copyTimestamps = newCopyTimestamps; +} + +bool HeadMasterHlsAudioPlaylistParams::copyTimestampsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_copyTimestamps.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setCopyTimestampsNull() { + m_copyTimestamps = std::nullopt; +} + + +const qint32 &HeadMasterHlsAudioPlaylistParams::cpuCoreLimit() const { + return m_cpuCoreLimit.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setCpuCoreLimit(qint32 newCpuCoreLimit) { + m_cpuCoreLimit = newCpuCoreLimit; +} + +bool HeadMasterHlsAudioPlaylistParams::cpuCoreLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cpuCoreLimit.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setCpuCoreLimitNull() { + m_cpuCoreLimit = std::nullopt; +} + + +const bool &HeadMasterHlsAudioPlaylistParams::deInterlace() const { + return m_deInterlace.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setDeInterlace(bool newDeInterlace) { + m_deInterlace = newDeInterlace; +} + +bool HeadMasterHlsAudioPlaylistParams::deInterlaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_deInterlace.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setDeInterlaceNull() { + m_deInterlace = std::nullopt; +} + + +const QString &HeadMasterHlsAudioPlaylistParams::deviceId() const { + return m_deviceId; +} + +void HeadMasterHlsAudioPlaylistParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool HeadMasterHlsAudioPlaylistParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void HeadMasterHlsAudioPlaylistParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const QString &HeadMasterHlsAudioPlaylistParams::deviceProfileId() const { + return m_deviceProfileId; +} + +void HeadMasterHlsAudioPlaylistParams::setDeviceProfileId(QString newDeviceProfileId) { + m_deviceProfileId = newDeviceProfileId; +} + +bool HeadMasterHlsAudioPlaylistParams::deviceProfileIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceProfileId.isNull(); +} + +void HeadMasterHlsAudioPlaylistParams::setDeviceProfileIdNull() { + m_deviceProfileId.clear(); +} + + +const bool &HeadMasterHlsAudioPlaylistParams::enableAdaptiveBitrateStreaming() const { + return m_enableAdaptiveBitrateStreaming.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setEnableAdaptiveBitrateStreaming(bool newEnableAdaptiveBitrateStreaming) { + m_enableAdaptiveBitrateStreaming = newEnableAdaptiveBitrateStreaming; +} + +bool HeadMasterHlsAudioPlaylistParams::enableAdaptiveBitrateStreamingNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableAdaptiveBitrateStreaming.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setEnableAdaptiveBitrateStreamingNull() { + m_enableAdaptiveBitrateStreaming = std::nullopt; +} + + +const bool &HeadMasterHlsAudioPlaylistParams::enableAutoStreamCopy() const { + return m_enableAutoStreamCopy.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setEnableAutoStreamCopy(bool newEnableAutoStreamCopy) { + m_enableAutoStreamCopy = newEnableAutoStreamCopy; +} + +bool HeadMasterHlsAudioPlaylistParams::enableAutoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableAutoStreamCopy.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setEnableAutoStreamCopyNull() { + m_enableAutoStreamCopy = std::nullopt; +} + + +const bool &HeadMasterHlsAudioPlaylistParams::enableMpegtsM2TsMode() const { + return m_enableMpegtsM2TsMode.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode) { + m_enableMpegtsM2TsMode = newEnableMpegtsM2TsMode; +} + +bool HeadMasterHlsAudioPlaylistParams::enableMpegtsM2TsModeNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableMpegtsM2TsMode.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setEnableMpegtsM2TsModeNull() { + m_enableMpegtsM2TsMode = std::nullopt; +} + + +const float &HeadMasterHlsAudioPlaylistParams::framerate() const { + return m_framerate.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setFramerate(float newFramerate) { + m_framerate = newFramerate; +} + +bool HeadMasterHlsAudioPlaylistParams::framerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_framerate.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setFramerateNull() { + m_framerate = std::nullopt; +} + + +const qint32 &HeadMasterHlsAudioPlaylistParams::height() const { + return m_height.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadMasterHlsAudioPlaylistParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setHeightNull() { + m_height = std::nullopt; +} + + +const QString &HeadMasterHlsAudioPlaylistParams::level() const { + return m_level; +} + +void HeadMasterHlsAudioPlaylistParams::setLevel(QString newLevel) { + m_level = newLevel; +} + +bool HeadMasterHlsAudioPlaylistParams::levelNull() const { + // Nullable: true + // Type Nullable: true + + + return m_level.isNull(); +} + +void HeadMasterHlsAudioPlaylistParams::setLevelNull() { + m_level.clear(); +} + + +const QString &HeadMasterHlsAudioPlaylistParams::liveStreamId() const { + return m_liveStreamId; +} + +void HeadMasterHlsAudioPlaylistParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool HeadMasterHlsAudioPlaylistParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void HeadMasterHlsAudioPlaylistParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const qint32 &HeadMasterHlsAudioPlaylistParams::maxAudioBitDepth() const { + return m_maxAudioBitDepth.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setMaxAudioBitDepth(qint32 newMaxAudioBitDepth) { + m_maxAudioBitDepth = newMaxAudioBitDepth; +} + +bool HeadMasterHlsAudioPlaylistParams::maxAudioBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioBitDepth.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setMaxAudioBitDepthNull() { + m_maxAudioBitDepth = std::nullopt; +} + + +const qint32 &HeadMasterHlsAudioPlaylistParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool HeadMasterHlsAudioPlaylistParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const float &HeadMasterHlsAudioPlaylistParams::maxFramerate() const { + return m_maxFramerate.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setMaxFramerate(float newMaxFramerate) { + m_maxFramerate = newMaxFramerate; +} + +bool HeadMasterHlsAudioPlaylistParams::maxFramerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxFramerate.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setMaxFramerateNull() { + m_maxFramerate = std::nullopt; +} + + +const qint32 &HeadMasterHlsAudioPlaylistParams::maxRefFrames() const { + return m_maxRefFrames.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setMaxRefFrames(qint32 newMaxRefFrames) { + m_maxRefFrames = newMaxRefFrames; +} + +bool HeadMasterHlsAudioPlaylistParams::maxRefFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxRefFrames.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setMaxRefFramesNull() { + m_maxRefFrames = std::nullopt; +} + + +const qint32 &HeadMasterHlsAudioPlaylistParams::maxStreamingBitrate() const { + return m_maxStreamingBitrate.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setMaxStreamingBitrate(qint32 newMaxStreamingBitrate) { + m_maxStreamingBitrate = newMaxStreamingBitrate; +} + +bool HeadMasterHlsAudioPlaylistParams::maxStreamingBitrateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxStreamingBitrate.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setMaxStreamingBitrateNull() { + m_maxStreamingBitrate = std::nullopt; +} + + +const qint32 &HeadMasterHlsAudioPlaylistParams::maxVideoBitDepth() const { + return m_maxVideoBitDepth.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setMaxVideoBitDepth(qint32 newMaxVideoBitDepth) { + m_maxVideoBitDepth = newMaxVideoBitDepth; +} + +bool HeadMasterHlsAudioPlaylistParams::maxVideoBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxVideoBitDepth.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setMaxVideoBitDepthNull() { + m_maxVideoBitDepth = std::nullopt; +} + + +const qint32 &HeadMasterHlsAudioPlaylistParams::minSegments() const { + return m_minSegments.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setMinSegments(qint32 newMinSegments) { + m_minSegments = newMinSegments; +} + +bool HeadMasterHlsAudioPlaylistParams::minSegmentsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minSegments.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setMinSegmentsNull() { + m_minSegments = std::nullopt; +} + + +const QString &HeadMasterHlsAudioPlaylistParams::params() const { + return m_params; +} + +void HeadMasterHlsAudioPlaylistParams::setParams(QString newParams) { + m_params = newParams; +} + +bool HeadMasterHlsAudioPlaylistParams::paramsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_params.isNull(); +} + +void HeadMasterHlsAudioPlaylistParams::setParamsNull() { + m_params.clear(); +} + + +const QString &HeadMasterHlsAudioPlaylistParams::playSessionId() const { + return m_playSessionId; +} + +void HeadMasterHlsAudioPlaylistParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool HeadMasterHlsAudioPlaylistParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void HeadMasterHlsAudioPlaylistParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const QString &HeadMasterHlsAudioPlaylistParams::profile() const { + return m_profile; +} + +void HeadMasterHlsAudioPlaylistParams::setProfile(QString newProfile) { + m_profile = newProfile; +} + +bool HeadMasterHlsAudioPlaylistParams::profileNull() const { + // Nullable: true + // Type Nullable: true + + + return m_profile.isNull(); +} + +void HeadMasterHlsAudioPlaylistParams::setProfileNull() { + m_profile.clear(); +} + + +const bool &HeadMasterHlsAudioPlaylistParams::requireAvc() const { + return m_requireAvc.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setRequireAvc(bool newRequireAvc) { + m_requireAvc = newRequireAvc; +} + +bool HeadMasterHlsAudioPlaylistParams::requireAvcNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireAvc.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setRequireAvcNull() { + m_requireAvc = std::nullopt; +} + + +const bool &HeadMasterHlsAudioPlaylistParams::requireNonAnamorphic() const { + return m_requireNonAnamorphic.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setRequireNonAnamorphic(bool newRequireNonAnamorphic) { + m_requireNonAnamorphic = newRequireNonAnamorphic; +} + +bool HeadMasterHlsAudioPlaylistParams::requireNonAnamorphicNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireNonAnamorphic.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setRequireNonAnamorphicNull() { + m_requireNonAnamorphic = std::nullopt; +} + + +const QString &HeadMasterHlsAudioPlaylistParams::segmentContainer() const { + return m_segmentContainer; +} + +void HeadMasterHlsAudioPlaylistParams::setSegmentContainer(QString newSegmentContainer) { + m_segmentContainer = newSegmentContainer; +} + +bool HeadMasterHlsAudioPlaylistParams::segmentContainerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_segmentContainer.isNull(); +} + +void HeadMasterHlsAudioPlaylistParams::setSegmentContainerNull() { + m_segmentContainer.clear(); +} + + +const qint32 &HeadMasterHlsAudioPlaylistParams::segmentLength() const { + return m_segmentLength.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setSegmentLength(qint32 newSegmentLength) { + m_segmentLength = newSegmentLength; +} + +bool HeadMasterHlsAudioPlaylistParams::segmentLengthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_segmentLength.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setSegmentLengthNull() { + m_segmentLength = std::nullopt; +} + + +const qint64 &HeadMasterHlsAudioPlaylistParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool HeadMasterHlsAudioPlaylistParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const bool &HeadMasterHlsAudioPlaylistParams::staticStreaming() const { + return m_staticStreaming.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setStaticStreaming(bool newStaticStreaming) { + m_staticStreaming = newStaticStreaming; +} + +bool HeadMasterHlsAudioPlaylistParams::staticStreamingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_staticStreaming.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setStaticStreamingNull() { + m_staticStreaming = std::nullopt; +} + + +const QJsonObject &HeadMasterHlsAudioPlaylistParams::streamOptions() const { + return m_streamOptions; +} + +void HeadMasterHlsAudioPlaylistParams::setStreamOptions(QJsonObject newStreamOptions) { + m_streamOptions = newStreamOptions; +} + +bool HeadMasterHlsAudioPlaylistParams::streamOptionsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_streamOptions.isEmpty(); +} + +void HeadMasterHlsAudioPlaylistParams::setStreamOptionsNull() { + m_streamOptions= QJsonObject(); +} + + +const QString &HeadMasterHlsAudioPlaylistParams::subtitleCodec() const { + return m_subtitleCodec; +} + +void HeadMasterHlsAudioPlaylistParams::setSubtitleCodec(QString newSubtitleCodec) { + m_subtitleCodec = newSubtitleCodec; +} + +bool HeadMasterHlsAudioPlaylistParams::subtitleCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleCodec.isNull(); +} + +void HeadMasterHlsAudioPlaylistParams::setSubtitleCodecNull() { + m_subtitleCodec.clear(); +} + + +const SubtitleDeliveryMethod &HeadMasterHlsAudioPlaylistParams::subtitleMethod() const { + return m_subtitleMethod; +} + +void HeadMasterHlsAudioPlaylistParams::setSubtitleMethod(SubtitleDeliveryMethod newSubtitleMethod) { + m_subtitleMethod = newSubtitleMethod; +} + +bool HeadMasterHlsAudioPlaylistParams::subtitleMethodNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleMethod== SubtitleDeliveryMethod::EnumNotSet; +} + +void HeadMasterHlsAudioPlaylistParams::setSubtitleMethodNull() { + m_subtitleMethod= SubtitleDeliveryMethod::EnumNotSet; +} + + +const qint32 &HeadMasterHlsAudioPlaylistParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool HeadMasterHlsAudioPlaylistParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const QString &HeadMasterHlsAudioPlaylistParams::tag() const { + return m_tag; +} + +void HeadMasterHlsAudioPlaylistParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool HeadMasterHlsAudioPlaylistParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void HeadMasterHlsAudioPlaylistParams::setTagNull() { + m_tag.clear(); +} + + +const QString &HeadMasterHlsAudioPlaylistParams::transcodeReasons() const { + return m_transcodeReasons; +} + +void HeadMasterHlsAudioPlaylistParams::setTranscodeReasons(QString newTranscodeReasons) { + m_transcodeReasons = newTranscodeReasons; +} + +bool HeadMasterHlsAudioPlaylistParams::transcodeReasonsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodeReasons.isNull(); +} + +void HeadMasterHlsAudioPlaylistParams::setTranscodeReasonsNull() { + m_transcodeReasons.clear(); +} + + +const qint32 &HeadMasterHlsAudioPlaylistParams::transcodingMaxAudioChannels() const { + return m_transcodingMaxAudioChannels.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setTranscodingMaxAudioChannels(qint32 newTranscodingMaxAudioChannels) { + m_transcodingMaxAudioChannels = newTranscodingMaxAudioChannels; +} + +bool HeadMasterHlsAudioPlaylistParams::transcodingMaxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_transcodingMaxAudioChannels.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setTranscodingMaxAudioChannelsNull() { + m_transcodingMaxAudioChannels = std::nullopt; +} + + +const qint32 &HeadMasterHlsAudioPlaylistParams::videoBitRate() const { + return m_videoBitRate.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setVideoBitRate(qint32 newVideoBitRate) { + m_videoBitRate = newVideoBitRate; +} + +bool HeadMasterHlsAudioPlaylistParams::videoBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoBitRate.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setVideoBitRateNull() { + m_videoBitRate = std::nullopt; +} + + +const QString &HeadMasterHlsAudioPlaylistParams::videoCodec() const { + return m_videoCodec; +} + +void HeadMasterHlsAudioPlaylistParams::setVideoCodec(QString newVideoCodec) { + m_videoCodec = newVideoCodec; +} + +bool HeadMasterHlsAudioPlaylistParams::videoCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoCodec.isNull(); +} + +void HeadMasterHlsAudioPlaylistParams::setVideoCodecNull() { + m_videoCodec.clear(); +} + + +const qint32 &HeadMasterHlsAudioPlaylistParams::videoStreamIndex() const { + return m_videoStreamIndex.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setVideoStreamIndex(qint32 newVideoStreamIndex) { + m_videoStreamIndex = newVideoStreamIndex; +} + +bool HeadMasterHlsAudioPlaylistParams::videoStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoStreamIndex.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setVideoStreamIndexNull() { + m_videoStreamIndex = std::nullopt; +} + + +const qint32 &HeadMasterHlsAudioPlaylistParams::width() const { + return m_width.value(); +} + +void HeadMasterHlsAudioPlaylistParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadMasterHlsAudioPlaylistParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadMasterHlsAudioPlaylistParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headmasterhlsvideoplaylistparams.cpp b/core/src/loader/headmasterhlsvideoplaylistparams.cpp new file mode 100644 index 0000000..dc94240 --- /dev/null +++ b/core/src/loader/headmasterhlsvideoplaylistparams.cpp @@ -0,0 +1,1046 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headmasterhlsvideoplaylistparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadMasterHlsVideoPlaylistParams + +const QString &HeadMasterHlsVideoPlaylistParams::itemId() const { + return m_itemId; +} + +void HeadMasterHlsVideoPlaylistParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &HeadMasterHlsVideoPlaylistParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void HeadMasterHlsVideoPlaylistParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + + +const bool &HeadMasterHlsVideoPlaylistParams::allowAudioStreamCopy() const { + return m_allowAudioStreamCopy.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setAllowAudioStreamCopy(bool newAllowAudioStreamCopy) { + m_allowAudioStreamCopy = newAllowAudioStreamCopy; +} + +bool HeadMasterHlsVideoPlaylistParams::allowAudioStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowAudioStreamCopy.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setAllowAudioStreamCopyNull() { + m_allowAudioStreamCopy = std::nullopt; +} + + +const bool &HeadMasterHlsVideoPlaylistParams::allowVideoStreamCopy() const { + return m_allowVideoStreamCopy.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setAllowVideoStreamCopy(bool newAllowVideoStreamCopy) { + m_allowVideoStreamCopy = newAllowVideoStreamCopy; +} + +bool HeadMasterHlsVideoPlaylistParams::allowVideoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowVideoStreamCopy.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setAllowVideoStreamCopyNull() { + m_allowVideoStreamCopy = std::nullopt; +} + + +const qint32 &HeadMasterHlsVideoPlaylistParams::audioBitRate() const { + return m_audioBitRate.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setAudioBitRate(qint32 newAudioBitRate) { + m_audioBitRate = newAudioBitRate; +} + +bool HeadMasterHlsVideoPlaylistParams::audioBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioBitRate.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setAudioBitRateNull() { + m_audioBitRate = std::nullopt; +} + + +const qint32 &HeadMasterHlsVideoPlaylistParams::audioChannels() const { + return m_audioChannels.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setAudioChannels(qint32 newAudioChannels) { + m_audioChannels = newAudioChannels; +} + +bool HeadMasterHlsVideoPlaylistParams::audioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioChannels.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setAudioChannelsNull() { + m_audioChannels = std::nullopt; +} + + +const QString &HeadMasterHlsVideoPlaylistParams::audioCodec() const { + return m_audioCodec; +} + +void HeadMasterHlsVideoPlaylistParams::setAudioCodec(QString newAudioCodec) { + m_audioCodec = newAudioCodec; +} + +bool HeadMasterHlsVideoPlaylistParams::audioCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_audioCodec.isNull(); +} + +void HeadMasterHlsVideoPlaylistParams::setAudioCodecNull() { + m_audioCodec.clear(); +} + + +const qint32 &HeadMasterHlsVideoPlaylistParams::audioSampleRate() const { + return m_audioSampleRate.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setAudioSampleRate(qint32 newAudioSampleRate) { + m_audioSampleRate = newAudioSampleRate; +} + +bool HeadMasterHlsVideoPlaylistParams::audioSampleRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioSampleRate.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setAudioSampleRateNull() { + m_audioSampleRate = std::nullopt; +} + + +const qint32 &HeadMasterHlsVideoPlaylistParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool HeadMasterHlsVideoPlaylistParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &HeadMasterHlsVideoPlaylistParams::breakOnNonKeyFrames() const { + return m_breakOnNonKeyFrames.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames) { + m_breakOnNonKeyFrames = newBreakOnNonKeyFrames; +} + +bool HeadMasterHlsVideoPlaylistParams::breakOnNonKeyFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_breakOnNonKeyFrames.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setBreakOnNonKeyFramesNull() { + m_breakOnNonKeyFrames = std::nullopt; +} + + +const EncodingContext &HeadMasterHlsVideoPlaylistParams::context() const { + return m_context; +} + +void HeadMasterHlsVideoPlaylistParams::setContext(EncodingContext newContext) { + m_context = newContext; +} + +bool HeadMasterHlsVideoPlaylistParams::contextNull() const { + // Nullable: true + // Type Nullable: true + + + return m_context== EncodingContext::EnumNotSet; +} + +void HeadMasterHlsVideoPlaylistParams::setContextNull() { + m_context= EncodingContext::EnumNotSet; +} + + +const bool &HeadMasterHlsVideoPlaylistParams::copyTimestamps() const { + return m_copyTimestamps.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setCopyTimestamps(bool newCopyTimestamps) { + m_copyTimestamps = newCopyTimestamps; +} + +bool HeadMasterHlsVideoPlaylistParams::copyTimestampsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_copyTimestamps.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setCopyTimestampsNull() { + m_copyTimestamps = std::nullopt; +} + + +const qint32 &HeadMasterHlsVideoPlaylistParams::cpuCoreLimit() const { + return m_cpuCoreLimit.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setCpuCoreLimit(qint32 newCpuCoreLimit) { + m_cpuCoreLimit = newCpuCoreLimit; +} + +bool HeadMasterHlsVideoPlaylistParams::cpuCoreLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cpuCoreLimit.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setCpuCoreLimitNull() { + m_cpuCoreLimit = std::nullopt; +} + + +const bool &HeadMasterHlsVideoPlaylistParams::deInterlace() const { + return m_deInterlace.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setDeInterlace(bool newDeInterlace) { + m_deInterlace = newDeInterlace; +} + +bool HeadMasterHlsVideoPlaylistParams::deInterlaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_deInterlace.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setDeInterlaceNull() { + m_deInterlace = std::nullopt; +} + + +const QString &HeadMasterHlsVideoPlaylistParams::deviceId() const { + return m_deviceId; +} + +void HeadMasterHlsVideoPlaylistParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool HeadMasterHlsVideoPlaylistParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void HeadMasterHlsVideoPlaylistParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const QString &HeadMasterHlsVideoPlaylistParams::deviceProfileId() const { + return m_deviceProfileId; +} + +void HeadMasterHlsVideoPlaylistParams::setDeviceProfileId(QString newDeviceProfileId) { + m_deviceProfileId = newDeviceProfileId; +} + +bool HeadMasterHlsVideoPlaylistParams::deviceProfileIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceProfileId.isNull(); +} + +void HeadMasterHlsVideoPlaylistParams::setDeviceProfileIdNull() { + m_deviceProfileId.clear(); +} + + +const bool &HeadMasterHlsVideoPlaylistParams::enableAdaptiveBitrateStreaming() const { + return m_enableAdaptiveBitrateStreaming.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setEnableAdaptiveBitrateStreaming(bool newEnableAdaptiveBitrateStreaming) { + m_enableAdaptiveBitrateStreaming = newEnableAdaptiveBitrateStreaming; +} + +bool HeadMasterHlsVideoPlaylistParams::enableAdaptiveBitrateStreamingNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableAdaptiveBitrateStreaming.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setEnableAdaptiveBitrateStreamingNull() { + m_enableAdaptiveBitrateStreaming = std::nullopt; +} + + +const bool &HeadMasterHlsVideoPlaylistParams::enableAutoStreamCopy() const { + return m_enableAutoStreamCopy.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setEnableAutoStreamCopy(bool newEnableAutoStreamCopy) { + m_enableAutoStreamCopy = newEnableAutoStreamCopy; +} + +bool HeadMasterHlsVideoPlaylistParams::enableAutoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableAutoStreamCopy.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setEnableAutoStreamCopyNull() { + m_enableAutoStreamCopy = std::nullopt; +} + + +const bool &HeadMasterHlsVideoPlaylistParams::enableMpegtsM2TsMode() const { + return m_enableMpegtsM2TsMode.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode) { + m_enableMpegtsM2TsMode = newEnableMpegtsM2TsMode; +} + +bool HeadMasterHlsVideoPlaylistParams::enableMpegtsM2TsModeNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableMpegtsM2TsMode.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setEnableMpegtsM2TsModeNull() { + m_enableMpegtsM2TsMode = std::nullopt; +} + + +const float &HeadMasterHlsVideoPlaylistParams::framerate() const { + return m_framerate.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setFramerate(float newFramerate) { + m_framerate = newFramerate; +} + +bool HeadMasterHlsVideoPlaylistParams::framerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_framerate.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setFramerateNull() { + m_framerate = std::nullopt; +} + + +const qint32 &HeadMasterHlsVideoPlaylistParams::height() const { + return m_height.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadMasterHlsVideoPlaylistParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setHeightNull() { + m_height = std::nullopt; +} + + +const QString &HeadMasterHlsVideoPlaylistParams::level() const { + return m_level; +} + +void HeadMasterHlsVideoPlaylistParams::setLevel(QString newLevel) { + m_level = newLevel; +} + +bool HeadMasterHlsVideoPlaylistParams::levelNull() const { + // Nullable: true + // Type Nullable: true + + + return m_level.isNull(); +} + +void HeadMasterHlsVideoPlaylistParams::setLevelNull() { + m_level.clear(); +} + + +const QString &HeadMasterHlsVideoPlaylistParams::liveStreamId() const { + return m_liveStreamId; +} + +void HeadMasterHlsVideoPlaylistParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool HeadMasterHlsVideoPlaylistParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void HeadMasterHlsVideoPlaylistParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const qint32 &HeadMasterHlsVideoPlaylistParams::maxAudioBitDepth() const { + return m_maxAudioBitDepth.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setMaxAudioBitDepth(qint32 newMaxAudioBitDepth) { + m_maxAudioBitDepth = newMaxAudioBitDepth; +} + +bool HeadMasterHlsVideoPlaylistParams::maxAudioBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioBitDepth.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setMaxAudioBitDepthNull() { + m_maxAudioBitDepth = std::nullopt; +} + + +const qint32 &HeadMasterHlsVideoPlaylistParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool HeadMasterHlsVideoPlaylistParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const float &HeadMasterHlsVideoPlaylistParams::maxFramerate() const { + return m_maxFramerate.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setMaxFramerate(float newMaxFramerate) { + m_maxFramerate = newMaxFramerate; +} + +bool HeadMasterHlsVideoPlaylistParams::maxFramerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxFramerate.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setMaxFramerateNull() { + m_maxFramerate = std::nullopt; +} + + +const qint32 &HeadMasterHlsVideoPlaylistParams::maxRefFrames() const { + return m_maxRefFrames.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setMaxRefFrames(qint32 newMaxRefFrames) { + m_maxRefFrames = newMaxRefFrames; +} + +bool HeadMasterHlsVideoPlaylistParams::maxRefFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxRefFrames.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setMaxRefFramesNull() { + m_maxRefFrames = std::nullopt; +} + + +const qint32 &HeadMasterHlsVideoPlaylistParams::maxVideoBitDepth() const { + return m_maxVideoBitDepth.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setMaxVideoBitDepth(qint32 newMaxVideoBitDepth) { + m_maxVideoBitDepth = newMaxVideoBitDepth; +} + +bool HeadMasterHlsVideoPlaylistParams::maxVideoBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxVideoBitDepth.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setMaxVideoBitDepthNull() { + m_maxVideoBitDepth = std::nullopt; +} + + +const qint32 &HeadMasterHlsVideoPlaylistParams::minSegments() const { + return m_minSegments.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setMinSegments(qint32 newMinSegments) { + m_minSegments = newMinSegments; +} + +bool HeadMasterHlsVideoPlaylistParams::minSegmentsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minSegments.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setMinSegmentsNull() { + m_minSegments = std::nullopt; +} + + +const QString &HeadMasterHlsVideoPlaylistParams::params() const { + return m_params; +} + +void HeadMasterHlsVideoPlaylistParams::setParams(QString newParams) { + m_params = newParams; +} + +bool HeadMasterHlsVideoPlaylistParams::paramsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_params.isNull(); +} + +void HeadMasterHlsVideoPlaylistParams::setParamsNull() { + m_params.clear(); +} + + +const QString &HeadMasterHlsVideoPlaylistParams::playSessionId() const { + return m_playSessionId; +} + +void HeadMasterHlsVideoPlaylistParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool HeadMasterHlsVideoPlaylistParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void HeadMasterHlsVideoPlaylistParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const QString &HeadMasterHlsVideoPlaylistParams::profile() const { + return m_profile; +} + +void HeadMasterHlsVideoPlaylistParams::setProfile(QString newProfile) { + m_profile = newProfile; +} + +bool HeadMasterHlsVideoPlaylistParams::profileNull() const { + // Nullable: true + // Type Nullable: true + + + return m_profile.isNull(); +} + +void HeadMasterHlsVideoPlaylistParams::setProfileNull() { + m_profile.clear(); +} + + +const bool &HeadMasterHlsVideoPlaylistParams::requireAvc() const { + return m_requireAvc.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setRequireAvc(bool newRequireAvc) { + m_requireAvc = newRequireAvc; +} + +bool HeadMasterHlsVideoPlaylistParams::requireAvcNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireAvc.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setRequireAvcNull() { + m_requireAvc = std::nullopt; +} + + +const bool &HeadMasterHlsVideoPlaylistParams::requireNonAnamorphic() const { + return m_requireNonAnamorphic.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setRequireNonAnamorphic(bool newRequireNonAnamorphic) { + m_requireNonAnamorphic = newRequireNonAnamorphic; +} + +bool HeadMasterHlsVideoPlaylistParams::requireNonAnamorphicNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireNonAnamorphic.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setRequireNonAnamorphicNull() { + m_requireNonAnamorphic = std::nullopt; +} + + +const QString &HeadMasterHlsVideoPlaylistParams::segmentContainer() const { + return m_segmentContainer; +} + +void HeadMasterHlsVideoPlaylistParams::setSegmentContainer(QString newSegmentContainer) { + m_segmentContainer = newSegmentContainer; +} + +bool HeadMasterHlsVideoPlaylistParams::segmentContainerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_segmentContainer.isNull(); +} + +void HeadMasterHlsVideoPlaylistParams::setSegmentContainerNull() { + m_segmentContainer.clear(); +} + + +const qint32 &HeadMasterHlsVideoPlaylistParams::segmentLength() const { + return m_segmentLength.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setSegmentLength(qint32 newSegmentLength) { + m_segmentLength = newSegmentLength; +} + +bool HeadMasterHlsVideoPlaylistParams::segmentLengthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_segmentLength.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setSegmentLengthNull() { + m_segmentLength = std::nullopt; +} + + +const qint64 &HeadMasterHlsVideoPlaylistParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool HeadMasterHlsVideoPlaylistParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const bool &HeadMasterHlsVideoPlaylistParams::staticStreaming() const { + return m_staticStreaming.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setStaticStreaming(bool newStaticStreaming) { + m_staticStreaming = newStaticStreaming; +} + +bool HeadMasterHlsVideoPlaylistParams::staticStreamingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_staticStreaming.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setStaticStreamingNull() { + m_staticStreaming = std::nullopt; +} + + +const QJsonObject &HeadMasterHlsVideoPlaylistParams::streamOptions() const { + return m_streamOptions; +} + +void HeadMasterHlsVideoPlaylistParams::setStreamOptions(QJsonObject newStreamOptions) { + m_streamOptions = newStreamOptions; +} + +bool HeadMasterHlsVideoPlaylistParams::streamOptionsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_streamOptions.isEmpty(); +} + +void HeadMasterHlsVideoPlaylistParams::setStreamOptionsNull() { + m_streamOptions= QJsonObject(); +} + + +const QString &HeadMasterHlsVideoPlaylistParams::subtitleCodec() const { + return m_subtitleCodec; +} + +void HeadMasterHlsVideoPlaylistParams::setSubtitleCodec(QString newSubtitleCodec) { + m_subtitleCodec = newSubtitleCodec; +} + +bool HeadMasterHlsVideoPlaylistParams::subtitleCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleCodec.isNull(); +} + +void HeadMasterHlsVideoPlaylistParams::setSubtitleCodecNull() { + m_subtitleCodec.clear(); +} + + +const SubtitleDeliveryMethod &HeadMasterHlsVideoPlaylistParams::subtitleMethod() const { + return m_subtitleMethod; +} + +void HeadMasterHlsVideoPlaylistParams::setSubtitleMethod(SubtitleDeliveryMethod newSubtitleMethod) { + m_subtitleMethod = newSubtitleMethod; +} + +bool HeadMasterHlsVideoPlaylistParams::subtitleMethodNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleMethod== SubtitleDeliveryMethod::EnumNotSet; +} + +void HeadMasterHlsVideoPlaylistParams::setSubtitleMethodNull() { + m_subtitleMethod= SubtitleDeliveryMethod::EnumNotSet; +} + + +const qint32 &HeadMasterHlsVideoPlaylistParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool HeadMasterHlsVideoPlaylistParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const QString &HeadMasterHlsVideoPlaylistParams::tag() const { + return m_tag; +} + +void HeadMasterHlsVideoPlaylistParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool HeadMasterHlsVideoPlaylistParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void HeadMasterHlsVideoPlaylistParams::setTagNull() { + m_tag.clear(); +} + + +const QString &HeadMasterHlsVideoPlaylistParams::transcodeReasons() const { + return m_transcodeReasons; +} + +void HeadMasterHlsVideoPlaylistParams::setTranscodeReasons(QString newTranscodeReasons) { + m_transcodeReasons = newTranscodeReasons; +} + +bool HeadMasterHlsVideoPlaylistParams::transcodeReasonsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodeReasons.isNull(); +} + +void HeadMasterHlsVideoPlaylistParams::setTranscodeReasonsNull() { + m_transcodeReasons.clear(); +} + + +const qint32 &HeadMasterHlsVideoPlaylistParams::transcodingMaxAudioChannels() const { + return m_transcodingMaxAudioChannels.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setTranscodingMaxAudioChannels(qint32 newTranscodingMaxAudioChannels) { + m_transcodingMaxAudioChannels = newTranscodingMaxAudioChannels; +} + +bool HeadMasterHlsVideoPlaylistParams::transcodingMaxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_transcodingMaxAudioChannels.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setTranscodingMaxAudioChannelsNull() { + m_transcodingMaxAudioChannels = std::nullopt; +} + + +const qint32 &HeadMasterHlsVideoPlaylistParams::videoBitRate() const { + return m_videoBitRate.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setVideoBitRate(qint32 newVideoBitRate) { + m_videoBitRate = newVideoBitRate; +} + +bool HeadMasterHlsVideoPlaylistParams::videoBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoBitRate.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setVideoBitRateNull() { + m_videoBitRate = std::nullopt; +} + + +const QString &HeadMasterHlsVideoPlaylistParams::videoCodec() const { + return m_videoCodec; +} + +void HeadMasterHlsVideoPlaylistParams::setVideoCodec(QString newVideoCodec) { + m_videoCodec = newVideoCodec; +} + +bool HeadMasterHlsVideoPlaylistParams::videoCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoCodec.isNull(); +} + +void HeadMasterHlsVideoPlaylistParams::setVideoCodecNull() { + m_videoCodec.clear(); +} + + +const qint32 &HeadMasterHlsVideoPlaylistParams::videoStreamIndex() const { + return m_videoStreamIndex.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setVideoStreamIndex(qint32 newVideoStreamIndex) { + m_videoStreamIndex = newVideoStreamIndex; +} + +bool HeadMasterHlsVideoPlaylistParams::videoStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoStreamIndex.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setVideoStreamIndexNull() { + m_videoStreamIndex = std::nullopt; +} + + +const qint32 &HeadMasterHlsVideoPlaylistParams::width() const { + return m_width.value(); +} + +void HeadMasterHlsVideoPlaylistParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadMasterHlsVideoPlaylistParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadMasterHlsVideoPlaylistParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headmusicgenreimagebyindexparams.cpp b/core/src/loader/headmusicgenreimagebyindexparams.cpp new file mode 100644 index 0000000..562297b --- /dev/null +++ b/core/src/loader/headmusicgenreimagebyindexparams.cpp @@ -0,0 +1,362 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headmusicgenreimagebyindexparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadMusicGenreImageByIndexParams + +const qint32 &HeadMusicGenreImageByIndexParams::imageIndex() const { + return m_imageIndex; +} + +void HeadMusicGenreImageByIndexParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + + +const ImageType &HeadMusicGenreImageByIndexParams::imageType() const { + return m_imageType; +} + +void HeadMusicGenreImageByIndexParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &HeadMusicGenreImageByIndexParams::name() const { + return m_name; +} + +void HeadMusicGenreImageByIndexParams::setName(QString newName) { + m_name = newName; +} + + +const bool &HeadMusicGenreImageByIndexParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void HeadMusicGenreImageByIndexParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool HeadMusicGenreImageByIndexParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void HeadMusicGenreImageByIndexParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &HeadMusicGenreImageByIndexParams::backgroundColor() const { + return m_backgroundColor; +} + +void HeadMusicGenreImageByIndexParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool HeadMusicGenreImageByIndexParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void HeadMusicGenreImageByIndexParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &HeadMusicGenreImageByIndexParams::blur() const { + return m_blur.value(); +} + +void HeadMusicGenreImageByIndexParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool HeadMusicGenreImageByIndexParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void HeadMusicGenreImageByIndexParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &HeadMusicGenreImageByIndexParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void HeadMusicGenreImageByIndexParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool HeadMusicGenreImageByIndexParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void HeadMusicGenreImageByIndexParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &HeadMusicGenreImageByIndexParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void HeadMusicGenreImageByIndexParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool HeadMusicGenreImageByIndexParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void HeadMusicGenreImageByIndexParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &HeadMusicGenreImageByIndexParams::format() const { + return m_format; +} + +void HeadMusicGenreImageByIndexParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool HeadMusicGenreImageByIndexParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void HeadMusicGenreImageByIndexParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &HeadMusicGenreImageByIndexParams::height() const { + return m_height.value(); +} + +void HeadMusicGenreImageByIndexParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadMusicGenreImageByIndexParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadMusicGenreImageByIndexParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &HeadMusicGenreImageByIndexParams::maxHeight() const { + return m_maxHeight.value(); +} + +void HeadMusicGenreImageByIndexParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool HeadMusicGenreImageByIndexParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void HeadMusicGenreImageByIndexParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &HeadMusicGenreImageByIndexParams::maxWidth() const { + return m_maxWidth.value(); +} + +void HeadMusicGenreImageByIndexParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool HeadMusicGenreImageByIndexParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void HeadMusicGenreImageByIndexParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &HeadMusicGenreImageByIndexParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void HeadMusicGenreImageByIndexParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool HeadMusicGenreImageByIndexParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void HeadMusicGenreImageByIndexParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &HeadMusicGenreImageByIndexParams::quality() const { + return m_quality.value(); +} + +void HeadMusicGenreImageByIndexParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool HeadMusicGenreImageByIndexParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void HeadMusicGenreImageByIndexParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &HeadMusicGenreImageByIndexParams::tag() const { + return m_tag; +} + +void HeadMusicGenreImageByIndexParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool HeadMusicGenreImageByIndexParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void HeadMusicGenreImageByIndexParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &HeadMusicGenreImageByIndexParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void HeadMusicGenreImageByIndexParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool HeadMusicGenreImageByIndexParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void HeadMusicGenreImageByIndexParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &HeadMusicGenreImageByIndexParams::width() const { + return m_width.value(); +} + +void HeadMusicGenreImageByIndexParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadMusicGenreImageByIndexParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadMusicGenreImageByIndexParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headmusicgenreimageparams.cpp b/core/src/loader/headmusicgenreimageparams.cpp new file mode 100644 index 0000000..68b0962 --- /dev/null +++ b/core/src/loader/headmusicgenreimageparams.cpp @@ -0,0 +1,374 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headmusicgenreimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadMusicGenreImageParams + +const ImageType &HeadMusicGenreImageParams::imageType() const { + return m_imageType; +} + +void HeadMusicGenreImageParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &HeadMusicGenreImageParams::name() const { + return m_name; +} + +void HeadMusicGenreImageParams::setName(QString newName) { + m_name = newName; +} + + +const bool &HeadMusicGenreImageParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void HeadMusicGenreImageParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool HeadMusicGenreImageParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void HeadMusicGenreImageParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &HeadMusicGenreImageParams::backgroundColor() const { + return m_backgroundColor; +} + +void HeadMusicGenreImageParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool HeadMusicGenreImageParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void HeadMusicGenreImageParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &HeadMusicGenreImageParams::blur() const { + return m_blur.value(); +} + +void HeadMusicGenreImageParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool HeadMusicGenreImageParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void HeadMusicGenreImageParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &HeadMusicGenreImageParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void HeadMusicGenreImageParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool HeadMusicGenreImageParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void HeadMusicGenreImageParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &HeadMusicGenreImageParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void HeadMusicGenreImageParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool HeadMusicGenreImageParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void HeadMusicGenreImageParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &HeadMusicGenreImageParams::format() const { + return m_format; +} + +void HeadMusicGenreImageParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool HeadMusicGenreImageParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void HeadMusicGenreImageParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &HeadMusicGenreImageParams::height() const { + return m_height.value(); +} + +void HeadMusicGenreImageParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadMusicGenreImageParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadMusicGenreImageParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &HeadMusicGenreImageParams::imageIndex() const { + return m_imageIndex.value(); +} + +void HeadMusicGenreImageParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + +bool HeadMusicGenreImageParams::imageIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageIndex.has_value(); +} + +void HeadMusicGenreImageParams::setImageIndexNull() { + m_imageIndex = std::nullopt; +} + + +const qint32 &HeadMusicGenreImageParams::maxHeight() const { + return m_maxHeight.value(); +} + +void HeadMusicGenreImageParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool HeadMusicGenreImageParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void HeadMusicGenreImageParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &HeadMusicGenreImageParams::maxWidth() const { + return m_maxWidth.value(); +} + +void HeadMusicGenreImageParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool HeadMusicGenreImageParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void HeadMusicGenreImageParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &HeadMusicGenreImageParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void HeadMusicGenreImageParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool HeadMusicGenreImageParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void HeadMusicGenreImageParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &HeadMusicGenreImageParams::quality() const { + return m_quality.value(); +} + +void HeadMusicGenreImageParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool HeadMusicGenreImageParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void HeadMusicGenreImageParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &HeadMusicGenreImageParams::tag() const { + return m_tag; +} + +void HeadMusicGenreImageParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool HeadMusicGenreImageParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void HeadMusicGenreImageParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &HeadMusicGenreImageParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void HeadMusicGenreImageParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool HeadMusicGenreImageParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void HeadMusicGenreImageParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &HeadMusicGenreImageParams::width() const { + return m_width.value(); +} + +void HeadMusicGenreImageParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadMusicGenreImageParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadMusicGenreImageParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headpersonimagebyindexparams.cpp b/core/src/loader/headpersonimagebyindexparams.cpp new file mode 100644 index 0000000..b353404 --- /dev/null +++ b/core/src/loader/headpersonimagebyindexparams.cpp @@ -0,0 +1,362 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headpersonimagebyindexparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadPersonImageByIndexParams + +const qint32 &HeadPersonImageByIndexParams::imageIndex() const { + return m_imageIndex; +} + +void HeadPersonImageByIndexParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + + +const ImageType &HeadPersonImageByIndexParams::imageType() const { + return m_imageType; +} + +void HeadPersonImageByIndexParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &HeadPersonImageByIndexParams::name() const { + return m_name; +} + +void HeadPersonImageByIndexParams::setName(QString newName) { + m_name = newName; +} + + +const bool &HeadPersonImageByIndexParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void HeadPersonImageByIndexParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool HeadPersonImageByIndexParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void HeadPersonImageByIndexParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &HeadPersonImageByIndexParams::backgroundColor() const { + return m_backgroundColor; +} + +void HeadPersonImageByIndexParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool HeadPersonImageByIndexParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void HeadPersonImageByIndexParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &HeadPersonImageByIndexParams::blur() const { + return m_blur.value(); +} + +void HeadPersonImageByIndexParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool HeadPersonImageByIndexParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void HeadPersonImageByIndexParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &HeadPersonImageByIndexParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void HeadPersonImageByIndexParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool HeadPersonImageByIndexParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void HeadPersonImageByIndexParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &HeadPersonImageByIndexParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void HeadPersonImageByIndexParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool HeadPersonImageByIndexParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void HeadPersonImageByIndexParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &HeadPersonImageByIndexParams::format() const { + return m_format; +} + +void HeadPersonImageByIndexParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool HeadPersonImageByIndexParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void HeadPersonImageByIndexParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &HeadPersonImageByIndexParams::height() const { + return m_height.value(); +} + +void HeadPersonImageByIndexParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadPersonImageByIndexParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadPersonImageByIndexParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &HeadPersonImageByIndexParams::maxHeight() const { + return m_maxHeight.value(); +} + +void HeadPersonImageByIndexParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool HeadPersonImageByIndexParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void HeadPersonImageByIndexParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &HeadPersonImageByIndexParams::maxWidth() const { + return m_maxWidth.value(); +} + +void HeadPersonImageByIndexParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool HeadPersonImageByIndexParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void HeadPersonImageByIndexParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &HeadPersonImageByIndexParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void HeadPersonImageByIndexParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool HeadPersonImageByIndexParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void HeadPersonImageByIndexParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &HeadPersonImageByIndexParams::quality() const { + return m_quality.value(); +} + +void HeadPersonImageByIndexParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool HeadPersonImageByIndexParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void HeadPersonImageByIndexParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &HeadPersonImageByIndexParams::tag() const { + return m_tag; +} + +void HeadPersonImageByIndexParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool HeadPersonImageByIndexParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void HeadPersonImageByIndexParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &HeadPersonImageByIndexParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void HeadPersonImageByIndexParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool HeadPersonImageByIndexParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void HeadPersonImageByIndexParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &HeadPersonImageByIndexParams::width() const { + return m_width.value(); +} + +void HeadPersonImageByIndexParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadPersonImageByIndexParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadPersonImageByIndexParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headpersonimageparams.cpp b/core/src/loader/headpersonimageparams.cpp new file mode 100644 index 0000000..1e7c2d8 --- /dev/null +++ b/core/src/loader/headpersonimageparams.cpp @@ -0,0 +1,374 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headpersonimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadPersonImageParams + +const ImageType &HeadPersonImageParams::imageType() const { + return m_imageType; +} + +void HeadPersonImageParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &HeadPersonImageParams::name() const { + return m_name; +} + +void HeadPersonImageParams::setName(QString newName) { + m_name = newName; +} + + +const bool &HeadPersonImageParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void HeadPersonImageParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool HeadPersonImageParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void HeadPersonImageParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &HeadPersonImageParams::backgroundColor() const { + return m_backgroundColor; +} + +void HeadPersonImageParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool HeadPersonImageParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void HeadPersonImageParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &HeadPersonImageParams::blur() const { + return m_blur.value(); +} + +void HeadPersonImageParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool HeadPersonImageParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void HeadPersonImageParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &HeadPersonImageParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void HeadPersonImageParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool HeadPersonImageParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void HeadPersonImageParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &HeadPersonImageParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void HeadPersonImageParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool HeadPersonImageParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void HeadPersonImageParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &HeadPersonImageParams::format() const { + return m_format; +} + +void HeadPersonImageParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool HeadPersonImageParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void HeadPersonImageParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &HeadPersonImageParams::height() const { + return m_height.value(); +} + +void HeadPersonImageParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadPersonImageParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadPersonImageParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &HeadPersonImageParams::imageIndex() const { + return m_imageIndex.value(); +} + +void HeadPersonImageParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + +bool HeadPersonImageParams::imageIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageIndex.has_value(); +} + +void HeadPersonImageParams::setImageIndexNull() { + m_imageIndex = std::nullopt; +} + + +const qint32 &HeadPersonImageParams::maxHeight() const { + return m_maxHeight.value(); +} + +void HeadPersonImageParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool HeadPersonImageParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void HeadPersonImageParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &HeadPersonImageParams::maxWidth() const { + return m_maxWidth.value(); +} + +void HeadPersonImageParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool HeadPersonImageParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void HeadPersonImageParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &HeadPersonImageParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void HeadPersonImageParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool HeadPersonImageParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void HeadPersonImageParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &HeadPersonImageParams::quality() const { + return m_quality.value(); +} + +void HeadPersonImageParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool HeadPersonImageParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void HeadPersonImageParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &HeadPersonImageParams::tag() const { + return m_tag; +} + +void HeadPersonImageParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool HeadPersonImageParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void HeadPersonImageParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &HeadPersonImageParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void HeadPersonImageParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool HeadPersonImageParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void HeadPersonImageParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &HeadPersonImageParams::width() const { + return m_width.value(); +} + +void HeadPersonImageParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadPersonImageParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadPersonImageParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headstudioimagebyindexparams.cpp b/core/src/loader/headstudioimagebyindexparams.cpp new file mode 100644 index 0000000..acdc6e7 --- /dev/null +++ b/core/src/loader/headstudioimagebyindexparams.cpp @@ -0,0 +1,362 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headstudioimagebyindexparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadStudioImageByIndexParams + +const qint32 &HeadStudioImageByIndexParams::imageIndex() const { + return m_imageIndex; +} + +void HeadStudioImageByIndexParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + + +const ImageType &HeadStudioImageByIndexParams::imageType() const { + return m_imageType; +} + +void HeadStudioImageByIndexParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &HeadStudioImageByIndexParams::name() const { + return m_name; +} + +void HeadStudioImageByIndexParams::setName(QString newName) { + m_name = newName; +} + + +const bool &HeadStudioImageByIndexParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void HeadStudioImageByIndexParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool HeadStudioImageByIndexParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void HeadStudioImageByIndexParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &HeadStudioImageByIndexParams::backgroundColor() const { + return m_backgroundColor; +} + +void HeadStudioImageByIndexParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool HeadStudioImageByIndexParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void HeadStudioImageByIndexParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &HeadStudioImageByIndexParams::blur() const { + return m_blur.value(); +} + +void HeadStudioImageByIndexParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool HeadStudioImageByIndexParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void HeadStudioImageByIndexParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &HeadStudioImageByIndexParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void HeadStudioImageByIndexParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool HeadStudioImageByIndexParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void HeadStudioImageByIndexParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &HeadStudioImageByIndexParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void HeadStudioImageByIndexParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool HeadStudioImageByIndexParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void HeadStudioImageByIndexParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &HeadStudioImageByIndexParams::format() const { + return m_format; +} + +void HeadStudioImageByIndexParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool HeadStudioImageByIndexParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void HeadStudioImageByIndexParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &HeadStudioImageByIndexParams::height() const { + return m_height.value(); +} + +void HeadStudioImageByIndexParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadStudioImageByIndexParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadStudioImageByIndexParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &HeadStudioImageByIndexParams::maxHeight() const { + return m_maxHeight.value(); +} + +void HeadStudioImageByIndexParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool HeadStudioImageByIndexParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void HeadStudioImageByIndexParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &HeadStudioImageByIndexParams::maxWidth() const { + return m_maxWidth.value(); +} + +void HeadStudioImageByIndexParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool HeadStudioImageByIndexParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void HeadStudioImageByIndexParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &HeadStudioImageByIndexParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void HeadStudioImageByIndexParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool HeadStudioImageByIndexParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void HeadStudioImageByIndexParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &HeadStudioImageByIndexParams::quality() const { + return m_quality.value(); +} + +void HeadStudioImageByIndexParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool HeadStudioImageByIndexParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void HeadStudioImageByIndexParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &HeadStudioImageByIndexParams::tag() const { + return m_tag; +} + +void HeadStudioImageByIndexParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool HeadStudioImageByIndexParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void HeadStudioImageByIndexParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &HeadStudioImageByIndexParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void HeadStudioImageByIndexParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool HeadStudioImageByIndexParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void HeadStudioImageByIndexParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &HeadStudioImageByIndexParams::width() const { + return m_width.value(); +} + +void HeadStudioImageByIndexParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadStudioImageByIndexParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadStudioImageByIndexParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headstudioimageparams.cpp b/core/src/loader/headstudioimageparams.cpp new file mode 100644 index 0000000..d5ed3e3 --- /dev/null +++ b/core/src/loader/headstudioimageparams.cpp @@ -0,0 +1,374 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headstudioimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadStudioImageParams + +const ImageType &HeadStudioImageParams::imageType() const { + return m_imageType; +} + +void HeadStudioImageParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &HeadStudioImageParams::name() const { + return m_name; +} + +void HeadStudioImageParams::setName(QString newName) { + m_name = newName; +} + + +const bool &HeadStudioImageParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void HeadStudioImageParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool HeadStudioImageParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void HeadStudioImageParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &HeadStudioImageParams::backgroundColor() const { + return m_backgroundColor; +} + +void HeadStudioImageParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool HeadStudioImageParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void HeadStudioImageParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &HeadStudioImageParams::blur() const { + return m_blur.value(); +} + +void HeadStudioImageParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool HeadStudioImageParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void HeadStudioImageParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &HeadStudioImageParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void HeadStudioImageParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool HeadStudioImageParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void HeadStudioImageParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &HeadStudioImageParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void HeadStudioImageParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool HeadStudioImageParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void HeadStudioImageParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &HeadStudioImageParams::format() const { + return m_format; +} + +void HeadStudioImageParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool HeadStudioImageParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void HeadStudioImageParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &HeadStudioImageParams::height() const { + return m_height.value(); +} + +void HeadStudioImageParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadStudioImageParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadStudioImageParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &HeadStudioImageParams::imageIndex() const { + return m_imageIndex.value(); +} + +void HeadStudioImageParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + +bool HeadStudioImageParams::imageIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageIndex.has_value(); +} + +void HeadStudioImageParams::setImageIndexNull() { + m_imageIndex = std::nullopt; +} + + +const qint32 &HeadStudioImageParams::maxHeight() const { + return m_maxHeight.value(); +} + +void HeadStudioImageParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool HeadStudioImageParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void HeadStudioImageParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &HeadStudioImageParams::maxWidth() const { + return m_maxWidth.value(); +} + +void HeadStudioImageParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool HeadStudioImageParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void HeadStudioImageParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &HeadStudioImageParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void HeadStudioImageParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool HeadStudioImageParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void HeadStudioImageParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &HeadStudioImageParams::quality() const { + return m_quality.value(); +} + +void HeadStudioImageParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool HeadStudioImageParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void HeadStudioImageParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &HeadStudioImageParams::tag() const { + return m_tag; +} + +void HeadStudioImageParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool HeadStudioImageParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void HeadStudioImageParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &HeadStudioImageParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void HeadStudioImageParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool HeadStudioImageParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void HeadStudioImageParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &HeadStudioImageParams::width() const { + return m_width.value(); +} + +void HeadStudioImageParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadStudioImageParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadStudioImageParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headuniversalaudiostreamparams.cpp b/core/src/loader/headuniversalaudiostreamparams.cpp new file mode 100644 index 0000000..87c8609 --- /dev/null +++ b/core/src/loader/headuniversalaudiostreamparams.cpp @@ -0,0 +1,407 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headuniversalaudiostreamparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadUniversalAudioStreamParams + +const QString &HeadUniversalAudioStreamParams::itemId() const { + return m_itemId; +} + +void HeadUniversalAudioStreamParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const qint32 &HeadUniversalAudioStreamParams::audioBitRate() const { + return m_audioBitRate.value(); +} + +void HeadUniversalAudioStreamParams::setAudioBitRate(qint32 newAudioBitRate) { + m_audioBitRate = newAudioBitRate; +} + +bool HeadUniversalAudioStreamParams::audioBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioBitRate.has_value(); +} + +void HeadUniversalAudioStreamParams::setAudioBitRateNull() { + m_audioBitRate = std::nullopt; +} + + +const QString &HeadUniversalAudioStreamParams::audioCodec() const { + return m_audioCodec; +} + +void HeadUniversalAudioStreamParams::setAudioCodec(QString newAudioCodec) { + m_audioCodec = newAudioCodec; +} + +bool HeadUniversalAudioStreamParams::audioCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_audioCodec.isNull(); +} + +void HeadUniversalAudioStreamParams::setAudioCodecNull() { + m_audioCodec.clear(); +} + + +const bool &HeadUniversalAudioStreamParams::breakOnNonKeyFrames() const { + return m_breakOnNonKeyFrames.value(); +} + +void HeadUniversalAudioStreamParams::setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames) { + m_breakOnNonKeyFrames = newBreakOnNonKeyFrames; +} + +bool HeadUniversalAudioStreamParams::breakOnNonKeyFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_breakOnNonKeyFrames.has_value(); +} + +void HeadUniversalAudioStreamParams::setBreakOnNonKeyFramesNull() { + m_breakOnNonKeyFrames = std::nullopt; +} + + +const QStringList &HeadUniversalAudioStreamParams::container() const { + return m_container; +} + +void HeadUniversalAudioStreamParams::setContainer(QStringList newContainer) { + m_container = newContainer; +} + +bool HeadUniversalAudioStreamParams::containerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_container.size() == 0; +} + +void HeadUniversalAudioStreamParams::setContainerNull() { + m_container.clear(); +} + + +const QString &HeadUniversalAudioStreamParams::deviceId() const { + return m_deviceId; +} + +void HeadUniversalAudioStreamParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool HeadUniversalAudioStreamParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void HeadUniversalAudioStreamParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const bool &HeadUniversalAudioStreamParams::enableRedirection() const { + return m_enableRedirection.value(); +} + +void HeadUniversalAudioStreamParams::setEnableRedirection(bool newEnableRedirection) { + m_enableRedirection = newEnableRedirection; +} + +bool HeadUniversalAudioStreamParams::enableRedirectionNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_enableRedirection.has_value(); +} + +void HeadUniversalAudioStreamParams::setEnableRedirectionNull() { + m_enableRedirection = std::nullopt; +} + + +const bool &HeadUniversalAudioStreamParams::enableRemoteMedia() const { + return m_enableRemoteMedia.value(); +} + +void HeadUniversalAudioStreamParams::setEnableRemoteMedia(bool newEnableRemoteMedia) { + m_enableRemoteMedia = newEnableRemoteMedia; +} + +bool HeadUniversalAudioStreamParams::enableRemoteMediaNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableRemoteMedia.has_value(); +} + +void HeadUniversalAudioStreamParams::setEnableRemoteMediaNull() { + m_enableRemoteMedia = std::nullopt; +} + + +const qint32 &HeadUniversalAudioStreamParams::maxAudioBitDepth() const { + return m_maxAudioBitDepth.value(); +} + +void HeadUniversalAudioStreamParams::setMaxAudioBitDepth(qint32 newMaxAudioBitDepth) { + m_maxAudioBitDepth = newMaxAudioBitDepth; +} + +bool HeadUniversalAudioStreamParams::maxAudioBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioBitDepth.has_value(); +} + +void HeadUniversalAudioStreamParams::setMaxAudioBitDepthNull() { + m_maxAudioBitDepth = std::nullopt; +} + + +const qint32 &HeadUniversalAudioStreamParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void HeadUniversalAudioStreamParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool HeadUniversalAudioStreamParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void HeadUniversalAudioStreamParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const qint32 &HeadUniversalAudioStreamParams::maxAudioSampleRate() const { + return m_maxAudioSampleRate.value(); +} + +void HeadUniversalAudioStreamParams::setMaxAudioSampleRate(qint32 newMaxAudioSampleRate) { + m_maxAudioSampleRate = newMaxAudioSampleRate; +} + +bool HeadUniversalAudioStreamParams::maxAudioSampleRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioSampleRate.has_value(); +} + +void HeadUniversalAudioStreamParams::setMaxAudioSampleRateNull() { + m_maxAudioSampleRate = std::nullopt; +} + + +const qint32 &HeadUniversalAudioStreamParams::maxStreamingBitrate() const { + return m_maxStreamingBitrate.value(); +} + +void HeadUniversalAudioStreamParams::setMaxStreamingBitrate(qint32 newMaxStreamingBitrate) { + m_maxStreamingBitrate = newMaxStreamingBitrate; +} + +bool HeadUniversalAudioStreamParams::maxStreamingBitrateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxStreamingBitrate.has_value(); +} + +void HeadUniversalAudioStreamParams::setMaxStreamingBitrateNull() { + m_maxStreamingBitrate = std::nullopt; +} + + +const QString &HeadUniversalAudioStreamParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void HeadUniversalAudioStreamParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + +bool HeadUniversalAudioStreamParams::mediaSourceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaSourceId.isNull(); +} + +void HeadUniversalAudioStreamParams::setMediaSourceIdNull() { + m_mediaSourceId.clear(); +} + + +const qint64 &HeadUniversalAudioStreamParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void HeadUniversalAudioStreamParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool HeadUniversalAudioStreamParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void HeadUniversalAudioStreamParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const qint32 &HeadUniversalAudioStreamParams::transcodingAudioChannels() const { + return m_transcodingAudioChannels.value(); +} + +void HeadUniversalAudioStreamParams::setTranscodingAudioChannels(qint32 newTranscodingAudioChannels) { + m_transcodingAudioChannels = newTranscodingAudioChannels; +} + +bool HeadUniversalAudioStreamParams::transcodingAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_transcodingAudioChannels.has_value(); +} + +void HeadUniversalAudioStreamParams::setTranscodingAudioChannelsNull() { + m_transcodingAudioChannels = std::nullopt; +} + + +const QString &HeadUniversalAudioStreamParams::transcodingContainer() const { + return m_transcodingContainer; +} + +void HeadUniversalAudioStreamParams::setTranscodingContainer(QString newTranscodingContainer) { + m_transcodingContainer = newTranscodingContainer; +} + +bool HeadUniversalAudioStreamParams::transcodingContainerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodingContainer.isNull(); +} + +void HeadUniversalAudioStreamParams::setTranscodingContainerNull() { + m_transcodingContainer.clear(); +} + + +const QString &HeadUniversalAudioStreamParams::transcodingProtocol() const { + return m_transcodingProtocol; +} + +void HeadUniversalAudioStreamParams::setTranscodingProtocol(QString newTranscodingProtocol) { + m_transcodingProtocol = newTranscodingProtocol; +} + +bool HeadUniversalAudioStreamParams::transcodingProtocolNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodingProtocol.isNull(); +} + +void HeadUniversalAudioStreamParams::setTranscodingProtocolNull() { + m_transcodingProtocol.clear(); +} + + +const QString &HeadUniversalAudioStreamParams::userId() const { + return m_userId; +} + +void HeadUniversalAudioStreamParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool HeadUniversalAudioStreamParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void HeadUniversalAudioStreamParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headuserimagebyindexparams.cpp b/core/src/loader/headuserimagebyindexparams.cpp new file mode 100644 index 0000000..3227e92 --- /dev/null +++ b/core/src/loader/headuserimagebyindexparams.cpp @@ -0,0 +1,362 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headuserimagebyindexparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadUserImageByIndexParams + +const qint32 &HeadUserImageByIndexParams::imageIndex() const { + return m_imageIndex; +} + +void HeadUserImageByIndexParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + + +const ImageType &HeadUserImageByIndexParams::imageType() const { + return m_imageType; +} + +void HeadUserImageByIndexParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &HeadUserImageByIndexParams::userId() const { + return m_userId; +} + +void HeadUserImageByIndexParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + +const bool &HeadUserImageByIndexParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void HeadUserImageByIndexParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool HeadUserImageByIndexParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void HeadUserImageByIndexParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &HeadUserImageByIndexParams::backgroundColor() const { + return m_backgroundColor; +} + +void HeadUserImageByIndexParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool HeadUserImageByIndexParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void HeadUserImageByIndexParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &HeadUserImageByIndexParams::blur() const { + return m_blur.value(); +} + +void HeadUserImageByIndexParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool HeadUserImageByIndexParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void HeadUserImageByIndexParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &HeadUserImageByIndexParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void HeadUserImageByIndexParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool HeadUserImageByIndexParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void HeadUserImageByIndexParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &HeadUserImageByIndexParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void HeadUserImageByIndexParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool HeadUserImageByIndexParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void HeadUserImageByIndexParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &HeadUserImageByIndexParams::format() const { + return m_format; +} + +void HeadUserImageByIndexParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool HeadUserImageByIndexParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void HeadUserImageByIndexParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &HeadUserImageByIndexParams::height() const { + return m_height.value(); +} + +void HeadUserImageByIndexParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadUserImageByIndexParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadUserImageByIndexParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &HeadUserImageByIndexParams::maxHeight() const { + return m_maxHeight.value(); +} + +void HeadUserImageByIndexParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool HeadUserImageByIndexParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void HeadUserImageByIndexParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &HeadUserImageByIndexParams::maxWidth() const { + return m_maxWidth.value(); +} + +void HeadUserImageByIndexParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool HeadUserImageByIndexParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void HeadUserImageByIndexParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &HeadUserImageByIndexParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void HeadUserImageByIndexParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool HeadUserImageByIndexParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void HeadUserImageByIndexParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &HeadUserImageByIndexParams::quality() const { + return m_quality.value(); +} + +void HeadUserImageByIndexParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool HeadUserImageByIndexParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void HeadUserImageByIndexParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &HeadUserImageByIndexParams::tag() const { + return m_tag; +} + +void HeadUserImageByIndexParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool HeadUserImageByIndexParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void HeadUserImageByIndexParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &HeadUserImageByIndexParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void HeadUserImageByIndexParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool HeadUserImageByIndexParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void HeadUserImageByIndexParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &HeadUserImageByIndexParams::width() const { + return m_width.value(); +} + +void HeadUserImageByIndexParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadUserImageByIndexParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadUserImageByIndexParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headuserimageparams.cpp b/core/src/loader/headuserimageparams.cpp new file mode 100644 index 0000000..084429a --- /dev/null +++ b/core/src/loader/headuserimageparams.cpp @@ -0,0 +1,374 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headuserimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadUserImageParams + +const ImageType &HeadUserImageParams::imageType() const { + return m_imageType; +} + +void HeadUserImageParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &HeadUserImageParams::userId() const { + return m_userId; +} + +void HeadUserImageParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + +const bool &HeadUserImageParams::addPlayedIndicator() const { + return m_addPlayedIndicator.value(); +} + +void HeadUserImageParams::setAddPlayedIndicator(bool newAddPlayedIndicator) { + m_addPlayedIndicator = newAddPlayedIndicator; +} + +bool HeadUserImageParams::addPlayedIndicatorNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_addPlayedIndicator.has_value(); +} + +void HeadUserImageParams::setAddPlayedIndicatorNull() { + m_addPlayedIndicator = std::nullopt; +} + + +const QString &HeadUserImageParams::backgroundColor() const { + return m_backgroundColor; +} + +void HeadUserImageParams::setBackgroundColor(QString newBackgroundColor) { + m_backgroundColor = newBackgroundColor; +} + +bool HeadUserImageParams::backgroundColorNull() const { + // Nullable: true + // Type Nullable: true + + + return m_backgroundColor.isNull(); +} + +void HeadUserImageParams::setBackgroundColorNull() { + m_backgroundColor.clear(); +} + + +const qint32 &HeadUserImageParams::blur() const { + return m_blur.value(); +} + +void HeadUserImageParams::setBlur(qint32 newBlur) { + m_blur = newBlur; +} + +bool HeadUserImageParams::blurNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_blur.has_value(); +} + +void HeadUserImageParams::setBlurNull() { + m_blur = std::nullopt; +} + + +const bool &HeadUserImageParams::cropWhitespace() const { + return m_cropWhitespace.value(); +} + +void HeadUserImageParams::setCropWhitespace(bool newCropWhitespace) { + m_cropWhitespace = newCropWhitespace; +} + +bool HeadUserImageParams::cropWhitespaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cropWhitespace.has_value(); +} + +void HeadUserImageParams::setCropWhitespaceNull() { + m_cropWhitespace = std::nullopt; +} + + +const QString &HeadUserImageParams::foregroundLayer() const { + return m_foregroundLayer; +} + +void HeadUserImageParams::setForegroundLayer(QString newForegroundLayer) { + m_foregroundLayer = newForegroundLayer; +} + +bool HeadUserImageParams::foregroundLayerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_foregroundLayer.isNull(); +} + +void HeadUserImageParams::setForegroundLayerNull() { + m_foregroundLayer.clear(); +} + + +const ImageFormat &HeadUserImageParams::format() const { + return m_format; +} + +void HeadUserImageParams::setFormat(ImageFormat newFormat) { + m_format = newFormat; +} + +bool HeadUserImageParams::formatNull() const { + // Nullable: true + // Type Nullable: true + + + return m_format== ImageFormat::EnumNotSet; +} + +void HeadUserImageParams::setFormatNull() { + m_format= ImageFormat::EnumNotSet; +} + + +const qint32 &HeadUserImageParams::height() const { + return m_height.value(); +} + +void HeadUserImageParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadUserImageParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadUserImageParams::setHeightNull() { + m_height = std::nullopt; +} + + +const qint32 &HeadUserImageParams::imageIndex() const { + return m_imageIndex.value(); +} + +void HeadUserImageParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + +bool HeadUserImageParams::imageIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_imageIndex.has_value(); +} + +void HeadUserImageParams::setImageIndexNull() { + m_imageIndex = std::nullopt; +} + + +const qint32 &HeadUserImageParams::maxHeight() const { + return m_maxHeight.value(); +} + +void HeadUserImageParams::setMaxHeight(qint32 newMaxHeight) { + m_maxHeight = newMaxHeight; +} + +bool HeadUserImageParams::maxHeightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxHeight.has_value(); +} + +void HeadUserImageParams::setMaxHeightNull() { + m_maxHeight = std::nullopt; +} + + +const qint32 &HeadUserImageParams::maxWidth() const { + return m_maxWidth.value(); +} + +void HeadUserImageParams::setMaxWidth(qint32 newMaxWidth) { + m_maxWidth = newMaxWidth; +} + +bool HeadUserImageParams::maxWidthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxWidth.has_value(); +} + +void HeadUserImageParams::setMaxWidthNull() { + m_maxWidth = std::nullopt; +} + + +const double &HeadUserImageParams::percentPlayed() const { + return m_percentPlayed.value(); +} + +void HeadUserImageParams::setPercentPlayed(double newPercentPlayed) { + m_percentPlayed = newPercentPlayed; +} + +bool HeadUserImageParams::percentPlayedNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_percentPlayed.has_value(); +} + +void HeadUserImageParams::setPercentPlayedNull() { + m_percentPlayed = std::nullopt; +} + + +const qint32 &HeadUserImageParams::quality() const { + return m_quality.value(); +} + +void HeadUserImageParams::setQuality(qint32 newQuality) { + m_quality = newQuality; +} + +bool HeadUserImageParams::qualityNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_quality.has_value(); +} + +void HeadUserImageParams::setQualityNull() { + m_quality = std::nullopt; +} + + +const QString &HeadUserImageParams::tag() const { + return m_tag; +} + +void HeadUserImageParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool HeadUserImageParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void HeadUserImageParams::setTagNull() { + m_tag.clear(); +} + + +const qint32 &HeadUserImageParams::unplayedCount() const { + return m_unplayedCount.value(); +} + +void HeadUserImageParams::setUnplayedCount(qint32 newUnplayedCount) { + m_unplayedCount = newUnplayedCount; +} + +bool HeadUserImageParams::unplayedCountNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_unplayedCount.has_value(); +} + +void HeadUserImageParams::setUnplayedCountNull() { + m_unplayedCount = std::nullopt; +} + + +const qint32 &HeadUserImageParams::width() const { + return m_width.value(); +} + +void HeadUserImageParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadUserImageParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadUserImageParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headvideostreambycontainerparams.cpp b/core/src/loader/headvideostreambycontainerparams.cpp new file mode 100644 index 0000000..41e6c2f --- /dev/null +++ b/core/src/loader/headvideostreambycontainerparams.cpp @@ -0,0 +1,1055 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headvideostreambycontainerparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadVideoStreamByContainerParams + +const QString &HeadVideoStreamByContainerParams::container() const { + return m_container; +} + +void HeadVideoStreamByContainerParams::setContainer(QString newContainer) { + m_container = newContainer; +} + + +const QString &HeadVideoStreamByContainerParams::itemId() const { + return m_itemId; +} + +void HeadVideoStreamByContainerParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &HeadVideoStreamByContainerParams::stream() const { + return m_stream; +} + +void HeadVideoStreamByContainerParams::setStream(QString newStream) { + m_stream = newStream; +} + + +const bool &HeadVideoStreamByContainerParams::allowAudioStreamCopy() const { + return m_allowAudioStreamCopy.value(); +} + +void HeadVideoStreamByContainerParams::setAllowAudioStreamCopy(bool newAllowAudioStreamCopy) { + m_allowAudioStreamCopy = newAllowAudioStreamCopy; +} + +bool HeadVideoStreamByContainerParams::allowAudioStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowAudioStreamCopy.has_value(); +} + +void HeadVideoStreamByContainerParams::setAllowAudioStreamCopyNull() { + m_allowAudioStreamCopy = std::nullopt; +} + + +const bool &HeadVideoStreamByContainerParams::allowVideoStreamCopy() const { + return m_allowVideoStreamCopy.value(); +} + +void HeadVideoStreamByContainerParams::setAllowVideoStreamCopy(bool newAllowVideoStreamCopy) { + m_allowVideoStreamCopy = newAllowVideoStreamCopy; +} + +bool HeadVideoStreamByContainerParams::allowVideoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowVideoStreamCopy.has_value(); +} + +void HeadVideoStreamByContainerParams::setAllowVideoStreamCopyNull() { + m_allowVideoStreamCopy = std::nullopt; +} + + +const qint32 &HeadVideoStreamByContainerParams::audioBitRate() const { + return m_audioBitRate.value(); +} + +void HeadVideoStreamByContainerParams::setAudioBitRate(qint32 newAudioBitRate) { + m_audioBitRate = newAudioBitRate; +} + +bool HeadVideoStreamByContainerParams::audioBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioBitRate.has_value(); +} + +void HeadVideoStreamByContainerParams::setAudioBitRateNull() { + m_audioBitRate = std::nullopt; +} + + +const qint32 &HeadVideoStreamByContainerParams::audioChannels() const { + return m_audioChannels.value(); +} + +void HeadVideoStreamByContainerParams::setAudioChannels(qint32 newAudioChannels) { + m_audioChannels = newAudioChannels; +} + +bool HeadVideoStreamByContainerParams::audioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioChannels.has_value(); +} + +void HeadVideoStreamByContainerParams::setAudioChannelsNull() { + m_audioChannels = std::nullopt; +} + + +const QString &HeadVideoStreamByContainerParams::audioCodec() const { + return m_audioCodec; +} + +void HeadVideoStreamByContainerParams::setAudioCodec(QString newAudioCodec) { + m_audioCodec = newAudioCodec; +} + +bool HeadVideoStreamByContainerParams::audioCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_audioCodec.isNull(); +} + +void HeadVideoStreamByContainerParams::setAudioCodecNull() { + m_audioCodec.clear(); +} + + +const qint32 &HeadVideoStreamByContainerParams::audioSampleRate() const { + return m_audioSampleRate.value(); +} + +void HeadVideoStreamByContainerParams::setAudioSampleRate(qint32 newAudioSampleRate) { + m_audioSampleRate = newAudioSampleRate; +} + +bool HeadVideoStreamByContainerParams::audioSampleRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioSampleRate.has_value(); +} + +void HeadVideoStreamByContainerParams::setAudioSampleRateNull() { + m_audioSampleRate = std::nullopt; +} + + +const qint32 &HeadVideoStreamByContainerParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void HeadVideoStreamByContainerParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool HeadVideoStreamByContainerParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void HeadVideoStreamByContainerParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &HeadVideoStreamByContainerParams::breakOnNonKeyFrames() const { + return m_breakOnNonKeyFrames.value(); +} + +void HeadVideoStreamByContainerParams::setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames) { + m_breakOnNonKeyFrames = newBreakOnNonKeyFrames; +} + +bool HeadVideoStreamByContainerParams::breakOnNonKeyFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_breakOnNonKeyFrames.has_value(); +} + +void HeadVideoStreamByContainerParams::setBreakOnNonKeyFramesNull() { + m_breakOnNonKeyFrames = std::nullopt; +} + + +const EncodingContext &HeadVideoStreamByContainerParams::context() const { + return m_context; +} + +void HeadVideoStreamByContainerParams::setContext(EncodingContext newContext) { + m_context = newContext; +} + +bool HeadVideoStreamByContainerParams::contextNull() const { + // Nullable: true + // Type Nullable: true + + + return m_context== EncodingContext::EnumNotSet; +} + +void HeadVideoStreamByContainerParams::setContextNull() { + m_context= EncodingContext::EnumNotSet; +} + + +const bool &HeadVideoStreamByContainerParams::copyTimestamps() const { + return m_copyTimestamps.value(); +} + +void HeadVideoStreamByContainerParams::setCopyTimestamps(bool newCopyTimestamps) { + m_copyTimestamps = newCopyTimestamps; +} + +bool HeadVideoStreamByContainerParams::copyTimestampsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_copyTimestamps.has_value(); +} + +void HeadVideoStreamByContainerParams::setCopyTimestampsNull() { + m_copyTimestamps = std::nullopt; +} + + +const qint32 &HeadVideoStreamByContainerParams::cpuCoreLimit() const { + return m_cpuCoreLimit.value(); +} + +void HeadVideoStreamByContainerParams::setCpuCoreLimit(qint32 newCpuCoreLimit) { + m_cpuCoreLimit = newCpuCoreLimit; +} + +bool HeadVideoStreamByContainerParams::cpuCoreLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cpuCoreLimit.has_value(); +} + +void HeadVideoStreamByContainerParams::setCpuCoreLimitNull() { + m_cpuCoreLimit = std::nullopt; +} + + +const bool &HeadVideoStreamByContainerParams::deInterlace() const { + return m_deInterlace.value(); +} + +void HeadVideoStreamByContainerParams::setDeInterlace(bool newDeInterlace) { + m_deInterlace = newDeInterlace; +} + +bool HeadVideoStreamByContainerParams::deInterlaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_deInterlace.has_value(); +} + +void HeadVideoStreamByContainerParams::setDeInterlaceNull() { + m_deInterlace = std::nullopt; +} + + +const QString &HeadVideoStreamByContainerParams::deviceId() const { + return m_deviceId; +} + +void HeadVideoStreamByContainerParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool HeadVideoStreamByContainerParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void HeadVideoStreamByContainerParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const QString &HeadVideoStreamByContainerParams::deviceProfileId() const { + return m_deviceProfileId; +} + +void HeadVideoStreamByContainerParams::setDeviceProfileId(QString newDeviceProfileId) { + m_deviceProfileId = newDeviceProfileId; +} + +bool HeadVideoStreamByContainerParams::deviceProfileIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceProfileId.isNull(); +} + +void HeadVideoStreamByContainerParams::setDeviceProfileIdNull() { + m_deviceProfileId.clear(); +} + + +const bool &HeadVideoStreamByContainerParams::enableAutoStreamCopy() const { + return m_enableAutoStreamCopy.value(); +} + +void HeadVideoStreamByContainerParams::setEnableAutoStreamCopy(bool newEnableAutoStreamCopy) { + m_enableAutoStreamCopy = newEnableAutoStreamCopy; +} + +bool HeadVideoStreamByContainerParams::enableAutoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableAutoStreamCopy.has_value(); +} + +void HeadVideoStreamByContainerParams::setEnableAutoStreamCopyNull() { + m_enableAutoStreamCopy = std::nullopt; +} + + +const bool &HeadVideoStreamByContainerParams::enableMpegtsM2TsMode() const { + return m_enableMpegtsM2TsMode.value(); +} + +void HeadVideoStreamByContainerParams::setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode) { + m_enableMpegtsM2TsMode = newEnableMpegtsM2TsMode; +} + +bool HeadVideoStreamByContainerParams::enableMpegtsM2TsModeNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableMpegtsM2TsMode.has_value(); +} + +void HeadVideoStreamByContainerParams::setEnableMpegtsM2TsModeNull() { + m_enableMpegtsM2TsMode = std::nullopt; +} + + +const float &HeadVideoStreamByContainerParams::framerate() const { + return m_framerate.value(); +} + +void HeadVideoStreamByContainerParams::setFramerate(float newFramerate) { + m_framerate = newFramerate; +} + +bool HeadVideoStreamByContainerParams::framerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_framerate.has_value(); +} + +void HeadVideoStreamByContainerParams::setFramerateNull() { + m_framerate = std::nullopt; +} + + +const qint32 &HeadVideoStreamByContainerParams::height() const { + return m_height.value(); +} + +void HeadVideoStreamByContainerParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadVideoStreamByContainerParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadVideoStreamByContainerParams::setHeightNull() { + m_height = std::nullopt; +} + + +const QString &HeadVideoStreamByContainerParams::level() const { + return m_level; +} + +void HeadVideoStreamByContainerParams::setLevel(QString newLevel) { + m_level = newLevel; +} + +bool HeadVideoStreamByContainerParams::levelNull() const { + // Nullable: true + // Type Nullable: true + + + return m_level.isNull(); +} + +void HeadVideoStreamByContainerParams::setLevelNull() { + m_level.clear(); +} + + +const QString &HeadVideoStreamByContainerParams::liveStreamId() const { + return m_liveStreamId; +} + +void HeadVideoStreamByContainerParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool HeadVideoStreamByContainerParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void HeadVideoStreamByContainerParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const qint32 &HeadVideoStreamByContainerParams::maxAudioBitDepth() const { + return m_maxAudioBitDepth.value(); +} + +void HeadVideoStreamByContainerParams::setMaxAudioBitDepth(qint32 newMaxAudioBitDepth) { + m_maxAudioBitDepth = newMaxAudioBitDepth; +} + +bool HeadVideoStreamByContainerParams::maxAudioBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioBitDepth.has_value(); +} + +void HeadVideoStreamByContainerParams::setMaxAudioBitDepthNull() { + m_maxAudioBitDepth = std::nullopt; +} + + +const qint32 &HeadVideoStreamByContainerParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void HeadVideoStreamByContainerParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool HeadVideoStreamByContainerParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void HeadVideoStreamByContainerParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const float &HeadVideoStreamByContainerParams::maxFramerate() const { + return m_maxFramerate.value(); +} + +void HeadVideoStreamByContainerParams::setMaxFramerate(float newMaxFramerate) { + m_maxFramerate = newMaxFramerate; +} + +bool HeadVideoStreamByContainerParams::maxFramerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxFramerate.has_value(); +} + +void HeadVideoStreamByContainerParams::setMaxFramerateNull() { + m_maxFramerate = std::nullopt; +} + + +const qint32 &HeadVideoStreamByContainerParams::maxRefFrames() const { + return m_maxRefFrames.value(); +} + +void HeadVideoStreamByContainerParams::setMaxRefFrames(qint32 newMaxRefFrames) { + m_maxRefFrames = newMaxRefFrames; +} + +bool HeadVideoStreamByContainerParams::maxRefFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxRefFrames.has_value(); +} + +void HeadVideoStreamByContainerParams::setMaxRefFramesNull() { + m_maxRefFrames = std::nullopt; +} + + +const qint32 &HeadVideoStreamByContainerParams::maxVideoBitDepth() const { + return m_maxVideoBitDepth.value(); +} + +void HeadVideoStreamByContainerParams::setMaxVideoBitDepth(qint32 newMaxVideoBitDepth) { + m_maxVideoBitDepth = newMaxVideoBitDepth; +} + +bool HeadVideoStreamByContainerParams::maxVideoBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxVideoBitDepth.has_value(); +} + +void HeadVideoStreamByContainerParams::setMaxVideoBitDepthNull() { + m_maxVideoBitDepth = std::nullopt; +} + + +const QString &HeadVideoStreamByContainerParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void HeadVideoStreamByContainerParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + +bool HeadVideoStreamByContainerParams::mediaSourceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaSourceId.isNull(); +} + +void HeadVideoStreamByContainerParams::setMediaSourceIdNull() { + m_mediaSourceId.clear(); +} + + +const qint32 &HeadVideoStreamByContainerParams::minSegments() const { + return m_minSegments.value(); +} + +void HeadVideoStreamByContainerParams::setMinSegments(qint32 newMinSegments) { + m_minSegments = newMinSegments; +} + +bool HeadVideoStreamByContainerParams::minSegmentsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minSegments.has_value(); +} + +void HeadVideoStreamByContainerParams::setMinSegmentsNull() { + m_minSegments = std::nullopt; +} + + +const QString &HeadVideoStreamByContainerParams::params() const { + return m_params; +} + +void HeadVideoStreamByContainerParams::setParams(QString newParams) { + m_params = newParams; +} + +bool HeadVideoStreamByContainerParams::paramsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_params.isNull(); +} + +void HeadVideoStreamByContainerParams::setParamsNull() { + m_params.clear(); +} + + +const QString &HeadVideoStreamByContainerParams::playSessionId() const { + return m_playSessionId; +} + +void HeadVideoStreamByContainerParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool HeadVideoStreamByContainerParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void HeadVideoStreamByContainerParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const QString &HeadVideoStreamByContainerParams::profile() const { + return m_profile; +} + +void HeadVideoStreamByContainerParams::setProfile(QString newProfile) { + m_profile = newProfile; +} + +bool HeadVideoStreamByContainerParams::profileNull() const { + // Nullable: true + // Type Nullable: true + + + return m_profile.isNull(); +} + +void HeadVideoStreamByContainerParams::setProfileNull() { + m_profile.clear(); +} + + +const bool &HeadVideoStreamByContainerParams::requireAvc() const { + return m_requireAvc.value(); +} + +void HeadVideoStreamByContainerParams::setRequireAvc(bool newRequireAvc) { + m_requireAvc = newRequireAvc; +} + +bool HeadVideoStreamByContainerParams::requireAvcNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireAvc.has_value(); +} + +void HeadVideoStreamByContainerParams::setRequireAvcNull() { + m_requireAvc = std::nullopt; +} + + +const bool &HeadVideoStreamByContainerParams::requireNonAnamorphic() const { + return m_requireNonAnamorphic.value(); +} + +void HeadVideoStreamByContainerParams::setRequireNonAnamorphic(bool newRequireNonAnamorphic) { + m_requireNonAnamorphic = newRequireNonAnamorphic; +} + +bool HeadVideoStreamByContainerParams::requireNonAnamorphicNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireNonAnamorphic.has_value(); +} + +void HeadVideoStreamByContainerParams::setRequireNonAnamorphicNull() { + m_requireNonAnamorphic = std::nullopt; +} + + +const QString &HeadVideoStreamByContainerParams::segmentContainer() const { + return m_segmentContainer; +} + +void HeadVideoStreamByContainerParams::setSegmentContainer(QString newSegmentContainer) { + m_segmentContainer = newSegmentContainer; +} + +bool HeadVideoStreamByContainerParams::segmentContainerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_segmentContainer.isNull(); +} + +void HeadVideoStreamByContainerParams::setSegmentContainerNull() { + m_segmentContainer.clear(); +} + + +const qint32 &HeadVideoStreamByContainerParams::segmentLength() const { + return m_segmentLength.value(); +} + +void HeadVideoStreamByContainerParams::setSegmentLength(qint32 newSegmentLength) { + m_segmentLength = newSegmentLength; +} + +bool HeadVideoStreamByContainerParams::segmentLengthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_segmentLength.has_value(); +} + +void HeadVideoStreamByContainerParams::setSegmentLengthNull() { + m_segmentLength = std::nullopt; +} + + +const qint64 &HeadVideoStreamByContainerParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void HeadVideoStreamByContainerParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool HeadVideoStreamByContainerParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void HeadVideoStreamByContainerParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const bool &HeadVideoStreamByContainerParams::staticStreaming() const { + return m_staticStreaming.value(); +} + +void HeadVideoStreamByContainerParams::setStaticStreaming(bool newStaticStreaming) { + m_staticStreaming = newStaticStreaming; +} + +bool HeadVideoStreamByContainerParams::staticStreamingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_staticStreaming.has_value(); +} + +void HeadVideoStreamByContainerParams::setStaticStreamingNull() { + m_staticStreaming = std::nullopt; +} + + +const QJsonObject &HeadVideoStreamByContainerParams::streamOptions() const { + return m_streamOptions; +} + +void HeadVideoStreamByContainerParams::setStreamOptions(QJsonObject newStreamOptions) { + m_streamOptions = newStreamOptions; +} + +bool HeadVideoStreamByContainerParams::streamOptionsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_streamOptions.isEmpty(); +} + +void HeadVideoStreamByContainerParams::setStreamOptionsNull() { + m_streamOptions= QJsonObject(); +} + + +const QString &HeadVideoStreamByContainerParams::subtitleCodec() const { + return m_subtitleCodec; +} + +void HeadVideoStreamByContainerParams::setSubtitleCodec(QString newSubtitleCodec) { + m_subtitleCodec = newSubtitleCodec; +} + +bool HeadVideoStreamByContainerParams::subtitleCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleCodec.isNull(); +} + +void HeadVideoStreamByContainerParams::setSubtitleCodecNull() { + m_subtitleCodec.clear(); +} + + +const SubtitleDeliveryMethod &HeadVideoStreamByContainerParams::subtitleMethod() const { + return m_subtitleMethod; +} + +void HeadVideoStreamByContainerParams::setSubtitleMethod(SubtitleDeliveryMethod newSubtitleMethod) { + m_subtitleMethod = newSubtitleMethod; +} + +bool HeadVideoStreamByContainerParams::subtitleMethodNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleMethod== SubtitleDeliveryMethod::EnumNotSet; +} + +void HeadVideoStreamByContainerParams::setSubtitleMethodNull() { + m_subtitleMethod= SubtitleDeliveryMethod::EnumNotSet; +} + + +const qint32 &HeadVideoStreamByContainerParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void HeadVideoStreamByContainerParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool HeadVideoStreamByContainerParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void HeadVideoStreamByContainerParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const QString &HeadVideoStreamByContainerParams::tag() const { + return m_tag; +} + +void HeadVideoStreamByContainerParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool HeadVideoStreamByContainerParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void HeadVideoStreamByContainerParams::setTagNull() { + m_tag.clear(); +} + + +const QString &HeadVideoStreamByContainerParams::transcodeReasons() const { + return m_transcodeReasons; +} + +void HeadVideoStreamByContainerParams::setTranscodeReasons(QString newTranscodeReasons) { + m_transcodeReasons = newTranscodeReasons; +} + +bool HeadVideoStreamByContainerParams::transcodeReasonsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodeReasons.isNull(); +} + +void HeadVideoStreamByContainerParams::setTranscodeReasonsNull() { + m_transcodeReasons.clear(); +} + + +const qint32 &HeadVideoStreamByContainerParams::transcodingMaxAudioChannels() const { + return m_transcodingMaxAudioChannels.value(); +} + +void HeadVideoStreamByContainerParams::setTranscodingMaxAudioChannels(qint32 newTranscodingMaxAudioChannels) { + m_transcodingMaxAudioChannels = newTranscodingMaxAudioChannels; +} + +bool HeadVideoStreamByContainerParams::transcodingMaxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_transcodingMaxAudioChannels.has_value(); +} + +void HeadVideoStreamByContainerParams::setTranscodingMaxAudioChannelsNull() { + m_transcodingMaxAudioChannels = std::nullopt; +} + + +const qint32 &HeadVideoStreamByContainerParams::videoBitRate() const { + return m_videoBitRate.value(); +} + +void HeadVideoStreamByContainerParams::setVideoBitRate(qint32 newVideoBitRate) { + m_videoBitRate = newVideoBitRate; +} + +bool HeadVideoStreamByContainerParams::videoBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoBitRate.has_value(); +} + +void HeadVideoStreamByContainerParams::setVideoBitRateNull() { + m_videoBitRate = std::nullopt; +} + + +const QString &HeadVideoStreamByContainerParams::videoCodec() const { + return m_videoCodec; +} + +void HeadVideoStreamByContainerParams::setVideoCodec(QString newVideoCodec) { + m_videoCodec = newVideoCodec; +} + +bool HeadVideoStreamByContainerParams::videoCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoCodec.isNull(); +} + +void HeadVideoStreamByContainerParams::setVideoCodecNull() { + m_videoCodec.clear(); +} + + +const qint32 &HeadVideoStreamByContainerParams::videoStreamIndex() const { + return m_videoStreamIndex.value(); +} + +void HeadVideoStreamByContainerParams::setVideoStreamIndex(qint32 newVideoStreamIndex) { + m_videoStreamIndex = newVideoStreamIndex; +} + +bool HeadVideoStreamByContainerParams::videoStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoStreamIndex.has_value(); +} + +void HeadVideoStreamByContainerParams::setVideoStreamIndexNull() { + m_videoStreamIndex = std::nullopt; +} + + +const qint32 &HeadVideoStreamByContainerParams::width() const { + return m_width.value(); +} + +void HeadVideoStreamByContainerParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadVideoStreamByContainerParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadVideoStreamByContainerParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/headvideostreamparams.cpp b/core/src/loader/headvideostreamparams.cpp new file mode 100644 index 0000000..4942f4b --- /dev/null +++ b/core/src/loader/headvideostreamparams.cpp @@ -0,0 +1,1058 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/headvideostreamparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// HeadVideoStreamParams + +const QString &HeadVideoStreamParams::itemId() const { + return m_itemId; +} + +void HeadVideoStreamParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const bool &HeadVideoStreamParams::allowAudioStreamCopy() const { + return m_allowAudioStreamCopy.value(); +} + +void HeadVideoStreamParams::setAllowAudioStreamCopy(bool newAllowAudioStreamCopy) { + m_allowAudioStreamCopy = newAllowAudioStreamCopy; +} + +bool HeadVideoStreamParams::allowAudioStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowAudioStreamCopy.has_value(); +} + +void HeadVideoStreamParams::setAllowAudioStreamCopyNull() { + m_allowAudioStreamCopy = std::nullopt; +} + + +const bool &HeadVideoStreamParams::allowVideoStreamCopy() const { + return m_allowVideoStreamCopy.value(); +} + +void HeadVideoStreamParams::setAllowVideoStreamCopy(bool newAllowVideoStreamCopy) { + m_allowVideoStreamCopy = newAllowVideoStreamCopy; +} + +bool HeadVideoStreamParams::allowVideoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_allowVideoStreamCopy.has_value(); +} + +void HeadVideoStreamParams::setAllowVideoStreamCopyNull() { + m_allowVideoStreamCopy = std::nullopt; +} + + +const qint32 &HeadVideoStreamParams::audioBitRate() const { + return m_audioBitRate.value(); +} + +void HeadVideoStreamParams::setAudioBitRate(qint32 newAudioBitRate) { + m_audioBitRate = newAudioBitRate; +} + +bool HeadVideoStreamParams::audioBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioBitRate.has_value(); +} + +void HeadVideoStreamParams::setAudioBitRateNull() { + m_audioBitRate = std::nullopt; +} + + +const qint32 &HeadVideoStreamParams::audioChannels() const { + return m_audioChannels.value(); +} + +void HeadVideoStreamParams::setAudioChannels(qint32 newAudioChannels) { + m_audioChannels = newAudioChannels; +} + +bool HeadVideoStreamParams::audioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioChannels.has_value(); +} + +void HeadVideoStreamParams::setAudioChannelsNull() { + m_audioChannels = std::nullopt; +} + + +const QString &HeadVideoStreamParams::audioCodec() const { + return m_audioCodec; +} + +void HeadVideoStreamParams::setAudioCodec(QString newAudioCodec) { + m_audioCodec = newAudioCodec; +} + +bool HeadVideoStreamParams::audioCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_audioCodec.isNull(); +} + +void HeadVideoStreamParams::setAudioCodecNull() { + m_audioCodec.clear(); +} + + +const qint32 &HeadVideoStreamParams::audioSampleRate() const { + return m_audioSampleRate.value(); +} + +void HeadVideoStreamParams::setAudioSampleRate(qint32 newAudioSampleRate) { + m_audioSampleRate = newAudioSampleRate; +} + +bool HeadVideoStreamParams::audioSampleRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioSampleRate.has_value(); +} + +void HeadVideoStreamParams::setAudioSampleRateNull() { + m_audioSampleRate = std::nullopt; +} + + +const qint32 &HeadVideoStreamParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void HeadVideoStreamParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool HeadVideoStreamParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void HeadVideoStreamParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &HeadVideoStreamParams::breakOnNonKeyFrames() const { + return m_breakOnNonKeyFrames.value(); +} + +void HeadVideoStreamParams::setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames) { + m_breakOnNonKeyFrames = newBreakOnNonKeyFrames; +} + +bool HeadVideoStreamParams::breakOnNonKeyFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_breakOnNonKeyFrames.has_value(); +} + +void HeadVideoStreamParams::setBreakOnNonKeyFramesNull() { + m_breakOnNonKeyFrames = std::nullopt; +} + + +const QString &HeadVideoStreamParams::container() const { + return m_container; +} + +void HeadVideoStreamParams::setContainer(QString newContainer) { + m_container = newContainer; +} + +bool HeadVideoStreamParams::containerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_container.isNull(); +} + +void HeadVideoStreamParams::setContainerNull() { + m_container.clear(); +} + + +const EncodingContext &HeadVideoStreamParams::context() const { + return m_context; +} + +void HeadVideoStreamParams::setContext(EncodingContext newContext) { + m_context = newContext; +} + +bool HeadVideoStreamParams::contextNull() const { + // Nullable: true + // Type Nullable: true + + + return m_context== EncodingContext::EnumNotSet; +} + +void HeadVideoStreamParams::setContextNull() { + m_context= EncodingContext::EnumNotSet; +} + + +const bool &HeadVideoStreamParams::copyTimestamps() const { + return m_copyTimestamps.value(); +} + +void HeadVideoStreamParams::setCopyTimestamps(bool newCopyTimestamps) { + m_copyTimestamps = newCopyTimestamps; +} + +bool HeadVideoStreamParams::copyTimestampsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_copyTimestamps.has_value(); +} + +void HeadVideoStreamParams::setCopyTimestampsNull() { + m_copyTimestamps = std::nullopt; +} + + +const qint32 &HeadVideoStreamParams::cpuCoreLimit() const { + return m_cpuCoreLimit.value(); +} + +void HeadVideoStreamParams::setCpuCoreLimit(qint32 newCpuCoreLimit) { + m_cpuCoreLimit = newCpuCoreLimit; +} + +bool HeadVideoStreamParams::cpuCoreLimitNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_cpuCoreLimit.has_value(); +} + +void HeadVideoStreamParams::setCpuCoreLimitNull() { + m_cpuCoreLimit = std::nullopt; +} + + +const bool &HeadVideoStreamParams::deInterlace() const { + return m_deInterlace.value(); +} + +void HeadVideoStreamParams::setDeInterlace(bool newDeInterlace) { + m_deInterlace = newDeInterlace; +} + +bool HeadVideoStreamParams::deInterlaceNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_deInterlace.has_value(); +} + +void HeadVideoStreamParams::setDeInterlaceNull() { + m_deInterlace = std::nullopt; +} + + +const QString &HeadVideoStreamParams::deviceId() const { + return m_deviceId; +} + +void HeadVideoStreamParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool HeadVideoStreamParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceId.isNull(); +} + +void HeadVideoStreamParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const QString &HeadVideoStreamParams::deviceProfileId() const { + return m_deviceProfileId; +} + +void HeadVideoStreamParams::setDeviceProfileId(QString newDeviceProfileId) { + m_deviceProfileId = newDeviceProfileId; +} + +bool HeadVideoStreamParams::deviceProfileIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_deviceProfileId.isNull(); +} + +void HeadVideoStreamParams::setDeviceProfileIdNull() { + m_deviceProfileId.clear(); +} + + +const bool &HeadVideoStreamParams::enableAutoStreamCopy() const { + return m_enableAutoStreamCopy.value(); +} + +void HeadVideoStreamParams::setEnableAutoStreamCopy(bool newEnableAutoStreamCopy) { + m_enableAutoStreamCopy = newEnableAutoStreamCopy; +} + +bool HeadVideoStreamParams::enableAutoStreamCopyNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableAutoStreamCopy.has_value(); +} + +void HeadVideoStreamParams::setEnableAutoStreamCopyNull() { + m_enableAutoStreamCopy = std::nullopt; +} + + +const bool &HeadVideoStreamParams::enableMpegtsM2TsMode() const { + return m_enableMpegtsM2TsMode.value(); +} + +void HeadVideoStreamParams::setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode) { + m_enableMpegtsM2TsMode = newEnableMpegtsM2TsMode; +} + +bool HeadVideoStreamParams::enableMpegtsM2TsModeNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableMpegtsM2TsMode.has_value(); +} + +void HeadVideoStreamParams::setEnableMpegtsM2TsModeNull() { + m_enableMpegtsM2TsMode = std::nullopt; +} + + +const float &HeadVideoStreamParams::framerate() const { + return m_framerate.value(); +} + +void HeadVideoStreamParams::setFramerate(float newFramerate) { + m_framerate = newFramerate; +} + +bool HeadVideoStreamParams::framerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_framerate.has_value(); +} + +void HeadVideoStreamParams::setFramerateNull() { + m_framerate = std::nullopt; +} + + +const qint32 &HeadVideoStreamParams::height() const { + return m_height.value(); +} + +void HeadVideoStreamParams::setHeight(qint32 newHeight) { + m_height = newHeight; +} + +bool HeadVideoStreamParams::heightNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_height.has_value(); +} + +void HeadVideoStreamParams::setHeightNull() { + m_height = std::nullopt; +} + + +const QString &HeadVideoStreamParams::level() const { + return m_level; +} + +void HeadVideoStreamParams::setLevel(QString newLevel) { + m_level = newLevel; +} + +bool HeadVideoStreamParams::levelNull() const { + // Nullable: true + // Type Nullable: true + + + return m_level.isNull(); +} + +void HeadVideoStreamParams::setLevelNull() { + m_level.clear(); +} + + +const QString &HeadVideoStreamParams::liveStreamId() const { + return m_liveStreamId; +} + +void HeadVideoStreamParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool HeadVideoStreamParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void HeadVideoStreamParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const qint32 &HeadVideoStreamParams::maxAudioBitDepth() const { + return m_maxAudioBitDepth.value(); +} + +void HeadVideoStreamParams::setMaxAudioBitDepth(qint32 newMaxAudioBitDepth) { + m_maxAudioBitDepth = newMaxAudioBitDepth; +} + +bool HeadVideoStreamParams::maxAudioBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioBitDepth.has_value(); +} + +void HeadVideoStreamParams::setMaxAudioBitDepthNull() { + m_maxAudioBitDepth = std::nullopt; +} + + +const qint32 &HeadVideoStreamParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void HeadVideoStreamParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool HeadVideoStreamParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void HeadVideoStreamParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const float &HeadVideoStreamParams::maxFramerate() const { + return m_maxFramerate.value(); +} + +void HeadVideoStreamParams::setMaxFramerate(float newMaxFramerate) { + m_maxFramerate = newMaxFramerate; +} + +bool HeadVideoStreamParams::maxFramerateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxFramerate.has_value(); +} + +void HeadVideoStreamParams::setMaxFramerateNull() { + m_maxFramerate = std::nullopt; +} + + +const qint32 &HeadVideoStreamParams::maxRefFrames() const { + return m_maxRefFrames.value(); +} + +void HeadVideoStreamParams::setMaxRefFrames(qint32 newMaxRefFrames) { + m_maxRefFrames = newMaxRefFrames; +} + +bool HeadVideoStreamParams::maxRefFramesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxRefFrames.has_value(); +} + +void HeadVideoStreamParams::setMaxRefFramesNull() { + m_maxRefFrames = std::nullopt; +} + + +const qint32 &HeadVideoStreamParams::maxVideoBitDepth() const { + return m_maxVideoBitDepth.value(); +} + +void HeadVideoStreamParams::setMaxVideoBitDepth(qint32 newMaxVideoBitDepth) { + m_maxVideoBitDepth = newMaxVideoBitDepth; +} + +bool HeadVideoStreamParams::maxVideoBitDepthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxVideoBitDepth.has_value(); +} + +void HeadVideoStreamParams::setMaxVideoBitDepthNull() { + m_maxVideoBitDepth = std::nullopt; +} + + +const QString &HeadVideoStreamParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void HeadVideoStreamParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + +bool HeadVideoStreamParams::mediaSourceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaSourceId.isNull(); +} + +void HeadVideoStreamParams::setMediaSourceIdNull() { + m_mediaSourceId.clear(); +} + + +const qint32 &HeadVideoStreamParams::minSegments() const { + return m_minSegments.value(); +} + +void HeadVideoStreamParams::setMinSegments(qint32 newMinSegments) { + m_minSegments = newMinSegments; +} + +bool HeadVideoStreamParams::minSegmentsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_minSegments.has_value(); +} + +void HeadVideoStreamParams::setMinSegmentsNull() { + m_minSegments = std::nullopt; +} + + +const QString &HeadVideoStreamParams::params() const { + return m_params; +} + +void HeadVideoStreamParams::setParams(QString newParams) { + m_params = newParams; +} + +bool HeadVideoStreamParams::paramsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_params.isNull(); +} + +void HeadVideoStreamParams::setParamsNull() { + m_params.clear(); +} + + +const QString &HeadVideoStreamParams::playSessionId() const { + return m_playSessionId; +} + +void HeadVideoStreamParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool HeadVideoStreamParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void HeadVideoStreamParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const QString &HeadVideoStreamParams::profile() const { + return m_profile; +} + +void HeadVideoStreamParams::setProfile(QString newProfile) { + m_profile = newProfile; +} + +bool HeadVideoStreamParams::profileNull() const { + // Nullable: true + // Type Nullable: true + + + return m_profile.isNull(); +} + +void HeadVideoStreamParams::setProfileNull() { + m_profile.clear(); +} + + +const bool &HeadVideoStreamParams::requireAvc() const { + return m_requireAvc.value(); +} + +void HeadVideoStreamParams::setRequireAvc(bool newRequireAvc) { + m_requireAvc = newRequireAvc; +} + +bool HeadVideoStreamParams::requireAvcNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireAvc.has_value(); +} + +void HeadVideoStreamParams::setRequireAvcNull() { + m_requireAvc = std::nullopt; +} + + +const bool &HeadVideoStreamParams::requireNonAnamorphic() const { + return m_requireNonAnamorphic.value(); +} + +void HeadVideoStreamParams::setRequireNonAnamorphic(bool newRequireNonAnamorphic) { + m_requireNonAnamorphic = newRequireNonAnamorphic; +} + +bool HeadVideoStreamParams::requireNonAnamorphicNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_requireNonAnamorphic.has_value(); +} + +void HeadVideoStreamParams::setRequireNonAnamorphicNull() { + m_requireNonAnamorphic = std::nullopt; +} + + +const QString &HeadVideoStreamParams::segmentContainer() const { + return m_segmentContainer; +} + +void HeadVideoStreamParams::setSegmentContainer(QString newSegmentContainer) { + m_segmentContainer = newSegmentContainer; +} + +bool HeadVideoStreamParams::segmentContainerNull() const { + // Nullable: true + // Type Nullable: true + + + return m_segmentContainer.isNull(); +} + +void HeadVideoStreamParams::setSegmentContainerNull() { + m_segmentContainer.clear(); +} + + +const qint32 &HeadVideoStreamParams::segmentLength() const { + return m_segmentLength.value(); +} + +void HeadVideoStreamParams::setSegmentLength(qint32 newSegmentLength) { + m_segmentLength = newSegmentLength; +} + +bool HeadVideoStreamParams::segmentLengthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_segmentLength.has_value(); +} + +void HeadVideoStreamParams::setSegmentLengthNull() { + m_segmentLength = std::nullopt; +} + + +const qint64 &HeadVideoStreamParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void HeadVideoStreamParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool HeadVideoStreamParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void HeadVideoStreamParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const bool &HeadVideoStreamParams::staticStreaming() const { + return m_staticStreaming.value(); +} + +void HeadVideoStreamParams::setStaticStreaming(bool newStaticStreaming) { + m_staticStreaming = newStaticStreaming; +} + +bool HeadVideoStreamParams::staticStreamingNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_staticStreaming.has_value(); +} + +void HeadVideoStreamParams::setStaticStreamingNull() { + m_staticStreaming = std::nullopt; +} + + +const QJsonObject &HeadVideoStreamParams::streamOptions() const { + return m_streamOptions; +} + +void HeadVideoStreamParams::setStreamOptions(QJsonObject newStreamOptions) { + m_streamOptions = newStreamOptions; +} + +bool HeadVideoStreamParams::streamOptionsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_streamOptions.isEmpty(); +} + +void HeadVideoStreamParams::setStreamOptionsNull() { + m_streamOptions= QJsonObject(); +} + + +const QString &HeadVideoStreamParams::subtitleCodec() const { + return m_subtitleCodec; +} + +void HeadVideoStreamParams::setSubtitleCodec(QString newSubtitleCodec) { + m_subtitleCodec = newSubtitleCodec; +} + +bool HeadVideoStreamParams::subtitleCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleCodec.isNull(); +} + +void HeadVideoStreamParams::setSubtitleCodecNull() { + m_subtitleCodec.clear(); +} + + +const SubtitleDeliveryMethod &HeadVideoStreamParams::subtitleMethod() const { + return m_subtitleMethod; +} + +void HeadVideoStreamParams::setSubtitleMethod(SubtitleDeliveryMethod newSubtitleMethod) { + m_subtitleMethod = newSubtitleMethod; +} + +bool HeadVideoStreamParams::subtitleMethodNull() const { + // Nullable: true + // Type Nullable: true + + + return m_subtitleMethod== SubtitleDeliveryMethod::EnumNotSet; +} + +void HeadVideoStreamParams::setSubtitleMethodNull() { + m_subtitleMethod= SubtitleDeliveryMethod::EnumNotSet; +} + + +const qint32 &HeadVideoStreamParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void HeadVideoStreamParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool HeadVideoStreamParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void HeadVideoStreamParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const QString &HeadVideoStreamParams::tag() const { + return m_tag; +} + +void HeadVideoStreamParams::setTag(QString newTag) { + m_tag = newTag; +} + +bool HeadVideoStreamParams::tagNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tag.isNull(); +} + +void HeadVideoStreamParams::setTagNull() { + m_tag.clear(); +} + + +const QString &HeadVideoStreamParams::transcodeReasons() const { + return m_transcodeReasons; +} + +void HeadVideoStreamParams::setTranscodeReasons(QString newTranscodeReasons) { + m_transcodeReasons = newTranscodeReasons; +} + +bool HeadVideoStreamParams::transcodeReasonsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_transcodeReasons.isNull(); +} + +void HeadVideoStreamParams::setTranscodeReasonsNull() { + m_transcodeReasons.clear(); +} + + +const qint32 &HeadVideoStreamParams::transcodingMaxAudioChannels() const { + return m_transcodingMaxAudioChannels.value(); +} + +void HeadVideoStreamParams::setTranscodingMaxAudioChannels(qint32 newTranscodingMaxAudioChannels) { + m_transcodingMaxAudioChannels = newTranscodingMaxAudioChannels; +} + +bool HeadVideoStreamParams::transcodingMaxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_transcodingMaxAudioChannels.has_value(); +} + +void HeadVideoStreamParams::setTranscodingMaxAudioChannelsNull() { + m_transcodingMaxAudioChannels = std::nullopt; +} + + +const qint32 &HeadVideoStreamParams::videoBitRate() const { + return m_videoBitRate.value(); +} + +void HeadVideoStreamParams::setVideoBitRate(qint32 newVideoBitRate) { + m_videoBitRate = newVideoBitRate; +} + +bool HeadVideoStreamParams::videoBitRateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoBitRate.has_value(); +} + +void HeadVideoStreamParams::setVideoBitRateNull() { + m_videoBitRate = std::nullopt; +} + + +const QString &HeadVideoStreamParams::videoCodec() const { + return m_videoCodec; +} + +void HeadVideoStreamParams::setVideoCodec(QString newVideoCodec) { + m_videoCodec = newVideoCodec; +} + +bool HeadVideoStreamParams::videoCodecNull() const { + // Nullable: true + // Type Nullable: true + + + return m_videoCodec.isNull(); +} + +void HeadVideoStreamParams::setVideoCodecNull() { + m_videoCodec.clear(); +} + + +const qint32 &HeadVideoStreamParams::videoStreamIndex() const { + return m_videoStreamIndex.value(); +} + +void HeadVideoStreamParams::setVideoStreamIndex(qint32 newVideoStreamIndex) { + m_videoStreamIndex = newVideoStreamIndex; +} + +bool HeadVideoStreamParams::videoStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_videoStreamIndex.has_value(); +} + +void HeadVideoStreamParams::setVideoStreamIndexNull() { + m_videoStreamIndex = std::nullopt; +} + + +const qint32 &HeadVideoStreamParams::width() const { + return m_width.value(); +} + +void HeadVideoStreamParams::setWidth(qint32 newWidth) { + m_width = newWidth; +} + +bool HeadVideoStreamParams::widthNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_width.has_value(); +} + +void HeadVideoStreamParams::setWidthNull() { + m_width = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/initiateparams.cpp b/core/src/loader/initiateparams.cpp new file mode 100644 index 0000000..15d888b --- /dev/null +++ b/core/src/loader/initiateparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/initiateparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// InitiateParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/installpackageparams.cpp b/core/src/loader/installpackageparams.cpp new file mode 100644 index 0000000..9a68c34 --- /dev/null +++ b/core/src/loader/installpackageparams.cpp @@ -0,0 +1,113 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/installpackageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// InstallPackageParams + +const QString &InstallPackageParams::name() const { + return m_name; +} + +void InstallPackageParams::setName(QString newName) { + m_name = newName; +} + + +const QString &InstallPackageParams::assemblyGuid() const { + return m_assemblyGuid; +} + +void InstallPackageParams::setAssemblyGuid(QString newAssemblyGuid) { + m_assemblyGuid = newAssemblyGuid; +} + +bool InstallPackageParams::assemblyGuidNull() const { + // Nullable: true + // Type Nullable: true + + + return m_assemblyGuid.isNull(); +} + +void InstallPackageParams::setAssemblyGuidNull() { + m_assemblyGuid.clear(); +} + + +const QString &InstallPackageParams::repositoryUrl() const { + return m_repositoryUrl; +} + +void InstallPackageParams::setRepositoryUrl(QString newRepositoryUrl) { + m_repositoryUrl = newRepositoryUrl; +} + +bool InstallPackageParams::repositoryUrlNull() const { + // Nullable: true + // Type Nullable: true + + + return m_repositoryUrl.isNull(); +} + +void InstallPackageParams::setRepositoryUrlNull() { + m_repositoryUrl.clear(); +} + + +const QString &InstallPackageParams::version() const { + return m_version; +} + +void InstallPackageParams::setVersion(QString newVersion) { + m_version = newVersion; +} + +bool InstallPackageParams::versionNull() const { + // Nullable: true + // Type Nullable: true + + + return m_version.isNull(); +} + +void InstallPackageParams::setVersionNull() { + m_version.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/markfavoriteitemparams.cpp b/core/src/loader/markfavoriteitemparams.cpp new file mode 100644 index 0000000..094d213 --- /dev/null +++ b/core/src/loader/markfavoriteitemparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/markfavoriteitemparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// MarkFavoriteItemParams + +const QString &MarkFavoriteItemParams::itemId() const { + return m_itemId; +} + +void MarkFavoriteItemParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &MarkFavoriteItemParams::userId() const { + return m_userId; +} + +void MarkFavoriteItemParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/markplayeditemparams.cpp b/core/src/loader/markplayeditemparams.cpp new file mode 100644 index 0000000..51c095d --- /dev/null +++ b/core/src/loader/markplayeditemparams.cpp @@ -0,0 +1,80 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/markplayeditemparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// MarkPlayedItemParams + +const QString &MarkPlayedItemParams::itemId() const { + return m_itemId; +} + +void MarkPlayedItemParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &MarkPlayedItemParams::userId() const { + return m_userId; +} + +void MarkPlayedItemParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + +const QDateTime &MarkPlayedItemParams::datePlayed() const { + return m_datePlayed; +} + +void MarkPlayedItemParams::setDatePlayed(QDateTime newDatePlayed) { + m_datePlayed = newDatePlayed; +} + +bool MarkPlayedItemParams::datePlayedNull() const { + // Nullable: true + // Type Nullable: true + + + return m_datePlayed.isNull(); +} + +void MarkPlayedItemParams::setDatePlayedNull() { + m_datePlayed= QDateTime(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/markunplayeditemparams.cpp b/core/src/loader/markunplayeditemparams.cpp new file mode 100644 index 0000000..4d1c0b0 --- /dev/null +++ b/core/src/loader/markunplayeditemparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/markunplayeditemparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// MarkUnplayedItemParams + +const QString &MarkUnplayedItemParams::itemId() const { + return m_itemId; +} + +void MarkUnplayedItemParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &MarkUnplayedItemParams::userId() const { + return m_userId; +} + +void MarkUnplayedItemParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/mergeversionsparams.cpp b/core/src/loader/mergeversionsparams.cpp new file mode 100644 index 0000000..9ec5d5d --- /dev/null +++ b/core/src/loader/mergeversionsparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/mergeversionsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// MergeVersionsParams + +const QStringList &MergeVersionsParams::ids() const { + return m_ids; +} + +void MergeVersionsParams::setIds(QStringList newIds) { + m_ids = newIds; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/mediaurl.h b/core/src/loader/moveitemparams.cpp similarity index 69% rename from core/include/JellyfinQt/DTO/mediaurl.h rename to core/src/loader/moveitemparams.cpp index f8bc043..c0e9d56 100644 --- a/core/include/JellyfinQt/DTO/mediaurl.h +++ b/core/src/loader/moveitemparams.cpp @@ -27,43 +27,42 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_MEDIAURL_H -#define JELLYFIN_DTO_MEDIAURL_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/moveitemparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { + +using namespace Jellyfin::DTO; + +// MoveItemParams + +const QString &MoveItemParams::itemId() const { + return m_itemId; +} + +void MoveItemParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} -class MediaUrl { -public:MediaUrl();MediaUrl(const MediaUrl &other); - - static MediaUrl fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties +const qint32 &MoveItemParams::newIndex() const { + return m_newIndex; +} - QString url() const; +void MoveItemParams::setNewIndex(qint32 newNewIndex) { + m_newIndex = newNewIndex; +} - void setUrl(QString newUrl); - QString name() const; +const QString &MoveItemParams::playlistId() const { + return m_playlistId; +} - void setName(QString newName); +void MoveItemParams::setPlaylistId(QString newPlaylistId) { + m_playlistId = newPlaylistId; +} -protected: - QString m_url; - QString m_name; -}; + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_MEDIAURL_H diff --git a/core/src/loader/onplaybackprogressparams.cpp b/core/src/loader/onplaybackprogressparams.cpp new file mode 100644 index 0000000..2b88b7f --- /dev/null +++ b/core/src/loader/onplaybackprogressparams.cpp @@ -0,0 +1,290 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/onplaybackprogressparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// OnPlaybackProgressParams + +const QString &OnPlaybackProgressParams::itemId() const { + return m_itemId; +} + +void OnPlaybackProgressParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &OnPlaybackProgressParams::userId() const { + return m_userId; +} + +void OnPlaybackProgressParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + +const qint32 &OnPlaybackProgressParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void OnPlaybackProgressParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool OnPlaybackProgressParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void OnPlaybackProgressParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &OnPlaybackProgressParams::isMuted() const { + return m_isMuted.value(); +} + +void OnPlaybackProgressParams::setIsMuted(bool newIsMuted) { + m_isMuted = newIsMuted; +} + +bool OnPlaybackProgressParams::isMutedNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_isMuted.has_value(); +} + +void OnPlaybackProgressParams::setIsMutedNull() { + m_isMuted = std::nullopt; +} + + +const bool &OnPlaybackProgressParams::isPaused() const { + return m_isPaused.value(); +} + +void OnPlaybackProgressParams::setIsPaused(bool newIsPaused) { + m_isPaused = newIsPaused; +} + +bool OnPlaybackProgressParams::isPausedNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_isPaused.has_value(); +} + +void OnPlaybackProgressParams::setIsPausedNull() { + m_isPaused = std::nullopt; +} + + +const QString &OnPlaybackProgressParams::liveStreamId() const { + return m_liveStreamId; +} + +void OnPlaybackProgressParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool OnPlaybackProgressParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void OnPlaybackProgressParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const QString &OnPlaybackProgressParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void OnPlaybackProgressParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + +bool OnPlaybackProgressParams::mediaSourceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaSourceId.isNull(); +} + +void OnPlaybackProgressParams::setMediaSourceIdNull() { + m_mediaSourceId.clear(); +} + + +const PlayMethod &OnPlaybackProgressParams::playMethod() const { + return m_playMethod; +} + +void OnPlaybackProgressParams::setPlayMethod(PlayMethod newPlayMethod) { + m_playMethod = newPlayMethod; +} + +bool OnPlaybackProgressParams::playMethodNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playMethod== PlayMethod::EnumNotSet; +} + +void OnPlaybackProgressParams::setPlayMethodNull() { + m_playMethod= PlayMethod::EnumNotSet; +} + + +const QString &OnPlaybackProgressParams::playSessionId() const { + return m_playSessionId; +} + +void OnPlaybackProgressParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool OnPlaybackProgressParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void OnPlaybackProgressParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const qint64 &OnPlaybackProgressParams::positionTicks() const { + return m_positionTicks.value(); +} + +void OnPlaybackProgressParams::setPositionTicks(qint64 newPositionTicks) { + m_positionTicks = newPositionTicks; +} + +bool OnPlaybackProgressParams::positionTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_positionTicks.has_value(); +} + +void OnPlaybackProgressParams::setPositionTicksNull() { + m_positionTicks = std::nullopt; +} + + +const RepeatMode &OnPlaybackProgressParams::repeatMode() const { + return m_repeatMode; +} + +void OnPlaybackProgressParams::setRepeatMode(RepeatMode newRepeatMode) { + m_repeatMode = newRepeatMode; +} + +bool OnPlaybackProgressParams::repeatModeNull() const { + // Nullable: true + // Type Nullable: true + + + return m_repeatMode== RepeatMode::EnumNotSet; +} + +void OnPlaybackProgressParams::setRepeatModeNull() { + m_repeatMode= RepeatMode::EnumNotSet; +} + + +const qint32 &OnPlaybackProgressParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void OnPlaybackProgressParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool OnPlaybackProgressParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void OnPlaybackProgressParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const qint32 &OnPlaybackProgressParams::volumeLevel() const { + return m_volumeLevel.value(); +} + +void OnPlaybackProgressParams::setVolumeLevel(qint32 newVolumeLevel) { + m_volumeLevel = newVolumeLevel; +} + +bool OnPlaybackProgressParams::volumeLevelNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_volumeLevel.has_value(); +} + +void OnPlaybackProgressParams::setVolumeLevelNull() { + m_volumeLevel = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/onplaybackstartparams.cpp b/core/src/loader/onplaybackstartparams.cpp new file mode 100644 index 0000000..fdf4237 --- /dev/null +++ b/core/src/loader/onplaybackstartparams.cpp @@ -0,0 +1,206 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/onplaybackstartparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// OnPlaybackStartParams + +const QString &OnPlaybackStartParams::itemId() const { + return m_itemId; +} + +void OnPlaybackStartParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &OnPlaybackStartParams::userId() const { + return m_userId; +} + +void OnPlaybackStartParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + +const qint32 &OnPlaybackStartParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void OnPlaybackStartParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool OnPlaybackStartParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void OnPlaybackStartParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &OnPlaybackStartParams::canSeek() const { + return m_canSeek.value(); +} + +void OnPlaybackStartParams::setCanSeek(bool newCanSeek) { + m_canSeek = newCanSeek; +} + +bool OnPlaybackStartParams::canSeekNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_canSeek.has_value(); +} + +void OnPlaybackStartParams::setCanSeekNull() { + m_canSeek = std::nullopt; +} + + +const QString &OnPlaybackStartParams::liveStreamId() const { + return m_liveStreamId; +} + +void OnPlaybackStartParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool OnPlaybackStartParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void OnPlaybackStartParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const QString &OnPlaybackStartParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void OnPlaybackStartParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + +bool OnPlaybackStartParams::mediaSourceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaSourceId.isNull(); +} + +void OnPlaybackStartParams::setMediaSourceIdNull() { + m_mediaSourceId.clear(); +} + + +const PlayMethod &OnPlaybackStartParams::playMethod() const { + return m_playMethod; +} + +void OnPlaybackStartParams::setPlayMethod(PlayMethod newPlayMethod) { + m_playMethod = newPlayMethod; +} + +bool OnPlaybackStartParams::playMethodNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playMethod== PlayMethod::EnumNotSet; +} + +void OnPlaybackStartParams::setPlayMethodNull() { + m_playMethod= PlayMethod::EnumNotSet; +} + + +const QString &OnPlaybackStartParams::playSessionId() const { + return m_playSessionId; +} + +void OnPlaybackStartParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool OnPlaybackStartParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void OnPlaybackStartParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const qint32 &OnPlaybackStartParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void OnPlaybackStartParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool OnPlaybackStartParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void OnPlaybackStartParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/onplaybackstoppedparams.cpp b/core/src/loader/onplaybackstoppedparams.cpp new file mode 100644 index 0000000..24ccb89 --- /dev/null +++ b/core/src/loader/onplaybackstoppedparams.cpp @@ -0,0 +1,164 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/onplaybackstoppedparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// OnPlaybackStoppedParams + +const QString &OnPlaybackStoppedParams::itemId() const { + return m_itemId; +} + +void OnPlaybackStoppedParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &OnPlaybackStoppedParams::userId() const { + return m_userId; +} + +void OnPlaybackStoppedParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + +const QString &OnPlaybackStoppedParams::liveStreamId() const { + return m_liveStreamId; +} + +void OnPlaybackStoppedParams::setLiveStreamId(QString newLiveStreamId) { + m_liveStreamId = newLiveStreamId; +} + +bool OnPlaybackStoppedParams::liveStreamIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_liveStreamId.isNull(); +} + +void OnPlaybackStoppedParams::setLiveStreamIdNull() { + m_liveStreamId.clear(); +} + + +const QString &OnPlaybackStoppedParams::mediaSourceId() const { + return m_mediaSourceId; +} + +void OnPlaybackStoppedParams::setMediaSourceId(QString newMediaSourceId) { + m_mediaSourceId = newMediaSourceId; +} + +bool OnPlaybackStoppedParams::mediaSourceIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_mediaSourceId.isNull(); +} + +void OnPlaybackStoppedParams::setMediaSourceIdNull() { + m_mediaSourceId.clear(); +} + + +const QString &OnPlaybackStoppedParams::nextMediaType() const { + return m_nextMediaType; +} + +void OnPlaybackStoppedParams::setNextMediaType(QString newNextMediaType) { + m_nextMediaType = newNextMediaType; +} + +bool OnPlaybackStoppedParams::nextMediaTypeNull() const { + // Nullable: true + // Type Nullable: true + + + return m_nextMediaType.isNull(); +} + +void OnPlaybackStoppedParams::setNextMediaTypeNull() { + m_nextMediaType.clear(); +} + + +const QString &OnPlaybackStoppedParams::playSessionId() const { + return m_playSessionId; +} + +void OnPlaybackStoppedParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool OnPlaybackStoppedParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void OnPlaybackStoppedParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const qint64 &OnPlaybackStoppedParams::positionTicks() const { + return m_positionTicks.value(); +} + +void OnPlaybackStoppedParams::setPositionTicks(qint64 newPositionTicks) { + m_positionTicks = newPositionTicks; +} + +bool OnPlaybackStoppedParams::positionTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_positionTicks.has_value(); +} + +void OnPlaybackStoppedParams::setPositionTicksNull() { + m_positionTicks = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/openlivestreamparams.cpp b/core/src/loader/openlivestreamparams.cpp new file mode 100644 index 0000000..4dddc92 --- /dev/null +++ b/core/src/loader/openlivestreamparams.cpp @@ -0,0 +1,272 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/openlivestreamparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// OpenLiveStreamParams + +const qint32 &OpenLiveStreamParams::audioStreamIndex() const { + return m_audioStreamIndex.value(); +} + +void OpenLiveStreamParams::setAudioStreamIndex(qint32 newAudioStreamIndex) { + m_audioStreamIndex = newAudioStreamIndex; +} + +bool OpenLiveStreamParams::audioStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_audioStreamIndex.has_value(); +} + +void OpenLiveStreamParams::setAudioStreamIndexNull() { + m_audioStreamIndex = std::nullopt; +} + + +const bool &OpenLiveStreamParams::enableDirectPlay() const { + return m_enableDirectPlay.value(); +} + +void OpenLiveStreamParams::setEnableDirectPlay(bool newEnableDirectPlay) { + m_enableDirectPlay = newEnableDirectPlay; +} + +bool OpenLiveStreamParams::enableDirectPlayNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableDirectPlay.has_value(); +} + +void OpenLiveStreamParams::setEnableDirectPlayNull() { + m_enableDirectPlay = std::nullopt; +} + + +const bool &OpenLiveStreamParams::enableDirectStream() const { + return m_enableDirectStream.value(); +} + +void OpenLiveStreamParams::setEnableDirectStream(bool newEnableDirectStream) { + m_enableDirectStream = newEnableDirectStream; +} + +bool OpenLiveStreamParams::enableDirectStreamNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_enableDirectStream.has_value(); +} + +void OpenLiveStreamParams::setEnableDirectStreamNull() { + m_enableDirectStream = std::nullopt; +} + + +const QString &OpenLiveStreamParams::itemId() const { + return m_itemId; +} + +void OpenLiveStreamParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + +bool OpenLiveStreamParams::itemIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_itemId.isNull(); +} + +void OpenLiveStreamParams::setItemIdNull() { + m_itemId.clear(); +} + + +const qint32 &OpenLiveStreamParams::maxAudioChannels() const { + return m_maxAudioChannels.value(); +} + +void OpenLiveStreamParams::setMaxAudioChannels(qint32 newMaxAudioChannels) { + m_maxAudioChannels = newMaxAudioChannels; +} + +bool OpenLiveStreamParams::maxAudioChannelsNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxAudioChannels.has_value(); +} + +void OpenLiveStreamParams::setMaxAudioChannelsNull() { + m_maxAudioChannels = std::nullopt; +} + + +const qint32 &OpenLiveStreamParams::maxStreamingBitrate() const { + return m_maxStreamingBitrate.value(); +} + +void OpenLiveStreamParams::setMaxStreamingBitrate(qint32 newMaxStreamingBitrate) { + m_maxStreamingBitrate = newMaxStreamingBitrate; +} + +bool OpenLiveStreamParams::maxStreamingBitrateNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_maxStreamingBitrate.has_value(); +} + +void OpenLiveStreamParams::setMaxStreamingBitrateNull() { + m_maxStreamingBitrate = std::nullopt; +} + + +const QString &OpenLiveStreamParams::openToken() const { + return m_openToken; +} + +void OpenLiveStreamParams::setOpenToken(QString newOpenToken) { + m_openToken = newOpenToken; +} + +bool OpenLiveStreamParams::openTokenNull() const { + // Nullable: true + // Type Nullable: true + + + return m_openToken.isNull(); +} + +void OpenLiveStreamParams::setOpenTokenNull() { + m_openToken.clear(); +} + + +const QString &OpenLiveStreamParams::playSessionId() const { + return m_playSessionId; +} + +void OpenLiveStreamParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool OpenLiveStreamParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void OpenLiveStreamParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + +const qint64 &OpenLiveStreamParams::startTimeTicks() const { + return m_startTimeTicks.value(); +} + +void OpenLiveStreamParams::setStartTimeTicks(qint64 newStartTimeTicks) { + m_startTimeTicks = newStartTimeTicks; +} + +bool OpenLiveStreamParams::startTimeTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_startTimeTicks.has_value(); +} + +void OpenLiveStreamParams::setStartTimeTicksNull() { + m_startTimeTicks = std::nullopt; +} + + +const qint32 &OpenLiveStreamParams::subtitleStreamIndex() const { + return m_subtitleStreamIndex.value(); +} + +void OpenLiveStreamParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) { + m_subtitleStreamIndex = newSubtitleStreamIndex; +} + +bool OpenLiveStreamParams::subtitleStreamIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_subtitleStreamIndex.has_value(); +} + +void OpenLiveStreamParams::setSubtitleStreamIndexNull() { + m_subtitleStreamIndex = std::nullopt; +} + + +const QString &OpenLiveStreamParams::userId() const { + return m_userId; +} + +void OpenLiveStreamParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + +bool OpenLiveStreamParams::userIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_userId.isNull(); +} + +void OpenLiveStreamParams::setUserIdNull() { + m_userId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/pingplaybacksessionparams.cpp b/core/src/loader/pingplaybacksessionparams.cpp new file mode 100644 index 0000000..2f9d047 --- /dev/null +++ b/core/src/loader/pingplaybacksessionparams.cpp @@ -0,0 +1,62 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/pingplaybacksessionparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// PingPlaybackSessionParams + +const QString &PingPlaybackSessionParams::playSessionId() const { + return m_playSessionId; +} + +void PingPlaybackSessionParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool PingPlaybackSessionParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playSessionId.isNull(); +} + +void PingPlaybackSessionParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/subtitleprofile.h b/core/src/loader/playparams.cpp similarity index 56% rename from core/include/JellyfinQt/DTO/subtitleprofile.h rename to core/src/loader/playparams.cpp index 7c33209..1cd2b37 100644 --- a/core/include/JellyfinQt/DTO/subtitleprofile.h +++ b/core/src/loader/playparams.cpp @@ -27,59 +27,63 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_SUBTITLEPROFILE_H -#define JELLYFIN_DTO_SUBTITLEPROFILE_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/subtitledeliverymethod.h" -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/playparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { + +using namespace Jellyfin::DTO; + +// PlayParams + +const QString &PlayParams::sessionId() const { + return m_sessionId; +} + +void PlayParams::setSessionId(QString newSessionId) { + m_sessionId = newSessionId; +} -class SubtitleProfile { -public:SubtitleProfile();SubtitleProfile(const SubtitleProfile &other); +const QStringList &PlayParams::itemIds() const { + return m_itemIds; +} + +void PlayParams::setItemIds(QStringList newItemIds) { + m_itemIds = newItemIds; +} + + +const PlayCommand &PlayParams::playCommand() const { + return m_playCommand; +} + +void PlayParams::setPlayCommand(PlayCommand newPlayCommand) { + m_playCommand = newPlayCommand; +} + + +const qint64 &PlayParams::startPositionTicks() const { + return m_startPositionTicks.value(); +} + +void PlayParams::setStartPositionTicks(qint64 newStartPositionTicks) { + m_startPositionTicks = newStartPositionTicks; +} + +bool PlayParams::startPositionTicksNull() const { + // Nullable: true + // Type Nullable: false - static SubtitleProfile fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - QString format() const; + return !m_startPositionTicks.has_value(); +} - void setFormat(QString newFormat); +void PlayParams::setStartPositionTicksNull() { + m_startPositionTicks = std::nullopt; +} - SubtitleDeliveryMethod method() const; - void setMethod(SubtitleDeliveryMethod newMethod); - - QString didlMode() const; - - void setDidlMode(QString newDidlMode); - - QString language() const; - - void setLanguage(QString newLanguage); - - QString container() const; - - void setContainer(QString newContainer); - -protected: - QString m_format; - SubtitleDeliveryMethod m_method; - QString m_didlMode; - QString m_language; - QString m_container; -}; +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_SUBTITLEPROFILE_H diff --git a/core/src/loader/postaddedmoviesparams.cpp b/core/src/loader/postaddedmoviesparams.cpp new file mode 100644 index 0000000..31441c7 --- /dev/null +++ b/core/src/loader/postaddedmoviesparams.cpp @@ -0,0 +1,83 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/postaddedmoviesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// PostAddedMoviesParams + +const QString &PostAddedMoviesParams::imdbId() const { + return m_imdbId; +} + +void PostAddedMoviesParams::setImdbId(QString newImdbId) { + m_imdbId = newImdbId; +} + +bool PostAddedMoviesParams::imdbIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_imdbId.isNull(); +} + +void PostAddedMoviesParams::setImdbIdNull() { + m_imdbId.clear(); +} + + +const QString &PostAddedMoviesParams::tmdbId() const { + return m_tmdbId; +} + +void PostAddedMoviesParams::setTmdbId(QString newTmdbId) { + m_tmdbId = newTmdbId; +} + +bool PostAddedMoviesParams::tmdbIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tmdbId.isNull(); +} + +void PostAddedMoviesParams::setTmdbIdNull() { + m_tmdbId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/postaddedseriesparams.cpp b/core/src/loader/postaddedseriesparams.cpp new file mode 100644 index 0000000..2b1a9b2 --- /dev/null +++ b/core/src/loader/postaddedseriesparams.cpp @@ -0,0 +1,62 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/postaddedseriesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// PostAddedSeriesParams + +const QString &PostAddedSeriesParams::tvdbId() const { + return m_tvdbId; +} + +void PostAddedSeriesParams::setTvdbId(QString newTvdbId) { + m_tvdbId = newTvdbId; +} + +bool PostAddedSeriesParams::tvdbIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tvdbId.isNull(); +} + +void PostAddedSeriesParams::setTvdbIdNull() { + m_tvdbId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/postcapabilitiesparams.cpp b/core/src/loader/postcapabilitiesparams.cpp new file mode 100644 index 0000000..b9c3718 --- /dev/null +++ b/core/src/loader/postcapabilitiesparams.cpp @@ -0,0 +1,167 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/postcapabilitiesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// PostCapabilitiesParams + +const QString &PostCapabilitiesParams::jellyfinId() const { + return m_jellyfinId; +} + +void PostCapabilitiesParams::setJellyfinId(QString newJellyfinId) { + m_jellyfinId = newJellyfinId; +} + +bool PostCapabilitiesParams::jellyfinIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_jellyfinId.isNull(); +} + +void PostCapabilitiesParams::setJellyfinIdNull() { + m_jellyfinId.clear(); +} + + +const QStringList &PostCapabilitiesParams::playableMediaTypes() const { + return m_playableMediaTypes; +} + +void PostCapabilitiesParams::setPlayableMediaTypes(QStringList newPlayableMediaTypes) { + m_playableMediaTypes = newPlayableMediaTypes; +} + +bool PostCapabilitiesParams::playableMediaTypesNull() const { + // Nullable: true + // Type Nullable: true + + + return m_playableMediaTypes.size() == 0; +} + +void PostCapabilitiesParams::setPlayableMediaTypesNull() { + m_playableMediaTypes.clear(); +} + + +const QList &PostCapabilitiesParams::supportedCommands() const { + return m_supportedCommands; +} + +void PostCapabilitiesParams::setSupportedCommands(QList newSupportedCommands) { + m_supportedCommands = newSupportedCommands; +} + +bool PostCapabilitiesParams::supportedCommandsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_supportedCommands.size() == 0; +} + +void PostCapabilitiesParams::setSupportedCommandsNull() { + m_supportedCommands.clear(); +} + + +const bool &PostCapabilitiesParams::supportsMediaControl() const { + return m_supportsMediaControl.value(); +} + +void PostCapabilitiesParams::setSupportsMediaControl(bool newSupportsMediaControl) { + m_supportsMediaControl = newSupportsMediaControl; +} + +bool PostCapabilitiesParams::supportsMediaControlNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_supportsMediaControl.has_value(); +} + +void PostCapabilitiesParams::setSupportsMediaControlNull() { + m_supportsMediaControl = std::nullopt; +} + + +const bool &PostCapabilitiesParams::supportsPersistentIdentifier() const { + return m_supportsPersistentIdentifier.value(); +} + +void PostCapabilitiesParams::setSupportsPersistentIdentifier(bool newSupportsPersistentIdentifier) { + m_supportsPersistentIdentifier = newSupportsPersistentIdentifier; +} + +bool PostCapabilitiesParams::supportsPersistentIdentifierNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_supportsPersistentIdentifier.has_value(); +} + +void PostCapabilitiesParams::setSupportsPersistentIdentifierNull() { + m_supportsPersistentIdentifier = std::nullopt; +} + + +const bool &PostCapabilitiesParams::supportsSync() const { + return m_supportsSync.value(); +} + +void PostCapabilitiesParams::setSupportsSync(bool newSupportsSync) { + m_supportsSync = newSupportsSync; +} + +bool PostCapabilitiesParams::supportsSyncNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_supportsSync.has_value(); +} + +void PostCapabilitiesParams::setSupportsSyncNull() { + m_supportsSync = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/postfullcapabilitiesparams.cpp b/core/src/loader/postfullcapabilitiesparams.cpp new file mode 100644 index 0000000..b0475ce --- /dev/null +++ b/core/src/loader/postfullcapabilitiesparams.cpp @@ -0,0 +1,62 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/postfullcapabilitiesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// PostFullCapabilitiesParams + +const QString &PostFullCapabilitiesParams::jellyfinId() const { + return m_jellyfinId; +} + +void PostFullCapabilitiesParams::setJellyfinId(QString newJellyfinId) { + m_jellyfinId = newJellyfinId; +} + +bool PostFullCapabilitiesParams::jellyfinIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_jellyfinId.isNull(); +} + +void PostFullCapabilitiesParams::setJellyfinIdNull() { + m_jellyfinId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/postparams.cpp b/core/src/loader/postparams.cpp new file mode 100644 index 0000000..6a02121 --- /dev/null +++ b/core/src/loader/postparams.cpp @@ -0,0 +1,134 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/postparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// PostParams + +const QString &PostParams::itemId() const { + return m_itemId; +} + +void PostParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const MetadataRefreshMode &PostParams::imageRefreshMode() const { + return m_imageRefreshMode; +} + +void PostParams::setImageRefreshMode(MetadataRefreshMode newImageRefreshMode) { + m_imageRefreshMode = newImageRefreshMode; +} + +bool PostParams::imageRefreshModeNull() const { + // Nullable: true + // Type Nullable: true + + + return m_imageRefreshMode== MetadataRefreshMode::EnumNotSet; +} + +void PostParams::setImageRefreshModeNull() { + m_imageRefreshMode= MetadataRefreshMode::EnumNotSet; +} + + +const MetadataRefreshMode &PostParams::metadataRefreshMode() const { + return m_metadataRefreshMode; +} + +void PostParams::setMetadataRefreshMode(MetadataRefreshMode newMetadataRefreshMode) { + m_metadataRefreshMode = newMetadataRefreshMode; +} + +bool PostParams::metadataRefreshModeNull() const { + // Nullable: true + // Type Nullable: true + + + return m_metadataRefreshMode== MetadataRefreshMode::EnumNotSet; +} + +void PostParams::setMetadataRefreshModeNull() { + m_metadataRefreshMode= MetadataRefreshMode::EnumNotSet; +} + + +const bool &PostParams::replaceAllImages() const { + return m_replaceAllImages.value(); +} + +void PostParams::setReplaceAllImages(bool newReplaceAllImages) { + m_replaceAllImages = newReplaceAllImages; +} + +bool PostParams::replaceAllImagesNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_replaceAllImages.has_value(); +} + +void PostParams::setReplaceAllImagesNull() { + m_replaceAllImages = std::nullopt; +} + + +const bool &PostParams::replaceAllMetadata() const { + return m_replaceAllMetadata.value(); +} + +void PostParams::setReplaceAllMetadata(bool newReplaceAllMetadata) { + m_replaceAllMetadata = newReplaceAllMetadata; +} + +bool PostParams::replaceAllMetadataNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_replaceAllMetadata.has_value(); +} + +void PostParams::setReplaceAllMetadataNull() { + m_replaceAllMetadata = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/postpingsystemparams.cpp b/core/src/loader/postpingsystemparams.cpp new file mode 100644 index 0000000..1109616 --- /dev/null +++ b/core/src/loader/postpingsystemparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/postpingsystemparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// PostPingSystemParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/postupdatedmediaparams.cpp b/core/src/loader/postupdatedmediaparams.cpp new file mode 100644 index 0000000..39b9aa6 --- /dev/null +++ b/core/src/loader/postupdatedmediaparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/postupdatedmediaparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// PostUpdatedMediaParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/postupdatedmoviesparams.cpp b/core/src/loader/postupdatedmoviesparams.cpp new file mode 100644 index 0000000..bbca288 --- /dev/null +++ b/core/src/loader/postupdatedmoviesparams.cpp @@ -0,0 +1,83 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/postupdatedmoviesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// PostUpdatedMoviesParams + +const QString &PostUpdatedMoviesParams::imdbId() const { + return m_imdbId; +} + +void PostUpdatedMoviesParams::setImdbId(QString newImdbId) { + m_imdbId = newImdbId; +} + +bool PostUpdatedMoviesParams::imdbIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_imdbId.isNull(); +} + +void PostUpdatedMoviesParams::setImdbIdNull() { + m_imdbId.clear(); +} + + +const QString &PostUpdatedMoviesParams::tmdbId() const { + return m_tmdbId; +} + +void PostUpdatedMoviesParams::setTmdbId(QString newTmdbId) { + m_tmdbId = newTmdbId; +} + +bool PostUpdatedMoviesParams::tmdbIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tmdbId.isNull(); +} + +void PostUpdatedMoviesParams::setTmdbIdNull() { + m_tmdbId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/postupdatedseriesparams.cpp b/core/src/loader/postupdatedseriesparams.cpp new file mode 100644 index 0000000..4d8bd49 --- /dev/null +++ b/core/src/loader/postupdatedseriesparams.cpp @@ -0,0 +1,62 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/postupdatedseriesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// PostUpdatedSeriesParams + +const QString &PostUpdatedSeriesParams::tvdbId() const { + return m_tvdbId; +} + +void PostUpdatedSeriesParams::setTvdbId(QString newTvdbId) { + m_tvdbId = newTvdbId; +} + +bool PostUpdatedSeriesParams::tvdbIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_tvdbId.isNull(); +} + +void PostUpdatedSeriesParams::setTvdbIdNull() { + m_tvdbId.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/mediapathinfo.h b/core/src/loader/postuserimagebyindexparams.cpp similarity index 66% rename from core/include/JellyfinQt/DTO/mediapathinfo.h rename to core/src/loader/postuserimagebyindexparams.cpp index eb95e9b..227726e 100644 --- a/core/include/JellyfinQt/DTO/mediapathinfo.h +++ b/core/src/loader/postuserimagebyindexparams.cpp @@ -27,43 +27,42 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_MEDIAPATHINFO_H -#define JELLYFIN_DTO_MEDIAPATHINFO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/postuserimagebyindexparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { + +using namespace Jellyfin::DTO; + +// PostUserImageByIndexParams + +const ImageType &PostUserImageByIndexParams::imageType() const { + return m_imageType; +} + +void PostUserImageByIndexParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} -class MediaPathInfo { -public:MediaPathInfo();MediaPathInfo(const MediaPathInfo &other); - - static MediaPathInfo fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties +const qint32 &PostUserImageByIndexParams::index() const { + return m_index; +} - QString path() const; +void PostUserImageByIndexParams::setIndex(qint32 newIndex) { + m_index = newIndex; +} - void setPath(QString newPath); - QString networkPath() const; +const QString &PostUserImageByIndexParams::userId() const { + return m_userId; +} - void setNetworkPath(QString newNetworkPath); +void PostUserImageByIndexParams::setUserId(QString newUserId) { + m_userId = newUserId; +} -protected: - QString m_path; - QString m_networkPath; -}; + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_MEDIAPATHINFO_H diff --git a/core/src/loader/postuserimageparams.cpp b/core/src/loader/postuserimageparams.cpp new file mode 100644 index 0000000..e14e87e --- /dev/null +++ b/core/src/loader/postuserimageparams.cpp @@ -0,0 +1,80 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/postuserimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// PostUserImageParams + +const ImageType &PostUserImageParams::imageType() const { + return m_imageType; +} + +void PostUserImageParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &PostUserImageParams::userId() const { + return m_userId; +} + +void PostUserImageParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + +const qint32 &PostUserImageParams::index() const { + return m_index.value(); +} + +void PostUserImageParams::setIndex(qint32 newIndex) { + m_index = newIndex; +} + +bool PostUserImageParams::indexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_index.has_value(); +} + +void PostUserImageParams::setIndexNull() { + m_index = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/processconnectionmanagercontrolrequestparams.cpp b/core/src/loader/processconnectionmanagercontrolrequestparams.cpp new file mode 100644 index 0000000..6f271f0 --- /dev/null +++ b/core/src/loader/processconnectionmanagercontrolrequestparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/processconnectionmanagercontrolrequestparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// ProcessConnectionManagerControlRequestParams + +const QString &ProcessConnectionManagerControlRequestParams::serverId() const { + return m_serverId; +} + +void ProcessConnectionManagerControlRequestParams::setServerId(QString newServerId) { + m_serverId = newServerId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/processcontentdirectorycontrolrequestparams.cpp b/core/src/loader/processcontentdirectorycontrolrequestparams.cpp new file mode 100644 index 0000000..28ecaaf --- /dev/null +++ b/core/src/loader/processcontentdirectorycontrolrequestparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/processcontentdirectorycontrolrequestparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// ProcessContentDirectoryControlRequestParams + +const QString &ProcessContentDirectoryControlRequestParams::serverId() const { + return m_serverId; +} + +void ProcessContentDirectoryControlRequestParams::setServerId(QString newServerId) { + m_serverId = newServerId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/processmediareceiverregistrarcontrolrequestparams.cpp b/core/src/loader/processmediareceiverregistrarcontrolrequestparams.cpp new file mode 100644 index 0000000..cf3a81c --- /dev/null +++ b/core/src/loader/processmediareceiverregistrarcontrolrequestparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/processmediareceiverregistrarcontrolrequestparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// ProcessMediaReceiverRegistrarControlRequestParams + +const QString &ProcessMediaReceiverRegistrarControlRequestParams::serverId() const { + return m_serverId; +} + +void ProcessMediaReceiverRegistrarControlRequestParams::setServerId(QString newServerId) { + m_serverId = newServerId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/refreshlibraryparams.cpp b/core/src/loader/refreshlibraryparams.cpp new file mode 100644 index 0000000..754bd87 --- /dev/null +++ b/core/src/loader/refreshlibraryparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/refreshlibraryparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// RefreshLibraryParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/removefromcollectionparams.cpp b/core/src/loader/removefromcollectionparams.cpp new file mode 100644 index 0000000..a0933ce --- /dev/null +++ b/core/src/loader/removefromcollectionparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/removefromcollectionparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// RemoveFromCollectionParams + +const QString &RemoveFromCollectionParams::collectionId() const { + return m_collectionId; +} + +void RemoveFromCollectionParams::setCollectionId(QString newCollectionId) { + m_collectionId = newCollectionId; +} + + +const QStringList &RemoveFromCollectionParams::ids() const { + return m_ids; +} + +void RemoveFromCollectionParams::setIds(QStringList newIds) { + m_ids = newIds; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/removefromplaylistparams.cpp b/core/src/loader/removefromplaylistparams.cpp new file mode 100644 index 0000000..ec5fba9 --- /dev/null +++ b/core/src/loader/removefromplaylistparams.cpp @@ -0,0 +1,71 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/removefromplaylistparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// RemoveFromPlaylistParams + +const QString &RemoveFromPlaylistParams::playlistId() const { + return m_playlistId; +} + +void RemoveFromPlaylistParams::setPlaylistId(QString newPlaylistId) { + m_playlistId = newPlaylistId; +} + + +const QStringList &RemoveFromPlaylistParams::entryIds() const { + return m_entryIds; +} + +void RemoveFromPlaylistParams::setEntryIds(QStringList newEntryIds) { + m_entryIds = newEntryIds; +} + +bool RemoveFromPlaylistParams::entryIdsNull() const { + // Nullable: true + // Type Nullable: true + + + return m_entryIds.size() == 0; +} + +void RemoveFromPlaylistParams::setEntryIdsNull() { + m_entryIds.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/authenticationresult.h b/core/src/loader/removemediapathparams.cpp similarity index 53% rename from core/include/JellyfinQt/DTO/authenticationresult.h rename to core/src/loader/removemediapathparams.cpp index c54513c..8bab05c 100644 --- a/core/include/JellyfinQt/DTO/authenticationresult.h +++ b/core/src/loader/removemediapathparams.cpp @@ -27,56 +27,78 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_AUTHENTICATIONRESULT_H -#define JELLYFIN_DTO_AUTHENTICATIONRESULT_H - -#include -#include -#include -#include -#include - -#include "JellyfinQt/DTO/sessioninfo.h" -#include "JellyfinQt/DTO/userdto.h" -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/removemediapathparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { +using namespace Jellyfin::DTO; -class AuthenticationResult { -public:AuthenticationResult();AuthenticationResult(const AuthenticationResult &other); +// RemoveMediaPathParams + +const QString &RemoveMediaPathParams::name() const { + return m_name; +} + +void RemoveMediaPathParams::setName(QString newName) { + m_name = newName; +} + +bool RemoveMediaPathParams::nameNull() const { + // Nullable: true + // Type Nullable: true - static AuthenticationResult fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); + + return m_name.isNull(); +} + +void RemoveMediaPathParams::setNameNull() { + m_name.clear(); +} + + +const QString &RemoveMediaPathParams::path() const { + return m_path; +} + +void RemoveMediaPathParams::setPath(QString newPath) { + m_path = newPath; +} + +bool RemoveMediaPathParams::pathNull() const { + // Nullable: true + // Type Nullable: true - // Properties - QSharedPointer user() const; + return m_path.isNull(); +} - void setUser(QSharedPointer newUser); +void RemoveMediaPathParams::setPathNull() { + m_path.clear(); +} - QSharedPointer sessionInfo() const; - void setSessionInfo(QSharedPointer newSessionInfo); +const bool &RemoveMediaPathParams::refreshLibrary() const { + return m_refreshLibrary.value(); +} - QString accessToken() const; +void RemoveMediaPathParams::setRefreshLibrary(bool newRefreshLibrary) { + m_refreshLibrary = newRefreshLibrary; +} - void setAccessToken(QString newAccessToken); +bool RemoveMediaPathParams::refreshLibraryNull() const { + // Nullable: false + // Type Nullable: false + - QString serverId() const; + return !m_refreshLibrary.has_value(); +} - void setServerId(QString newServerId); +void RemoveMediaPathParams::setRefreshLibraryNull() { + m_refreshLibrary = std::nullopt; +} -protected: - QSharedPointer m_user = nullptr; - QSharedPointer m_sessionInfo = nullptr; - QString m_accessToken; - QString m_serverId; -}; + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_AUTHENTICATIONRESULT_H diff --git a/core/src/loader/removeuserfromsessionparams.cpp b/core/src/loader/removeuserfromsessionparams.cpp new file mode 100644 index 0000000..8e5ee35 --- /dev/null +++ b/core/src/loader/removeuserfromsessionparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/removeuserfromsessionparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// RemoveUserFromSessionParams + +const QString &RemoveUserFromSessionParams::sessionId() const { + return m_sessionId; +} + +void RemoveUserFromSessionParams::setSessionId(QString newSessionId) { + m_sessionId = newSessionId; +} + + +const QString &RemoveUserFromSessionParams::userId() const { + return m_userId; +} + +void RemoveUserFromSessionParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/version.h b/core/src/loader/removevirtualfolderparams.cpp similarity index 59% rename from core/include/JellyfinQt/DTO/version.h rename to core/src/loader/removevirtualfolderparams.cpp index 5edca6f..668b499 100644 --- a/core/include/JellyfinQt/DTO/version.h +++ b/core/src/loader/removevirtualfolderparams.cpp @@ -27,62 +27,57 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_VERSION_H -#define JELLYFIN_DTO_VERSION_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/removevirtualfolderparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { +using namespace Jellyfin::DTO; -class Version { -public:Version();Version(const Version &other); +// RemoveVirtualFolderParams + +const QString &RemoveVirtualFolderParams::name() const { + return m_name; +} + +void RemoveVirtualFolderParams::setName(QString newName) { + m_name = newName; +} + +bool RemoveVirtualFolderParams::nameNull() const { + // Nullable: true + // Type Nullable: true - static Version fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); + + return m_name.isNull(); +} + +void RemoveVirtualFolderParams::setNameNull() { + m_name.clear(); +} + + +const bool &RemoveVirtualFolderParams::refreshLibrary() const { + return m_refreshLibrary.value(); +} + +void RemoveVirtualFolderParams::setRefreshLibrary(bool newRefreshLibrary) { + m_refreshLibrary = newRefreshLibrary; +} + +bool RemoveVirtualFolderParams::refreshLibraryNull() const { + // Nullable: false + // Type Nullable: false - // Properties - qint32 major() const; + return !m_refreshLibrary.has_value(); +} - void setMajor(qint32 newMajor); +void RemoveVirtualFolderParams::setRefreshLibraryNull() { + m_refreshLibrary = std::nullopt; +} - qint32 minor() const; - void setMinor(qint32 newMinor); - - qint32 build() const; - - void setBuild(qint32 newBuild); - - qint32 revision() const; - - void setRevision(qint32 newRevision); - - qint32 majorRevision() const; - - void setMajorRevision(qint32 newMajorRevision); - - qint32 minorRevision() const; - - void setMinorRevision(qint32 newMinorRevision); - -protected: - qint32 m_major; - qint32 m_minor; - qint32 m_build; - qint32 m_revision; - qint32 m_majorRevision; - qint32 m_minorRevision; -}; +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_VERSION_H diff --git a/core/include/JellyfinQt/DTO/mediaupdateinfodto.h b/core/src/loader/renamevirtualfolderparams.cpp similarity index 51% rename from core/include/JellyfinQt/DTO/mediaupdateinfodto.h rename to core/src/loader/renamevirtualfolderparams.cpp index b9d5095..cafb4e3 100644 --- a/core/include/JellyfinQt/DTO/mediaupdateinfodto.h +++ b/core/src/loader/renamevirtualfolderparams.cpp @@ -27,53 +27,78 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_MEDIAUPDATEINFODTO_H -#define JELLYFIN_DTO_MEDIAUPDATEINFODTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/renamevirtualfolderparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { +using namespace Jellyfin::DTO; -class MediaUpdateInfoDto { -public:MediaUpdateInfoDto();MediaUpdateInfoDto(const MediaUpdateInfoDto &other); +// RenameVirtualFolderParams + +const QString &RenameVirtualFolderParams::name() const { + return m_name; +} + +void RenameVirtualFolderParams::setName(QString newName) { + m_name = newName; +} + +bool RenameVirtualFolderParams::nameNull() const { + // Nullable: true + // Type Nullable: true - static MediaUpdateInfoDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); + + return m_name.isNull(); +} + +void RenameVirtualFolderParams::setNameNull() { + m_name.clear(); +} + + +const QString &RenameVirtualFolderParams::newName() const { + return m_newName; +} + +void RenameVirtualFolderParams::setNewName(QString newNewName) { + m_newName = newNewName; +} + +bool RenameVirtualFolderParams::newNameNull() const { + // Nullable: true + // Type Nullable: true - // Properties - /** - * @brief Gets or sets media path. - */ - QString path() const; - /** - * @brief Gets or sets media path. - */ - void setPath(QString newPath); - /** - * @brief Gets or sets media update type. -Created, Modified, Deleted. - */ - QString updateType() const; - /** - * @brief Gets or sets media update type. -Created, Modified, Deleted. - */ - void setUpdateType(QString newUpdateType); -protected: - QString m_path; - QString m_updateType; -}; + return m_newName.isNull(); +} +void RenameVirtualFolderParams::setNewNameNull() { + m_newName.clear(); +} + + +const bool &RenameVirtualFolderParams::refreshLibrary() const { + return m_refreshLibrary.value(); +} + +void RenameVirtualFolderParams::setRefreshLibrary(bool newRefreshLibrary) { + m_refreshLibrary = newRefreshLibrary; +} + +bool RenameVirtualFolderParams::refreshLibraryNull() const { + // Nullable: false + // Type Nullable: false + + + return !m_refreshLibrary.has_value(); +} + +void RenameVirtualFolderParams::setRefreshLibraryNull() { + m_refreshLibrary = std::nullopt; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_MEDIAUPDATEINFODTO_H diff --git a/core/src/loader/reportplaybackprogressparams.cpp b/core/src/loader/reportplaybackprogressparams.cpp new file mode 100644 index 0000000..d8ce61a --- /dev/null +++ b/core/src/loader/reportplaybackprogressparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/reportplaybackprogressparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// ReportPlaybackProgressParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/reportplaybackstartparams.cpp b/core/src/loader/reportplaybackstartparams.cpp new file mode 100644 index 0000000..5623f34 --- /dev/null +++ b/core/src/loader/reportplaybackstartparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/reportplaybackstartparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// ReportPlaybackStartParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/reportplaybackstoppedparams.cpp b/core/src/loader/reportplaybackstoppedparams.cpp new file mode 100644 index 0000000..bb94bfb --- /dev/null +++ b/core/src/loader/reportplaybackstoppedparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/reportplaybackstoppedparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// ReportPlaybackStoppedParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/reportsessionendedparams.cpp b/core/src/loader/reportsessionendedparams.cpp new file mode 100644 index 0000000..67b5117 --- /dev/null +++ b/core/src/loader/reportsessionendedparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/reportsessionendedparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// ReportSessionEndedParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/playlistcreationresult.h b/core/src/loader/reportviewingparams.cpp similarity index 67% rename from core/include/JellyfinQt/DTO/playlistcreationresult.h rename to core/src/loader/reportviewingparams.cpp index 6c8b5f6..711d722 100644 --- a/core/include/JellyfinQt/DTO/playlistcreationresult.h +++ b/core/src/loader/reportviewingparams.cpp @@ -27,38 +27,45 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_PLAYLISTCREATIONRESULT_H -#define JELLYFIN_DTO_PLAYLISTCREATIONRESULT_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/reportviewingparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { + +using namespace Jellyfin::DTO; + +// ReportViewingParams + +const QString &ReportViewingParams::itemId() const { + return m_itemId; +} + +void ReportViewingParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} -class PlaylistCreationResult { -public:PlaylistCreationResult();PlaylistCreationResult(const PlaylistCreationResult &other); +const QString &ReportViewingParams::sessionId() const { + return m_sessionId; +} + +void ReportViewingParams::setSessionId(QString newSessionId) { + m_sessionId = newSessionId; +} + +bool ReportViewingParams::sessionIdNull() const { + // Nullable: true + // Type Nullable: true - static PlaylistCreationResult fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties - QString jellyfinId() const; + return m_sessionId.isNull(); +} - void setJellyfinId(QString newJellyfinId); +void ReportViewingParams::setSessionIdNull() { + m_sessionId.clear(); +} -protected: - QString m_jellyfinId; -}; + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_PLAYLISTCREATIONRESULT_H diff --git a/core/include/JellyfinQt/DTO/keepuntil.h b/core/src/loader/resettunerparams.cpp similarity index 76% rename from core/include/JellyfinQt/DTO/keepuntil.h rename to core/src/loader/resettunerparams.cpp index fae5c1d..ac92cc9 100644 --- a/core/include/JellyfinQt/DTO/keepuntil.h +++ b/core/src/loader/resettunerparams.cpp @@ -27,36 +27,24 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_KEEPUNTIL_H -#define JELLYFIN_DTO_KEEPUNTIL_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/resettunerparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { -class KeepUntilClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - UntilDeleted, - UntilSpaceNeeded, - UntilWatched, - UntilDate, - }; - Q_ENUM(Value) -private: - explicit KeepUntilClass(); -}; +using namespace Jellyfin::DTO; -typedef KeepUntilClass::Value KeepUntil; +// ResetTunerParams +const QString &ResetTunerParams::tunerId() const { + return m_tunerId; +} + +void ResetTunerParams::setTunerId(QString newTunerId) { + m_tunerId = newTunerId; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_KEEPUNTIL_H diff --git a/core/src/loader/restartapplicationparams.cpp b/core/src/loader/restartapplicationparams.cpp new file mode 100644 index 0000000..3aaaa20 --- /dev/null +++ b/core/src/loader/restartapplicationparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/restartapplicationparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// RestartApplicationParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/revokekeyparams.cpp b/core/src/loader/revokekeyparams.cpp new file mode 100644 index 0000000..4de0dc1 --- /dev/null +++ b/core/src/loader/revokekeyparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/revokekeyparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// RevokeKeyParams + +const QString &RevokeKeyParams::key() const { + return m_key; +} + +void RevokeKeyParams::setKey(QString newKey) { + m_key = newKey; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/taskcompletionstatus.h b/core/src/loader/searchremotesubtitlesparams.cpp similarity index 59% rename from core/include/JellyfinQt/DTO/taskcompletionstatus.h rename to core/src/loader/searchremotesubtitlesparams.cpp index 0fe95c4..42b3572 100644 --- a/core/include/JellyfinQt/DTO/taskcompletionstatus.h +++ b/core/src/loader/searchremotesubtitlesparams.cpp @@ -27,36 +27,54 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_TASKCOMPLETIONSTATUS_H -#define JELLYFIN_DTO_TASKCOMPLETIONSTATUS_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/searchremotesubtitlesparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { -class TaskCompletionStatusClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Completed, - Failed, - Cancelled, - Aborted, - }; - Q_ENUM(Value) -private: - explicit TaskCompletionStatusClass(); -}; +using namespace Jellyfin::DTO; -typedef TaskCompletionStatusClass::Value TaskCompletionStatus; +// SearchRemoteSubtitlesParams +const QString &SearchRemoteSubtitlesParams::itemId() const { + return m_itemId; +} + +void SearchRemoteSubtitlesParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &SearchRemoteSubtitlesParams::language() const { + return m_language; +} + +void SearchRemoteSubtitlesParams::setLanguage(QString newLanguage) { + m_language = newLanguage; +} + + +const bool &SearchRemoteSubtitlesParams::isPerfectMatch() const { + return m_isPerfectMatch.value(); +} + +void SearchRemoteSubtitlesParams::setIsPerfectMatch(bool newIsPerfectMatch) { + m_isPerfectMatch = newIsPerfectMatch; +} + +bool SearchRemoteSubtitlesParams::isPerfectMatchNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_isPerfectMatch.has_value(); +} + +void SearchRemoteSubtitlesParams::setIsPerfectMatchNull() { + m_isPerfectMatch = std::nullopt; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_TASKCOMPLETIONSTATUS_H diff --git a/core/src/loader/sendfullgeneralcommandparams.cpp b/core/src/loader/sendfullgeneralcommandparams.cpp new file mode 100644 index 0000000..f685332 --- /dev/null +++ b/core/src/loader/sendfullgeneralcommandparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/sendfullgeneralcommandparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SendFullGeneralCommandParams + +const QString &SendFullGeneralCommandParams::sessionId() const { + return m_sessionId; +} + +void SendFullGeneralCommandParams::setSessionId(QString newSessionId) { + m_sessionId = newSessionId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/sendgeneralcommandparams.cpp b/core/src/loader/sendgeneralcommandparams.cpp new file mode 100644 index 0000000..368ba16 --- /dev/null +++ b/core/src/loader/sendgeneralcommandparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/sendgeneralcommandparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SendGeneralCommandParams + +const GeneralCommandType &SendGeneralCommandParams::command() const { + return m_command; +} + +void SendGeneralCommandParams::setCommand(GeneralCommandType newCommand) { + m_command = newCommand; +} + + +const QString &SendGeneralCommandParams::sessionId() const { + return m_sessionId; +} + +void SendGeneralCommandParams::setSessionId(QString newSessionId) { + m_sessionId = newSessionId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/newgrouprequestdto.h b/core/src/loader/sendmessagecommandparams.cpp similarity index 52% rename from core/include/JellyfinQt/DTO/newgrouprequestdto.h rename to core/src/loader/sendmessagecommandparams.cpp index 78d879e..d74e1d4 100644 --- a/core/include/JellyfinQt/DTO/newgrouprequestdto.h +++ b/core/src/loader/sendmessagecommandparams.cpp @@ -27,42 +27,75 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_NEWGROUPREQUESTDTO_H -#define JELLYFIN_DTO_NEWGROUPREQUESTDTO_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/sendmessagecommandparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SendMessageCommandParams + +const QString &SendMessageCommandParams::sessionId() const { + return m_sessionId; +} + +void SendMessageCommandParams::setSessionId(QString newSessionId) { + m_sessionId = newSessionId; +} -class NewGroupRequestDto { -public:NewGroupRequestDto();NewGroupRequestDto(const NewGroupRequestDto &other); +const QString &SendMessageCommandParams::text() const { + return m_text; +} + +void SendMessageCommandParams::setText(QString newText) { + m_text = newText; +} + + +const QString &SendMessageCommandParams::header() const { + return m_header; +} + +void SendMessageCommandParams::setHeader(QString newHeader) { + m_header = newHeader; +} + +bool SendMessageCommandParams::headerNull() const { + // Nullable: true + // Type Nullable: true - static NewGroupRequestDto fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); + + return m_header.isNull(); +} + +void SendMessageCommandParams::setHeaderNull() { + m_header.clear(); +} + + +const qint64 &SendMessageCommandParams::timeoutMs() const { + return m_timeoutMs.value(); +} + +void SendMessageCommandParams::setTimeoutMs(qint64 newTimeoutMs) { + m_timeoutMs = newTimeoutMs; +} + +bool SendMessageCommandParams::timeoutMsNull() const { + // Nullable: true + // Type Nullable: false - // Properties - /** - * @brief Gets or sets the group name. - */ - QString groupName() const; - /** - * @brief Gets or sets the group name. - */ - void setGroupName(QString newGroupName); -protected: - QString m_groupName; -}; + return !m_timeoutMs.has_value(); +} +void SendMessageCommandParams::setTimeoutMsNull() { + m_timeoutMs = std::nullopt; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_NEWGROUPREQUESTDTO_H diff --git a/core/src/loader/sendplaystatecommandparams.cpp b/core/src/loader/sendplaystatecommandparams.cpp new file mode 100644 index 0000000..dc5eade --- /dev/null +++ b/core/src/loader/sendplaystatecommandparams.cpp @@ -0,0 +1,101 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/sendplaystatecommandparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SendPlaystateCommandParams + +const PlaystateCommand &SendPlaystateCommandParams::command() const { + return m_command; +} + +void SendPlaystateCommandParams::setCommand(PlaystateCommand newCommand) { + m_command = newCommand; +} + + +const QString &SendPlaystateCommandParams::sessionId() const { + return m_sessionId; +} + +void SendPlaystateCommandParams::setSessionId(QString newSessionId) { + m_sessionId = newSessionId; +} + + +const QString &SendPlaystateCommandParams::controllingUserId() const { + return m_controllingUserId; +} + +void SendPlaystateCommandParams::setControllingUserId(QString newControllingUserId) { + m_controllingUserId = newControllingUserId; +} + +bool SendPlaystateCommandParams::controllingUserIdNull() const { + // Nullable: true + // Type Nullable: true + + + return m_controllingUserId.isNull(); +} + +void SendPlaystateCommandParams::setControllingUserIdNull() { + m_controllingUserId.clear(); +} + + +const qint64 &SendPlaystateCommandParams::seekPositionTicks() const { + return m_seekPositionTicks.value(); +} + +void SendPlaystateCommandParams::setSeekPositionTicks(qint64 newSeekPositionTicks) { + m_seekPositionTicks = newSeekPositionTicks; +} + +bool SendPlaystateCommandParams::seekPositionTicksNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_seekPositionTicks.has_value(); +} + +void SendPlaystateCommandParams::setSeekPositionTicksNull() { + m_seekPositionTicks = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/sendsystemcommandparams.cpp b/core/src/loader/sendsystemcommandparams.cpp new file mode 100644 index 0000000..b03421a --- /dev/null +++ b/core/src/loader/sendsystemcommandparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/sendsystemcommandparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SendSystemCommandParams + +const GeneralCommandType &SendSystemCommandParams::command() const { + return m_command; +} + +void SendSystemCommandParams::setCommand(GeneralCommandType newCommand) { + m_command = newCommand; +} + + +const QString &SendSystemCommandParams::sessionId() const { + return m_sessionId; +} + +void SendSystemCommandParams::setSessionId(QString newSessionId) { + m_sessionId = newSessionId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/setchannelmappingparams.cpp b/core/src/loader/setchannelmappingparams.cpp new file mode 100644 index 0000000..fb5ad21 --- /dev/null +++ b/core/src/loader/setchannelmappingparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/setchannelmappingparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SetChannelMappingParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/setitemimagebyindexparams.cpp b/core/src/loader/setitemimagebyindexparams.cpp new file mode 100644 index 0000000..d42a464 --- /dev/null +++ b/core/src/loader/setitemimagebyindexparams.cpp @@ -0,0 +1,68 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/setitemimagebyindexparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SetItemImageByIndexParams + +const qint32 &SetItemImageByIndexParams::imageIndex() const { + return m_imageIndex; +} + +void SetItemImageByIndexParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + + +const ImageType &SetItemImageByIndexParams::imageType() const { + return m_imageType; +} + +void SetItemImageByIndexParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &SetItemImageByIndexParams::itemId() const { + return m_itemId; +} + +void SetItemImageByIndexParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/setitemimageparams.cpp b/core/src/loader/setitemimageparams.cpp new file mode 100644 index 0000000..ea41673 --- /dev/null +++ b/core/src/loader/setitemimageparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/setitemimageparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SetItemImageParams + +const ImageType &SetItemImageParams::imageType() const { + return m_imageType; +} + +void SetItemImageParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &SetItemImageParams::itemId() const { + return m_itemId; +} + +void SetItemImageParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/setreadparams.cpp b/core/src/loader/setreadparams.cpp new file mode 100644 index 0000000..d0d480a --- /dev/null +++ b/core/src/loader/setreadparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/setreadparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SetReadParams + +const QString &SetReadParams::userId() const { + return m_userId; +} + +void SetReadParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/setremoteaccessparams.cpp b/core/src/loader/setremoteaccessparams.cpp new file mode 100644 index 0000000..891f480 --- /dev/null +++ b/core/src/loader/setremoteaccessparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/setremoteaccessparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SetRemoteAccessParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/setrepositoriesparams.cpp b/core/src/loader/setrepositoriesparams.cpp new file mode 100644 index 0000000..e2f3604 --- /dev/null +++ b/core/src/loader/setrepositoriesparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/setrepositoriesparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SetRepositoriesParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/setunreadparams.cpp b/core/src/loader/setunreadparams.cpp new file mode 100644 index 0000000..0a559db --- /dev/null +++ b/core/src/loader/setunreadparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/setunreadparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SetUnreadParams + +const QString &SetUnreadParams::userId() const { + return m_userId; +} + +void SetUnreadParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/shutdownapplicationparams.cpp b/core/src/loader/shutdownapplicationparams.cpp new file mode 100644 index 0000000..3c56b48 --- /dev/null +++ b/core/src/loader/shutdownapplicationparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/shutdownapplicationparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// ShutdownApplicationParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/starttaskparams.cpp b/core/src/loader/starttaskparams.cpp new file mode 100644 index 0000000..a98141a --- /dev/null +++ b/core/src/loader/starttaskparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/starttaskparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// StartTaskParams + +const QString &StartTaskParams::taskId() const { + return m_taskId; +} + +void StartTaskParams::setTaskId(QString newTaskId) { + m_taskId = newTaskId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/directplayprofile.h b/core/src/loader/stopencodingprocessparams.cpp similarity index 58% rename from core/include/JellyfinQt/DTO/directplayprofile.h rename to core/src/loader/stopencodingprocessparams.cpp index 350a69e..00c5f08 100644 --- a/core/include/JellyfinQt/DTO/directplayprofile.h +++ b/core/src/loader/stopencodingprocessparams.cpp @@ -27,54 +27,57 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_DIRECTPLAYPROFILE_H -#define JELLYFIN_DTO_DIRECTPLAYPROFILE_H - -#include -#include -#include -#include - -#include "JellyfinQt/DTO/dlnaprofiletype.h" -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/stopencodingprocessparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { +using namespace Jellyfin::DTO; -class DirectPlayProfile { -public:DirectPlayProfile();DirectPlayProfile(const DirectPlayProfile &other); +// StopEncodingProcessParams + +const QString &StopEncodingProcessParams::deviceId() const { + return m_deviceId; +} + +void StopEncodingProcessParams::setDeviceId(QString newDeviceId) { + m_deviceId = newDeviceId; +} + +bool StopEncodingProcessParams::deviceIdNull() const { + // Nullable: true + // Type Nullable: true - static DirectPlayProfile fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); + + return m_deviceId.isNull(); +} + +void StopEncodingProcessParams::setDeviceIdNull() { + m_deviceId.clear(); +} + + +const QString &StopEncodingProcessParams::playSessionId() const { + return m_playSessionId; +} + +void StopEncodingProcessParams::setPlaySessionId(QString newPlaySessionId) { + m_playSessionId = newPlaySessionId; +} + +bool StopEncodingProcessParams::playSessionIdNull() const { + // Nullable: true + // Type Nullable: true - // Properties - QString container() const; + return m_playSessionId.isNull(); +} - void setContainer(QString newContainer); +void StopEncodingProcessParams::setPlaySessionIdNull() { + m_playSessionId.clear(); +} - QString audioCodec() const; - void setAudioCodec(QString newAudioCodec); - - QString videoCodec() const; - - void setVideoCodec(QString newVideoCodec); - - DlnaProfileType type() const; - - void setType(DlnaProfileType newType); - -protected: - QString m_container; - QString m_audioCodec; - QString m_videoCodec; - DlnaProfileType m_type; -}; +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_DIRECTPLAYPROFILE_H diff --git a/core/src/loader/stoptaskparams.cpp b/core/src/loader/stoptaskparams.cpp new file mode 100644 index 0000000..efd8878 --- /dev/null +++ b/core/src/loader/stoptaskparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/stoptaskparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// StopTaskParams + +const QString &StopTaskParams::taskId() const { + return m_taskId; +} + +void StopTaskParams::setTaskId(QString newTaskId) { + m_taskId = newTaskId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplaybufferingparams.cpp b/core/src/loader/syncplaybufferingparams.cpp new file mode 100644 index 0000000..5dbfeb4 --- /dev/null +++ b/core/src/loader/syncplaybufferingparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplaybufferingparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlayBufferingParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplaycreategroupparams.cpp b/core/src/loader/syncplaycreategroupparams.cpp new file mode 100644 index 0000000..da39b9f --- /dev/null +++ b/core/src/loader/syncplaycreategroupparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplaycreategroupparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlayCreateGroupParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplaygetgroupsparams.cpp b/core/src/loader/syncplaygetgroupsparams.cpp new file mode 100644 index 0000000..7db89a4 --- /dev/null +++ b/core/src/loader/syncplaygetgroupsparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplaygetgroupsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlayGetGroupsParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplayjoingroupparams.cpp b/core/src/loader/syncplayjoingroupparams.cpp new file mode 100644 index 0000000..ab7af07 --- /dev/null +++ b/core/src/loader/syncplayjoingroupparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplayjoingroupparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlayJoinGroupParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplayleavegroupparams.cpp b/core/src/loader/syncplayleavegroupparams.cpp new file mode 100644 index 0000000..1977bb9 --- /dev/null +++ b/core/src/loader/syncplayleavegroupparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplayleavegroupparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlayLeaveGroupParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplaymoveplaylistitemparams.cpp b/core/src/loader/syncplaymoveplaylistitemparams.cpp new file mode 100644 index 0000000..48472d2 --- /dev/null +++ b/core/src/loader/syncplaymoveplaylistitemparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplaymoveplaylistitemparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlayMovePlaylistItemParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplaynextitemparams.cpp b/core/src/loader/syncplaynextitemparams.cpp new file mode 100644 index 0000000..f381f18 --- /dev/null +++ b/core/src/loader/syncplaynextitemparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplaynextitemparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlayNextItemParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplaypauseparams.cpp b/core/src/loader/syncplaypauseparams.cpp new file mode 100644 index 0000000..7ac21f8 --- /dev/null +++ b/core/src/loader/syncplaypauseparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplaypauseparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlayPauseParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplaypingparams.cpp b/core/src/loader/syncplaypingparams.cpp new file mode 100644 index 0000000..d67f45d --- /dev/null +++ b/core/src/loader/syncplaypingparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplaypingparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlayPingParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplaypreviousitemparams.cpp b/core/src/loader/syncplaypreviousitemparams.cpp new file mode 100644 index 0000000..0063bd0 --- /dev/null +++ b/core/src/loader/syncplaypreviousitemparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplaypreviousitemparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlayPreviousItemParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplayqueueparams.cpp b/core/src/loader/syncplayqueueparams.cpp new file mode 100644 index 0000000..e76de35 --- /dev/null +++ b/core/src/loader/syncplayqueueparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplayqueueparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlayQueueParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplayreadyparams.cpp b/core/src/loader/syncplayreadyparams.cpp new file mode 100644 index 0000000..853b4fb --- /dev/null +++ b/core/src/loader/syncplayreadyparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplayreadyparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlayReadyParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplayremovefromplaylistparams.cpp b/core/src/loader/syncplayremovefromplaylistparams.cpp new file mode 100644 index 0000000..9270942 --- /dev/null +++ b/core/src/loader/syncplayremovefromplaylistparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplayremovefromplaylistparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlayRemoveFromPlaylistParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplayseekparams.cpp b/core/src/loader/syncplayseekparams.cpp new file mode 100644 index 0000000..27b1913 --- /dev/null +++ b/core/src/loader/syncplayseekparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplayseekparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlaySeekParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplaysetignorewaitparams.cpp b/core/src/loader/syncplaysetignorewaitparams.cpp new file mode 100644 index 0000000..3bc7f7d --- /dev/null +++ b/core/src/loader/syncplaysetignorewaitparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplaysetignorewaitparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlaySetIgnoreWaitParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplaysetnewqueueparams.cpp b/core/src/loader/syncplaysetnewqueueparams.cpp new file mode 100644 index 0000000..596be21 --- /dev/null +++ b/core/src/loader/syncplaysetnewqueueparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplaysetnewqueueparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlaySetNewQueueParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplaysetplaylistitemparams.cpp b/core/src/loader/syncplaysetplaylistitemparams.cpp new file mode 100644 index 0000000..3078765 --- /dev/null +++ b/core/src/loader/syncplaysetplaylistitemparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplaysetplaylistitemparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlaySetPlaylistItemParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplaysetrepeatmodeparams.cpp b/core/src/loader/syncplaysetrepeatmodeparams.cpp new file mode 100644 index 0000000..f728b3c --- /dev/null +++ b/core/src/loader/syncplaysetrepeatmodeparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplaysetrepeatmodeparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlaySetRepeatModeParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplaysetshufflemodeparams.cpp b/core/src/loader/syncplaysetshufflemodeparams.cpp new file mode 100644 index 0000000..cb96286 --- /dev/null +++ b/core/src/loader/syncplaysetshufflemodeparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplaysetshufflemodeparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlaySetShuffleModeParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplaystopparams.cpp b/core/src/loader/syncplaystopparams.cpp new file mode 100644 index 0000000..9ac73ac --- /dev/null +++ b/core/src/loader/syncplaystopparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplaystopparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlayStopParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/syncplayunpauseparams.cpp b/core/src/loader/syncplayunpauseparams.cpp new file mode 100644 index 0000000..3a7385a --- /dev/null +++ b/core/src/loader/syncplayunpauseparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/syncplayunpauseparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// SyncPlayUnpauseParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/itemfilter.h b/core/src/loader/uninstallpluginbyversionparams.cpp similarity index 71% rename from core/include/JellyfinQt/DTO/itemfilter.h rename to core/src/loader/uninstallpluginbyversionparams.cpp index 88ef233..5846b2f 100644 --- a/core/include/JellyfinQt/DTO/itemfilter.h +++ b/core/src/loader/uninstallpluginbyversionparams.cpp @@ -27,41 +27,33 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_ITEMFILTER_H -#define JELLYFIN_DTO_ITEMFILTER_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/uninstallpluginbyversionparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { -class ItemFilterClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - IsFolder, - IsNotFolder, - IsUnplayed, - IsPlayed, - IsFavorite, - IsResumable, - Likes, - Dislikes, - IsFavoriteOrLikes, - }; - Q_ENUM(Value) -private: - explicit ItemFilterClass(); -}; +using namespace Jellyfin::DTO; -typedef ItemFilterClass::Value ItemFilter; +// UninstallPluginByVersionParams +const QString &UninstallPluginByVersionParams::pluginId() const { + return m_pluginId; +} + +void UninstallPluginByVersionParams::setPluginId(QString newPluginId) { + m_pluginId = newPluginId; +} + + +const QSharedPointer &UninstallPluginByVersionParams::version() const { + return m_version; +} + +void UninstallPluginByVersionParams::setVersion(QSharedPointer newVersion) { + m_version = newVersion; +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_ITEMFILTER_H diff --git a/core/src/loader/uninstallpluginparams.cpp b/core/src/loader/uninstallpluginparams.cpp new file mode 100644 index 0000000..d925122 --- /dev/null +++ b/core/src/loader/uninstallpluginparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/uninstallpluginparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UninstallPluginParams + +const QString &UninstallPluginParams::pluginId() const { + return m_pluginId; +} + +void UninstallPluginParams::setPluginId(QString newPluginId) { + m_pluginId = newPluginId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/unmarkfavoriteitemparams.cpp b/core/src/loader/unmarkfavoriteitemparams.cpp new file mode 100644 index 0000000..182ed6f --- /dev/null +++ b/core/src/loader/unmarkfavoriteitemparams.cpp @@ -0,0 +1,59 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/unmarkfavoriteitemparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UnmarkFavoriteItemParams + +const QString &UnmarkFavoriteItemParams::itemId() const { + return m_itemId; +} + +void UnmarkFavoriteItemParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &UnmarkFavoriteItemParams::userId() const { + return m_userId; +} + +void UnmarkFavoriteItemParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updateconfigurationparams.cpp b/core/src/loader/updateconfigurationparams.cpp new file mode 100644 index 0000000..a79644d --- /dev/null +++ b/core/src/loader/updateconfigurationparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updateconfigurationparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateConfigurationParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updatedeviceoptionsparams.cpp b/core/src/loader/updatedeviceoptionsparams.cpp new file mode 100644 index 0000000..60935c4 --- /dev/null +++ b/core/src/loader/updatedeviceoptionsparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updatedeviceoptionsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateDeviceOptionsParams + +const QString &UpdateDeviceOptionsParams::jellyfinId() const { + return m_jellyfinId; +} + +void UpdateDeviceOptionsParams::setJellyfinId(QString newJellyfinId) { + m_jellyfinId = newJellyfinId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/controlresponse.h b/core/src/loader/updatedisplaypreferencesparams.cpp similarity index 63% rename from core/include/JellyfinQt/DTO/controlresponse.h rename to core/src/loader/updatedisplaypreferencesparams.cpp index 96253a9..6d1ebe4 100644 --- a/core/include/JellyfinQt/DTO/controlresponse.h +++ b/core/src/loader/updatedisplaypreferencesparams.cpp @@ -27,48 +27,42 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_CONTROLRESPONSE_H -#define JELLYFIN_DTO_CONTROLRESPONSE_H - -#include -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/updatedisplaypreferencesparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateDisplayPreferencesParams + +const QString &UpdateDisplayPreferencesParams::displayPreferencesId() const { + return m_displayPreferencesId; +} + +void UpdateDisplayPreferencesParams::setDisplayPreferencesId(QString newDisplayPreferencesId) { + m_displayPreferencesId = newDisplayPreferencesId; +} -class ControlResponse { -public:ControlResponse();ControlResponse(const ControlResponse &other); - - static ControlResponse fromJson(QJsonObject source); - void setFromJson(QJsonObject source); - QJsonObject toJson(); - - // Properties +const QString &UpdateDisplayPreferencesParams::client() const { + return m_client; +} - QJsonObject headers() const; +void UpdateDisplayPreferencesParams::setClient(QString newClient) { + m_client = newClient; +} - void setHeaders(QJsonObject newHeaders); - QString xml() const; +const QString &UpdateDisplayPreferencesParams::userId() const { + return m_userId; +} - void setXml(QString newXml); +void UpdateDisplayPreferencesParams::setUserId(QString newUserId) { + m_userId = newUserId; +} - bool isSuccessful() const; - void setIsSuccessful(bool newIsSuccessful); - -protected: - QJsonObject m_headers; - QString m_xml; - bool m_isSuccessful; -}; +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_CONTROLRESPONSE_H diff --git a/core/src/loader/updateinitialconfigurationparams.cpp b/core/src/loader/updateinitialconfigurationparams.cpp new file mode 100644 index 0000000..df8ac9f --- /dev/null +++ b/core/src/loader/updateinitialconfigurationparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updateinitialconfigurationparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateInitialConfigurationParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updateitemcontenttypeparams.cpp b/core/src/loader/updateitemcontenttypeparams.cpp new file mode 100644 index 0000000..bdbf42d --- /dev/null +++ b/core/src/loader/updateitemcontenttypeparams.cpp @@ -0,0 +1,71 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updateitemcontenttypeparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateItemContentTypeParams + +const QString &UpdateItemContentTypeParams::itemId() const { + return m_itemId; +} + +void UpdateItemContentTypeParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &UpdateItemContentTypeParams::contentType() const { + return m_contentType; +} + +void UpdateItemContentTypeParams::setContentType(QString newContentType) { + m_contentType = newContentType; +} + +bool UpdateItemContentTypeParams::contentTypeNull() const { + // Nullable: true + // Type Nullable: true + + + return m_contentType.isNull(); +} + +void UpdateItemContentTypeParams::setContentTypeNull() { + m_contentType.clear(); +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updateitemimageindexparams.cpp b/core/src/loader/updateitemimageindexparams.cpp new file mode 100644 index 0000000..ce54678 --- /dev/null +++ b/core/src/loader/updateitemimageindexparams.cpp @@ -0,0 +1,89 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updateitemimageindexparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateItemImageIndexParams + +const qint32 &UpdateItemImageIndexParams::imageIndex() const { + return m_imageIndex; +} + +void UpdateItemImageIndexParams::setImageIndex(qint32 newImageIndex) { + m_imageIndex = newImageIndex; +} + + +const ImageType &UpdateItemImageIndexParams::imageType() const { + return m_imageType; +} + +void UpdateItemImageIndexParams::setImageType(ImageType newImageType) { + m_imageType = newImageType; +} + + +const QString &UpdateItemImageIndexParams::itemId() const { + return m_itemId; +} + +void UpdateItemImageIndexParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const qint32 &UpdateItemImageIndexParams::newIndex() const { + return m_newIndex.value(); +} + +void UpdateItemImageIndexParams::setNewIndex(qint32 newNewIndex) { + m_newIndex = newNewIndex; +} + +bool UpdateItemImageIndexParams::newIndexNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_newIndex.has_value(); +} + +void UpdateItemImageIndexParams::setNewIndexNull() { + m_newIndex = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updateitemparams.cpp b/core/src/loader/updateitemparams.cpp new file mode 100644 index 0000000..71c2a22 --- /dev/null +++ b/core/src/loader/updateitemparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updateitemparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateItemParams + +const QString &UpdateItemParams::itemId() const { + return m_itemId; +} + +void UpdateItemParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updatelibraryoptionsparams.cpp b/core/src/loader/updatelibraryoptionsparams.cpp new file mode 100644 index 0000000..798eae3 --- /dev/null +++ b/core/src/loader/updatelibraryoptionsparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updatelibraryoptionsparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateLibraryOptionsParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updatemediaencoderpathparams.cpp b/core/src/loader/updatemediaencoderpathparams.cpp new file mode 100644 index 0000000..a4106ac --- /dev/null +++ b/core/src/loader/updatemediaencoderpathparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updatemediaencoderpathparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateMediaEncoderPathParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/include/JellyfinQt/DTO/channelmediatype.h b/core/src/loader/updatemediapathparams.cpp similarity index 74% rename from core/include/JellyfinQt/DTO/channelmediatype.h rename to core/src/loader/updatemediapathparams.cpp index 00c86f9..ef2f6a2 100644 --- a/core/include/JellyfinQt/DTO/channelmediatype.h +++ b/core/src/loader/updatemediapathparams.cpp @@ -27,35 +27,36 @@ * file with a newer file if needed instead of manually updating the files. */ -#ifndef JELLYFIN_DTO_CHANNELMEDIATYPE_H -#define JELLYFIN_DTO_CHANNELMEDIATYPE_H - -#include -#include -#include - -#include "JellyfinQt/support/jsonconv.h" +#include "JellyfinQt/loader/updatemediapathparams.h" namespace Jellyfin { -namespace DTO { +namespace Loader { -class ChannelMediaTypeClass { - Q_GADGET -public: - enum Value { - EnumNotSet, - Audio, - Video, - Photo, - }; - Q_ENUM(Value) -private: - explicit ChannelMediaTypeClass(); -}; +using namespace Jellyfin::DTO; -typedef ChannelMediaTypeClass::Value ChannelMediaType; +// UpdateMediaPathParams +const QString &UpdateMediaPathParams::name() const { + return m_name; +} + +void UpdateMediaPathParams::setName(QString newName) { + m_name = newName; +} + +bool UpdateMediaPathParams::nameNull() const { + // Nullable: true + // Type Nullable: true + + + return m_name.isNull(); +} + +void UpdateMediaPathParams::setNameNull() { + m_name.clear(); +} + + + +} // NS Loader } // NS Jellyfin -} // NS DTO - -#endif // JELLYFIN_DTO_CHANNELMEDIATYPE_H diff --git a/core/src/loader/updatenamedconfigurationparams.cpp b/core/src/loader/updatenamedconfigurationparams.cpp new file mode 100644 index 0000000..c92c7ac --- /dev/null +++ b/core/src/loader/updatenamedconfigurationparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updatenamedconfigurationparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateNamedConfigurationParams + +const QString &UpdateNamedConfigurationParams::key() const { + return m_key; +} + +void UpdateNamedConfigurationParams::setKey(QString newKey) { + m_key = newKey; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updatepluginconfigurationparams.cpp b/core/src/loader/updatepluginconfigurationparams.cpp new file mode 100644 index 0000000..177a13a --- /dev/null +++ b/core/src/loader/updatepluginconfigurationparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updatepluginconfigurationparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdatePluginConfigurationParams + +const QString &UpdatePluginConfigurationParams::pluginId() const { + return m_pluginId; +} + +void UpdatePluginConfigurationParams::setPluginId(QString newPluginId) { + m_pluginId = newPluginId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updatepluginsecurityinfoparams.cpp b/core/src/loader/updatepluginsecurityinfoparams.cpp new file mode 100644 index 0000000..1b54057 --- /dev/null +++ b/core/src/loader/updatepluginsecurityinfoparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updatepluginsecurityinfoparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdatePluginSecurityInfoParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updateprofileparams.cpp b/core/src/loader/updateprofileparams.cpp new file mode 100644 index 0000000..f40d5a6 --- /dev/null +++ b/core/src/loader/updateprofileparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updateprofileparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateProfileParams + +const QString &UpdateProfileParams::profileId() const { + return m_profileId; +} + +void UpdateProfileParams::setProfileId(QString newProfileId) { + m_profileId = newProfileId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updateseriestimerparams.cpp b/core/src/loader/updateseriestimerparams.cpp new file mode 100644 index 0000000..bbf2134 --- /dev/null +++ b/core/src/loader/updateseriestimerparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updateseriestimerparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateSeriesTimerParams + +const QString &UpdateSeriesTimerParams::timerId() const { + return m_timerId; +} + +void UpdateSeriesTimerParams::setTimerId(QString newTimerId) { + m_timerId = newTimerId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updatestartupuserparams.cpp b/core/src/loader/updatestartupuserparams.cpp new file mode 100644 index 0000000..e6259d6 --- /dev/null +++ b/core/src/loader/updatestartupuserparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updatestartupuserparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateStartupUserParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updatetaskparams.cpp b/core/src/loader/updatetaskparams.cpp new file mode 100644 index 0000000..9741b2e --- /dev/null +++ b/core/src/loader/updatetaskparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updatetaskparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateTaskParams + +const QString &UpdateTaskParams::taskId() const { + return m_taskId; +} + +void UpdateTaskParams::setTaskId(QString newTaskId) { + m_taskId = newTaskId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updatetimerparams.cpp b/core/src/loader/updatetimerparams.cpp new file mode 100644 index 0000000..a058fc7 --- /dev/null +++ b/core/src/loader/updatetimerparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updatetimerparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateTimerParams + +const QString &UpdateTimerParams::timerId() const { + return m_timerId; +} + +void UpdateTimerParams::setTimerId(QString newTimerId) { + m_timerId = newTimerId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updateuserconfigurationparams.cpp b/core/src/loader/updateuserconfigurationparams.cpp new file mode 100644 index 0000000..68ad6a5 --- /dev/null +++ b/core/src/loader/updateuserconfigurationparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updateuserconfigurationparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateUserConfigurationParams + +const QString &UpdateUserConfigurationParams::userId() const { + return m_userId; +} + +void UpdateUserConfigurationParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updateusereasypasswordparams.cpp b/core/src/loader/updateusereasypasswordparams.cpp new file mode 100644 index 0000000..80e63aa --- /dev/null +++ b/core/src/loader/updateusereasypasswordparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updateusereasypasswordparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateUserEasyPasswordParams + +const QString &UpdateUserEasyPasswordParams::userId() const { + return m_userId; +} + +void UpdateUserEasyPasswordParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updateuseritemratingparams.cpp b/core/src/loader/updateuseritemratingparams.cpp new file mode 100644 index 0000000..0d8390f --- /dev/null +++ b/core/src/loader/updateuseritemratingparams.cpp @@ -0,0 +1,80 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updateuseritemratingparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateUserItemRatingParams + +const QString &UpdateUserItemRatingParams::itemId() const { + return m_itemId; +} + +void UpdateUserItemRatingParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + +const QString &UpdateUserItemRatingParams::userId() const { + return m_userId; +} + +void UpdateUserItemRatingParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + +const bool &UpdateUserItemRatingParams::likes() const { + return m_likes.value(); +} + +void UpdateUserItemRatingParams::setLikes(bool newLikes) { + m_likes = newLikes; +} + +bool UpdateUserItemRatingParams::likesNull() const { + // Nullable: true + // Type Nullable: false + + + return !m_likes.has_value(); +} + +void UpdateUserItemRatingParams::setLikesNull() { + m_likes = std::nullopt; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updateuserparams.cpp b/core/src/loader/updateuserparams.cpp new file mode 100644 index 0000000..76cc0e0 --- /dev/null +++ b/core/src/loader/updateuserparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updateuserparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateUserParams + +const QString &UpdateUserParams::userId() const { + return m_userId; +} + +void UpdateUserParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updateuserpasswordparams.cpp b/core/src/loader/updateuserpasswordparams.cpp new file mode 100644 index 0000000..ae8a207 --- /dev/null +++ b/core/src/loader/updateuserpasswordparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updateuserpasswordparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateUserPasswordParams + +const QString &UpdateUserPasswordParams::userId() const { + return m_userId; +} + +void UpdateUserPasswordParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/updateuserpolicyparams.cpp b/core/src/loader/updateuserpolicyparams.cpp new file mode 100644 index 0000000..a31eb9c --- /dev/null +++ b/core/src/loader/updateuserpolicyparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/updateuserpolicyparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UpdateUserPolicyParams + +const QString &UpdateUserPolicyParams::userId() const { + return m_userId; +} + +void UpdateUserPolicyParams::setUserId(QString newUserId) { + m_userId = newUserId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/uploadsubtitleparams.cpp b/core/src/loader/uploadsubtitleparams.cpp new file mode 100644 index 0000000..ccc8d44 --- /dev/null +++ b/core/src/loader/uploadsubtitleparams.cpp @@ -0,0 +1,50 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/uploadsubtitleparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// UploadSubtitleParams + +const QString &UploadSubtitleParams::itemId() const { + return m_itemId; +} + +void UploadSubtitleParams::setItemId(QString newItemId) { + m_itemId = newItemId; +} + + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/loader/validatepathparams.cpp b/core/src/loader/validatepathparams.cpp new file mode 100644 index 0000000..afdd5f0 --- /dev/null +++ b/core/src/loader/validatepathparams.cpp @@ -0,0 +1,41 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ +/* + * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET + * OVERWRITTEN AT SOME POINT! + * + * If there is a bug in this file, please fix the code generator used to generate this file found in + * core/openapigenerator.d. + * + * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that + * file with a newer file if needed instead of manually updating the files. + */ + +#include "JellyfinQt/loader/validatepathparams.h" + +namespace Jellyfin { +namespace Loader { + +using namespace Jellyfin::DTO; + +// ValidatePathParams + + +} // NS Loader +} // NS Jellyfin diff --git a/core/src/viewmodel/modelstatus.cpp b/core/src/viewmodel/modelstatus.cpp new file mode 100644 index 0000000..f491d7f --- /dev/null +++ b/core/src/viewmodel/modelstatus.cpp @@ -0,0 +1,28 @@ +/* + * Sailfin: a Jellyfin client written using Qt + * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "JellyfinQt/viewmodel/modelstatus.h" + +namespace Jellyfin { +namespace ViewModel { + +ModelStatusClass::ModelStatusClass() { } + +} +} diff --git a/core/src/viewmodel/playbackmanager.cpp b/core/src/viewmodel/playbackmanager.cpp index cbc1d44..13ba72a 100644 --- a/core/src/viewmodel/playbackmanager.cpp +++ b/core/src/viewmodel/playbackmanager.cpp @@ -22,7 +22,7 @@ #include "JellyfinQt/apimodel.h" // #include "JellyfinQt/DTO/dto.h" -#include +#include namespace Jellyfin { class ItemModel; diff --git a/core/src/websocket.cpp b/core/src/websocket.cpp index 451f1ec..8e1381d 100644 --- a/core/src/websocket.cpp +++ b/core/src/websocket.cpp @@ -19,7 +19,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #include "JellyfinQt/websocket.h" -#include +#include namespace Jellyfin { WebSocket::WebSocket(ApiClient *client) diff --git a/qtquick/qml/pages/MainPage.qml b/qtquick/qml/pages/MainPage.qml index 24c42e1..f30c37a 100644 --- a/qtquick/qml/pages/MainPage.qml +++ b/qtquick/qml/pages/MainPage.qml @@ -19,11 +19,25 @@ Page { } } + Text { + id: simpleLog + text: "Simple log: \n" + } + J.ItemModel { id: mediaLibraryModel loader: J.UsersViewLoader { id: mediaLibraryModelLoader apiClient: ApiClient + onStatusChanged: { + } + } + } + + J.ModelStatusTest { + status: J.ModelStatus.Uninitialized + onStatusChanged: { + simpleLog.text += new Date().toString() + ": " + status + "\n" } } diff --git a/qtquick/src/main.cpp b/qtquick/src/main.cpp index 774f316..cdecb08 100644 --- a/qtquick/src/main.cpp +++ b/qtquick/src/main.cpp @@ -1,7 +1,6 @@ -#define QT_DEBUG -#define QT_QML_DEBUG +#ifndef QT_DEBUG #include -//#endif +#endif #include #include