class_defs.py 158 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817
  1. # File: class_defs.py
  2. # Library: DOPAL - DO Python Azureus Library
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; version 2 of the License.
  7. #
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details ( see the COPYING file ).
  12. #
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. '''
  17. Defines all constants, variables and methods available on classes in Azureus's
  18. plugin API.
  19. Not all classes are defined here are mentioned in this API documentation
  20. (simply because too much documentation will be generated).
  21. For each class that DOPAL has explicit support for, there will be a class
  22. defined here which contains the class information. The list of classes
  23. supported in this version is described in L{classes}.
  24. For each class that we support, there will be a class in this module with the
  25. same name with the suffix of "DataType". It will have a C{get_xml_type} method
  26. defined on the class. It may have some of the following attributes on the
  27. class:
  28. - A C{__az_methods__} attribute (which will be a L{AzureusMethods}
  29. instance) - defining what methods we support. These correlate to the
  30. methods defined on each class.
  31. - A C{__az_constants__} attribute (which will be a dictionary) - defining
  32. what class constants are defined. These correlate to the constants on
  33. the class.
  34. - A C{__az_attributes__} attribute (which will be a dictionary) - defining
  35. what attributes will be on the object. These attributes are unique to the
  36. XML/HTTP plugin. The plugin defines certain precalculated 'attributes' when
  37. returning the data for a given object, by invoking certain methods on the
  38. object. This saves the client making multiple calls on an object to
  39. retrieve certain pieces of information, by calculating it and returning it
  40. all in one go.
  41. If you are interested to know what methods are available on each classes, then
  42. please look at Azureus's own
  43. U{Javadoc API documentation<http://azureus.sourceforge.net/plugins/docCVS/>}.
  44. The meta-attributes for these classes are defined by the XML/HTTP plugin - you
  45. can find their definitions in the
  46. U{GenericRPAttributes.java<http://cvs.sourceforge.net/viewcvs.py/azureus/azureus2/org/gudy/azureus2/pluginsimpl/remote/GenericRPAttributes.java?view=markup>}
  47. source file.
  48. '''
  49. #
  50. # The contents of this module are automatically generated by
  51. # class_defs_make.py.
  52. #
  53. import dopal.classes
  54. from dopal.aztypes import AzMethod as _method
  55. from dopal.aztypes import AzureusMethods
  56. #------------------------------------------------------------------------------
  57. #
  58. # Classes for package:
  59. # org.gudy.azureus2.plugins
  60. #
  61. #------------------------------------------------------------------------------
  62. class LaunchablePluginDataType:
  63. def get_xml_type():
  64. return "LaunchablePlugin"
  65. get_xml_type = staticmethod(get_xml_type)
  66. __az_methods__ = AzureusMethods([
  67. _method('initialize', ['PluginInterface']),
  68. _method('process', [], 'boolean'),
  69. _method('setDefaults', ['String[]']),
  70. ])
  71. class PluginDataType:
  72. def get_xml_type():
  73. return "Plugin"
  74. get_xml_type = staticmethod(get_xml_type)
  75. __az_methods__ = AzureusMethods([
  76. _method('initialize', ['PluginInterface']),
  77. ])
  78. class PluginConfigDataType:
  79. def get_xml_type():
  80. return "PluginConfig"
  81. get_xml_type = staticmethod(get_xml_type)
  82. __az_constants__ = {
  83. 'CORE_PARAM_BOOLEAN_FRIENDLY_HASH_CHECKING': "CORE_PARAM_BOOLEAN_FRIENDLY_HASH_CHECKING",
  84. 'CORE_PARAM_BOOLEAN_MAX_ACTIVE_SEEDING': "Max Active Torrents When Only Seeding Enabled",
  85. 'CORE_PARAM_BOOLEAN_MAX_UPLOAD_SPEED_SEEDING': "Max Upload Speed When Only Seeding Enabled",
  86. 'CORE_PARAM_BOOLEAN_NEW_SEEDS_START_AT_TOP': "Newly Seeding Torrents Get First Priority",
  87. 'CORE_PARAM_BOOLEAN_SOCKS_PROXY_NO_INWARD_CONNECTION': "SOCKS Proxy No Inward Connection",
  88. 'CORE_PARAM_INT_MAX_ACTIVE': "Max Active Torrents",
  89. 'CORE_PARAM_INT_MAX_ACTIVE_SEEDING': "Max Active Torrents When Only Seeding",
  90. 'CORE_PARAM_INT_MAX_CONNECTIONS_GLOBAL': "Max Connections Global",
  91. 'CORE_PARAM_INT_MAX_CONNECTIONS_PER_TORRENT': "Max Connections Per Torrent",
  92. 'CORE_PARAM_INT_MAX_DOWNLOAD_SPEED_KBYTES_PER_SEC': "Max Download Speed KBs",
  93. 'CORE_PARAM_INT_MAX_DOWNLOADS': "Max Downloads",
  94. 'CORE_PARAM_INT_MAX_UPLOAD_SPEED_KBYTES_PER_SEC': "Max Upload Speed KBs",
  95. 'CORE_PARAM_INT_MAX_UPLOAD_SPEED_SEEDING_KBYTES_PER_SEC': "Max Upload Speed When Only Seeding KBs",
  96. 'CORE_PARAM_INT_MAX_UPLOADS': "Max Uploads",
  97. 'CORE_PARAM_INT_MAX_UPLOADS_SEEDING': "Max Uploads Seeding",
  98. 'CORE_PARAM_STRING_LOCAL_BIND_IP': "CORE_PARAM_STRING_LOCAL_BIND_IP",
  99. }
  100. #
  101. # The following methods are not available, because either the return
  102. # type is not supported or / and one or more parameters are not
  103. # remotely supported:
  104. #
  105. # List getPluginListParameter(String, List)
  106. # Map getPluginMapParameter(String, Map)
  107. # void setPluginListParameter(String, List)
  108. # void setPluginMapParameter(String, Map)
  109. #
  110. __az_methods__ = AzureusMethods([
  111. _method('addListener', ['PluginConfigListener']),
  112. _method('getBooleanParameter', ['String', 'boolean'], 'boolean'),
  113. _method('getBooleanParameter', ['String'], 'boolean'),
  114. _method('getByteParameter', ['String', 'byte[]'], 'byte[]'),
  115. _method('getFloatParameter', ['String'], 'float'),
  116. _method('getIntParameter', ['String'], 'int'),
  117. _method('getIntParameter', ['String', 'int'], 'int'),
  118. _method('getParameter', ['String'], 'ConfigParameter'),
  119. _method('getPluginBooleanParameter', ['String', 'boolean'], 'boolean'),
  120. _method('getPluginBooleanParameter', ['String'], 'boolean'),
  121. _method('getPluginByteParameter', ['String', 'byte[]'], 'byte[]'),
  122. _method('getPluginConfigKeyPrefix', [], 'String'),
  123. _method('getPluginIntParameter', ['String'], 'int'),
  124. _method('getPluginIntParameter', ['String', 'int'], 'int'),
  125. _method('getPluginParameter', ['String'], 'ConfigParameter'),
  126. _method('getPluginStringParameter', ['String'], 'String'),
  127. _method('getPluginStringParameter', ['String', 'String'], 'String'),
  128. _method('getPluginUserFile', ['String'], 'File'),
  129. _method('getStringParameter', ['String'], 'String'),
  130. _method('getStringParameter', ['String', 'String'], 'String'),
  131. _method('save'),
  132. _method('setBooleanParameter', ['String', 'boolean']),
  133. _method('setIntParameter', ['String', 'int']),
  134. _method('setPluginParameter', ['String', 'byte[]']),
  135. _method('setPluginParameter', ['String', 'int']),
  136. _method('setPluginParameter', ['String', 'String']),
  137. _method('setPluginParameter', ['String', 'boolean']),
  138. ])
  139. #
  140. # The following constants are not defined here, because their types
  141. # are not available in DOPAL:
  142. #
  143. # "cached_property_values" (has type "java.lang.Object[])"
  144. #
  145. __az_attributes__ = {
  146. 'cached_property_names': 'String[]',
  147. }
  148. class PluginConfigListenerDataType:
  149. def get_xml_type():
  150. return "PluginConfigListener"
  151. get_xml_type = staticmethod(get_xml_type)
  152. __az_methods__ = AzureusMethods([
  153. _method('configSaved'),
  154. ])
  155. class PluginEventDataType:
  156. def get_xml_type():
  157. return "PluginEvent"
  158. get_xml_type = staticmethod(get_xml_type)
  159. __az_constants__ = {
  160. 'PEV_CONFIGURATION_WIZARD_COMPLETES': 2,
  161. 'PEV_CONFIGURATION_WIZARD_STARTS': 1,
  162. 'PEV_FIRST_USER_EVENT': 1024,
  163. 'PEV_INITIALISATION_PROGRESS_PERCENT': 4,
  164. 'PEV_INITIALISATION_PROGRESS_TASK': 3,
  165. }
  166. #
  167. # The following methods are not available, because either the return
  168. # type is not supported or / and one or more parameters are not
  169. # remotely supported:
  170. #
  171. # Object getValue()
  172. #
  173. __az_methods__ = AzureusMethods([
  174. _method('getType', [], 'int'),
  175. ])
  176. class PluginEventListenerDataType:
  177. def get_xml_type():
  178. return "PluginEventListener"
  179. get_xml_type = staticmethod(get_xml_type)
  180. __az_methods__ = AzureusMethods([
  181. _method('handleEvent', ['PluginEvent']),
  182. ])
  183. class PluginInterfaceDataType:
  184. def get_xml_type():
  185. return "PluginInterface"
  186. get_xml_type = staticmethod(get_xml_type)
  187. #
  188. # The following methods are not available, because either the return
  189. # type is not supported or / and one or more parameters are not
  190. # remotely supported:
  191. #
  192. # void addView(PluginView)
  193. # PluginInterface getLocalPluginInterface(Class, String)
  194. # ClassLoader getPluginClassLoader()
  195. # Properties getPluginProperties()
  196. #
  197. __az_methods__ = AzureusMethods([
  198. _method('addColumnToMyTorrentsTable', ['String', 'PluginMyTorrentsItemFactory']),
  199. _method('addColumnToPeersTable', ['String', 'PluginPeerItemFactory']),
  200. _method('addConfigSection', ['ConfigSection']),
  201. _method('addConfigUIParameters', ['Parameter[]', 'String']),
  202. _method('addEventListener', ['PluginEventListener']),
  203. _method('addListener', ['PluginListener']),
  204. _method('firePluginEvent', ['PluginEvent']),
  205. _method('getAzureusName', [], 'String'),
  206. _method('getAzureusVersion', [], 'String'),
  207. _method('getClientIDManager', [], 'ClientIDManager'),
  208. _method('getConnectionManager', [], 'ConnectionManager'),
  209. _method('getDistributedDatabase', [], 'DistributedDatabase'),
  210. _method('getDownloadManager', [], 'DownloadManager'),
  211. _method('getIPC', [], 'IPCInterface'),
  212. _method('getIPFilter', [], 'IPFilter'),
  213. _method('getLogger', [], 'Logger'),
  214. _method('getMessageManager', [], 'MessageManager'),
  215. _method('getPeerProtocolManager', [], 'PeerProtocolManager'),
  216. _method('getPlatformManager', [], 'PlatformManager'),
  217. _method('getPlugin', [], 'Plugin'),
  218. _method('getPluginconfig', [], 'PluginConfig'),
  219. _method('getPluginConfigUIFactory', [], 'PluginConfigUIFactory'),
  220. _method('getPluginDirectoryName', [], 'String'),
  221. _method('getPluginID', [], 'String'),
  222. _method('getPluginManager', [], 'PluginManager'),
  223. _method('getPluginName', [], 'String'),
  224. _method('getPluginVersion', [], 'String'),
  225. _method('getShareManager', [], 'ShareManager'),
  226. _method('getShortCuts', [], 'ShortCuts'),
  227. _method('getTorrentManager', [], 'TorrentManager'),
  228. _method('getTracker', [], 'Tracker'),
  229. _method('getUIManager', [], 'UIManager'),
  230. _method('getUpdateManager', [], 'UpdateManager'),
  231. _method('getUtilities', [], 'Utilities'),
  232. _method('isBuiltIn', [], 'boolean'),
  233. _method('isDisabled', [], 'boolean'),
  234. _method('isMandatory', [], 'boolean'),
  235. _method('isOperational', [], 'boolean'),
  236. _method('isUnloadable', [], 'boolean'),
  237. _method('openTorrentFile', ['String']),
  238. _method('openTorrentURL', ['String']),
  239. _method('reload'),
  240. _method('removeConfigSection', ['ConfigSection']),
  241. _method('removeEventListener', ['PluginEventListener']),
  242. _method('removeListener', ['PluginListener']),
  243. _method('setDisabled', ['boolean']),
  244. _method('uninstall'),
  245. _method('unload'),
  246. ])
  247. __az_attributes__ = {
  248. 'azureus_name': 'String',
  249. 'azureus_version': 'String',
  250. 'plugin_id': 'String',
  251. 'plugin_name': 'String',
  252. }
  253. class PluginListenerDataType:
  254. def get_xml_type():
  255. return "PluginListener"
  256. get_xml_type = staticmethod(get_xml_type)
  257. __az_methods__ = AzureusMethods([
  258. _method('closedownComplete'),
  259. _method('closedownInitiated'),
  260. _method('initializationComplete'),
  261. ])
  262. class PluginManagerDataType:
  263. def get_xml_type():
  264. return "PluginManager"
  265. get_xml_type = staticmethod(get_xml_type)
  266. __az_constants__ = {
  267. 'PR_MULTI_INSTANCE': "MULTI_INSTANCE",
  268. 'UI_NONE': 0,
  269. 'UI_SWT': 1,
  270. }
  271. #
  272. # The following methods are not available, because either the return
  273. # type is not supported or / and one or more parameters are not
  274. # remotely supported:
  275. #
  276. # boolean equals(Object)
  277. # Class getClass()
  278. # PluginInterface getPluginInterfaceByClass(Class)
  279. # void registerPlugin(Class)
  280. # PluginManager startAzureus(int, Properties)
  281. #
  282. __az_methods__ = AzureusMethods([
  283. _method('firePluginEvent', ['int']),
  284. _method('getDefaultPluginInterface', [], 'PluginInterface'),
  285. _method('getDefaults', [], 'PluginManagerDefaults'),
  286. _method('getPluginInstaller', [], 'PluginInstaller'),
  287. _method('getPluginInterfaceByClass', ['String'], 'PluginInterface'),
  288. _method('getPluginInterfaceByID', ['String'], 'PluginInterface'),
  289. _method('getPluginInterfaces', [], 'PluginInterface[]'),
  290. _method('getPlugins', [], 'PluginInterface[]'),
  291. _method('hashCode', [], 'int'),
  292. _method('notify'),
  293. _method('notifyAll'),
  294. _method('refreshPluginList'),
  295. _method('registerPlugin', ['Plugin', 'String']),
  296. _method('restartAzureus'),
  297. _method('stopAzureus'),
  298. _method('toString', [], 'String'),
  299. _method('wait', ['long', 'int']),
  300. _method('wait'),
  301. _method('wait', ['long']),
  302. ])
  303. class PluginManagerArgumentHandlerDataType:
  304. def get_xml_type():
  305. return "PluginManagerArgumentHandler"
  306. get_xml_type = staticmethod(get_xml_type)
  307. __az_methods__ = AzureusMethods([
  308. _method('processArguments', ['String[]']),
  309. ])
  310. class PluginManagerDefaultsDataType:
  311. def get_xml_type():
  312. return "PluginManagerDefaults"
  313. get_xml_type = staticmethod(get_xml_type)
  314. __az_constants__ = {
  315. 'PID_CLIENT_ID': "Client ID",
  316. 'PID_CORE_PATCH_CHECKER': "Core Patch Checker",
  317. 'PID_CORE_UPDATE_CHECKER': "Core Update Checker",
  318. 'PID_DEFAULT_TRACKER_WEB': "Default Tracker Web",
  319. 'PID_DHT': "DHT",
  320. 'PID_DHT_TRACKER': "DHT Tracker",
  321. 'PID_EXTERNAL_SEED': "External Seed",
  322. 'PID_JPC': "JPC",
  323. 'PID_LOCAL_TRACKER': "Local Tracker",
  324. 'PID_MAGNET': "Magnet URI Handler",
  325. 'PID_PLATFORM_CHECKER': "Platform Checker",
  326. 'PID_PLUGIN_UPDATE_CHECKER': "Plugin Update Checker",
  327. 'PID_REMOVE_RULES': "Torrent Removal Rules",
  328. 'PID_SHARE_HOSTER': "Share Hoster",
  329. 'PID_START_STOP_RULES': "Start/Stop Rules",
  330. 'PID_UPNP': "UPnP",
  331. 'PLUGIN_IDS': [
  332. "Start/Stop Rules",
  333. "Torrent Removal Rules",
  334. "Share Hoster",
  335. "Default Tracker Web",
  336. "Core Update Checker",
  337. "Core Patch Checker",
  338. "Platform Checker",
  339. "UPnP",
  340. "Client ID",
  341. "DHT",
  342. "DHT Tracker",
  343. "Magnet URI Handler",
  344. "JPC",
  345. "External Seed",
  346. "Local Tracker",
  347. ],
  348. }
  349. __az_methods__ = AzureusMethods([
  350. _method('getApplicationEntryPoint', [], 'String'),
  351. _method('getApplicationIdentifier', [], 'String'),
  352. _method('getApplicationName', [], 'String'),
  353. _method('getDefaultPlugins', [], 'String[]'),
  354. _method('isDefaultPluginEnabled', ['String'], 'boolean'),
  355. _method('setApplicationEntryPoint', ['String']),
  356. _method('setApplicationIdentifier', ['String']),
  357. _method('setApplicationName', ['String']),
  358. _method('setDefaultPluginEnabled', ['String', 'boolean']),
  359. _method('setSingleInstanceHandler', ['int', 'PluginManagerArgumentHandler']),
  360. ])
  361. class UnloadablePluginDataType:
  362. def get_xml_type():
  363. return "UnloadablePlugin"
  364. get_xml_type = staticmethod(get_xml_type)
  365. __az_methods__ = AzureusMethods([
  366. _method('initialize', ['PluginInterface']),
  367. _method('unload'),
  368. ])
  369. #------------------------------------------------------------------------------
  370. #
  371. # Classes for package:
  372. # org.gudy.azureus2.plugins.clientid
  373. #
  374. #------------------------------------------------------------------------------
  375. class ClientIDGeneratorDataType:
  376. def get_xml_type():
  377. return "ClientIDGenerator"
  378. get_xml_type = staticmethod(get_xml_type)
  379. __az_constants__ = {
  380. 'PR_URL': "URL",
  381. 'PR_USER_AGENT': "User-Agent",
  382. }
  383. #
  384. # The following methods are not available, because either the return
  385. # type is not supported or / and one or more parameters are not
  386. # remotely supported:
  387. #
  388. # void generateHTTPProperties(Properties)
  389. #
  390. __az_methods__ = AzureusMethods([
  391. _method('filterHTTP', ['String[]'], 'String[]'),
  392. _method('generatePeerID', ['Torrent', 'boolean'], 'byte[]'),
  393. ])
  394. class ClientIDManagerDataType:
  395. def get_xml_type():
  396. return "ClientIDManager"
  397. get_xml_type = staticmethod(get_xml_type)
  398. __az_methods__ = AzureusMethods([
  399. _method('getGenerator', [], 'ClientIDGenerator'),
  400. _method('setGenerator', ['ClientIDGenerator', 'boolean']),
  401. ])
  402. #------------------------------------------------------------------------------
  403. #
  404. # Classes for package:
  405. # org.gudy.azureus2.plugins.config
  406. #
  407. #------------------------------------------------------------------------------
  408. class ConfigParameterDataType:
  409. def get_xml_type():
  410. return "ConfigParameter"
  411. get_xml_type = staticmethod(get_xml_type)
  412. __az_methods__ = AzureusMethods([
  413. _method('addConfigParameterListener', ['ConfigParameterListener']),
  414. _method('removeConfigParameterListener', ['ConfigParameterListener']),
  415. ])
  416. class ConfigParameterListenerDataType:
  417. def get_xml_type():
  418. return "ConfigParameterListener"
  419. get_xml_type = staticmethod(get_xml_type)
  420. __az_methods__ = AzureusMethods([
  421. _method('configParameterChanged', ['ConfigParameter']),
  422. ])
  423. #------------------------------------------------------------------------------
  424. #
  425. # Classes for package:
  426. # org.gudy.azureus2.plugins.ddb
  427. #
  428. #------------------------------------------------------------------------------
  429. class DistributedDatabaseDataType:
  430. def get_xml_type():
  431. return "DistributedDatabase"
  432. get_xml_type = staticmethod(get_xml_type)
  433. __az_constants__ = {
  434. 'OP_EXHAUSTIVE_READ': 1,
  435. 'OP_NONE': 0,
  436. }
  437. #
  438. # The following methods are not available, because either the return
  439. # type is not supported or / and one or more parameters are not
  440. # remotely supported:
  441. #
  442. # DistributedDatabaseKey createKey(Object)
  443. # DistributedDatabaseKey createKey(Object, String)
  444. # DistributedDatabaseValue createValue(Object)
  445. # DistributedDatabaseContact importContact(InetSocketAddress)
  446. #
  447. __az_methods__ = AzureusMethods([
  448. _method('addTransferHandler', ['DistributedDatabaseTransferType', 'DistributedDatabaseTransferHandler']),
  449. _method('delete', ['DistributedDatabaseListener', 'DistributedDatabaseKey']),
  450. _method('getStandardTransferType', ['int'], 'DistributedDatabaseTransferType'),
  451. _method('isAvailable', [], 'boolean'),
  452. _method('isExtendedUseAllowed', [], 'boolean'),
  453. _method('read', ['DistributedDatabaseListener', 'DistributedDatabaseKey', 'long']),
  454. _method('read', ['DistributedDatabaseListener', 'DistributedDatabaseKey', 'long', 'int']),
  455. _method('write', ['DistributedDatabaseListener', 'DistributedDatabaseKey', 'DistributedDatabaseValue[]']),
  456. _method('write', ['DistributedDatabaseListener', 'DistributedDatabaseKey', 'DistributedDatabaseValue']),
  457. ])
  458. class DistributedDatabaseContactDataType:
  459. def get_xml_type():
  460. return "DistributedDatabaseContact"
  461. get_xml_type = staticmethod(get_xml_type)
  462. #
  463. # The following methods are not available, because either the return
  464. # type is not supported or / and one or more parameters are not
  465. # remotely supported:
  466. #
  467. # InetSocketAddress getAddress()
  468. #
  469. __az_methods__ = AzureusMethods([
  470. _method('getName', [], 'String'),
  471. _method('isAlive', ['long'], 'boolean'),
  472. _method('isOrHasBeenLocal', [], 'boolean'),
  473. _method('openTunnel', [], 'boolean'),
  474. _method('read', ['DistributedDatabaseProgressListener', 'DistributedDatabaseTransferType', 'DistributedDatabaseKey', 'long'], 'DistributedDatabaseValue'),
  475. _method('write', ['DistributedDatabaseTransferType', 'DistributedDatabaseKey', 'DistributedDatabaseValue']),
  476. ])
  477. class DistributedDatabaseEventDataType:
  478. def get_xml_type():
  479. return "DistributedDatabaseEvent"
  480. get_xml_type = staticmethod(get_xml_type)
  481. __az_constants__ = {
  482. 'ET_OPERATION_COMPLETE': 4,
  483. 'ET_OPERATION_TIMEOUT': 5,
  484. 'ET_VALUE_DELETED': 3,
  485. 'ET_VALUE_READ': 2,
  486. 'ET_VALUE_WRITTEN': 1,
  487. }
  488. __az_methods__ = AzureusMethods([
  489. _method('getContact', [], 'DistributedDatabaseContact'),
  490. _method('getKey', [], 'DistributedDatabaseKey'),
  491. _method('getType', [], 'int'),
  492. _method('getValue', [], 'DistributedDatabaseValue'),
  493. ])
  494. class DistributedDatabaseKeyDataType:
  495. def get_xml_type():
  496. return "DistributedDatabaseKey"
  497. get_xml_type = staticmethod(get_xml_type)
  498. #
  499. # The following methods are not available, because either the return
  500. # type is not supported or / and one or more parameters are not
  501. # remotely supported:
  502. #
  503. # Object getKey()
  504. #
  505. __az_methods__ = AzureusMethods([
  506. _method('getDescription', [], 'String'),
  507. ])
  508. class DistributedDatabaseListenerDataType:
  509. def get_xml_type():
  510. return "DistributedDatabaseListener"
  511. get_xml_type = staticmethod(get_xml_type)
  512. __az_methods__ = AzureusMethods([
  513. _method('event', ['DistributedDatabaseEvent']),
  514. ])
  515. class DistributedDatabaseProgressListenerDataType:
  516. def get_xml_type():
  517. return "DistributedDatabaseProgressListener"
  518. get_xml_type = staticmethod(get_xml_type)
  519. __az_methods__ = AzureusMethods([
  520. _method('reportActivity', ['String']),
  521. _method('reportCompleteness', ['int']),
  522. _method('reportSize', ['long']),
  523. ])
  524. class DistributedDatabaseTransferHandlerDataType:
  525. def get_xml_type():
  526. return "DistributedDatabaseTransferHandler"
  527. get_xml_type = staticmethod(get_xml_type)
  528. __az_methods__ = AzureusMethods([
  529. _method('read', ['DistributedDatabaseContact', 'DistributedDatabaseTransferType', 'DistributedDatabaseKey'], 'DistributedDatabaseValue'),
  530. _method('write', ['DistributedDatabaseContact', 'DistributedDatabaseTransferType', 'DistributedDatabaseKey', 'DistributedDatabaseValue']),
  531. ])
  532. class DistributedDatabaseTransferTypeDataType:
  533. def get_xml_type():
  534. return "DistributedDatabaseTransferType"
  535. get_xml_type = staticmethod(get_xml_type)
  536. __az_constants__ = {
  537. 'ST_TORRENT': 1,
  538. }
  539. class DistributedDatabaseValueDataType:
  540. def get_xml_type():
  541. return "DistributedDatabaseValue"
  542. get_xml_type = staticmethod(get_xml_type)
  543. #
  544. # The following methods are not available, because either the return
  545. # type is not supported or / and one or more parameters are not
  546. # remotely supported:
  547. #
  548. # Object getValue(Class)
  549. #
  550. __az_methods__ = AzureusMethods([
  551. _method('getContact', [], 'DistributedDatabaseContact'),
  552. _method('getCreationTime', [], 'long'),
  553. _method('getVersion', [], 'long'),
  554. ])
  555. #------------------------------------------------------------------------------
  556. #
  557. # Classes for package:
  558. # org.gudy.azureus2.plugins.disk
  559. #
  560. #------------------------------------------------------------------------------
  561. class DiskManagerDataType:
  562. def get_xml_type():
  563. return "DiskManager"
  564. get_xml_type = staticmethod(get_xml_type)
  565. class DiskManagerChannelDataType:
  566. def get_xml_type():
  567. return "DiskManagerChannel"
  568. get_xml_type = staticmethod(get_xml_type)
  569. __az_methods__ = AzureusMethods([
  570. _method('createRequest', [], 'DiskManagerRequest'),
  571. _method('destroy'),
  572. ])
  573. class DiskManagerEventDataType:
  574. def get_xml_type():
  575. return "DiskManagerEvent"
  576. get_xml_type = staticmethod(get_xml_type)
  577. __az_constants__ = {
  578. 'EVENT_TYPE_BLOCKED': 3,
  579. 'EVENT_TYPE_FAILED': 2,
  580. 'EVENT_TYPE_SUCCESS': 1,
  581. }
  582. #
  583. # The following methods are not available, because either the return
  584. # type is not supported or / and one or more parameters are not
  585. # remotely supported:
  586. #
  587. # Throwable getFailure()
  588. #
  589. __az_methods__ = AzureusMethods([
  590. _method('getBuffer', [], 'PooledByteBuffer'),
  591. _method('getLength', [], 'int'),
  592. _method('getOffset', [], 'long'),
  593. _method('getRequest', [], 'DiskManagerRequest'),
  594. _method('getType', [], 'int'),
  595. ])
  596. class DiskManagerFileInfoDataType:
  597. def get_xml_type():
  598. return "DiskManagerFileInfo"
  599. get_xml_type = staticmethod(get_xml_type)
  600. __az_constants__ = {
  601. 'READ': 1,
  602. 'WRITE': 2,
  603. }
  604. __az_methods__ = AzureusMethods([
  605. _method('createChannel', [], 'DiskManagerChannel'),
  606. _method('getAccessMode', [], 'int'),
  607. _method('getDownload', [], 'Download'),
  608. _method('getDownloaded', [], 'long'),
  609. _method('getFile', [], 'File'),
  610. _method('getFirstPieceNumber', [], 'int'),
  611. _method('getIndex', [], 'int'),
  612. _method('getLength', [], 'long'),
  613. _method('getLink', [], 'File'),
  614. _method('getNumPieces', [], 'int'),
  615. _method('isDeleted', [], 'boolean'),
  616. _method('isPriority', [], 'boolean'),
  617. _method('isSkipped', [], 'boolean'),
  618. _method('setDeleted', ['boolean']),
  619. _method('setLink', ['File']),
  620. _method('setPriority', ['boolean']),
  621. _method('setSkipped', ['boolean']),
  622. ])
  623. __az_attributes__ = {
  624. 'access_mode': 'int',
  625. 'downloaded': 'long',
  626. 'file': 'File',
  627. 'first_piece_number': 'int',
  628. 'is_priority': 'boolean',
  629. 'is_skipped': 'boolean',
  630. 'num_pieces': 'int',
  631. }
  632. class DiskManagerListenerDataType:
  633. def get_xml_type():
  634. return "DiskManagerListener"
  635. get_xml_type = staticmethod(get_xml_type)
  636. __az_methods__ = AzureusMethods([
  637. _method('eventOccurred', ['DiskManagerEvent']),
  638. ])
  639. class DiskManagerRequestDataType:
  640. def get_xml_type():
  641. return "DiskManagerRequest"
  642. get_xml_type = staticmethod(get_xml_type)
  643. __az_constants__ = {
  644. 'REQUEST_READ': 1,
  645. }
  646. __az_methods__ = AzureusMethods([
  647. _method('addListener', ['DiskManagerListener']),
  648. _method('cancel'),
  649. _method('removeListener', ['DiskManagerListener']),
  650. _method('run'),
  651. _method('setLength', ['long']),
  652. _method('setOffset', ['long']),
  653. _method('setType', ['int']),
  654. ])
  655. #------------------------------------------------------------------------------
  656. #
  657. # Classes for package:
  658. # org.gudy.azureus2.plugins.download
  659. #
  660. #------------------------------------------------------------------------------
  661. class DownloadDataType:
  662. def get_xml_type():
  663. return "Download"
  664. get_xml_type = staticmethod(get_xml_type)
  665. __az_constants__ = {
  666. 'FLAG_ONLY_EVER_SEEDED': 1,
  667. 'FLAG_SCAN_INCOMPLETE_PIECES': 2,
  668. 'PR_HIGH_PRIORITY': 1,
  669. 'PR_LOW_PRIORITY': 2,
  670. 'ST_DOWNLOADING': 4,
  671. 'ST_ERROR': 8,
  672. 'ST_NAMES': [
  673. "",
  674. "Waiting",
  675. "Preparing",
  676. "Ready",
  677. "Downloading",
  678. "Seeding",
  679. "Stopping",
  680. "Stopped",
  681. "Error",
  682. "Queued",
  683. ],
  684. 'ST_PREPARING': 2,
  685. 'ST_QUEUED': 9,
  686. 'ST_READY': 3,
  687. 'ST_SEEDING': 5,
  688. 'ST_STOPPED': 7,
  689. 'ST_STOPPING': 6,
  690. 'ST_WAITING': 1,
  691. }
  692. #
  693. # The following methods are not available, because either the return
  694. # type is not supported or / and one or more parameters are not
  695. # remotely supported:
  696. #
  697. # Map getMapAttribute(TorrentAttribute)
  698. # void setMapAttribute(TorrentAttribute, Map)
  699. #
  700. __az_methods__ = AzureusMethods([
  701. _method('addDownloadWillBeRemovedListener', ['DownloadWillBeRemovedListener']),
  702. _method('addListener', ['DownloadListener']),
  703. _method('addPeerListener', ['DownloadPeerListener']),
  704. _method('addPropertyListener', ['DownloadPropertyListener']),
  705. _method('addTrackerListener', ['DownloadTrackerListener']),
  706. _method('canBeRemoved', [], 'boolean'),
  707. _method('getAttribute', ['TorrentAttribute'], 'String'),
  708. _method('getCategoryName', [], 'String'),
  709. _method('getCreationTime', [], 'long'),
  710. _method('getDiskManager', [], 'DiskManager'),
  711. _method('getDiskManagerFileInfo', [], 'DiskManagerFileInfo[]'),
  712. _method('getDownloadPeerId', [], 'byte[]'),
  713. _method('getErrorStateDetails', [], 'String'),
  714. _method('getFlag', ['long'], 'boolean'),
  715. _method('getIndex', [], 'int'),
  716. _method('getLastAnnounceResult', [], 'DownloadAnnounceResult'),
  717. _method('getLastScrapeResult', [], 'DownloadScrapeResult'),
  718. _method('getListAttribute', ['TorrentAttribute'], 'String[]'),
  719. _method('getMaximumDownloadKBPerSecond', [], 'int'),
  720. _method('getName', [], 'String'),
  721. _method('getPeerManager', [], 'PeerManager'),
  722. _method('getPosition', [], 'int'),
  723. _method('getPriority', [], 'int'),
  724. _method('getSavePath', [], 'String'),
  725. _method('getSeedingRank', [], 'int'),
  726. _method('getState', [], 'int'),
  727. _method('getStats', [], 'DownloadStats'),
  728. _method('getSubState', [], 'int'),
  729. _method('getTorrent', [], 'Torrent'),
  730. _method('getTorrentFileName', [], 'String'),
  731. _method('getUploadRateLimitBytesPerSecond', [], 'int'),
  732. _method('initialize'),
  733. _method('isChecking', [], 'boolean'),
  734. _method('isComplete', [], 'boolean'),
  735. _method('isCompleteExcludingDND', [], 'boolean'),
  736. _method('isForceStart', [], 'boolean'),
  737. _method('isMessagingEnabled', [], 'boolean'),
  738. _method('isPaused', [], 'boolean'),
  739. _method('isPersistent', [], 'boolean'),
  740. _method('isPriorityLocked', [], 'boolean'),
  741. _method('isStartStopLocked', [], 'boolean'),
  742. _method('moveDataFiles', ['File']),
  743. _method('moveDown'),
  744. _method('moveTo', ['int']),
  745. _method('moveTorrentFile', ['File']),
  746. _method('moveUp'),
  747. _method('recheckData'),
  748. _method('remove'),
  749. _method('remove', ['boolean', 'boolean']),
  750. _method('removeDownloadWillBeRemovedListener', ['DownloadWillBeRemovedListener']),
  751. _method('removeListener', ['DownloadListener']),
  752. _method('removePeerListener', ['DownloadPeerListener']),
  753. _method('removePropertyListener', ['DownloadPropertyListener']),
  754. _method('removeTrackerListener', ['DownloadTrackerListener']),
  755. _method('requestTrackerAnnounce'),
  756. _method('requestTrackerAnnounce', ['boolean']),
  757. _method('requestTrackerScrape', ['boolean']),
  758. _method('restart'),
  759. _method('setAnnounceResult', ['DownloadAnnounceResult']),
  760. _method('setAttribute', ['TorrentAttribute', 'String']),
  761. _method('setCategory', ['String']),
  762. _method('setForceStart', ['boolean']),
  763. _method('setMaximumDownloadKBPerSecond', ['int']),
  764. _method('setMessagingEnabled', ['boolean']),
  765. _method('setPosition', ['int']),
  766. _method('setPriority', ['int']),
  767. _method('setScrapeResult', ['DownloadScrapeResult']),
  768. _method('setSeedingRank', ['int']),
  769. _method('setSessionAuthenticator', ['SessionAuthenticator']),
  770. _method('setUploadRateLimitBytesPerSecond', ['int']),
  771. _method('start'),
  772. _method('stop'),
  773. _method('stopAndQueue'),
  774. ])
  775. __az_attributes__ = {
  776. 'announce_result': 'DownloadAnnounceResult',
  777. 'force_start': 'boolean',
  778. 'position': 'int',
  779. 'scrape_result': 'DownloadScrapeResult',
  780. 'stats': 'DownloadStats',
  781. 'torrent': 'Torrent',
  782. }
  783. class DownloadAnnounceResultDataType:
  784. def get_xml_type():
  785. return "DownloadAnnounceResult"
  786. get_xml_type = staticmethod(get_xml_type)
  787. __az_constants__ = {
  788. 'RT_ERROR': 2,
  789. 'RT_SUCCESS': 1,
  790. }
  791. #
  792. # The following methods are not available, because either the return
  793. # type is not supported or / and one or more parameters are not
  794. # remotely supported:
  795. #
  796. # Map getExtensions()
  797. #
  798. __az_methods__ = AzureusMethods([
  799. _method('getDownload', [], 'Download'),
  800. _method('getError', [], 'String'),
  801. _method('getNonSeedCount', [], 'int'),
  802. _method('getPeers', [], 'DownloadAnnounceResultPeer[]'),
  803. _method('getReportedPeerCount', [], 'int'),
  804. _method('getResponseType', [], 'int'),
  805. _method('getSeedCount', [], 'int'),
  806. _method('getTimeToWait', [], 'long'),
  807. _method('getURL', [], 'URL'),
  808. ])
  809. __az_attributes__ = {
  810. 'non_seed_count': 'int',
  811. 'seed_count': 'int',
  812. }
  813. class DownloadAnnounceResultPeerDataType:
  814. def get_xml_type():
  815. return "DownloadAnnounceResultPeer"
  816. get_xml_type = staticmethod(get_xml_type)
  817. __az_constants__ = {
  818. 'PROTOCOL_CRYPT': 2,
  819. 'PROTOCOL_NORMAL': 1,
  820. }
  821. __az_methods__ = AzureusMethods([
  822. _method('getAddress', [], 'String'),
  823. _method('getPeerID', [], 'byte[]'),
  824. _method('getPort', [], 'int'),
  825. _method('getProtocol', [], 'short'),
  826. _method('getSource', [], 'String'),
  827. ])
  828. class DownloadListenerDataType:
  829. def get_xml_type():
  830. return "DownloadListener"
  831. get_xml_type = staticmethod(get_xml_type)
  832. __az_methods__ = AzureusMethods([
  833. _method('positionChanged', ['Download', 'int', 'int']),
  834. _method('stateChanged', ['Download', 'int', 'int']),
  835. ])
  836. class DownloadManagerDataType:
  837. def get_xml_type():
  838. return "DownloadManager"
  839. get_xml_type = staticmethod(get_xml_type)
  840. __az_methods__ = AzureusMethods([
  841. _method('addDownload', ['Torrent', 'File', 'File'], 'Download'),
  842. _method('addDownload', ['URL', 'URL']),
  843. _method('addDownload', ['Torrent'], 'Download'),
  844. _method('addDownload', ['URL']),
  845. _method('addDownload', ['File']),
  846. _method('addDownloadWillBeAddedListener', ['DownloadWillBeAddedListener']),
  847. _method('addListener', ['DownloadManagerListener']),
  848. _method('addNonPersistentDownload', ['Torrent', 'File', 'File'], 'Download'),
  849. _method('getDownload', ['byte[]'], 'Download'),
  850. _method('getDownload', ['Torrent'], 'Download'),
  851. _method('getDownloads', [], 'Download[]'),
  852. _method('getDownloads', ['boolean'], 'Download[]'),
  853. _method('getStats', [], 'DownloadManagerStats'),
  854. _method('isSeedingOnly', [], 'boolean'),
  855. _method('pauseDownloads'),
  856. _method('removeDownloadWillBeAddedListener', ['DownloadWillBeAddedListener']),
  857. _method('removeListener', ['DownloadManagerListener']),
  858. _method('resumeDownloads'),
  859. _method('startAllDownloads'),
  860. _method('stopAllDownloads'),
  861. ])
  862. class DownloadManagerListenerDataType:
  863. def get_xml_type():
  864. return "DownloadManagerListener"
  865. get_xml_type = staticmethod(get_xml_type)
  866. __az_methods__ = AzureusMethods([
  867. _method('downloadAdded', ['Download']),
  868. _method('downloadRemoved', ['Download']),
  869. ])
  870. class DownloadManagerStatsDataType:
  871. def get_xml_type():
  872. return "DownloadManagerStats"
  873. get_xml_type = staticmethod(get_xml_type)
  874. __az_methods__ = AzureusMethods([
  875. _method('getDataBytesReceived', [], 'long'),
  876. _method('getDataBytesSent', [], 'long'),
  877. _method('getDataReceiveRate', [], 'int'),
  878. _method('getDataSendRate', [], 'int'),
  879. _method('getOverallDataBytesReceived', [], 'long'),
  880. _method('getOverallDataBytesSent', [], 'long'),
  881. _method('getProtocolBytesReceived', [], 'long'),
  882. _method('getProtocolBytesSent', [], 'long'),
  883. _method('getProtocolReceiveRate', [], 'int'),
  884. _method('getProtocolSendRate', [], 'int'),
  885. _method('getSessionUptimeSeconds', [], 'long'),
  886. ])
  887. class DownloadPeerListenerDataType:
  888. def get_xml_type():
  889. return "DownloadPeerListener"
  890. get_xml_type = staticmethod(get_xml_type)
  891. __az_methods__ = AzureusMethods([
  892. _method('peerManagerAdded', ['Download', 'PeerManager']),
  893. _method('peerManagerRemoved', ['Download', 'PeerManager']),
  894. ])
  895. class DownloadPropertyEventDataType:
  896. def get_xml_type():
  897. return "DownloadPropertyEvent"
  898. get_xml_type = staticmethod(get_xml_type)
  899. __az_constants__ = {
  900. 'PT_TORRENT_ATTRIBUTE_WILL_BE_READ': 2,
  901. 'PT_TORRENT_ATTRIBUTE_WRITTEN': 1,
  902. }
  903. #
  904. # The following methods are not available, because either the return
  905. # type is not supported or / and one or more parameters are not
  906. # remotely supported:
  907. #
  908. # Object getData()
  909. #
  910. __az_methods__ = AzureusMethods([
  911. _method('getType', [], 'int'),
  912. ])
  913. class DownloadPropertyListenerDataType:
  914. def get_xml_type():
  915. return "DownloadPropertyListener"
  916. get_xml_type = staticmethod(get_xml_type)
  917. __az_methods__ = AzureusMethods([
  918. _method('propertyChanged', ['Download', 'DownloadPropertyEvent']),
  919. ])
  920. class DownloadScrapeResultDataType:
  921. def get_xml_type():
  922. return "DownloadScrapeResult"
  923. get_xml_type = staticmethod(get_xml_type)
  924. __az_constants__ = {
  925. 'RT_ERROR': 2,
  926. 'RT_SUCCESS': 1,
  927. }
  928. __az_methods__ = AzureusMethods([
  929. _method('getDownload', [], 'Download'),
  930. _method('getNextScrapeStartTime', [], 'long'),
  931. _method('getNonSeedCount', [], 'int'),
  932. _method('getResponseType', [], 'int'),
  933. _method('getScrapeStartTime', [], 'long'),
  934. _method('getSeedCount', [], 'int'),
  935. _method('getStatus', [], 'String'),
  936. _method('getURL', [], 'URL'),
  937. _method('setNextScrapeStartTime', ['long']),
  938. ])
  939. __az_attributes__ = {
  940. 'non_seed_count': 'int',
  941. 'seed_count': 'int',
  942. }
  943. class DownloadStatsDataType:
  944. def get_xml_type():
  945. return "DownloadStats"
  946. get_xml_type = staticmethod(get_xml_type)
  947. __az_constants__ = {
  948. 'HEALTH_ERROR': 6,
  949. 'HEALTH_KO': 5,
  950. 'HEALTH_NO_REMOTE': 3,
  951. 'HEALTH_NO_TRACKER': 2,
  952. 'HEALTH_OK': 4,
  953. 'HEALTH_STOPPED': 1,
  954. }
  955. __az_methods__ = AzureusMethods([
  956. _method('getAvailability', [], 'float'),
  957. _method('getCompleted', [], 'int'),
  958. _method('getDiscarded', [], 'long'),
  959. _method('getDownloadAverage', [], 'long'),
  960. _method('getDownloadCompleted', ['boolean'], 'int'),
  961. _method('getDownloadDirectory', [], 'String'),
  962. _method('getDownloaded', [], 'long'),
  963. _method('getElapsedTime', [], 'String'),
  964. _method('getETA', [], 'String'),
  965. _method('getHashFails', [], 'long'),
  966. _method('getHealth', [], 'int'),
  967. _method('getSecondsDownloading', [], 'long'),
  968. _method('getSecondsOnlySeeding', [], 'long'),
  969. _method('getShareRatio', [], 'int'),
  970. _method('getStatus', ['boolean'], 'String'),
  971. _method('getStatus', [], 'String'),
  972. _method('getTargetFileOrDir', [], 'String'),
  973. _method('getTimeStarted', [], 'long'),
  974. _method('getTimeStartedSeeding', [], 'long'),
  975. _method('getTotalAverage', [], 'long'),
  976. _method('getTrackerStatus', [], 'String'),
  977. _method('getUploadAverage', [], 'long'),
  978. _method('getUploaded', [], 'long'),
  979. ])
  980. __az_attributes__ = {
  981. 'availability': 'float',
  982. 'completed': 'int',
  983. 'download_average': 'long',
  984. 'downloadCompletedLive': 'int',
  985. 'downloadCompletedStored': 'int',
  986. 'downloaded': 'long',
  987. 'eta': 'String',
  988. 'health': 'int',
  989. 'share_ratio': 'int',
  990. 'status': 'String',
  991. 'status_localised': 'String',
  992. 'upload_average': 'long',
  993. 'uploaded': 'long',
  994. }
  995. class DownloadTrackerListenerDataType:
  996. def get_xml_type():
  997. return "DownloadTrackerListener"
  998. get_xml_type = staticmethod(get_xml_type)
  999. __az_methods__ = AzureusMethods([
  1000. _method('announceResult', ['DownloadAnnounceResult']),
  1001. _method('scrapeResult', ['DownloadScrapeResult']),
  1002. ])
  1003. class DownloadWillBeAddedListenerDataType:
  1004. def get_xml_type():
  1005. return "DownloadWillBeAddedListener"
  1006. get_xml_type = staticmethod(get_xml_type)
  1007. __az_methods__ = AzureusMethods([
  1008. _method('initialised', ['Download']),
  1009. ])
  1010. class DownloadWillBeRemovedListenerDataType:
  1011. def get_xml_type():
  1012. return "DownloadWillBeRemovedListener"
  1013. get_xml_type = staticmethod(get_xml_type)
  1014. __az_methods__ = AzureusMethods([
  1015. _method('downloadWillBeRemoved', ['Download']),
  1016. ])
  1017. #------------------------------------------------------------------------------
  1018. #
  1019. # Classes for package:
  1020. # org.gudy.azureus2.plugins.download.session
  1021. #
  1022. #------------------------------------------------------------------------------
  1023. class SessionAuthenticatorDataType:
  1024. def get_xml_type():
  1025. return "SessionAuthenticator"
  1026. get_xml_type = staticmethod(get_xml_type)
  1027. #
  1028. # The following methods are not available, because either the return
  1029. # type is not supported or / and one or more parameters are not
  1030. # remotely supported:
  1031. #
  1032. # Map createSessionSyn(Peer)
  1033. # void verifySessionAck(Peer, Map)
  1034. # Map verifySessionSyn(Peer, Map)
  1035. #
  1036. __az_methods__ = AzureusMethods([
  1037. _method('decodeSessionData', ['Peer', 'PooledByteBuffer'], 'PooledByteBuffer'),
  1038. _method('encodeSessionData', ['Peer', 'PooledByteBuffer'], 'PooledByteBuffer'),
  1039. ])
  1040. #------------------------------------------------------------------------------
  1041. #
  1042. # Classes for package:
  1043. # org.gudy.azureus2.plugins.installer
  1044. #
  1045. #------------------------------------------------------------------------------
  1046. class FilePluginInstallerDataType:
  1047. def get_xml_type():
  1048. return "FilePluginInstaller"
  1049. get_xml_type = staticmethod(get_xml_type)
  1050. __az_methods__ = AzureusMethods([
  1051. _method('getAlreadyInstalledPlugin', [], 'PluginInterface'),
  1052. _method('getDescription', [], 'String'),
  1053. _method('getFile', [], 'File'),
  1054. _method('getId', [], 'String'),
  1055. _method('getInstaller', [], 'PluginInstaller'),
  1056. _method('getName', [], 'String'),
  1057. _method('getVersion', [], 'String'),
  1058. _method('install', ['boolean']),
  1059. _method('uninstall'),
  1060. ])
  1061. class InstallablePluginDataType:
  1062. def get_xml_type():
  1063. return "InstallablePlugin"
  1064. get_xml_type = staticmethod(get_xml_type)
  1065. __az_methods__ = AzureusMethods([
  1066. _method('getAlreadyInstalledPlugin', [], 'PluginInterface'),
  1067. _method('getDescription', [], 'String'),
  1068. _method('getId', [], 'String'),
  1069. _method('getInstaller', [], 'PluginInstaller'),
  1070. _method('getName', [], 'String'),
  1071. _method('getVersion', [], 'String'),
  1072. _method('install', ['boolean']),
  1073. _method('uninstall'),
  1074. ])
  1075. class PluginInstallerDataType:
  1076. def get_xml_type():
  1077. return "PluginInstaller"
  1078. get_xml_type = staticmethod(get_xml_type)
  1079. __az_methods__ = AzureusMethods([
  1080. _method('addListener', ['PluginInstallerListener']),
  1081. _method('getStandardPlugins', [], 'StandardPlugin[]'),
  1082. _method('install', ['InstallablePlugin[]', 'boolean']),
  1083. _method('installFromFile', ['File'], 'FilePluginInstaller'),
  1084. _method('removeListener', ['PluginInstallerListener']),
  1085. _method('requestInstall', ['String', 'InstallablePlugin']),
  1086. _method('uninstall', ['PluginInterface[]']),
  1087. _method('uninstall', ['PluginInterface']),
  1088. ])
  1089. class PluginInstallerListenerDataType:
  1090. def get_xml_type():
  1091. return "PluginInstallerListener"
  1092. get_xml_type = staticmethod(get_xml_type)
  1093. __az_methods__ = AzureusMethods([
  1094. _method('installRequest', ['String', 'InstallablePlugin'], 'boolean'),
  1095. ])
  1096. class StandardPluginDataType:
  1097. def get_xml_type():
  1098. return "StandardPlugin"
  1099. get_xml_type = staticmethod(get_xml_type)
  1100. __az_methods__ = AzureusMethods([
  1101. _method('getAlreadyInstalledPlugin', [], 'PluginInterface'),
  1102. _method('getDescription', [], 'String'),
  1103. _method('getId', [], 'String'),
  1104. _method('getInstaller', [], 'PluginInstaller'),
  1105. _method('getName', [], 'String'),
  1106. _method('getVersion', [], 'String'),
  1107. _method('install', ['boolean']),
  1108. _method('uninstall'),
  1109. ])
  1110. #------------------------------------------------------------------------------
  1111. #
  1112. # Classes for package:
  1113. # org.gudy.azureus2.plugins.ipc
  1114. #
  1115. #------------------------------------------------------------------------------
  1116. class IPCInterfaceDataType:
  1117. def get_xml_type():
  1118. return "IPCInterface"
  1119. get_xml_type = staticmethod(get_xml_type)
  1120. #
  1121. # The following methods are not available, because either the return
  1122. # type is not supported or / and one or more parameters are not
  1123. # remotely supported:
  1124. #
  1125. # Object invoke(String, Object[])
  1126. #
  1127. #------------------------------------------------------------------------------
  1128. #
  1129. # Classes for package:
  1130. # org.gudy.azureus2.plugins.ipfilter
  1131. #
  1132. #------------------------------------------------------------------------------
  1133. class IPBlockedDataType:
  1134. def get_xml_type():
  1135. return "IPBlocked"
  1136. get_xml_type = staticmethod(get_xml_type)
  1137. __az_methods__ = AzureusMethods([
  1138. _method('getBlockedIP', [], 'String'),
  1139. _method('getBlockedTime', [], 'long'),
  1140. _method('getBlockedTorrentName', [], 'String'),
  1141. _method('getBlockingRange', [], 'IPRange'),
  1142. ])
  1143. class IPFilterDataType:
  1144. def get_xml_type():
  1145. return "IPFilter"
  1146. get_xml_type = staticmethod(get_xml_type)
  1147. __az_methods__ = AzureusMethods([
  1148. _method('addRange', ['IPRange']),
  1149. _method('block', ['String']),
  1150. _method('createAndAddRange', ['String', 'String', 'String', 'boolean'], 'IPRange'),
  1151. _method('createRange', ['boolean'], 'IPRange'),
  1152. _method('getBlockedIPs', [], 'IPBlocked[]'),
  1153. _method('getFile', [], 'File'),
  1154. _method('getInRangeAddressesAreAllowed', [], 'boolean'),
  1155. _method('getLastUpdateTime', [], 'long'),
  1156. _method('getNumberOfBlockedIPs', [], 'int'),
  1157. _method('getNumberOfRanges', [], 'int'),
  1158. _method('getRanges', [], 'IPRange[]'),
  1159. _method('isEnabled', [], 'boolean'),
  1160. _method('isInRange', ['String'], 'boolean'),
  1161. _method('markAsUpToDate'),
  1162. _method('reload'),
  1163. _method('removeRange', ['IPRange']),
  1164. _method('save'),
  1165. _method('setEnabled', ['boolean']),
  1166. _method('setInRangeAddressesAreAllowed', ['boolean']),
  1167. ])
  1168. __az_attributes__ = {
  1169. 'last_update_time': 'long',
  1170. 'number_of_blocked_ips': 'int',
  1171. 'number_of_ranges': 'int',
  1172. }
  1173. class IPRangeDataType:
  1174. def get_xml_type():
  1175. return "IPRange"
  1176. get_xml_type = staticmethod(get_xml_type)
  1177. #
  1178. # The following methods are not available, because either the return
  1179. # type is not supported or / and one or more parameters are not
  1180. # remotely supported:
  1181. #
  1182. # int compareTo(Object)
  1183. #
  1184. __az_methods__ = AzureusMethods([
  1185. _method('checkValid'),
  1186. _method('delete'),
  1187. _method('getDescription', [], 'String'),
  1188. _method('getEndIP', [], 'String'),
  1189. _method('getStartIP', [], 'String'),
  1190. _method('isInRange', ['String'], 'boolean'),
  1191. _method('isSessionOnly', [], 'boolean'),
  1192. _method('isValid', [], 'boolean'),
  1193. _method('setDescription', ['String']),
  1194. _method('setEndIP', ['String']),
  1195. _method('setSessionOnly', ['boolean']),
  1196. _method('setStartIP', ['String']),
  1197. ])
  1198. __az_attributes__ = {
  1199. 'description': 'String',
  1200. 'end_ip': 'String',
  1201. 'start_ip': 'String',
  1202. }
  1203. #------------------------------------------------------------------------------
  1204. #
  1205. # Classes for package:
  1206. # org.gudy.azureus2.plugins.logging
  1207. #
  1208. #------------------------------------------------------------------------------
  1209. class LoggerDataType:
  1210. def get_xml_type():
  1211. return "Logger"
  1212. get_xml_type = staticmethod(get_xml_type)
  1213. #
  1214. # The following methods are not available, because either the return
  1215. # type is not supported or / and one or more parameters are not
  1216. # remotely supported:
  1217. #
  1218. # void addFileLoggingListener(FileLoggerAdapter)
  1219. # void removeFileLoggingListener(FileLoggerAdapter)
  1220. #
  1221. __az_methods__ = AzureusMethods([
  1222. _method('addAlertListener', ['LoggerAlertListener']),
  1223. _method('getChannel', ['String'], 'LoggerChannel'),
  1224. _method('getChannels', [], 'LoggerChannel[]'),
  1225. _method('getNullChannel', ['String'], 'LoggerChannel'),
  1226. _method('getPluginInterface', [], 'PluginInterface'),
  1227. _method('getTimeStampedChannel', ['String'], 'LoggerChannel'),
  1228. _method('removeAlertListener', ['LoggerAlertListener']),
  1229. ])
  1230. class LoggerAlertListenerDataType:
  1231. def get_xml_type():
  1232. return "LoggerAlertListener"
  1233. get_xml_type = staticmethod(get_xml_type)
  1234. #
  1235. # The following methods are not available, because either the return
  1236. # type is not supported or / and one or more parameters are not
  1237. # remotely supported:
  1238. #
  1239. # void alertLogged(String, Throwable, boolean)
  1240. #
  1241. __az_methods__ = AzureusMethods([
  1242. _method('alertLogged', ['int', 'String', 'boolean']),
  1243. ])
  1244. class LoggerChannelDataType:
  1245. def get_xml_type():
  1246. return "LoggerChannel"
  1247. get_xml_type = staticmethod(get_xml_type)
  1248. __az_constants__ = {
  1249. 'LT_ERROR': 3,
  1250. 'LT_INFORMATION': 1,
  1251. 'LT_WARNING': 2,
  1252. }
  1253. #
  1254. # The following methods are not available, because either the return
  1255. # type is not supported or / and one or more parameters are not
  1256. # remotely supported:
  1257. #
  1258. # void log(Object, int, String)
  1259. # void log(Object[], int, String)
  1260. # void log(String, Throwable)
  1261. # void log(Throwable)
  1262. # void log(Object[], String, Throwable)
  1263. # void log(Object, String, Throwable)
  1264. # void logAlert(String, Throwable)
  1265. # void logAlertRepeatable(String, Throwable)
  1266. #
  1267. __az_methods__ = AzureusMethods([
  1268. _method('addListener', ['LoggerChannelListener']),
  1269. _method('getLogger', [], 'Logger'),
  1270. _method('getName', [], 'String'),
  1271. _method('isEnabled', [], 'boolean'),
  1272. _method('log', ['String']),
  1273. _method('log', ['int', 'String']),
  1274. _method('logAlert', ['int', 'String']),
  1275. _method('logAlertRepeatable', ['int', 'String']),
  1276. _method('removeListener', ['LoggerChannelListener']),
  1277. _method('setDiagnostic'),
  1278. ])
  1279. __az_attributes__ = {
  1280. 'enabled': 'boolean',
  1281. 'name': 'String',
  1282. }
  1283. class LoggerChannelListenerDataType:
  1284. def get_xml_type():
  1285. return "LoggerChannelListener"
  1286. get_xml_type = staticmethod(get_xml_type)
  1287. #
  1288. # The following methods are not available, because either the return
  1289. # type is not supported or / and one or more parameters are not
  1290. # remotely supported:
  1291. #
  1292. # void messageLogged(String, Throwable)
  1293. #
  1294. __az_methods__ = AzureusMethods([
  1295. _method('messageLogged', ['int', 'String']),
  1296. ])
  1297. #------------------------------------------------------------------------------
  1298. #
  1299. # Classes for package:
  1300. # org.gudy.azureus2.plugins.messaging
  1301. #
  1302. #------------------------------------------------------------------------------
  1303. class MessageDataType:
  1304. def get_xml_type():
  1305. return "Message"
  1306. get_xml_type = staticmethod(get_xml_type)
  1307. __az_constants__ = {
  1308. 'TYPE_DATA_PAYLOAD': 1,
  1309. 'TYPE_PROTOCOL_PAYLOAD': 0,
  1310. }
  1311. #
  1312. # The following methods are not available, because either the return
  1313. # type is not supported or / and one or more parameters are not
  1314. # remotely supported:
  1315. #
  1316. # Message create(ByteBuffer)
  1317. # ByteBuffer[] getPayload()
  1318. #
  1319. __az_methods__ = AzureusMethods([
  1320. _method('destroy'),
  1321. _method('getDescription', [], 'String'),
  1322. _method('getID', [], 'String'),
  1323. _method('getType', [], 'int'),
  1324. ])
  1325. class MessageManagerDataType:
  1326. def get_xml_type():
  1327. return "MessageManager"
  1328. get_xml_type = staticmethod(get_xml_type)
  1329. __az_methods__ = AzureusMethods([
  1330. _method('cancelCompatiblePeersLocation', ['MessageManagerListener']),
  1331. _method('deregisterMessageType', ['Message']),
  1332. _method('locateCompatiblePeers', ['PluginInterface', 'Message', 'MessageManagerListener']),
  1333. _method('registerMessageType', ['Message']),
  1334. ])
  1335. class MessageManagerListenerDataType:
  1336. def get_xml_type():
  1337. return "MessageManagerListener"
  1338. get_xml_type = staticmethod(get_xml_type)
  1339. __az_methods__ = AzureusMethods([
  1340. _method('compatiblePeerFound', ['Download', 'Peer', 'Message']),
  1341. _method('peerRemoved', ['Download', 'Peer']),
  1342. ])
  1343. class MessageStreamDecoderDataType:
  1344. def get_xml_type():
  1345. return "MessageStreamDecoder"
  1346. get_xml_type = staticmethod(get_xml_type)
  1347. #
  1348. # The following methods are not available, because either the return
  1349. # type is not supported or / and one or more parameters are not
  1350. # remotely supported:
  1351. #
  1352. # ByteBuffer destroy()
  1353. #
  1354. __az_methods__ = AzureusMethods([
  1355. _method('getDataBytesDecoded', [], 'int'),
  1356. _method('getProtocolBytesDecoded', [], 'int'),
  1357. _method('pauseDecoding'),
  1358. _method('performStreamDecode', ['Transport', 'int'], 'int'),
  1359. _method('removeDecodedMessages', [], 'Message[]'),
  1360. _method('resumeDecoding'),
  1361. ])
  1362. class MessageStreamEncoderDataType:
  1363. def get_xml_type():
  1364. return "MessageStreamEncoder"
  1365. get_xml_type = staticmethod(get_xml_type)
  1366. __az_methods__ = AzureusMethods([
  1367. _method('encodeMessage', ['Message'], 'RawMessage'),
  1368. ])
  1369. #------------------------------------------------------------------------------
  1370. #
  1371. # Classes for package:
  1372. # org.gudy.azureus2.plugins.network
  1373. #
  1374. #------------------------------------------------------------------------------
  1375. class ConnectionDataType:
  1376. def get_xml_type():
  1377. return "Connection"
  1378. get_xml_type = staticmethod(get_xml_type)
  1379. __az_methods__ = AzureusMethods([
  1380. _method('close'),
  1381. _method('connect', ['ConnectionListener']),
  1382. _method('getIncomingMessageQueue', [], 'IncomingMessageQueue'),
  1383. _method('getOutgoingMessageQueue', [], 'OutgoingMessageQueue'),
  1384. _method('startMessageProcessing'),
  1385. ])
  1386. class ConnectionListenerDataType:
  1387. def get_xml_type():
  1388. return "ConnectionListener"
  1389. get_xml_type = staticmethod(get_xml_type)
  1390. #
  1391. # The following methods are not available, because either the return
  1392. # type is not supported or / and one or more parameters are not
  1393. # remotely supported:
  1394. #
  1395. # void connectFailure(Throwable)
  1396. # void exceptionThrown(Throwable)
  1397. #
  1398. __az_methods__ = AzureusMethods([
  1399. _method('connectStarted'),
  1400. _method('connectSuccess'),
  1401. ])
  1402. class ConnectionManagerDataType:
  1403. def get_xml_type():
  1404. return "ConnectionManager"
  1405. get_xml_type = staticmethod(get_xml_type)
  1406. __az_constants__ = {
  1407. 'NAT_BAD': 3,
  1408. 'NAT_OK': 1,
  1409. 'NAT_PROBABLY_OK': 2,
  1410. 'NAT_UNKNOWN': 0,
  1411. }
  1412. #
  1413. # The following methods are not available, because either the return
  1414. # type is not supported or / and one or more parameters are not
  1415. # remotely supported:
  1416. #
  1417. # Connection createConnection(InetSocketAddress, MessageStreamEncoder, MessageStreamDecoder)
  1418. #
  1419. __az_methods__ = AzureusMethods([
  1420. _method('getNATStatus', [], 'int'),
  1421. ])
  1422. class IncomingMessageQueueDataType:
  1423. def get_xml_type():
  1424. return "IncomingMessageQueue"
  1425. get_xml_type = staticmethod(get_xml_type)
  1426. __az_methods__ = AzureusMethods([
  1427. _method('deregisterListener', ['IncomingMessageQueueListener']),
  1428. _method('getPercentDoneOfCurrentMessage', [], 'int'),
  1429. _method('notifyOfExternalReceive', ['Message']),
  1430. _method('registerListener', ['IncomingMessageQueueListener']),
  1431. _method('setDecoder', ['MessageStreamDecoder']),
  1432. ])
  1433. class IncomingMessageQueueListenerDataType:
  1434. def get_xml_type():
  1435. return "IncomingMessageQueueListener"
  1436. get_xml_type = staticmethod(get_xml_type)
  1437. __az_methods__ = AzureusMethods([
  1438. _method('bytesReceived', ['int']),
  1439. _method('messageReceived', ['Message'], 'boolean'),
  1440. ])
  1441. class OutgoingMessageQueueDataType:
  1442. def get_xml_type():
  1443. return "OutgoingMessageQueue"
  1444. get_xml_type = staticmethod(get_xml_type)
  1445. __az_methods__ = AzureusMethods([
  1446. _method('deregisterListener', ['OutgoingMessageQueueListener']),
  1447. _method('getPercentDoneOfCurrentMessage', [], 'int'),
  1448. _method('notifyOfExternalSend', ['Message']),
  1449. _method('registerListener', ['OutgoingMessageQueueListener']),
  1450. _method('sendMessage', ['Message']),
  1451. _method('setEncoder', ['MessageStreamEncoder']),
  1452. ])
  1453. class OutgoingMessageQueueListenerDataType:
  1454. def get_xml_type():
  1455. return "OutgoingMessageQueueListener"
  1456. get_xml_type = staticmethod(get_xml_type)
  1457. __az_methods__ = AzureusMethods([
  1458. _method('bytesSent', ['int']),
  1459. _method('messageAdded', ['Message'], 'boolean'),
  1460. _method('messageSent', ['Message']),
  1461. ])
  1462. class RawMessageDataType:
  1463. def get_xml_type():
  1464. return "RawMessage"
  1465. get_xml_type = staticmethod(get_xml_type)
  1466. __az_constants__ = {
  1467. 'TYPE_DATA_PAYLOAD': 1,
  1468. 'TYPE_PROTOCOL_PAYLOAD': 0,
  1469. }
  1470. #
  1471. # The following methods are not available, because either the return
  1472. # type is not supported or / and one or more parameters are not
  1473. # remotely supported:
  1474. #
  1475. # Message create(ByteBuffer)
  1476. # ByteBuffer[] getPayload()
  1477. # ByteBuffer[] getRawPayload()
  1478. #
  1479. __az_methods__ = AzureusMethods([
  1480. _method('destroy'),
  1481. _method('getDescription', [], 'String'),
  1482. _method('getID', [], 'String'),
  1483. _method('getOriginalMessage', [], 'Message'),
  1484. _method('getType', [], 'int'),
  1485. ])
  1486. class TransportDataType:
  1487. def get_xml_type():
  1488. return "Transport"
  1489. get_xml_type = staticmethod(get_xml_type)
  1490. #
  1491. # The following methods are not available, because either the return
  1492. # type is not supported or / and one or more parameters are not
  1493. # remotely supported:
  1494. #
  1495. # long read(ByteBuffer[], int, int)
  1496. # long write(ByteBuffer[], int, int)
  1497. #
  1498. #------------------------------------------------------------------------------
  1499. #
  1500. # Classes for package:
  1501. # org.gudy.azureus2.plugins.peers
  1502. #
  1503. #------------------------------------------------------------------------------
  1504. class PeerDataType:
  1505. def get_xml_type():
  1506. return "Peer"
  1507. get_xml_type = staticmethod(get_xml_type)
  1508. __az_constants__ = {
  1509. 'CLOSING': 40,
  1510. 'CONNECTING': 10,
  1511. 'DISCONNECTED': 50,
  1512. 'HANDSHAKING': 20,
  1513. 'TRANSFERING': 30,
  1514. }
  1515. #
  1516. # The following methods are not available, because either the return
  1517. # type is not supported or / and one or more parameters are not
  1518. # remotely supported:
  1519. #
  1520. # List getExpiredRequests()
  1521. # Map getProperties()
  1522. # List getRequests()
  1523. # Object getUserData(Object)
  1524. # void setUserData(Object, Object)
  1525. #
  1526. __az_methods__ = AzureusMethods([
  1527. _method('addListener', ['PeerListener2']),
  1528. _method('addListener', ['PeerListener']),
  1529. _method('addRequest', ['PeerReadRequest'], 'boolean'),
  1530. _method('cancelRequest', ['PeerReadRequest']),
  1531. _method('close', ['String', 'boolean', 'boolean']),
  1532. _method('getAvailable', [], 'boolean[]'),
  1533. _method('getClient', [], 'String'),
  1534. _method('getConnection', [], 'Connection'),
  1535. _method('getId', [], 'byte[]'),
  1536. _method('getIp', [], 'String'),
  1537. _method('getManager', [], 'PeerManager'),
  1538. _method('getNumberOfRequests', [], 'int'),
  1539. _method('getPercentDone', [], 'int'),
  1540. _method('getPercentDoneInThousandNotation', [], 'int'),
  1541. _method('getPercentDoneOfCurrentIncomingRequest', [], 'int'),
  1542. _method('getPercentDoneOfCurrentOutgoingRequest', [], 'int'),
  1543. _method('getPort', [], 'int'),
  1544. _method('getSnubbedTime', [], 'long'),
  1545. _method('getState', [], 'int'),
  1546. _method('getStats', [], 'PeerStats'),
  1547. _method('getSupportedMessages', [], 'Message[]'),
  1548. _method('getTCPListenPort', [], 'int'),
  1549. _method('getUDPListenPort', [], 'int'),
  1550. _method('isChoked', [], 'boolean'),
  1551. _method('isChoking', [], 'boolean'),
  1552. _method('isDownloadPossible', [], 'boolean'),
  1553. _method('isIncoming', [], 'boolean'),
  1554. _method('isInterested', [], 'boolean'),
  1555. _method('isInteresting', [], 'boolean'),
  1556. _method('isOptimisticUnchoke', [], 'boolean'),
  1557. _method('isPieceAvailable', ['int'], 'boolean'),
  1558. _method('isSeed', [], 'boolean'),
  1559. _method('isSnubbed', [], 'boolean'),
  1560. _method('isTransferAvailable', [], 'boolean'),
  1561. _method('removeListener', ['PeerListener2']),
  1562. _method('removeListener', ['PeerListener']),
  1563. _method('setOptimisticUnchoke', ['boolean']),
  1564. _method('setSnubbed', ['boolean']),
  1565. _method('supportsMessaging', [], 'boolean'),
  1566. ])
  1567. __az_attributes__ = {
  1568. 'ip': 'String',
  1569. 'port': 'int',
  1570. }
  1571. class PeerEventDataType:
  1572. def get_xml_type():
  1573. return "PeerEvent"
  1574. get_xml_type = staticmethod(get_xml_type)
  1575. __az_constants__ = {
  1576. 'ET_ADD_AVAILABILITY': 3,
  1577. 'ET_BAD_CHUNK': 2,
  1578. 'ET_REMOVE_AVAILABILITY': 4,
  1579. 'ET_STATE_CHANGED': 1,
  1580. }
  1581. #
  1582. # The following methods are not available, because either the return
  1583. # type is not supported or / and one or more parameters are not
  1584. # remotely supported:
  1585. #
  1586. # Object getData()
  1587. #
  1588. __az_methods__ = AzureusMethods([
  1589. _method('getType', [], 'int'),
  1590. ])
  1591. class PeerListenerDataType:
  1592. def get_xml_type():
  1593. return "PeerListener"
  1594. get_xml_type = staticmethod(get_xml_type)
  1595. __az_methods__ = AzureusMethods([
  1596. _method('sentBadChunk', ['int', 'int']),
  1597. _method('stateChanged', ['int']),
  1598. ])
  1599. class PeerListener2DataType:
  1600. def get_xml_type():
  1601. return "PeerListener2"
  1602. get_xml_type = staticmethod(get_xml_type)
  1603. __az_methods__ = AzureusMethods([
  1604. _method('eventOccurred', ['PeerEvent']),
  1605. ])
  1606. class PeerManagerDataType:
  1607. def get_xml_type():
  1608. return "PeerManager"
  1609. get_xml_type = staticmethod(get_xml_type)
  1610. __az_methods__ = AzureusMethods([
  1611. _method('addListener', ['PeerManagerListener']),
  1612. _method('addPeer', ['String', 'int']),
  1613. _method('addPeer', ['Peer']),
  1614. _method('addPeer', ['String', 'int', 'boolean']),
  1615. _method('createPeerStats', ['Peer'], 'PeerStats'),
  1616. _method('getDiskManager', [], 'DiskManager'),
  1617. _method('getDownload', [], 'Download'),
  1618. _method('getPeers', [], 'Peer[]'),
  1619. _method('getStats', [], 'PeerManagerStats'),
  1620. _method('isSeeding', [], 'boolean'),
  1621. _method('isSuperSeeding', [], 'boolean'),
  1622. _method('removeListener', ['PeerManagerListener']),
  1623. _method('removePeer', ['Peer']),
  1624. _method('requestCancelled', ['PeerReadRequest', 'Peer']),
  1625. _method('requestComplete', ['PeerReadRequest', 'PooledByteBuffer', 'Peer']),
  1626. ])
  1627. class PeerManagerListenerDataType:
  1628. def get_xml_type():
  1629. return "PeerManagerListener"
  1630. get_xml_type = staticmethod(get_xml_type)
  1631. __az_methods__ = AzureusMethods([
  1632. _method('peerAdded', ['PeerManager', 'Peer']),
  1633. _method('peerRemoved', ['PeerManager', 'Peer']),
  1634. ])
  1635. class PeerManagerStatsDataType:
  1636. def get_xml_type():
  1637. return "PeerManagerStats"
  1638. get_xml_type = staticmethod(get_xml_type)
  1639. __az_methods__ = AzureusMethods([
  1640. _method('getConnectedLeechers', [], 'int'),
  1641. _method('getConnectedSeeds', [], 'int'),
  1642. _method('getDiscarded', [], 'long'),
  1643. _method('getDownloadAverage', [], 'long'),
  1644. _method('getDownloaded', [], 'long'),
  1645. _method('getHashFailBytes', [], 'long'),
  1646. _method('getUploadAverage', [], 'long'),
  1647. _method('getUploaded', [], 'long'),
  1648. ])
  1649. class PeerReadRequestDataType:
  1650. def get_xml_type():
  1651. return "PeerReadRequest"
  1652. get_xml_type = staticmethod(get_xml_type)
  1653. __az_methods__ = AzureusMethods([
  1654. _method('cancel'),
  1655. _method('getLength', [], 'int'),
  1656. _method('getOffset', [], 'int'),
  1657. _method('getPieceNumber', [], 'int'),
  1658. _method('isCancelled', [], 'boolean'),
  1659. _method('isExpired', [], 'boolean'),
  1660. _method('resetTime', ['long']),
  1661. ])
  1662. class PeerStatsDataType:
  1663. def get_xml_type():
  1664. return "PeerStats"
  1665. get_xml_type = staticmethod(get_xml_type)
  1666. __az_methods__ = AzureusMethods([
  1667. _method('discarded', ['int']),
  1668. _method('getDownloadAverage', [], 'int'),
  1669. _method('getReception', [], 'int'),
  1670. _method('getStatisticSentAverage', [], 'int'),
  1671. _method('getTimeSinceConnectionEstablished', [], 'long'),
  1672. _method('getTotalAverage', [], 'int'),
  1673. _method('getTotalDiscarded', [], 'long'),
  1674. _method('getTotalReceived', [], 'long'),
  1675. _method('getTotalSent', [], 'long'),
  1676. _method('getUploadAverage', [], 'int'),
  1677. _method('received', ['int']),
  1678. ])
  1679. #------------------------------------------------------------------------------
  1680. #
  1681. # Classes for package:
  1682. # org.gudy.azureus2.plugins.peers.protocol
  1683. #
  1684. #------------------------------------------------------------------------------
  1685. class PeerProtocolBTDataType:
  1686. def get_xml_type():
  1687. return "PeerProtocolBT"
  1688. get_xml_type = staticmethod(get_xml_type)
  1689. #
  1690. # The following constants are not defined here, because their types
  1691. # are not available in DOPAL:
  1692. #
  1693. # "BT_BITFIELD" (has type "byte)"
  1694. # "BT_CANCEL" (has type "byte)"
  1695. # "BT_CHOKED" (has type "byte)"
  1696. # "BT_HAVE" (has type "byte)"
  1697. # "BT_INTERESTED" (has type "byte)"
  1698. # "BT_PIECE" (has type "byte)"
  1699. # "BT_REQUEST" (has type "byte)"
  1700. # "BT_UNCHOKED" (has type "byte)"
  1701. # "BT_UNINTERESTED" (has type "byte)"
  1702. #
  1703. class PeerProtocolExtensionHandlerDataType:
  1704. def get_xml_type():
  1705. return "PeerProtocolExtensionHandler"
  1706. get_xml_type = staticmethod(get_xml_type)
  1707. #
  1708. # The following methods are not available, because either the return
  1709. # type is not supported or / and one or more parameters are not
  1710. # remotely supported:
  1711. #
  1712. # Peer[] handleExtension(PeerManager, Map)
  1713. #
  1714. class PeerProtocolManagerDataType:
  1715. def get_xml_type():
  1716. return "PeerProtocolManager"
  1717. get_xml_type = staticmethod(get_xml_type)
  1718. __az_methods__ = AzureusMethods([
  1719. _method('registerExtensionHandler', ['String', 'PeerProtocolExtensionHandler']),
  1720. ])
  1721. #------------------------------------------------------------------------------
  1722. #
  1723. # Classes for package:
  1724. # org.gudy.azureus2.plugins.platform
  1725. #
  1726. #------------------------------------------------------------------------------
  1727. class PlatformManagerDataType:
  1728. def get_xml_type():
  1729. return "PlatformManager"
  1730. get_xml_type = staticmethod(get_xml_type)
  1731. __az_constants__ = {
  1732. 'LOC_MUSIC': 2,
  1733. 'LOC_USER_DATA': 1,
  1734. }
  1735. __az_methods__ = AzureusMethods([
  1736. _method('getLocation', ['long'], 'File'),
  1737. _method('isAdditionalFileTypeRegistered', ['String', 'String'], 'boolean'),
  1738. _method('registerAdditionalFileType', ['String', 'String', 'String', 'String']),
  1739. _method('showFile', ['String']),
  1740. _method('unregisterAdditionalFileType', ['String', 'String']),
  1741. ])
  1742. #------------------------------------------------------------------------------
  1743. #
  1744. # Classes for package:
  1745. # org.gudy.azureus2.plugins.sharing
  1746. #
  1747. #------------------------------------------------------------------------------
  1748. class ShareItemDataType:
  1749. def get_xml_type():
  1750. return "ShareItem"
  1751. get_xml_type = staticmethod(get_xml_type)
  1752. __az_methods__ = AzureusMethods([
  1753. _method('getTorrent', [], 'Torrent'),
  1754. _method('getTorrentFile', [], 'File'),
  1755. ])
  1756. class ShareManagerDataType:
  1757. def get_xml_type():
  1758. return "ShareManager"
  1759. get_xml_type = staticmethod(get_xml_type)
  1760. __az_methods__ = AzureusMethods([
  1761. _method('addDir', ['File'], 'ShareResourceDir'),
  1762. _method('addDirContents', ['File', 'boolean'], 'ShareResourceDirContents'),
  1763. _method('addFile', ['File'], 'ShareResourceFile'),
  1764. _method('addListener', ['ShareManagerListener']),
  1765. _method('cancelOperation'),
  1766. _method('getShare', ['File'], 'ShareResource'),
  1767. _method('getShares', [], 'ShareResource[]'),
  1768. _method('initialise'),
  1769. _method('isInitialising', [], 'boolean'),
  1770. _method('removeListener', ['ShareManagerListener']),
  1771. ])
  1772. class ShareManagerListenerDataType:
  1773. def get_xml_type():
  1774. return "ShareManagerListener"
  1775. get_xml_type = staticmethod(get_xml_type)
  1776. __az_methods__ = AzureusMethods([
  1777. _method('reportCurrentTask', ['String']),
  1778. _method('reportProgress', ['int']),
  1779. _method('resourceAdded', ['ShareResource']),
  1780. _method('resourceDeleted', ['ShareResource']),
  1781. _method('resourceModified', ['ShareResource']),
  1782. ])
  1783. class ShareResourceDataType:
  1784. def get_xml_type():
  1785. return "ShareResource"
  1786. get_xml_type = staticmethod(get_xml_type)
  1787. __az_constants__ = {
  1788. 'ST_DIR': 2,
  1789. 'ST_DIR_CONTENTS': 3,
  1790. 'ST_FILE': 1,
  1791. }
  1792. __az_methods__ = AzureusMethods([
  1793. _method('addChangeListener', ['ShareResourceListener']),
  1794. _method('addDeletionListener', ['ShareResourceWillBeDeletedListener']),
  1795. _method('canBeDeleted', [], 'boolean'),
  1796. _method('delete'),
  1797. _method('getAttribute', ['TorrentAttribute'], 'String'),
  1798. _method('getAttributes', [], 'TorrentAttribute[]'),
  1799. _method('getName', [], 'String'),
  1800. _method('getParent', [], 'ShareResourceDirContents'),
  1801. _method('getType', [], 'int'),
  1802. _method('removeChangeListener', ['ShareResourceListener']),
  1803. _method('removeDeletionListener', ['ShareResourceWillBeDeletedListener']),
  1804. _method('setAttribute', ['TorrentAttribute', 'String']),
  1805. ])
  1806. class ShareResourceDirDataType:
  1807. def get_xml_type():
  1808. return "ShareResourceDir"
  1809. get_xml_type = staticmethod(get_xml_type)
  1810. __az_constants__ = {
  1811. 'ST_DIR': 2,
  1812. 'ST_DIR_CONTENTS': 3,
  1813. 'ST_FILE': 1,
  1814. }
  1815. __az_methods__ = AzureusMethods([
  1816. _method('addChangeListener', ['ShareResourceListener']),
  1817. _method('addDeletionListener', ['ShareResourceWillBeDeletedListener']),
  1818. _method('canBeDeleted', [], 'boolean'),
  1819. _method('delete'),
  1820. _method('getAttribute', ['TorrentAttribute'], 'String'),
  1821. _method('getAttributes', [], 'TorrentAttribute[]'),
  1822. _method('getDir', [], 'File'),
  1823. _method('getItem', [], 'ShareItem'),
  1824. _method('getName', [], 'String'),
  1825. _method('getParent', [], 'ShareResourceDirContents'),
  1826. _method('getType', [], 'int'),
  1827. _method('removeChangeListener', ['ShareResourceListener']),
  1828. _method('removeDeletionListener', ['ShareResourceWillBeDeletedListener']),
  1829. _method('setAttribute', ['TorrentAttribute', 'String']),
  1830. ])
  1831. class ShareResourceDirContentsDataType:
  1832. def get_xml_type():
  1833. return "ShareResourceDirContents"
  1834. get_xml_type = staticmethod(get_xml_type)
  1835. __az_constants__ = {
  1836. 'ST_DIR': 2,
  1837. 'ST_DIR_CONTENTS': 3,
  1838. 'ST_FILE': 1,
  1839. }
  1840. __az_methods__ = AzureusMethods([
  1841. _method('addChangeListener', ['ShareResourceListener']),
  1842. _method('addDeletionListener', ['ShareResourceWillBeDeletedListener']),
  1843. _method('canBeDeleted', [], 'boolean'),
  1844. _method('delete'),
  1845. _method('getAttribute', ['TorrentAttribute'], 'String'),
  1846. _method('getAttributes', [], 'TorrentAttribute[]'),
  1847. _method('getChildren', [], 'ShareResource[]'),
  1848. _method('getName', [], 'String'),
  1849. _method('getParent', [], 'ShareResourceDirContents'),
  1850. _method('getRoot', [], 'File'),
  1851. _method('getType', [], 'int'),
  1852. _method('isRecursive', [], 'boolean'),
  1853. _method('removeChangeListener', ['ShareResourceListener']),
  1854. _method('removeDeletionListener', ['ShareResourceWillBeDeletedListener']),
  1855. _method('setAttribute', ['TorrentAttribute', 'String']),
  1856. ])
  1857. class ShareResourceEventDataType:
  1858. def get_xml_type():
  1859. return "ShareResourceEvent"
  1860. get_xml_type = staticmethod(get_xml_type)
  1861. __az_constants__ = {
  1862. 'ET_ATTRIBUTE_CHANGED': 1,
  1863. }
  1864. #
  1865. # The following methods are not available, because either the return
  1866. # type is not supported or / and one or more parameters are not
  1867. # remotely supported:
  1868. #
  1869. # Object getData()
  1870. #
  1871. __az_methods__ = AzureusMethods([
  1872. _method('getType', [], 'int'),
  1873. ])
  1874. class ShareResourceFileDataType:
  1875. def get_xml_type():
  1876. return "ShareResourceFile"
  1877. get_xml_type = staticmethod(get_xml_type)
  1878. __az_constants__ = {
  1879. 'ST_DIR': 2,
  1880. 'ST_DIR_CONTENTS': 3,
  1881. 'ST_FILE': 1,
  1882. }
  1883. __az_methods__ = AzureusMethods([
  1884. _method('addChangeListener', ['ShareResourceListener']),
  1885. _method('addDeletionListener', ['ShareResourceWillBeDeletedListener']),
  1886. _method('canBeDeleted', [], 'boolean'),
  1887. _method('delete'),
  1888. _method('getAttribute', ['TorrentAttribute'], 'String'),
  1889. _method('getAttributes', [], 'TorrentAttribute[]'),
  1890. _method('getFile', [], 'File'),
  1891. _method('getItem', [], 'ShareItem'),
  1892. _method('getName', [], 'String'),
  1893. _method('getParent', [], 'ShareResourceDirContents'),
  1894. _method('getType', [], 'int'),
  1895. _method('removeChangeListener', ['ShareResourceListener']),
  1896. _method('removeDeletionListener', ['ShareResourceWillBeDeletedListener']),
  1897. _method('setAttribute', ['TorrentAttribute', 'String']),
  1898. ])
  1899. class ShareResourceListenerDataType:
  1900. def get_xml_type():
  1901. return "ShareResourceListener"
  1902. get_xml_type = staticmethod(get_xml_type)
  1903. __az_methods__ = AzureusMethods([
  1904. _method('shareResourceChanged', ['ShareResource', 'ShareResourceEvent']),
  1905. ])
  1906. class ShareResourceWillBeDeletedListenerDataType:
  1907. def get_xml_type():
  1908. return "ShareResourceWillBeDeletedListener"
  1909. get_xml_type = staticmethod(get_xml_type)
  1910. __az_methods__ = AzureusMethods([
  1911. _method('resourceWillBeDeleted', ['ShareResource']),
  1912. ])
  1913. #------------------------------------------------------------------------------
  1914. #
  1915. # Classes for package:
  1916. # org.gudy.azureus2.plugins.torrent
  1917. #
  1918. #------------------------------------------------------------------------------
  1919. class TorrentDataType:
  1920. def get_xml_type():
  1921. return "Torrent"
  1922. get_xml_type = staticmethod(get_xml_type)
  1923. #
  1924. # The following methods are not available, because either the return
  1925. # type is not supported or / and one or more parameters are not
  1926. # remotely supported:
  1927. #
  1928. # Object getAdditionalProperty(String)
  1929. # Map getMapProperty(String)
  1930. # byte[][] getPieces()
  1931. # void setMapProperty(String, Map)
  1932. # Map writeToMap()
  1933. #
  1934. __az_methods__ = AzureusMethods([
  1935. _method('getAnnounceURL', [], 'URL'),
  1936. _method('getAnnounceURLList', [], 'TorrentAnnounceURLList'),
  1937. _method('getComment', [], 'String'),
  1938. _method('getCreatedBy', [], 'String'),
  1939. _method('getCreationDate', [], 'long'),
  1940. _method('getEncoding', [], 'String'),
  1941. _method('getFiles', [], 'TorrentFile[]'),
  1942. _method('getHash', [], 'byte[]'),
  1943. _method('getMagnetURI', [], 'URL'),
  1944. _method('getName', [], 'String'),
  1945. _method('getPieceCount', [], 'long'),
  1946. _method('getPieceSize', [], 'long'),
  1947. _method('getPluginStringProperty', ['String'], 'String'),
  1948. _method('getSize', [], 'long'),
  1949. _method('isDecentralised', [], 'boolean'),
  1950. _method('isDecentralisedBackupEnabled', [], 'boolean'),
  1951. _method('isDecentralisedBackupRequested', [], 'boolean'),
  1952. _method('isPrivate', [], 'boolean'),
  1953. _method('removeAdditionalProperties', [], 'Torrent'),
  1954. _method('save'),
  1955. _method('setAnnounceURL', ['URL']),
  1956. _method('setComment', ['String']),
  1957. _method('setComplete', ['File']),
  1958. _method('setDecentralisedBackupRequested', ['boolean']),
  1959. _method('setPluginStringProperty', ['String', 'String']),
  1960. _method('setPrivate', ['boolean']),
  1961. _method('writeToBEncodedData', [], 'byte[]'),
  1962. _method('writeToFile', ['File']),
  1963. ])
  1964. __az_attributes__ = {
  1965. 'hash': 'byte[]',
  1966. 'name': 'String',
  1967. 'size': 'long',
  1968. }
  1969. class TorrentAnnounceURLListDataType:
  1970. def get_xml_type():
  1971. return "TorrentAnnounceURLList"
  1972. get_xml_type = staticmethod(get_xml_type)
  1973. __az_methods__ = AzureusMethods([
  1974. _method('addSet', ['URL[]']),
  1975. _method('create', ['URL[]'], 'TorrentAnnounceURLListSet'),
  1976. _method('getSets', [], 'TorrentAnnounceURLListSet[]'),
  1977. _method('insertSetAtFront', ['URL[]']),
  1978. _method('setSets', ['TorrentAnnounceURLListSet[]']),
  1979. ])
  1980. class TorrentAnnounceURLListSetDataType:
  1981. def get_xml_type():
  1982. return "TorrentAnnounceURLListSet"
  1983. get_xml_type = staticmethod(get_xml_type)
  1984. __az_methods__ = AzureusMethods([
  1985. _method('getURLs', [], 'URL[]'),
  1986. _method('setURLs', ['URL[]']),
  1987. ])
  1988. class TorrentAttributeDataType:
  1989. def get_xml_type():
  1990. return "TorrentAttribute"
  1991. get_xml_type = staticmethod(get_xml_type)
  1992. __az_constants__ = {
  1993. 'TA_CATEGORY': "Category",
  1994. 'TA_NETWORKS': "Networks",
  1995. 'TA_PEER_SOURCES': "PeerSources",
  1996. 'TA_SHARE_PROPERTIES': "ShareProperties",
  1997. 'TA_TRACKER_CLIENT_EXTENSIONS': "TrackerClientExtensions",
  1998. }
  1999. __az_methods__ = AzureusMethods([
  2000. _method('addDefinedValue', ['String']),
  2001. _method('addTorrentAttributeListener', ['TorrentAttributeListener']),
  2002. _method('getDefinedValues', [], 'String[]'),
  2003. _method('getName', [], 'String'),
  2004. _method('removeDefinedValue', ['String']),
  2005. _method('removeTorrentAttributeListener', ['TorrentAttributeListener']),
  2006. ])
  2007. class TorrentAttributeEventDataType:
  2008. def get_xml_type():
  2009. return "TorrentAttributeEvent"
  2010. get_xml_type = staticmethod(get_xml_type)
  2011. __az_constants__ = {
  2012. 'ET_ATTRIBUTE_VALUE_ADDED': 1,
  2013. 'ET_ATTRIBUTE_VALUE_REMOVED': 2,
  2014. }
  2015. #
  2016. # The following methods are not available, because either the return
  2017. # type is not supported or / and one or more parameters are not
  2018. # remotely supported:
  2019. #
  2020. # Object getData()
  2021. #
  2022. __az_methods__ = AzureusMethods([
  2023. _method('getAttribute', [], 'TorrentAttribute'),
  2024. _method('getType', [], 'int'),
  2025. ])
  2026. class TorrentAttributeListenerDataType:
  2027. def get_xml_type():
  2028. return "TorrentAttributeListener"
  2029. get_xml_type = staticmethod(get_xml_type)
  2030. __az_methods__ = AzureusMethods([
  2031. _method('event', ['TorrentAttributeEvent']),
  2032. ])
  2033. class TorrentDownloaderDataType:
  2034. def get_xml_type():
  2035. return "TorrentDownloader"
  2036. get_xml_type = staticmethod(get_xml_type)
  2037. __az_methods__ = AzureusMethods([
  2038. _method('download', [], 'Torrent'),
  2039. _method('download', ['String'], 'Torrent'),
  2040. ])
  2041. class TorrentFileDataType:
  2042. def get_xml_type():
  2043. return "TorrentFile"
  2044. get_xml_type = staticmethod(get_xml_type)
  2045. __az_methods__ = AzureusMethods([
  2046. _method('getName', [], 'String'),
  2047. _method('getSize', [], 'long'),
  2048. ])
  2049. class TorrentManagerDataType:
  2050. def get_xml_type():
  2051. return "TorrentManager"
  2052. get_xml_type = staticmethod(get_xml_type)
  2053. #
  2054. # The following methods are not available, because either the return
  2055. # type is not supported or / and one or more parameters are not
  2056. # remotely supported:
  2057. #
  2058. # Torrent createFromBEncodedInputStream(InputStream)
  2059. #
  2060. __az_methods__ = AzureusMethods([
  2061. _method('addListener', ['TorrentManagerListener']),
  2062. _method('createFromBEncodedData', ['byte[]'], 'Torrent'),
  2063. _method('createFromBEncodedFile', ['File'], 'Torrent'),
  2064. _method('createFromDataFile', ['File', 'URL', 'boolean'], 'Torrent'),
  2065. _method('createFromDataFile', ['File', 'URL'], 'Torrent'),
  2066. _method('getAttribute', ['String'], 'TorrentAttribute'),
  2067. _method('getDefinedAttributes', [], 'TorrentAttribute[]'),
  2068. _method('getPluginAttribute', ['String'], 'TorrentAttribute'),
  2069. _method('getURLDownloader', ['URL', 'String', 'String'], 'TorrentDownloader'),
  2070. _method('getURLDownloader', ['URL'], 'TorrentDownloader'),
  2071. _method('removeListener', ['TorrentManagerListener']),
  2072. ])
  2073. class TorrentManagerEventDataType:
  2074. def get_xml_type():
  2075. return "TorrentManagerEvent"
  2076. get_xml_type = staticmethod(get_xml_type)
  2077. #
  2078. # The following methods are not available, because either the return
  2079. # type is not supported or / and one or more parameters are not
  2080. # remotely supported:
  2081. #
  2082. # Object getData()
  2083. #
  2084. class TorrentManagerListenerDataType:
  2085. def get_xml_type():
  2086. return "TorrentManagerListener"
  2087. get_xml_type = staticmethod(get_xml_type)
  2088. __az_methods__ = AzureusMethods([
  2089. _method('event', ['TorrentManagerEvent']),
  2090. ])
  2091. #------------------------------------------------------------------------------
  2092. #
  2093. # Classes for package:
  2094. # org.gudy.azureus2.plugins.tracker
  2095. #
  2096. #------------------------------------------------------------------------------
  2097. class TrackerDataType:
  2098. def get_xml_type():
  2099. return "Tracker"
  2100. get_xml_type = staticmethod(get_xml_type)
  2101. __az_constants__ = {
  2102. 'PR_HTTP': 1,
  2103. 'PR_HTTPS': 2,
  2104. }
  2105. __az_methods__ = AzureusMethods([
  2106. _method('addAuthenticationListener', ['TrackerAuthenticationListener']),
  2107. _method('addListener', ['TrackerListener']),
  2108. _method('addPageGenerator', ['TrackerWebPageGenerator']),
  2109. _method('createWebContext', ['String', 'int', 'int'], 'TrackerWebContext'),
  2110. _method('createWebContext', ['int', 'int'], 'TrackerWebContext'),
  2111. _method('getName', [], 'String'),
  2112. _method('getPageGenerators', [], 'TrackerWebPageGenerator[]'),
  2113. _method('getTorrent', ['Torrent'], 'TrackerTorrent'),
  2114. _method('getTorrents', [], 'TrackerTorrent[]'),
  2115. _method('getURLs', [], 'URL[]'),
  2116. _method('host', ['Torrent', 'boolean'], 'TrackerTorrent'),
  2117. _method('host', ['Torrent', 'boolean', 'boolean'], 'TrackerTorrent'),
  2118. _method('publish', ['Torrent'], 'TrackerTorrent'),
  2119. _method('removeAuthenticationListener', ['TrackerAuthenticationListener']),
  2120. _method('removeListener', ['TrackerListener']),
  2121. _method('removePageGenerator', ['TrackerWebPageGenerator']),
  2122. ])
  2123. class TrackerListenerDataType:
  2124. def get_xml_type():
  2125. return "TrackerListener"
  2126. get_xml_type = staticmethod(get_xml_type)
  2127. __az_methods__ = AzureusMethods([
  2128. _method('torrentAdded', ['TrackerTorrent']),
  2129. _method('torrentChanged', ['TrackerTorrent']),
  2130. _method('torrentRemoved', ['TrackerTorrent']),
  2131. ])
  2132. class TrackerPeerDataType:
  2133. def get_xml_type():
  2134. return "TrackerPeer"
  2135. get_xml_type = staticmethod(get_xml_type)
  2136. __az_methods__ = AzureusMethods([
  2137. _method('getAmountLeft', [], 'long'),
  2138. _method('getDownloaded', [], 'long'),
  2139. _method('getIP', [], 'String'),
  2140. _method('getIPRaw', [], 'String'),
  2141. _method('getUploaded', [], 'long'),
  2142. _method('isSeed', [], 'boolean'),
  2143. ])
  2144. class TrackerPeerEventDataType:
  2145. def get_xml_type():
  2146. return "TrackerPeerEvent"
  2147. get_xml_type = staticmethod(get_xml_type)
  2148. __az_constants__ = {
  2149. 'ET_PEER_ADDED': 1,
  2150. 'ET_PEER_CHANGED': 2,
  2151. 'ET_PEER_REMOVED': 3,
  2152. }
  2153. __az_methods__ = AzureusMethods([
  2154. _method('getEventType', [], 'int'),
  2155. ])
  2156. class TrackerPeerListenerDataType:
  2157. def get_xml_type():
  2158. return "TrackerPeerListener"
  2159. get_xml_type = staticmethod(get_xml_type)
  2160. __az_methods__ = AzureusMethods([
  2161. _method('eventOccurred', ['TrackerPeerEvent']),
  2162. ])
  2163. class TrackerTorrentDataType:
  2164. def get_xml_type():
  2165. return "TrackerTorrent"
  2166. get_xml_type = staticmethod(get_xml_type)
  2167. __az_constants__ = {
  2168. 'TS_PUBLISHED': 2,
  2169. 'TS_STARTED': 0,
  2170. 'TS_STOPPED': 1,
  2171. }
  2172. __az_methods__ = AzureusMethods([
  2173. _method('addListener', ['TrackerTorrentListener']),
  2174. _method('addRemovalListener', ['TrackerTorrentWillBeRemovedListener']),
  2175. _method('canBeRemoved', [], 'boolean'),
  2176. _method('disableReplyCaching'),
  2177. _method('getAnnounceCount', [], 'long'),
  2178. _method('getAverageAnnounceCount', [], 'long'),
  2179. _method('getAverageBytesIn', [], 'long'),
  2180. _method('getAverageBytesOut', [], 'long'),
  2181. _method('getAverageDownloaded', [], 'long'),
  2182. _method('getAverageScrapeCount', [], 'long'),
  2183. _method('getAverageUploaded', [], 'long'),
  2184. _method('getBadNATCount', [], 'int'),
  2185. _method('getCompletedCount', [], 'long'),
  2186. _method('getDateAdded', [], 'long'),
  2187. _method('getLeecherCount', [], 'int'),
  2188. _method('getPeers', [], 'TrackerPeer[]'),
  2189. _method('getScrapeCount', [], 'long'),
  2190. _method('getSeedCount', [], 'int'),
  2191. _method('getStatus', [], 'int'),
  2192. _method('getTorrent', [], 'Torrent'),
  2193. _method('getTotalBytesIn', [], 'long'),
  2194. _method('getTotalBytesOut', [], 'long'),
  2195. _method('getTotalDownloaded', [], 'long'),
  2196. _method('getTotalLeft', [], 'long'),
  2197. _method('getTotalUploaded', [], 'long'),
  2198. _method('isPassive', [], 'boolean'),
  2199. _method('remove'),
  2200. _method('removeListener', ['TrackerTorrentListener']),
  2201. _method('removeRemovalListener', ['TrackerTorrentWillBeRemovedListener']),
  2202. _method('start'),
  2203. _method('stop'),
  2204. ])
  2205. __az_attributes__ = {
  2206. 'announce_count': 'long',
  2207. 'average_announce_count': 'long',
  2208. 'average_bytes_in': 'long',
  2209. 'average_bytes_out': 'long',
  2210. 'average_downloaded': 'long',
  2211. 'average_scrape_count': 'long',
  2212. 'average_uploaded': 'long',
  2213. 'bad_NAT_count': 'int',
  2214. 'completed_count': 'long',
  2215. 'leecher_count': 'int',
  2216. 'scrape_count': 'long',
  2217. 'seed_count': 'int',
  2218. 'status': 'int',
  2219. 'torrent': 'Torrent',
  2220. 'total_bytes_in': 'long',
  2221. 'total_bytes_out': 'long',
  2222. 'total_downloaded': 'long',
  2223. 'total_left': 'long',
  2224. 'total_uploaded': 'long',
  2225. }
  2226. class TrackerTorrentListenerDataType:
  2227. def get_xml_type():
  2228. return "TrackerTorrentListener"
  2229. get_xml_type = staticmethod(get_xml_type)
  2230. __az_methods__ = AzureusMethods([
  2231. _method('postProcess', ['TrackerTorrentRequest']),
  2232. _method('preProcess', ['TrackerTorrentRequest']),
  2233. ])
  2234. class TrackerTorrentRequestDataType:
  2235. def get_xml_type():
  2236. return "TrackerTorrentRequest"
  2237. get_xml_type = staticmethod(get_xml_type)
  2238. __az_constants__ = {
  2239. 'RT_ANNOUNCE': 1,
  2240. 'RT_FULL_SCRAPE': 3,
  2241. 'RT_SCRAPE': 2,
  2242. }
  2243. #
  2244. # The following methods are not available, because either the return
  2245. # type is not supported or / and one or more parameters are not
  2246. # remotely supported:
  2247. #
  2248. # Map getResponse()
  2249. #
  2250. __az_methods__ = AzureusMethods([
  2251. _method('getPeer', [], 'TrackerPeer'),
  2252. _method('getRequest', [], 'String'),
  2253. _method('getRequestType', [], 'int'),
  2254. _method('getTorrent', [], 'TrackerTorrent'),
  2255. ])
  2256. class TrackerTorrentWillBeRemovedListenerDataType:
  2257. def get_xml_type():
  2258. return "TrackerTorrentWillBeRemovedListener"
  2259. get_xml_type = staticmethod(get_xml_type)
  2260. __az_methods__ = AzureusMethods([
  2261. _method('torrentWillBeRemoved', ['TrackerTorrent']),
  2262. ])
  2263. #------------------------------------------------------------------------------
  2264. #
  2265. # Classes for package:
  2266. # org.gudy.azureus2.plugins.tracker.web
  2267. #
  2268. #------------------------------------------------------------------------------
  2269. class TrackerAuthenticationListenerDataType:
  2270. def get_xml_type():
  2271. return "TrackerAuthenticationListener"
  2272. get_xml_type = staticmethod(get_xml_type)
  2273. __az_methods__ = AzureusMethods([
  2274. _method('authenticate', ['URL', 'String', 'String'], 'boolean'),
  2275. _method('authenticate', ['URL', 'String'], 'byte[]'),
  2276. ])
  2277. class TrackerWebContextDataType:
  2278. def get_xml_type():
  2279. return "TrackerWebContext"
  2280. get_xml_type = staticmethod(get_xml_type)
  2281. __az_methods__ = AzureusMethods([
  2282. _method('addAuthenticationListener', ['TrackerAuthenticationListener']),
  2283. _method('addPageGenerator', ['TrackerWebPageGenerator']),
  2284. _method('getName', [], 'String'),
  2285. _method('getPageGenerators', [], 'TrackerWebPageGenerator[]'),
  2286. _method('getURLs', [], 'URL[]'),
  2287. _method('removeAuthenticationListener', ['TrackerAuthenticationListener']),
  2288. _method('removePageGenerator', ['TrackerWebPageGenerator']),
  2289. ])
  2290. class TrackerWebPageGeneratorDataType:
  2291. def get_xml_type():
  2292. return "TrackerWebPageGenerator"
  2293. get_xml_type = staticmethod(get_xml_type)
  2294. __az_methods__ = AzureusMethods([
  2295. _method('generate', ['TrackerWebPageRequest', 'TrackerWebPageResponse'], 'boolean'),
  2296. ])
  2297. class TrackerWebPageRequestDataType:
  2298. def get_xml_type():
  2299. return "TrackerWebPageRequest"
  2300. get_xml_type = staticmethod(get_xml_type)
  2301. #
  2302. # The following methods are not available, because either the return
  2303. # type is not supported or / and one or more parameters are not
  2304. # remotely supported:
  2305. #
  2306. # InetSocketAddress getClientAddress2()
  2307. # Map getHeaders()
  2308. # InputStream getInputStream()
  2309. #
  2310. __az_methods__ = AzureusMethods([
  2311. _method('getAbsoluteURL', [], 'URL'),
  2312. _method('getClientAddress', [], 'String'),
  2313. _method('getContext', [], 'TrackerWebContext'),
  2314. _method('getHeader', [], 'String'),
  2315. _method('getTracker', [], 'Tracker'),
  2316. _method('getURL', [], 'String'),
  2317. _method('getUser', [], 'String'),
  2318. ])
  2319. class TrackerWebPageResponseDataType:
  2320. def get_xml_type():
  2321. return "TrackerWebPageResponse"
  2322. get_xml_type = staticmethod(get_xml_type)
  2323. #
  2324. # The following methods are not available, because either the return
  2325. # type is not supported or / and one or more parameters are not
  2326. # remotely supported:
  2327. #
  2328. # OutputStream getOutputStream()
  2329. # void useStream(String, InputStream)
  2330. #
  2331. __az_methods__ = AzureusMethods([
  2332. _method('setContentType', ['String']),
  2333. _method('setExpires', ['long']),
  2334. _method('setHeader', ['String', 'String']),
  2335. _method('setLastModified', ['long']),
  2336. _method('setReplyStatus', ['int']),
  2337. _method('useFile', ['String', 'String'], 'boolean'),
  2338. _method('writeTorrent', ['TrackerTorrent']),
  2339. ])
  2340. #------------------------------------------------------------------------------
  2341. #
  2342. # Classes for package:
  2343. # org.gudy.azureus2.plugins.ui
  2344. #
  2345. #------------------------------------------------------------------------------
  2346. class GraphicDataType:
  2347. def get_xml_type():
  2348. return "Graphic"
  2349. get_xml_type = staticmethod(get_xml_type)
  2350. class UIInstanceDataType:
  2351. def get_xml_type():
  2352. return "UIInstance"
  2353. get_xml_type = staticmethod(get_xml_type)
  2354. class UIInstanceFactoryDataType:
  2355. def get_xml_type():
  2356. return "UIInstanceFactory"
  2357. get_xml_type = staticmethod(get_xml_type)
  2358. __az_methods__ = AzureusMethods([
  2359. _method('detach'),
  2360. _method('getInstance', ['PluginInterface'], 'UIInstance'),
  2361. ])
  2362. class UIManagerDataType:
  2363. def get_xml_type():
  2364. return "UIManager"
  2365. get_xml_type = staticmethod(get_xml_type)
  2366. #
  2367. # The following methods are not available, because either the return
  2368. # type is not supported or / and one or more parameters are not
  2369. # remotely supported:
  2370. #
  2371. # PluginView createPluginView(PluginViewModel)
  2372. #
  2373. __az_methods__ = AzureusMethods([
  2374. _method('addUIEventListener', ['UIManagerEventListener']),
  2375. _method('addUIListener', ['UIManagerListener']),
  2376. _method('attachUI', ['UIInstanceFactory']),
  2377. _method('copyToClipBoard', ['String']),
  2378. _method('createBasicPluginConfigModel', ['String'], 'BasicPluginConfigModel'),
  2379. _method('createBasicPluginConfigModel', ['String', 'String'], 'BasicPluginConfigModel'),
  2380. _method('createBasicPluginViewModel', ['String'], 'BasicPluginViewModel'),
  2381. _method('detachUI', ['UIInstanceFactory']),
  2382. _method('getBasicPluginViewModel', ['String'], 'BasicPluginViewModel'),
  2383. _method('getSWTManager', [], 'SWTManager'),
  2384. _method('getTableManager', [], 'TableManager'),
  2385. _method('openURL', ['URL']),
  2386. _method('removeUIEventListener', ['UIManagerEventListener']),
  2387. _method('removeUIListener', ['UIManagerListener']),
  2388. _method('showConfigSection', ['String'], 'boolean'),
  2389. _method('showTextMessage', ['String', 'String', 'String']),
  2390. ])
  2391. class UIManagerEventDataType:
  2392. def get_xml_type():
  2393. return "UIManagerEvent"
  2394. get_xml_type = staticmethod(get_xml_type)
  2395. __az_constants__ = {
  2396. 'ET_ADD_TABLE_COLUMN': 11,
  2397. 'ET_ADD_TABLE_CONTEXT_MENU_ITEM': 12,
  2398. 'ET_COPY_TO_CLIPBOARD': 6,
  2399. 'ET_CREATE_TABLE_COLUMN': 10,
  2400. 'ET_OPEN_TORRENT_VIA_FILE': 2,
  2401. 'ET_OPEN_TORRENT_VIA_URL': 3,
  2402. 'ET_OPEN_URL': 9,
  2403. 'ET_PLUGIN_CONFIG_MODEL_CREATED': 5,
  2404. 'ET_PLUGIN_CONFIG_MODEL_DESTROYED': 8,
  2405. 'ET_PLUGIN_VIEW_MODEL_CREATED': 4,
  2406. 'ET_PLUGIN_VIEW_MODEL_DESTROYED': 7,
  2407. 'ET_SHOW_CONFIG_SECTION': 13,
  2408. 'ET_SHOW_TEXT_MESSAGE': 1,
  2409. }
  2410. #
  2411. # The following methods are not available, because either the return
  2412. # type is not supported or / and one or more parameters are not
  2413. # remotely supported:
  2414. #
  2415. # Object getData()
  2416. # Object getResult()
  2417. # void setResult(Object)
  2418. #
  2419. __az_methods__ = AzureusMethods([
  2420. _method('getType', [], 'int'),
  2421. ])
  2422. class UIManagerEventListenerDataType:
  2423. def get_xml_type():
  2424. return "UIManagerEventListener"
  2425. get_xml_type = staticmethod(get_xml_type)
  2426. __az_methods__ = AzureusMethods([
  2427. _method('eventOccurred', ['UIManagerEvent'], 'boolean'),
  2428. ])
  2429. class UIManagerListenerDataType:
  2430. def get_xml_type():
  2431. return "UIManagerListener"
  2432. get_xml_type = staticmethod(get_xml_type)
  2433. __az_methods__ = AzureusMethods([
  2434. _method('UIAttached', ['UIInstance']),
  2435. _method('UIDetached', ['UIInstance']),
  2436. ])
  2437. class UIPluginViewDataType:
  2438. def get_xml_type():
  2439. return "UIPluginView"
  2440. get_xml_type = staticmethod(get_xml_type)
  2441. #
  2442. # The following methods are not available, because either the return
  2443. # type is not supported or / and one or more parameters are not
  2444. # remotely supported:
  2445. #
  2446. # Object getDataSource()
  2447. #
  2448. __az_methods__ = AzureusMethods([
  2449. _method('closeView'),
  2450. _method('getViewID', [], 'String'),
  2451. ])
  2452. #------------------------------------------------------------------------------
  2453. #
  2454. # Classes for package:
  2455. # org.gudy.azureus2.plugins.ui.components
  2456. #
  2457. #------------------------------------------------------------------------------
  2458. class UIComponentDataType:
  2459. def get_xml_type():
  2460. return "UIComponent"
  2461. get_xml_type = staticmethod(get_xml_type)
  2462. __az_constants__ = {
  2463. 'PT_ENABLED': "enabled",
  2464. 'PT_VALUE': "value",
  2465. 'PT_VISIBLE': "visible",
  2466. }
  2467. #
  2468. # The following methods are not available, because either the return
  2469. # type is not supported or / and one or more parameters are not
  2470. # remotely supported:
  2471. #
  2472. # Object getProperty(String)
  2473. # void setProperty(String, Object)
  2474. #
  2475. __az_methods__ = AzureusMethods([
  2476. _method('addPropertyChangeListener', ['UIPropertyChangeListener']),
  2477. _method('getEnabled', [], 'boolean'),
  2478. _method('getVisible', [], 'boolean'),
  2479. _method('removePropertyChangeListener', ['UIPropertyChangeListener']),
  2480. _method('setEnabled', ['boolean']),
  2481. _method('setVisible', ['boolean']),
  2482. ])
  2483. class UIProgressBarDataType:
  2484. def get_xml_type():
  2485. return "UIProgressBar"
  2486. get_xml_type = staticmethod(get_xml_type)
  2487. __az_constants__ = {
  2488. 'PT_ENABLED': "enabled",
  2489. 'PT_VALUE': "value",
  2490. 'PT_VISIBLE': "visible",
  2491. }
  2492. #
  2493. # The following methods are not available, because either the return
  2494. # type is not supported or / and one or more parameters are not
  2495. # remotely supported:
  2496. #
  2497. # Object getProperty(String)
  2498. # void setProperty(String, Object)
  2499. #
  2500. __az_methods__ = AzureusMethods([
  2501. _method('addPropertyChangeListener', ['UIPropertyChangeListener']),
  2502. _method('getEnabled', [], 'boolean'),
  2503. _method('getPercentageComplete', [], 'int'),
  2504. _method('getVisible', [], 'boolean'),
  2505. _method('removePropertyChangeListener', ['UIPropertyChangeListener']),
  2506. _method('setEnabled', ['boolean']),
  2507. _method('setPercentageComplete', ['int']),
  2508. _method('setVisible', ['boolean']),
  2509. ])
  2510. class UIPropertyChangeEventDataType:
  2511. def get_xml_type():
  2512. return "UIPropertyChangeEvent"
  2513. get_xml_type = staticmethod(get_xml_type)
  2514. #
  2515. # The following methods are not available, because either the return
  2516. # type is not supported or / and one or more parameters are not
  2517. # remotely supported:
  2518. #
  2519. # Object getNewPropertyValue()
  2520. # Object getOldPropertyValue()
  2521. #
  2522. __az_methods__ = AzureusMethods([
  2523. _method('getPropertyType', [], 'String'),
  2524. _method('getSource', [], 'UIComponent'),
  2525. ])
  2526. class UIPropertyChangeListenerDataType:
  2527. def get_xml_type():
  2528. return "UIPropertyChangeListener"
  2529. get_xml_type = staticmethod(get_xml_type)
  2530. __az_methods__ = AzureusMethods([
  2531. _method('propertyChanged', ['UIPropertyChangeEvent']),
  2532. ])
  2533. class UITextAreaDataType:
  2534. def get_xml_type():
  2535. return "UITextArea"
  2536. get_xml_type = staticmethod(get_xml_type)
  2537. __az_constants__ = {
  2538. 'DEFAULT_MAX_SIZE': 60000,
  2539. 'PT_ENABLED': "enabled",
  2540. 'PT_VALUE': "value",
  2541. 'PT_VISIBLE': "visible",
  2542. }
  2543. #
  2544. # The following methods are not available, because either the return
  2545. # type is not supported or / and one or more parameters are not
  2546. # remotely supported:
  2547. #
  2548. # Object getProperty(String)
  2549. # void setProperty(String, Object)
  2550. #
  2551. __az_methods__ = AzureusMethods([
  2552. _method('addPropertyChangeListener', ['UIPropertyChangeListener']),
  2553. _method('appendText', ['String']),
  2554. _method('getEnabled', [], 'boolean'),
  2555. _method('getText', [], 'String'),
  2556. _method('getVisible', [], 'boolean'),
  2557. _method('removePropertyChangeListener', ['UIPropertyChangeListener']),
  2558. _method('setEnabled', ['boolean']),
  2559. _method('setMaximumSize', ['int']),
  2560. _method('setText', ['String']),
  2561. _method('setVisible', ['boolean']),
  2562. ])
  2563. class UITextFieldDataType:
  2564. def get_xml_type():
  2565. return "UITextField"
  2566. get_xml_type = staticmethod(get_xml_type)
  2567. __az_constants__ = {
  2568. 'PT_ENABLED': "enabled",
  2569. 'PT_VALUE': "value",
  2570. 'PT_VISIBLE': "visible",
  2571. }
  2572. #
  2573. # The following methods are not available, because either the return
  2574. # type is not supported or / and one or more parameters are not
  2575. # remotely supported:
  2576. #
  2577. # Object getProperty(String)
  2578. # void setProperty(String, Object)
  2579. #
  2580. __az_methods__ = AzureusMethods([
  2581. _method('addPropertyChangeListener', ['UIPropertyChangeListener']),
  2582. _method('getEnabled', [], 'boolean'),
  2583. _method('getText', [], 'String'),
  2584. _method('getVisible', [], 'boolean'),
  2585. _method('removePropertyChangeListener', ['UIPropertyChangeListener']),
  2586. _method('setEnabled', ['boolean']),
  2587. _method('setText', ['String']),
  2588. _method('setVisible', ['boolean']),
  2589. ])
  2590. #------------------------------------------------------------------------------
  2591. #
  2592. # Classes for package:
  2593. # org.gudy.azureus2.plugins.ui.config
  2594. #
  2595. #------------------------------------------------------------------------------
  2596. class ActionParameterDataType:
  2597. def get_xml_type():
  2598. return "ActionParameter"
  2599. get_xml_type = staticmethod(get_xml_type)
  2600. __az_constants__ = {
  2601. 'STYLE_BUTTON': 1,
  2602. 'STYLE_LINK': 2,
  2603. }
  2604. __az_methods__ = AzureusMethods([
  2605. _method('addConfigParameterListener', ['ConfigParameterListener']),
  2606. _method('addListener', ['ParameterListener']),
  2607. _method('getLabelKey', [], 'String'),
  2608. _method('getLabelText', [], 'String'),
  2609. _method('getStyle', [], 'int'),
  2610. _method('isEnabled', [], 'boolean'),
  2611. _method('isVisible', [], 'boolean'),
  2612. _method('removeConfigParameterListener', ['ConfigParameterListener']),
  2613. _method('removeListener', ['ParameterListener']),
  2614. _method('setEnabled', ['boolean']),
  2615. _method('setLabelKey', ['String']),
  2616. _method('setLabelText', ['String']),
  2617. _method('setStyle', ['int']),
  2618. _method('setVisible', ['boolean']),
  2619. ])
  2620. class BooleanParameterDataType:
  2621. def get_xml_type():
  2622. return "BooleanParameter"
  2623. get_xml_type = staticmethod(get_xml_type)
  2624. __az_methods__ = AzureusMethods([
  2625. _method('addConfigParameterListener', ['ConfigParameterListener']),
  2626. _method('addDisabledOnSelection', ['Parameter']),
  2627. _method('addEnabledOnSelection', ['Parameter']),
  2628. _method('addListener', ['ParameterListener']),
  2629. _method('getLabelKey', [], 'String'),
  2630. _method('getLabelText', [], 'String'),
  2631. _method('getValue', [], 'boolean'),
  2632. _method('isEnabled', [], 'boolean'),
  2633. _method('isVisible', [], 'boolean'),
  2634. _method('removeConfigParameterListener', ['ConfigParameterListener']),
  2635. _method('removeListener', ['ParameterListener']),
  2636. _method('setEnabled', ['boolean']),
  2637. _method('setLabelKey', ['String']),
  2638. _method('setLabelText', ['String']),
  2639. _method('setValue', ['boolean']),
  2640. _method('setVisible', ['boolean']),
  2641. ])
  2642. class ConfigSectionDataType:
  2643. def get_xml_type():
  2644. return "ConfigSection"
  2645. get_xml_type = staticmethod(get_xml_type)
  2646. __az_constants__ = {
  2647. 'SECTION_CONNECTION': "server",
  2648. 'SECTION_FILES': "files",
  2649. 'SECTION_INTERFACE': "style",
  2650. 'SECTION_PLUGINS': "plugins",
  2651. 'SECTION_ROOT': "root",
  2652. 'SECTION_TRACKER': "tracker",
  2653. 'SECTION_TRANSFER': "transfer",
  2654. }
  2655. __az_methods__ = AzureusMethods([
  2656. _method('configSectionDelete'),
  2657. _method('configSectionGetName', [], 'String'),
  2658. _method('configSectionGetParentSection', [], 'String'),
  2659. _method('configSectionSave'),
  2660. ])
  2661. class ConfigSectionSWTDataType:
  2662. def get_xml_type():
  2663. return "ConfigSectionSWT"
  2664. get_xml_type = staticmethod(get_xml_type)
  2665. __az_constants__ = {
  2666. 'SECTION_CONNECTION': "server",
  2667. 'SECTION_FILES': "files",
  2668. 'SECTION_INTERFACE': "style",
  2669. 'SECTION_PLUGINS': "plugins",
  2670. 'SECTION_ROOT': "root",
  2671. 'SECTION_TRACKER': "tracker",
  2672. 'SECTION_TRANSFER': "transfer",
  2673. }
  2674. #
  2675. # The following methods are not available, because either the return
  2676. # type is not supported or / and one or more parameters are not
  2677. # remotely supported:
  2678. #
  2679. # Composite configSectionCreate(Composite)
  2680. #
  2681. __az_methods__ = AzureusMethods([
  2682. _method('configSectionDelete'),
  2683. _method('configSectionGetName', [], 'String'),
  2684. _method('configSectionGetParentSection', [], 'String'),
  2685. _method('configSectionSave'),
  2686. ])
  2687. class DirectoryParameterDataType:
  2688. def get_xml_type():
  2689. return "DirectoryParameter"
  2690. get_xml_type = staticmethod(get_xml_type)
  2691. __az_methods__ = AzureusMethods([
  2692. _method('addConfigParameterListener', ['ConfigParameterListener']),
  2693. _method('addListener', ['ParameterListener']),
  2694. _method('getLabelKey', [], 'String'),
  2695. _method('getLabelText', [], 'String'),
  2696. _method('getValue', [], 'String'),
  2697. _method('isEnabled', [], 'boolean'),
  2698. _method('isVisible', [], 'boolean'),
  2699. _method('removeConfigParameterListener', ['ConfigParameterListener']),
  2700. _method('removeListener', ['ParameterListener']),
  2701. _method('setEnabled', ['boolean']),
  2702. _method('setLabelKey', ['String']),
  2703. _method('setLabelText', ['String']),
  2704. _method('setVisible', ['boolean']),
  2705. ])
  2706. class EnablerParameterDataType:
  2707. def get_xml_type():
  2708. return "EnablerParameter"
  2709. get_xml_type = staticmethod(get_xml_type)
  2710. __az_methods__ = AzureusMethods([
  2711. _method('addConfigParameterListener', ['ConfigParameterListener']),
  2712. _method('addDisabledOnSelection', ['Parameter']),
  2713. _method('addEnabledOnSelection', ['Parameter']),
  2714. _method('addListener', ['ParameterListener']),
  2715. _method('getLabelKey', [], 'String'),
  2716. _method('getLabelText', [], 'String'),
  2717. _method('isEnabled', [], 'boolean'),
  2718. _method('isVisible', [], 'boolean'),
  2719. _method('removeConfigParameterListener', ['ConfigParameterListener']),
  2720. _method('removeListener', ['ParameterListener']),
  2721. _method('setEnabled', ['boolean']),
  2722. _method('setLabelKey', ['String']),
  2723. _method('setLabelText', ['String']),
  2724. _method('setVisible', ['boolean']),
  2725. ])
  2726. class IntParameterDataType:
  2727. def get_xml_type():
  2728. return "IntParameter"
  2729. get_xml_type = staticmethod(get_xml_type)
  2730. __az_methods__ = AzureusMethods([
  2731. _method('addConfigParameterListener', ['ConfigParameterListener']),
  2732. _method('addListener', ['ParameterListener']),
  2733. _method('getLabelKey', [], 'String'),
  2734. _method('getLabelText', [], 'String'),
  2735. _method('getValue', [], 'int'),
  2736. _method('isEnabled', [], 'boolean'),
  2737. _method('isVisible', [], 'boolean'),
  2738. _method('removeConfigParameterListener', ['ConfigParameterListener']),
  2739. _method('removeListener', ['ParameterListener']),
  2740. _method('setEnabled', ['boolean']),
  2741. _method('setLabelKey', ['String']),
  2742. _method('setLabelText', ['String']),
  2743. _method('setValue', ['int']),
  2744. _method('setVisible', ['boolean']),
  2745. ])
  2746. class LabelParameterDataType:
  2747. def get_xml_type():
  2748. return "LabelParameter"
  2749. get_xml_type = staticmethod(get_xml_type)
  2750. __az_methods__ = AzureusMethods([
  2751. _method('addConfigParameterListener', ['ConfigParameterListener']),
  2752. _method('addListener', ['ParameterListener']),
  2753. _method('getLabelKey', [], 'String'),
  2754. _method('getLabelText', [], 'String'),
  2755. _method('isEnabled', [], 'boolean'),
  2756. _method('isVisible', [], 'boolean'),
  2757. _method('removeConfigParameterListener', ['ConfigParameterListener']),
  2758. _method('removeListener', ['ParameterListener']),
  2759. _method('setEnabled', ['boolean']),
  2760. _method('setLabelKey', ['String']),
  2761. _method('setLabelText', ['String']),
  2762. _method('setVisible', ['boolean']),
  2763. ])
  2764. class ParameterDataType:
  2765. def get_xml_type():
  2766. return "Parameter"
  2767. get_xml_type = staticmethod(get_xml_type)
  2768. __az_methods__ = AzureusMethods([
  2769. _method('addConfigParameterListener', ['ConfigParameterListener']),
  2770. _method('addListener', ['ParameterListener']),
  2771. _method('getLabelKey', [], 'String'),
  2772. _method('getLabelText', [], 'String'),
  2773. _method('isEnabled', [], 'boolean'),
  2774. _method('isVisible', [], 'boolean'),
  2775. _method('removeConfigParameterListener', ['ConfigParameterListener']),
  2776. _method('removeListener', ['ParameterListener']),
  2777. _method('setEnabled', ['boolean']),
  2778. _method('setLabelKey', ['String']),
  2779. _method('setLabelText', ['String']),
  2780. _method('setVisible', ['boolean']),
  2781. ])
  2782. class ParameterGroupDataType:
  2783. def get_xml_type():
  2784. return "ParameterGroup"
  2785. get_xml_type = staticmethod(get_xml_type)
  2786. class ParameterListenerDataType:
  2787. def get_xml_type():
  2788. return "ParameterListener"
  2789. get_xml_type = staticmethod(get_xml_type)
  2790. __az_methods__ = AzureusMethods([
  2791. _method('parameterChanged', ['Parameter']),
  2792. ])
  2793. class PasswordParameterDataType:
  2794. def get_xml_type():
  2795. return "PasswordParameter"
  2796. get_xml_type = staticmethod(get_xml_type)
  2797. __az_constants__ = {
  2798. 'ET_MD5': 3,
  2799. 'ET_PLAIN': 1,
  2800. 'ET_SHA1': 2,
  2801. }
  2802. __az_methods__ = AzureusMethods([
  2803. _method('addConfigParameterListener', ['ConfigParameterListener']),
  2804. _method('addListener', ['ParameterListener']),
  2805. _method('getLabelKey', [], 'String'),
  2806. _method('getLabelText', [], 'String'),
  2807. _method('getValue', [], 'byte[]'),
  2808. _method('isEnabled', [], 'boolean'),
  2809. _method('isVisible', [], 'boolean'),
  2810. _method('removeConfigParameterListener', ['ConfigParameterListener']),
  2811. _method('removeListener', ['ParameterListener']),
  2812. _method('setEnabled', ['boolean']),
  2813. _method('setLabelKey', ['String']),
  2814. _method('setLabelText', ['String']),
  2815. _method('setVisible', ['boolean']),
  2816. ])
  2817. class PluginConfigUIFactoryDataType:
  2818. def get_xml_type():
  2819. return "PluginConfigUIFactory"
  2820. get_xml_type = staticmethod(get_xml_type)
  2821. __az_methods__ = AzureusMethods([
  2822. _method('createBooleanParameter', ['String', 'String', 'boolean'], 'EnablerParameter'),
  2823. _method('createColorParameter', ['String', 'String', 'int', 'int', 'int'], 'Parameter'),
  2824. _method('createDirectoryParameter', ['String', 'String', 'String'], 'Parameter'),
  2825. _method('createFileParameter', ['String', 'String', 'String'], 'Parameter'),
  2826. _method('createIntParameter', ['String', 'String', 'int'], 'Parameter'),
  2827. _method('createIntParameter', ['String', 'String', 'int', 'int[]', 'String[]'], 'Parameter'),
  2828. _method('createStringParameter', ['String', 'String', 'String'], 'Parameter'),
  2829. _method('createStringParameter', ['String', 'String', 'String', 'String[]', 'String[]'], 'Parameter'),
  2830. ])
  2831. class StringListParameterDataType:
  2832. def get_xml_type():
  2833. return "StringListParameter"
  2834. get_xml_type = staticmethod(get_xml_type)
  2835. __az_methods__ = AzureusMethods([
  2836. _method('addConfigParameterListener', ['ConfigParameterListener']),
  2837. _method('addListener', ['ParameterListener']),
  2838. _method('getLabelKey', [], 'String'),
  2839. _method('getLabelText', [], 'String'),
  2840. _method('getValue', [], 'String'),
  2841. _method('isEnabled', [], 'boolean'),
  2842. _method('isVisible', [], 'boolean'),
  2843. _method('removeConfigParameterListener', ['ConfigParameterListener']),
  2844. _method('removeListener', ['ParameterListener']),
  2845. _method('setEnabled', ['boolean']),
  2846. _method('setLabelKey', ['String']),
  2847. _method('setLabelText', ['String']),
  2848. _method('setValue', ['String']),
  2849. _method('setVisible', ['boolean']),
  2850. ])
  2851. class StringParameterDataType:
  2852. def get_xml_type():
  2853. return "StringParameter"
  2854. get_xml_type = staticmethod(get_xml_type)
  2855. __az_methods__ = AzureusMethods([
  2856. _method('addConfigParameterListener', ['ConfigParameterListener']),
  2857. _method('addListener', ['ParameterListener']),
  2858. _method('getLabelKey', [], 'String'),
  2859. _method('getLabelText', [], 'String'),
  2860. _method('getValue', [], 'String'),
  2861. _method('isEnabled', [], 'boolean'),
  2862. _method('isVisible', [], 'boolean'),
  2863. _method('removeConfigParameterListener', ['ConfigParameterListener']),
  2864. _method('removeListener', ['ParameterListener']),
  2865. _method('setEnabled', ['boolean']),
  2866. _method('setLabelKey', ['String']),
  2867. _method('setLabelText', ['String']),
  2868. _method('setValue', ['String']),
  2869. _method('setVisible', ['boolean']),
  2870. ])
  2871. #------------------------------------------------------------------------------
  2872. #
  2873. # Classes for package:
  2874. # org.gudy.azureus2.plugins.ui.menus
  2875. #
  2876. #------------------------------------------------------------------------------
  2877. class MenuItemDataType:
  2878. def get_xml_type():
  2879. return "MenuItem"
  2880. get_xml_type = staticmethod(get_xml_type)
  2881. __az_constants__ = {
  2882. 'STYLE_CHECK': 2,
  2883. 'STYLE_PUSH': 1,
  2884. 'STYLE_RADIO': 3,
  2885. 'STYLE_SEPARATOR': 4,
  2886. }
  2887. #
  2888. # The following methods are not available, because either the return
  2889. # type is not supported or / and one or more parameters are not
  2890. # remotely supported:
  2891. #
  2892. # Object getData()
  2893. # void setData(Object)
  2894. #
  2895. __az_methods__ = AzureusMethods([
  2896. _method('addFillListener', ['MenuItemFillListener']),
  2897. _method('addListener', ['MenuItemListener']),
  2898. _method('getGraphic', [], 'Graphic'),
  2899. _method('getResourceKey', [], 'String'),
  2900. _method('getStyle', [], 'int'),
  2901. _method('isEnabled', [], 'boolean'),
  2902. _method('removeFillListener', ['MenuItemFillListener']),
  2903. _method('removeListener', ['MenuItemListener']),
  2904. _method('setEnabled', ['boolean']),
  2905. _method('setGraphic', ['Graphic']),
  2906. _method('setStyle', ['int']),
  2907. ])
  2908. class MenuItemFillListenerDataType:
  2909. def get_xml_type():
  2910. return "MenuItemFillListener"
  2911. get_xml_type = staticmethod(get_xml_type)
  2912. #
  2913. # The following methods are not available, because either the return
  2914. # type is not supported or / and one or more parameters are not
  2915. # remotely supported:
  2916. #
  2917. # void menuWillBeShown(MenuItem, Object)
  2918. #
  2919. class MenuItemListenerDataType:
  2920. def get_xml_type():
  2921. return "MenuItemListener"
  2922. get_xml_type = staticmethod(get_xml_type)
  2923. #
  2924. # The following methods are not available, because either the return
  2925. # type is not supported or / and one or more parameters are not
  2926. # remotely supported:
  2927. #
  2928. # void selected(MenuItem, Object)
  2929. #
  2930. #------------------------------------------------------------------------------
  2931. #
  2932. # Classes for package:
  2933. # org.gudy.azureus2.plugins.ui.model
  2934. #
  2935. #------------------------------------------------------------------------------
  2936. class BasicPluginConfigModelDataType:
  2937. def get_xml_type():
  2938. return "BasicPluginConfigModel"
  2939. get_xml_type = staticmethod(get_xml_type)
  2940. __az_methods__ = AzureusMethods([
  2941. _method('addActionParameter2', ['String', 'String'], 'ActionParameter'),
  2942. _method('addBooleanParameter', ['String', 'String', 'boolean']),
  2943. _method('addBooleanParameter2', ['String', 'String', 'boolean'], 'BooleanParameter'),
  2944. _method('addDirectoryParameter2', ['String', 'String', 'String'], 'DirectoryParameter'),
  2945. _method('addIntParameter2', ['String', 'String', 'int'], 'IntParameter'),
  2946. _method('addLabelParameter2', ['String'], 'LabelParameter'),
  2947. _method('addPasswordParameter2', ['String', 'String', 'int', 'byte[]'], 'PasswordParameter'),
  2948. _method('addStringListParameter2', ['String', 'String', 'String[]', 'String'], 'StringListParameter'),
  2949. _method('addStringListParameter2', ['String', 'String', 'String[]', 'String[]', 'String'], 'StringListParameter'),
  2950. _method('addStringParameter', ['String', 'String', 'String']),
  2951. _method('addStringParameter2', ['String', 'String', 'String'], 'StringParameter'),
  2952. _method('createGroup', ['String', 'Parameter[]'], 'ParameterGroup'),
  2953. _method('destroy'),
  2954. _method('getParameters', [], 'Parameter[]'),
  2955. _method('getParentSection', [], 'String'),
  2956. _method('getPluginInterface', [], 'PluginInterface'),
  2957. _method('getSection', [], 'String'),
  2958. ])
  2959. class BasicPluginViewModelDataType:
  2960. def get_xml_type():
  2961. return "BasicPluginViewModel"
  2962. get_xml_type = staticmethod(get_xml_type)
  2963. __az_methods__ = AzureusMethods([
  2964. _method('destroy'),
  2965. _method('getActivity', [], 'UITextField'),
  2966. _method('getConfigSectionID', [], 'String'),
  2967. _method('getLogArea', [], 'UITextArea'),
  2968. _method('getName', [], 'String'),
  2969. _method('getProgress', [], 'UIProgressBar'),
  2970. _method('getStatus', [], 'UITextField'),
  2971. _method('setConfigSectionID', ['String']),
  2972. ])
  2973. class PluginConfigModelDataType:
  2974. def get_xml_type():
  2975. return "PluginConfigModel"
  2976. get_xml_type = staticmethod(get_xml_type)
  2977. __az_methods__ = AzureusMethods([
  2978. _method('destroy'),
  2979. _method('getPluginInterface', [], 'PluginInterface'),
  2980. ])
  2981. class PluginViewModelDataType:
  2982. def get_xml_type():
  2983. return "PluginViewModel"
  2984. get_xml_type = staticmethod(get_xml_type)
  2985. __az_methods__ = AzureusMethods([
  2986. _method('destroy'),
  2987. _method('getName', [], 'String'),
  2988. ])
  2989. #------------------------------------------------------------------------------
  2990. #
  2991. # Classes for package:
  2992. # org.gudy.azureus2.plugins.ui.SWT
  2993. #
  2994. #------------------------------------------------------------------------------
  2995. class GraphicSWTDataType:
  2996. def get_xml_type():
  2997. return "GraphicSWT"
  2998. get_xml_type = staticmethod(get_xml_type)
  2999. #
  3000. # The following methods are not available, because either the return
  3001. # type is not supported or / and one or more parameters are not
  3002. # remotely supported:
  3003. #
  3004. # Image getImage()
  3005. # boolean setImage(Image)
  3006. #
  3007. class SWTManagerDataType:
  3008. def get_xml_type():
  3009. return "SWTManager"
  3010. get_xml_type = staticmethod(get_xml_type)
  3011. #
  3012. # The following methods are not available, because either the return
  3013. # type is not supported or / and one or more parameters are not
  3014. # remotely supported:
  3015. #
  3016. # void addView(PluginView)
  3017. # void addView(PluginView, boolean)
  3018. # GraphicSWT createGraphic(Image)
  3019. # Display getDisplay()
  3020. #
  3021. #------------------------------------------------------------------------------
  3022. #
  3023. # Classes for package:
  3024. # org.gudy.azureus2.plugins.ui.tables
  3025. #
  3026. #------------------------------------------------------------------------------
  3027. class TableCellDataType:
  3028. def get_xml_type():
  3029. return "TableCell"
  3030. get_xml_type = staticmethod(get_xml_type)
  3031. #
  3032. # The following methods are not available, because either the return
  3033. # type is not supported or / and one or more parameters are not
  3034. # remotely supported:
  3035. #
  3036. # void addListeners(Object)
  3037. # Object getDataSource()
  3038. # Comparable getSortValue()
  3039. # Object getToolTip()
  3040. # boolean setSortValue(Comparable)
  3041. # void setToolTip(Object)
  3042. #
  3043. __az_methods__ = AzureusMethods([
  3044. _method('addDisposeListener', ['TableCellDisposeListener']),
  3045. _method('addMouseListener', ['TableCellMouseListener']),
  3046. _method('addRefreshListener', ['TableCellRefreshListener']),
  3047. _method('addToolTipListener', ['TableCellToolTipListener']),
  3048. _method('getGraphic', [], 'Graphic'),
  3049. _method('getHeight', [], 'int'),
  3050. _method('getTableColumn', [], 'TableColumn'),
  3051. _method('getTableID', [], 'String'),
  3052. _method('getTableRow', [], 'TableRow'),
  3053. _method('getText', [], 'String'),
  3054. _method('getWidth', [], 'int'),
  3055. _method('invalidate'),
  3056. _method('isDisposed', [], 'boolean'),
  3057. _method('isShown', [], 'boolean'),
  3058. _method('isValid', [], 'boolean'),
  3059. _method('removeDisposeListener', ['TableCellDisposeListener']),
  3060. _method('removeMouseListener', ['TableCellMouseListener']),
  3061. _method('removeRefreshListener', ['TableCellRefreshListener']),
  3062. _method('removeToolTipListener', ['TableCellToolTipListener']),
  3063. _method('setFillCell', ['boolean']),
  3064. _method('setForeground', ['int', 'int', 'int'], 'boolean'),
  3065. _method('setGraphic', ['Graphic'], 'boolean'),
  3066. _method('setMarginHeight', ['int']),
  3067. _method('setMarginWidth', ['int']),
  3068. _method('setSortValue', ['float'], 'boolean'),
  3069. _method('setSortValue', ['long'], 'boolean'),
  3070. _method('setText', ['String'], 'boolean'),
  3071. ])
  3072. class TableCellAddedListenerDataType:
  3073. def get_xml_type():
  3074. return "TableCellAddedListener"
  3075. get_xml_type = staticmethod(get_xml_type)
  3076. __az_methods__ = AzureusMethods([
  3077. _method('cellAdded', ['TableCell']),
  3078. ])
  3079. class TableCellDisposeListenerDataType:
  3080. def get_xml_type():
  3081. return "TableCellDisposeListener"
  3082. get_xml_type = staticmethod(get_xml_type)
  3083. __az_methods__ = AzureusMethods([
  3084. _method('dispose', ['TableCell']),
  3085. ])
  3086. class TableCellMouseListenerDataType:
  3087. def get_xml_type():
  3088. return "TableCellMouseListener"
  3089. get_xml_type = staticmethod(get_xml_type)
  3090. #
  3091. # The following methods are not available, because either the return
  3092. # type is not supported or / and one or more parameters are not
  3093. # remotely supported:
  3094. #
  3095. # void cellMouseTrigger(TableCellMouseEvent)
  3096. #
  3097. class TableCellRefreshListenerDataType:
  3098. def get_xml_type():
  3099. return "TableCellRefreshListener"
  3100. get_xml_type = staticmethod(get_xml_type)
  3101. __az_methods__ = AzureusMethods([
  3102. _method('refresh', ['TableCell']),
  3103. ])
  3104. class TableCellToolTipListenerDataType:
  3105. def get_xml_type():
  3106. return "TableCellToolTipListener"
  3107. get_xml_type = staticmethod(get_xml_type)
  3108. __az_methods__ = AzureusMethods([
  3109. _method('cellHover', ['TableCell']),
  3110. _method('cellHoverComplete', ['TableCell']),
  3111. ])
  3112. class TableColumnDataType:
  3113. def get_xml_type():
  3114. return "TableColumn"
  3115. get_xml_type = staticmethod(get_xml_type)
  3116. __az_constants__ = {
  3117. 'ALIGN_CENTER': 3,
  3118. 'ALIGN_LEAD': 1,
  3119. 'ALIGN_TRAIL': 2,
  3120. 'INTERVAL_GRAPHIC': -1,
  3121. 'INTERVAL_INVALID_ONLY': -3,
  3122. 'INTERVAL_LIVE': -2,
  3123. 'POSITION_INVISIBLE': -1,
  3124. 'POSITION_LAST': -2,
  3125. 'TYPE_GRAPHIC': 2,
  3126. 'TYPE_TEXT': 1,
  3127. 'TYPE_TEXT_ONLY': 3,
  3128. }
  3129. #
  3130. # The following methods are not available, because either the return
  3131. # type is not supported or / and one or more parameters are not
  3132. # remotely supported:
  3133. #
  3134. # void addListeners(Object)
  3135. #
  3136. __az_methods__ = AzureusMethods([
  3137. _method('addCellAddedListener', ['TableCellAddedListener']),
  3138. _method('addCellDisposeListener', ['TableCellDisposeListener']),
  3139. _method('addCellMouseListener', ['TableCellMouseListener']),
  3140. _method('addCellRefreshListener', ['TableCellRefreshListener']),
  3141. _method('addCellToolTipListener', ['TableCellToolTipListener']),
  3142. _method('addContextMenuItem', ['String'], 'TableContextMenuItem'),
  3143. _method('getAlignment', [], 'int'),
  3144. _method('getName', [], 'String'),
  3145. _method('getPosition', [], 'int'),
  3146. _method('getRefreshInterval', [], 'int'),
  3147. _method('getTableID', [], 'String'),
  3148. _method('getType', [], 'int'),
  3149. _method('getWidth', [], 'int'),
  3150. _method('initialize', ['int', 'int', 'int', 'int']),
  3151. _method('initialize', ['int', 'int', 'int']),
  3152. _method('invalidateCells'),
  3153. _method('removeCellAddedListener', ['TableCellAddedListener']),
  3154. _method('removeCellDisposeListener', ['TableCellDisposeListener']),
  3155. _method('removeCellMouseListener', ['TableCellMouseListener']),
  3156. _method('removeCellRefreshListener', ['TableCellRefreshListener']),
  3157. _method('removeCellToolTipListener', ['TableCellToolTipListener']),
  3158. _method('setAlignment', ['int']),
  3159. _method('setPosition', ['int']),
  3160. _method('setRefreshInterval', ['int']),
  3161. _method('setType', ['int']),
  3162. _method('setWidth', ['int']),
  3163. ])
  3164. class TableContextMenuItemDataType:
  3165. def get_xml_type():
  3166. return "TableContextMenuItem"
  3167. get_xml_type = staticmethod(get_xml_type)
  3168. __az_constants__ = {
  3169. 'STYLE_CHECK': 2,
  3170. 'STYLE_PUSH': 1,
  3171. 'STYLE_RADIO': 3,
  3172. 'STYLE_SEPARATOR': 4,
  3173. }
  3174. #
  3175. # The following methods are not available, because either the return
  3176. # type is not supported or / and one or more parameters are not
  3177. # remotely supported:
  3178. #
  3179. # Object getData()
  3180. # void setData(Object)
  3181. #
  3182. __az_methods__ = AzureusMethods([
  3183. _method('addFillListener', ['MenuItemFillListener']),
  3184. _method('addListener', ['MenuItemListener']),
  3185. _method('getGraphic', [], 'Graphic'),
  3186. _method('getResourceKey', [], 'String'),
  3187. _method('getStyle', [], 'int'),
  3188. _method('getTableID', [], 'String'),
  3189. _method('isEnabled', [], 'boolean'),
  3190. _method('removeFillListener', ['MenuItemFillListener']),
  3191. _method('removeListener', ['MenuItemListener']),
  3192. _method('setEnabled', ['boolean']),
  3193. _method('setGraphic', ['Graphic']),
  3194. _method('setStyle', ['int']),
  3195. ])
  3196. class TableManagerDataType:
  3197. def get_xml_type():
  3198. return "TableManager"
  3199. get_xml_type = staticmethod(get_xml_type)
  3200. __az_constants__ = {
  3201. 'TABLE_MYSHARES': "MyShares",
  3202. 'TABLE_MYTORRENTS_COMPLETE': "MySeeders",
  3203. 'TABLE_MYTORRENTS_INCOMPLETE': "MyTorrents",
  3204. 'TABLE_MYTRACKER': "MyTracker",
  3205. 'TABLE_TORRENT_FILES': "Files",
  3206. 'TABLE_TORRENT_PEERS': "Peers",
  3207. 'TABLE_TORRENT_PIECES': "Pieces",
  3208. }
  3209. __az_methods__ = AzureusMethods([
  3210. _method('addColumn', ['TableColumn']),
  3211. _method('addContextMenuItem', ['String', 'String'], 'TableContextMenuItem'),
  3212. _method('createColumn', ['String', 'String'], 'TableColumn'),
  3213. ])
  3214. class TableRowDataType:
  3215. def get_xml_type():
  3216. return "TableRow"
  3217. get_xml_type = staticmethod(get_xml_type)
  3218. #
  3219. # The following methods are not available, because either the return
  3220. # type is not supported or / and one or more parameters are not
  3221. # remotely supported:
  3222. #
  3223. # Object getDataSource()
  3224. #
  3225. __az_methods__ = AzureusMethods([
  3226. _method('getTableCell', ['String'], 'TableCell'),
  3227. _method('getTableID', [], 'String'),
  3228. _method('isValid', [], 'boolean'),
  3229. ])
  3230. #------------------------------------------------------------------------------
  3231. #
  3232. # Classes for package:
  3233. # org.gudy.azureus2.plugins.ui.tables.mytorrents
  3234. #
  3235. #------------------------------------------------------------------------------
  3236. class MyTorrentsTableItemDataType:
  3237. def get_xml_type():
  3238. return "MyTorrentsTableItem"
  3239. get_xml_type = staticmethod(get_xml_type)
  3240. __az_methods__ = AzureusMethods([
  3241. _method('getDownload', [], 'Download'),
  3242. _method('setText', ['String'], 'boolean'),
  3243. ])
  3244. class PluginMyTorrentsItemDataType:
  3245. def get_xml_type():
  3246. return "PluginMyTorrentsItem"
  3247. get_xml_type = staticmethod(get_xml_type)
  3248. __az_methods__ = AzureusMethods([
  3249. _method('getIntValue', [], 'int'),
  3250. _method('getStringValue', [], 'String'),
  3251. _method('refresh'),
  3252. ])
  3253. class PluginMyTorrentsItemFactoryDataType:
  3254. def get_xml_type():
  3255. return "PluginMyTorrentsItemFactory"
  3256. get_xml_type = staticmethod(get_xml_type)
  3257. __az_constants__ = {
  3258. 'ORIENT_LEFT': "L",
  3259. 'ORIENT_RIGHT': "R",
  3260. 'POSITION_INVISIBLE': -1,
  3261. 'POSITION_LAST': -2,
  3262. 'TABLE_ALL': 4,
  3263. 'TABLE_COMPLETE': 1,
  3264. 'TABLE_INCOMPLETE': 2,
  3265. 'TYPE_INT': "I",
  3266. 'TYPE_STRING': "S",
  3267. }
  3268. __az_methods__ = AzureusMethods([
  3269. _method('getDefaultPosition', [], 'int'),
  3270. _method('getDefaultSize', [], 'int'),
  3271. _method('getInstance', ['MyTorrentsTableItem'], 'PluginMyTorrentsItem'),
  3272. _method('getName', [], 'String'),
  3273. _method('getOrientation', [], 'String'),
  3274. _method('getTablesVisibleIn', [], 'int'),
  3275. _method('getType', [], 'String'),
  3276. ])
  3277. #------------------------------------------------------------------------------
  3278. #
  3279. # Classes for package:
  3280. # org.gudy.azureus2.plugins.ui.tables.peers
  3281. #
  3282. #------------------------------------------------------------------------------
  3283. class PeerTableItemDataType:
  3284. def get_xml_type():
  3285. return "PeerTableItem"
  3286. get_xml_type = staticmethod(get_xml_type)
  3287. __az_methods__ = AzureusMethods([
  3288. _method('getPeer', [], 'Peer'),
  3289. _method('setText', ['String'], 'boolean'),
  3290. ])
  3291. class PluginPeerItemDataType:
  3292. def get_xml_type():
  3293. return "PluginPeerItem"
  3294. get_xml_type = staticmethod(get_xml_type)
  3295. __az_methods__ = AzureusMethods([
  3296. _method('getIntValue', [], 'int'),
  3297. _method('getStringValue', [], 'String'),
  3298. _method('refresh'),
  3299. ])
  3300. class PluginPeerItemFactoryDataType:
  3301. def get_xml_type():
  3302. return "PluginPeerItemFactory"
  3303. get_xml_type = staticmethod(get_xml_type)
  3304. __az_constants__ = {
  3305. 'TYPE_INT': "I",
  3306. 'TYPE_STRING': "S",
  3307. }
  3308. __az_methods__ = AzureusMethods([
  3309. _method('getDefaultSize', [], 'int'),
  3310. _method('getInstance', ['PeerTableItem'], 'PluginPeerItem'),
  3311. _method('getName', [], 'String'),
  3312. _method('getType', [], 'String'),
  3313. ])
  3314. #------------------------------------------------------------------------------
  3315. #
  3316. # Classes for package:
  3317. # org.gudy.azureus2.plugins.update
  3318. #
  3319. #------------------------------------------------------------------------------
  3320. class UpdatableComponentDataType:
  3321. def get_xml_type():
  3322. return "UpdatableComponent"
  3323. get_xml_type = staticmethod(get_xml_type)
  3324. __az_methods__ = AzureusMethods([
  3325. _method('checkForUpdate', ['UpdateChecker']),
  3326. _method('getMaximumCheckTime', [], 'int'),
  3327. _method('getName', [], 'String'),
  3328. ])
  3329. class UpdateDataType:
  3330. def get_xml_type():
  3331. return "Update"
  3332. get_xml_type = staticmethod(get_xml_type)
  3333. __az_constants__ = {
  3334. 'RESTART_REQUIRED_MAYBE': 3,
  3335. 'RESTART_REQUIRED_NO': 1,
  3336. 'RESTART_REQUIRED_YES': 2,
  3337. }
  3338. #
  3339. # The following methods are not available, because either the return
  3340. # type is not supported or / and one or more parameters are not
  3341. # remotely supported:
  3342. #
  3343. # Object getDecision(int, String, String, Object)
  3344. # Object getUserObject()
  3345. # void setUserObject(Object)
  3346. #
  3347. __az_methods__ = AzureusMethods([
  3348. _method('addListener', ['UpdateListener']),
  3349. _method('cancel'),
  3350. _method('complete'),
  3351. _method('getCheckInstance', [], 'UpdateCheckInstance'),
  3352. _method('getDescription', [], 'String[]'),
  3353. _method('getDownloaders', [], 'ResourceDownloader[]'),
  3354. _method('getName', [], 'String'),
  3355. _method('getNewVersion', [], 'String'),
  3356. _method('getRestartRequired', [], 'int'),
  3357. _method('isMandatory', [], 'boolean'),
  3358. _method('removeListener', ['UpdateListener']),
  3359. _method('setRestartRequired', ['int']),
  3360. ])
  3361. class UpdateCheckerDataType:
  3362. def get_xml_type():
  3363. return "UpdateChecker"
  3364. get_xml_type = staticmethod(get_xml_type)
  3365. __az_methods__ = AzureusMethods([
  3366. _method('addListener', ['UpdateCheckerListener']),
  3367. _method('addProgressListener', ['UpdateProgressListener']),
  3368. _method('addUpdate', ['String', 'String[]', 'String', 'ResourceDownloader', 'int'], 'Update'),
  3369. _method('addUpdate', ['String', 'String[]', 'String', 'ResourceDownloader[]', 'int'], 'Update'),
  3370. _method('completed'),
  3371. _method('createInstaller', [], 'UpdateInstaller'),
  3372. _method('failed'),
  3373. _method('getCheckInstance', [], 'UpdateCheckInstance'),
  3374. _method('getComponent', [], 'UpdatableComponent'),
  3375. _method('removeListener', ['UpdateCheckerListener']),
  3376. _method('removeProgressListener', ['UpdateProgressListener']),
  3377. _method('reportProgress', ['String']),
  3378. ])
  3379. class UpdateCheckerListenerDataType:
  3380. def get_xml_type():
  3381. return "UpdateCheckerListener"
  3382. get_xml_type = staticmethod(get_xml_type)
  3383. __az_methods__ = AzureusMethods([
  3384. _method('cancelled', ['UpdateChecker']),
  3385. _method('completed', ['UpdateChecker']),
  3386. _method('failed', ['UpdateChecker']),
  3387. ])
  3388. class UpdateCheckInstanceDataType:
  3389. def get_xml_type():
  3390. return "UpdateCheckInstance"
  3391. get_xml_type = staticmethod(get_xml_type)
  3392. __az_constants__ = {
  3393. 'UCI_INSTALL': 1,
  3394. 'UCI_UNINSTALL': 3,
  3395. 'UCI_UPDATE': 2,
  3396. }
  3397. __az_methods__ = AzureusMethods([
  3398. _method('addDecisionListener', ['UpdateManagerDecisionListener']),
  3399. _method('addListener', ['UpdateCheckInstanceListener']),
  3400. _method('addUpdatableComponent', ['UpdatableComponent', 'boolean']),
  3401. _method('cancel'),
  3402. _method('createInstaller', [], 'UpdateInstaller'),
  3403. _method('getCheckers', [], 'UpdateChecker[]'),
  3404. _method('getManager', [], 'UpdateManager'),
  3405. _method('getName', [], 'String'),
  3406. _method('getType', [], 'int'),
  3407. _method('getUpdates', [], 'Update[]'),
  3408. _method('isCancelled', [], 'boolean'),
  3409. _method('removeDecisionListener', ['UpdateManagerDecisionListener']),
  3410. _method('removeListener', ['UpdateCheckInstanceListener']),
  3411. _method('start'),
  3412. ])
  3413. class UpdateCheckInstanceListenerDataType:
  3414. def get_xml_type():
  3415. return "UpdateCheckInstanceListener"
  3416. get_xml_type = staticmethod(get_xml_type)
  3417. __az_methods__ = AzureusMethods([
  3418. _method('cancelled', ['UpdateCheckInstance']),
  3419. _method('complete', ['UpdateCheckInstance']),
  3420. ])
  3421. class UpdateInstallerDataType:
  3422. def get_xml_type():
  3423. return "UpdateInstaller"
  3424. get_xml_type = staticmethod(get_xml_type)
  3425. #
  3426. # The following methods are not available, because either the return
  3427. # type is not supported or / and one or more parameters are not
  3428. # remotely supported:
  3429. #
  3430. # void addResource(String, InputStream)
  3431. # void addResource(String, InputStream, boolean)
  3432. #
  3433. __az_methods__ = AzureusMethods([
  3434. _method('addChangeRightsAction', ['String', 'String']),
  3435. _method('addMoveAction', ['String', 'String']),
  3436. _method('addRemoveAction', ['String']),
  3437. _method('getInstallDir', [], 'String'),
  3438. _method('getUserDir', [], 'String'),
  3439. ])
  3440. class UpdateListenerDataType:
  3441. def get_xml_type():
  3442. return "UpdateListener"
  3443. get_xml_type = staticmethod(get_xml_type)
  3444. __az_methods__ = AzureusMethods([
  3445. _method('complete', ['Update']),
  3446. ])
  3447. class UpdateManagerDataType:
  3448. def get_xml_type():
  3449. return "UpdateManager"
  3450. get_xml_type = staticmethod(get_xml_type)
  3451. __az_methods__ = AzureusMethods([
  3452. _method('addListener', ['UpdateManagerListener']),
  3453. _method('applyUpdates', ['boolean']),
  3454. _method('createEmptyUpdateCheckInstance', ['int', 'String'], 'UpdateCheckInstance'),
  3455. _method('createInstaller', [], 'UpdateInstaller'),
  3456. _method('createUpdateCheckInstance', [], 'UpdateCheckInstance'),
  3457. _method('createUpdateCheckInstance', ['int', 'String'], 'UpdateCheckInstance'),
  3458. _method('getInstallers', [], 'UpdateInstaller[]'),
  3459. _method('registerUpdatableComponent', ['UpdatableComponent', 'boolean']),
  3460. _method('removeListener', ['UpdateManagerListener']),
  3461. _method('restart'),
  3462. ])
  3463. class UpdateManagerDecisionListenerDataType:
  3464. def get_xml_type():
  3465. return "UpdateManagerDecisionListener"
  3466. get_xml_type = staticmethod(get_xml_type)
  3467. __az_constants__ = {
  3468. 'DT_STRING_ARRAY_TO_STRING': 0,
  3469. }
  3470. #
  3471. # The following methods are not available, because either the return
  3472. # type is not supported or / and one or more parameters are not
  3473. # remotely supported:
  3474. #
  3475. # Object decide(Update, int, String, String, Object)
  3476. #
  3477. class UpdateManagerListenerDataType:
  3478. def get_xml_type():
  3479. return "UpdateManagerListener"
  3480. get_xml_type = staticmethod(get_xml_type)
  3481. __az_methods__ = AzureusMethods([
  3482. _method('checkInstanceCreated', ['UpdateCheckInstance']),
  3483. ])
  3484. class UpdateProgressListenerDataType:
  3485. def get_xml_type():
  3486. return "UpdateProgressListener"
  3487. get_xml_type = staticmethod(get_xml_type)
  3488. __az_methods__ = AzureusMethods([
  3489. _method('reportProgress', ['String']),
  3490. ])
  3491. #------------------------------------------------------------------------------
  3492. #
  3493. # Classes for package:
  3494. # org.gudy.azureus2.plugins.utils
  3495. #
  3496. #------------------------------------------------------------------------------
  3497. class AggregatedDispatcherDataType:
  3498. def get_xml_type():
  3499. return "AggregatedDispatcher"
  3500. get_xml_type = staticmethod(get_xml_type)
  3501. #
  3502. # The following methods are not available, because either the return
  3503. # type is not supported or / and one or more parameters are not
  3504. # remotely supported:
  3505. #
  3506. # void add(Runnable)
  3507. # Runnable remove(Runnable)
  3508. #
  3509. __az_methods__ = AzureusMethods([
  3510. _method('destroy'),
  3511. ])
  3512. class AggregatedListDataType:
  3513. def get_xml_type():
  3514. return "AggregatedList"
  3515. get_xml_type = staticmethod(get_xml_type)
  3516. #
  3517. # The following methods are not available, because either the return
  3518. # type is not supported or / and one or more parameters are not
  3519. # remotely supported:
  3520. #
  3521. # void add(Object)
  3522. # Object remove(Object)
  3523. #
  3524. __az_methods__ = AzureusMethods([
  3525. _method('destroy'),
  3526. ])
  3527. class AggregatedListAcceptorDataType:
  3528. def get_xml_type():
  3529. return "AggregatedListAcceptor"
  3530. get_xml_type = staticmethod(get_xml_type)
  3531. #
  3532. # The following methods are not available, because either the return
  3533. # type is not supported or / and one or more parameters are not
  3534. # remotely supported:
  3535. #
  3536. # void accept(List)
  3537. #
  3538. class ByteArrayWrapperDataType:
  3539. def get_xml_type():
  3540. return "ByteArrayWrapper"
  3541. get_xml_type = staticmethod(get_xml_type)
  3542. __az_methods__ = AzureusMethods([
  3543. _method('getBytes', [], 'byte[]'),
  3544. ])
  3545. class FormattersDataType:
  3546. def get_xml_type():
  3547. return "Formatters"
  3548. get_xml_type = staticmethod(get_xml_type)
  3549. #
  3550. # The following methods are not available, because either the return
  3551. # type is not supported or / and one or more parameters are not
  3552. # remotely supported:
  3553. #
  3554. # Map bDecode(byte[])
  3555. # byte[] bEncode(Map)
  3556. # Comparator getAlphanumericComparator(boolean)
  3557. #
  3558. __az_methods__ = AzureusMethods([
  3559. _method('base32Decode', ['String'], 'byte[]'),
  3560. _method('base32Encode', ['byte[]'], 'String'),
  3561. _method('decodeBytesFromString', ['String'], 'byte[]'),
  3562. _method('encodeBytesToString', ['byte[]'], 'String'),
  3563. _method('formatByteArray', ['byte[]', 'boolean'], 'String'),
  3564. _method('formatByteCountToKiBEtc', ['long'], 'String'),
  3565. _method('formatByteCountToKiBEtcPerSec', ['long'], 'String'),
  3566. _method('formatDate', ['long'], 'String'),
  3567. _method('formatPercentFromThousands', ['long'], 'String'),
  3568. _method('formatTimeFromSeconds', ['long'], 'String'),
  3569. ])
  3570. class LocaleDecoderDataType:
  3571. def get_xml_type():
  3572. return "LocaleDecoder"
  3573. get_xml_type = staticmethod(get_xml_type)
  3574. __az_methods__ = AzureusMethods([
  3575. _method('decode', ['byte[]'], 'String'),
  3576. _method('getName', [], 'String'),
  3577. ])
  3578. class LocaleListenerDataType:
  3579. def get_xml_type():
  3580. return "LocaleListener"
  3581. get_xml_type = staticmethod(get_xml_type)
  3582. #
  3583. # The following methods are not available, because either the return
  3584. # type is not supported or / and one or more parameters are not
  3585. # remotely supported:
  3586. #
  3587. # void localeChanged(Locale)
  3588. #
  3589. class LocaleUtilitiesDataType:
  3590. def get_xml_type():
  3591. return "LocaleUtilities"
  3592. get_xml_type = staticmethod(get_xml_type)
  3593. __az_methods__ = AzureusMethods([
  3594. _method('addListener', ['LocaleListener']),
  3595. _method('getDecoders', [], 'LocaleDecoder[]'),
  3596. _method('getLocalisedMessageText', ['String'], 'String'),
  3597. _method('getLocalisedMessageText', ['String', 'String[]'], 'String'),
  3598. _method('integrateLocalisedMessageBundle', ['String']),
  3599. _method('removeListener', ['LocaleListener']),
  3600. ])
  3601. class MonitorDataType:
  3602. def get_xml_type():
  3603. return "Monitor"
  3604. get_xml_type = staticmethod(get_xml_type)
  3605. __az_methods__ = AzureusMethods([
  3606. _method('enter'),
  3607. _method('exit'),
  3608. _method('hasWaiters', [], 'boolean'),
  3609. _method('isOwned', [], 'boolean'),
  3610. ])
  3611. class PooledByteBufferDataType:
  3612. def get_xml_type():
  3613. return "PooledByteBuffer"
  3614. get_xml_type = staticmethod(get_xml_type)
  3615. #
  3616. # The following methods are not available, because either the return
  3617. # type is not supported or / and one or more parameters are not
  3618. # remotely supported:
  3619. #
  3620. # ByteBuffer toByteBuffer()
  3621. #
  3622. __az_methods__ = AzureusMethods([
  3623. _method('returnToPool'),
  3624. _method('toByteArray', [], 'byte[]'),
  3625. ])
  3626. class SemaphoreDataType:
  3627. def get_xml_type():
  3628. return "Semaphore"
  3629. get_xml_type = staticmethod(get_xml_type)
  3630. __az_methods__ = AzureusMethods([
  3631. _method('release'),
  3632. _method('reserve'),
  3633. _method('reserve', ['long'], 'boolean'),
  3634. _method('reserveIfAvailable', [], 'boolean'),
  3635. ])
  3636. class ShortCutsDataType:
  3637. def get_xml_type():
  3638. return "ShortCuts"
  3639. get_xml_type = staticmethod(get_xml_type)
  3640. __az_methods__ = AzureusMethods([
  3641. _method('getDownload', ['byte[]'], 'Download'),
  3642. _method('getDownloadStats', ['byte[]'], 'DownloadStats'),
  3643. _method('removeDownload', ['byte[]']),
  3644. _method('restartDownload', ['byte[]']),
  3645. _method('stopDownload', ['byte[]']),
  3646. ])
  3647. class UtilitiesDataType:
  3648. def get_xml_type():
  3649. return "Utilities"
  3650. get_xml_type = staticmethod(get_xml_type)
  3651. #
  3652. # The following methods are not available, because either the return
  3653. # type is not supported or / and one or more parameters are not
  3654. # remotely supported:
  3655. #
  3656. # ByteBuffer allocateDirectByteBuffer(int)
  3657. # void createThread(String, Runnable)
  3658. # void freeDirectByteBuffer(ByteBuffer)
  3659. # InputStream getImageAsStream(String)
  3660. # InetAddress getPublicAddress()
  3661. # Map readResilientBEncodedFile(File, String, boolean)
  3662. # String reverseDNSLookup(InetAddress)
  3663. # void writeResilientBEncodedFile(File, String, Map, boolean)
  3664. #
  3665. __az_methods__ = AzureusMethods([
  3666. _method('allocatePooledByteBuffer', ['byte[]'], 'PooledByteBuffer'),
  3667. _method('allocatePooledByteBuffer', ['int'], 'PooledByteBuffer'),
  3668. _method('compareVersions', ['String', 'String'], 'int'),
  3669. _method('createAggregatedDispatcher', ['long', 'long'], 'AggregatedDispatcher'),
  3670. _method('createAggregatedList', ['AggregatedListAcceptor', 'long', 'long'], 'AggregatedList'),
  3671. _method('createProcess', ['String']),
  3672. _method('createTimer', ['String', 'boolean'], 'UTTimer'),
  3673. _method('createTimer', ['String'], 'UTTimer'),
  3674. _method('createWrapper', ['byte[]'], 'ByteArrayWrapper'),
  3675. _method('getAzureusProgramDir', [], 'String'),
  3676. _method('getAzureusUserDir', [], 'String'),
  3677. _method('getCurrentSystemTime', [], 'long'),
  3678. _method('getFormatters', [], 'Formatters'),
  3679. _method('getLocaleUtilities', [], 'LocaleUtilities'),
  3680. _method('getMonitor', [], 'Monitor'),
  3681. _method('getResourceDownloaderFactory', [], 'ResourceDownloaderFactory'),
  3682. _method('getResourceUploaderFactory', [], 'ResourceUploaderFactory'),
  3683. _method('getRSSFeed', ['URL'], 'RSSFeed'),
  3684. _method('getRSSFeed', ['ResourceDownloader'], 'RSSFeed'),
  3685. _method('getSecurityManager', [], 'SESecurityManager'),
  3686. _method('getSemaphore', [], 'Semaphore'),
  3687. _method('getSimpleXMLParserDocumentFactory', [], 'SimpleXMLParserDocumentFactory'),
  3688. _method('isCVSVersion', [], 'boolean'),
  3689. _method('isLinux', [], 'boolean'),
  3690. _method('isOSX', [], 'boolean'),
  3691. _method('isSolaris', [], 'boolean'),
  3692. _method('isWindows', [], 'boolean'),
  3693. ])
  3694. class UTTimerDataType:
  3695. def get_xml_type():
  3696. return "UTTimer"
  3697. get_xml_type = staticmethod(get_xml_type)
  3698. __az_methods__ = AzureusMethods([
  3699. _method('addEvent', ['long', 'UTTimerEventPerformer'], 'UTTimerEvent'),
  3700. _method('addPeriodicEvent', ['long', 'UTTimerEventPerformer'], 'UTTimerEvent'),
  3701. _method('destroy'),
  3702. ])
  3703. class UTTimerEventDataType:
  3704. def get_xml_type():
  3705. return "UTTimerEvent"
  3706. get_xml_type = staticmethod(get_xml_type)
  3707. __az_methods__ = AzureusMethods([
  3708. _method('cancel'),
  3709. ])
  3710. class UTTimerEventPerformerDataType:
  3711. def get_xml_type():
  3712. return "UTTimerEventPerformer"
  3713. get_xml_type = staticmethod(get_xml_type)
  3714. __az_methods__ = AzureusMethods([
  3715. _method('perform', ['UTTimerEvent']),
  3716. ])
  3717. #------------------------------------------------------------------------------
  3718. #
  3719. # Classes for package:
  3720. # org.gudy.azureus2.plugins.utils.resourcedownloader
  3721. #
  3722. #------------------------------------------------------------------------------
  3723. class ResourceDownloaderDataType:
  3724. def get_xml_type():
  3725. return "ResourceDownloader"
  3726. get_xml_type = staticmethod(get_xml_type)
  3727. __az_constants__ = {
  3728. 'PR_STRING_CONTENT_TYPE': "ContentType",
  3729. }
  3730. #
  3731. # The following methods are not available, because either the return
  3732. # type is not supported or / and one or more parameters are not
  3733. # remotely supported:
  3734. #
  3735. # InputStream download()
  3736. # Object getProperty(String)
  3737. #
  3738. __az_methods__ = AzureusMethods([
  3739. _method('addListener', ['ResourceDownloaderListener']),
  3740. _method('asyncDownload'),
  3741. _method('cancel'),
  3742. _method('getName', [], 'String'),
  3743. _method('getSize', [], 'long'),
  3744. _method('isCancelled', [], 'boolean'),
  3745. _method('removeListener', ['ResourceDownloaderListener']),
  3746. _method('reportActivity', ['String']),
  3747. ])
  3748. class ResourceDownloaderDelayedFactoryDataType:
  3749. def get_xml_type():
  3750. return "ResourceDownloaderDelayedFactory"
  3751. get_xml_type = staticmethod(get_xml_type)
  3752. __az_methods__ = AzureusMethods([
  3753. _method('create', [], 'ResourceDownloader'),
  3754. ])
  3755. class ResourceDownloaderFactoryDataType:
  3756. def get_xml_type():
  3757. return "ResourceDownloaderFactory"
  3758. get_xml_type = staticmethod(get_xml_type)
  3759. __az_methods__ = AzureusMethods([
  3760. _method('create', ['File'], 'ResourceDownloader'),
  3761. _method('create', ['ResourceDownloaderDelayedFactory'], 'ResourceDownloader'),
  3762. _method('create', ['URL', 'String', 'String'], 'ResourceDownloader'),
  3763. _method('create', ['URL'], 'ResourceDownloader'),
  3764. _method('getAlternateDownloader', ['ResourceDownloader[]', 'int'], 'ResourceDownloader'),
  3765. _method('getAlternateDownloader', ['ResourceDownloader[]'], 'ResourceDownloader'),
  3766. _method('getMetaRefreshDownloader', ['ResourceDownloader'], 'ResourceDownloader'),
  3767. _method('getRandomDownloader', ['ResourceDownloader[]'], 'ResourceDownloader'),
  3768. _method('getRandomDownloader', ['ResourceDownloader[]', 'int'], 'ResourceDownloader'),
  3769. _method('getRetryDownloader', ['ResourceDownloader', 'int'], 'ResourceDownloader'),
  3770. _method('getSuffixBasedDownloader', ['ResourceDownloader'], 'ResourceDownloader'),
  3771. _method('getTimeoutDownloader', ['ResourceDownloader', 'int'], 'ResourceDownloader'),
  3772. _method('getTorrentDownloader', ['ResourceDownloader', 'boolean'], 'ResourceDownloader'),
  3773. _method('getTorrentDownloader', ['ResourceDownloader', 'boolean', 'File'], 'ResourceDownloader'),
  3774. ])
  3775. class ResourceDownloaderListenerDataType:
  3776. def get_xml_type():
  3777. return "ResourceDownloaderListener"
  3778. get_xml_type = staticmethod(get_xml_type)
  3779. #
  3780. # The following methods are not available, because either the return
  3781. # type is not supported or / and one or more parameters are not
  3782. # remotely supported:
  3783. #
  3784. # boolean completed(ResourceDownloader, InputStream)
  3785. # void failed(ResourceDownloader, ResourceDownloaderException)
  3786. #
  3787. __az_methods__ = AzureusMethods([
  3788. _method('reportActivity', ['ResourceDownloader', 'String']),
  3789. _method('reportPercentComplete', ['ResourceDownloader', 'int']),
  3790. ])
  3791. #------------------------------------------------------------------------------
  3792. #
  3793. # Classes for package:
  3794. # org.gudy.azureus2.plugins.utils.resourceuploader
  3795. #
  3796. #------------------------------------------------------------------------------
  3797. class ResourceUploaderDataType:
  3798. def get_xml_type():
  3799. return "ResourceUploader"
  3800. get_xml_type = staticmethod(get_xml_type)
  3801. #
  3802. # The following methods are not available, because either the return
  3803. # type is not supported or / and one or more parameters are not
  3804. # remotely supported:
  3805. #
  3806. # InputStream upload()
  3807. #
  3808. class ResourceUploaderFactoryDataType:
  3809. def get_xml_type():
  3810. return "ResourceUploaderFactory"
  3811. get_xml_type = staticmethod(get_xml_type)
  3812. #
  3813. # The following methods are not available, because either the return
  3814. # type is not supported or / and one or more parameters are not
  3815. # remotely supported:
  3816. #
  3817. # ResourceUploader create(URL, InputStream)
  3818. # ResourceUploader create(URL, InputStream, String, String)
  3819. #
  3820. #------------------------------------------------------------------------------
  3821. #
  3822. # Classes for package:
  3823. # org.gudy.azureus2.plugins.utils.security
  3824. #
  3825. #------------------------------------------------------------------------------
  3826. class CertificateListenerDataType:
  3827. def get_xml_type():
  3828. return "CertificateListener"
  3829. get_xml_type = staticmethod(get_xml_type)
  3830. #
  3831. # The following methods are not available, because either the return
  3832. # type is not supported or / and one or more parameters are not
  3833. # remotely supported:
  3834. #
  3835. # boolean trustCertificate(String, X509Certificate)
  3836. #
  3837. class PasswordListenerDataType:
  3838. def get_xml_type():
  3839. return "PasswordListener"
  3840. get_xml_type = staticmethod(get_xml_type)
  3841. #
  3842. # The following methods are not available, because either the return
  3843. # type is not supported or / and one or more parameters are not
  3844. # remotely supported:
  3845. #
  3846. # PasswordAuthentication getAuthentication(String, URL)
  3847. #
  3848. __az_methods__ = AzureusMethods([
  3849. _method('setAuthenticationOutcome', ['String', 'URL', 'boolean']),
  3850. ])
  3851. class SESecurityManagerDataType:
  3852. def get_xml_type():
  3853. return "SESecurityManager"
  3854. get_xml_type = staticmethod(get_xml_type)
  3855. #
  3856. # The following methods are not available, because either the return
  3857. # type is not supported or / and one or more parameters are not
  3858. # remotely supported:
  3859. #
  3860. # Certificate createSelfSignedCertificate(String, String, int)
  3861. # KeyStore getKeyStore()
  3862. # KeyStore getTrustStore()
  3863. # SSLSocketFactory installServerCertificate(URL)
  3864. # void runWithAuthenticator(Authenticator, Runnable)
  3865. #
  3866. __az_methods__ = AzureusMethods([
  3867. _method('addCertificateListener', ['CertificateListener']),
  3868. _method('addPasswordListener', ['PasswordListener']),
  3869. _method('calculateSHA1', ['byte[]'], 'byte[]'),
  3870. _method('removeCertificateListener', ['CertificateListener']),
  3871. _method('removePasswordListener', ['PasswordListener']),
  3872. ])
  3873. #------------------------------------------------------------------------------
  3874. #
  3875. # Classes for package:
  3876. # org.gudy.azureus2.plugins.utils.xml.rss
  3877. #
  3878. #------------------------------------------------------------------------------
  3879. class RSSChannelDataType:
  3880. def get_xml_type():
  3881. return "RSSChannel"
  3882. get_xml_type = staticmethod(get_xml_type)
  3883. #
  3884. # The following methods are not available, because either the return
  3885. # type is not supported or / and one or more parameters are not
  3886. # remotely supported:
  3887. #
  3888. # Date getPublicationDate()
  3889. #
  3890. __az_methods__ = AzureusMethods([
  3891. _method('getDescription', [], 'String'),
  3892. _method('getItems', [], 'RSSItem[]'),
  3893. _method('getLink', [], 'URL'),
  3894. _method('getNode', [], 'SimpleXMLParserDocumentNode'),
  3895. _method('getTitle', [], 'String'),
  3896. ])
  3897. class RSSFeedDataType:
  3898. def get_xml_type():
  3899. return "RSSFeed"
  3900. get_xml_type = staticmethod(get_xml_type)
  3901. __az_methods__ = AzureusMethods([
  3902. _method('getChannels', [], 'RSSChannel[]'),
  3903. ])
  3904. class RSSItemDataType:
  3905. def get_xml_type():
  3906. return "RSSItem"
  3907. get_xml_type = staticmethod(get_xml_type)
  3908. #
  3909. # The following methods are not available, because either the return
  3910. # type is not supported or / and one or more parameters are not
  3911. # remotely supported:
  3912. #
  3913. # Date getPublicationDate()
  3914. #
  3915. __az_methods__ = AzureusMethods([
  3916. _method('getDescription', [], 'String'),
  3917. _method('getLink', [], 'URL'),
  3918. _method('getNode', [], 'SimpleXMLParserDocumentNode'),
  3919. _method('getTitle', [], 'String'),
  3920. ])
  3921. #------------------------------------------------------------------------------
  3922. #
  3923. # Classes for package:
  3924. # org.gudy.azureus2.plugins.utils.xml.simpleparser
  3925. #
  3926. #------------------------------------------------------------------------------
  3927. class SimpleXMLParserDocumentDataType:
  3928. def get_xml_type():
  3929. return "SimpleXMLParserDocument"
  3930. get_xml_type = staticmethod(get_xml_type)
  3931. __az_methods__ = AzureusMethods([
  3932. _method('getAttribute', ['String'], 'SimpleXMLParserDocumentAttribute'),
  3933. _method('getAttributes', [], 'SimpleXMLParserDocumentAttribute[]'),
  3934. _method('getChild', ['String'], 'SimpleXMLParserDocumentNode'),
  3935. _method('getChildren', [], 'SimpleXMLParserDocumentNode[]'),
  3936. _method('getName', [], 'String'),
  3937. _method('getValue', [], 'String'),
  3938. _method('print'),
  3939. ])
  3940. class SimpleXMLParserDocumentAttributeDataType:
  3941. def get_xml_type():
  3942. return "SimpleXMLParserDocumentAttribute"
  3943. get_xml_type = staticmethod(get_xml_type)
  3944. __az_methods__ = AzureusMethods([
  3945. _method('getName', [], 'String'),
  3946. _method('getValue', [], 'String'),
  3947. ])
  3948. class SimpleXMLParserDocumentFactoryDataType:
  3949. def get_xml_type():
  3950. return "SimpleXMLParserDocumentFactory"
  3951. get_xml_type = staticmethod(get_xml_type)
  3952. #
  3953. # The following methods are not available, because either the return
  3954. # type is not supported or / and one or more parameters are not
  3955. # remotely supported:
  3956. #
  3957. # SimpleXMLParserDocument create(InputStream)
  3958. #
  3959. __az_methods__ = AzureusMethods([
  3960. _method('create', ['File'], 'SimpleXMLParserDocument'),
  3961. _method('create', ['String'], 'SimpleXMLParserDocument'),
  3962. ])
  3963. class SimpleXMLParserDocumentNodeDataType:
  3964. def get_xml_type():
  3965. return "SimpleXMLParserDocumentNode"
  3966. get_xml_type = staticmethod(get_xml_type)
  3967. __az_methods__ = AzureusMethods([
  3968. _method('getAttribute', ['String'], 'SimpleXMLParserDocumentAttribute'),
  3969. _method('getAttributes', [], 'SimpleXMLParserDocumentAttribute[]'),
  3970. _method('getChild', ['String'], 'SimpleXMLParserDocumentNode'),
  3971. _method('getChildren', [], 'SimpleXMLParserDocumentNode[]'),
  3972. _method('getName', [], 'String'),
  3973. _method('getValue', [], 'String'),
  3974. ])
  3975. del _method
  3976. # XXX: Sort this out.
  3977. PluginConfigDataType.__az_attributes__['cached_property_values'] = 'int[]'
  3978. # Temporary value - should be removed once the import has finished.
  3979. import dopal
  3980. __epydoc_mode = dopal.__dopal_mode__ == 2
  3981. classes_to_undefine = []
  3982. _class_map = {}
  3983. for classname, classobject in locals().items():
  3984. if hasattr(classobject, 'get_xml_type'):
  3985. _class_map[classname] = classobject
  3986. if __epydoc_mode:
  3987. # These classes are required to be defined to get the epydoc code
  3988. # generation to work, because we have custom methods defined.
  3989. #
  3990. # We used to generate API documentation for all classes - but this
  3991. # was generating far too much documentation. So now we just filter
  3992. # it down to those classes which need to exist for obj_impl to be
  3993. # imported properly.
  3994. accepted_classes = [
  3995. 'Download', 'DownloadAnnounceResult', 'DownloadScrapeResult',
  3996. 'DownloadStats', 'PluginConfig', 'PluginInterface', 'Torrent',
  3997. 'DiskManagerFileInfo', 'LoggerChannel', 'Peer',
  3998. ]
  3999. classobject.__plugin_class__ = True
  4000. if classobject.get_xml_type() not in accepted_classes:
  4001. classes_to_undefine.append(classname)
  4002. del classname, classobject, __epydoc_mode
  4003. # Epydoc code - prevents these classes from being generated.
  4004. for class_to_undefine in classes_to_undefine:
  4005. del globals()[class_to_undefine]
  4006. del _class_map[class_to_undefine]
  4007. del class_to_undefine
  4008. del classes_to_undefine