Warning, /network/falkon/src/plugins/PyFalkon/typesystem_pyfalkon.xml is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0"?>
0002 <typesystem package="PyFalkon">
0003     <load-typesystem name="typesystem_webenginecore.xml" generate="no"/>
0004     <load-typesystem name="typesystem_webenginewidgets.xml" generate="no"/>
0005     <load-typesystem name="typesystem_sql.xml" generate="no"/>
0006 
0007     <inject-code class="native" position="beginning">
0008       #include &lt;pythonplugin.h&gt;
0009     </inject-code>
0010 
0011     <namespace-type name="Qz">
0012       <enum-type name="BrowserWindowType"/>
0013       <enum-type name="CommandLineAction"/>
0014       <enum-type name="ObjectName"/>
0015       <enum-type name="NewTabPositionFlag" flags="NewTabPositionFlags"/>
0016       <rejection class="*" field-name="sessionVersion"/>
0017     </namespace-type>
0018 
0019     <object-type name="LineEdit">
0020       <enum-type name="WidgetPosition"/>
0021       <enum-type name="EditAction"/>
0022     </object-type>
0023     <object-type name="SideWidget"/>
0024     <object-type name="SqueezeLabelV1"/>
0025     <object-type name="SqueezeLabelV2"/>
0026     <object-type name="QtSingleApplication">
0027       <include file-name="qtsingleapplication/qtsingleapplication.h" location="global"/>
0028       <modify-function signature="QtSingleApplication(int&amp;,char**,bool)" remove="all"/>
0029       <modify-function signature="QtSingleApplication(QString,int&amp;,char**)" remove="all"/>
0030     </object-type>
0031     <value-type name="LoadRequest">
0032       <enum-type name="Operation"/>
0033     </value-type>
0034     <object-type name="WebPage">
0035       <enum-type name="JsWorld"/>
0036       <modify-function signature="execJavaScript(QString,quint32,int)">
0037         <modify-argument index="2">
0038           <replace-default-expression with="WebPage::UnsafeJsWorld"/>
0039         </modify-argument>
0040       </modify-function>
0041       <modify-function signature="javaScriptPrompt(const QUrl&amp;, const QString&amp;, const QString&amp;, QString*)" remove="all"/>
0042     </object-type>
0043     <object-type name="WebView"/>
0044     <object-type name="WebInspector"/>
0045     <value-type name="WebHitTestResult"/>
0046     <object-type name="PluginInterface">
0047       <enum-type name="InitState"/>
0048     </object-type>
0049     <object-type name="ExternalJsObject">
0050       <include file-name="javascript/externaljsobject.h" location="global"/>
0051     </object-type>
0052     <object-type name="Plugins">
0053       <value-type name="Plugin">
0054         <enum-type name="Type"/>
0055       </value-type>
0056     </object-type>
0057     <value-type name="PluginSpec"/>
0058     <object-type name="PluginProxy">
0059       <enum-type name="EventHandlerType"/>
0060     </object-type>
0061     <object-type name="DesktopNotificationsFactory">
0062       <enum-type name="Type"/>
0063     </object-type>
0064 
0065     <object-type name="AutoSaver"/>
0066     <object-type name="BrowserWindow"/>
0067     <object-type name="DataPaths">
0068       <enum-type name="Path"/>
0069     </object-type>
0070     <object-type name="MainApplication">
0071       <enum-type name="AfterLaunch"/>
0072       <modify-function signature="MainApplication(int&amp;,char**)" remove="all"/>
0073     </object-type>
0074     <object-type name="Settings"/>
0075 
0076     <object-type name="AutoFill"/>
0077     <value-type name="PageFormData"/>
0078     <object-type name="PasswordManager"/>
0079     <value-type name="PasswordEntry"/>
0080     <object-type name="PasswordBackend">
0081       <include file-name="passwordbackends/passwordbackend.h" location="global"/>
0082     </object-type>
0083 
0084     <object-type name="BookmarkItem">
0085       <enum-type name="Type"/>
0086     </object-type>
0087     <object-type name="Bookmarks">
0088       <modify-function signature="addBookmark(BookmarkItem*, BookmarkItem*)">
0089         <modify-argument index="1">
0090           <define-ownership class="target" owner="c++"/>
0091         </modify-argument>
0092         <modify-argument index="2">
0093           <define-ownership class="target" owner="c++"/>
0094         </modify-argument>
0095       </modify-function>
0096     </object-type>
0097     <object-type name="BookmarksModel">
0098       <enum-type name="Roles"/>
0099     </object-type>
0100     <object-type name="BookmarksFoldersMenu"/>
0101     <object-type name="BookmarksFoldersButton"/>
0102     <object-type name="BookmarksTools"/>
0103 
0104     <object-type name="CookieJar"/>
0105     <object-type name="CookieManager"/>
0106 
0107     <object-type name="DownloadItem"/>
0108     <object-type name="DownloadManager">
0109       <enum-type name="DownloadOption"/>
0110       <value-type name="DownloadInfo"/>
0111     </object-type>
0112 
0113     <object-type name="History">
0114       <value-type name="HistoryEntry"/>
0115     </object-type>
0116     <object-type name="HistoryItem"/>
0117     <object-type name="HistoryModel">
0118       <enum-type name="Roles"/>
0119     </object-type>
0120 
0121     <object-type name="LocationBar">
0122       <value-type name="LoadAction">
0123         <enum-type name="Type"/>
0124       </value-type>
0125     </object-type>
0126     <object-type name="NavigationBar"/>
0127 
0128     <object-type name="NetworkManager">
0129       <modify-function signature="certificateError(QWebEngineCertificateError&amp;, QWidget*)" remove="all"/>
0130     </object-type>
0131     <object-type name="UrlInterceptor"/>
0132     <object-type name="ExtensionSchemeHandler">
0133       <include file-name="schemehandlers/extensionschemehandler.h" location="global"/>
0134     </object-type>
0135 
0136     <object-type name="SearchEnginesDialog"/>
0137     <object-type name="SearchEnginesManager">
0138       <value-type name="Engine"/>
0139     </object-type>
0140 
0141     <object-type name="CheckBoxDialog"/>
0142     <object-type name="QzSettings"/>
0143     <object-type name="StatusBar"/>
0144 
0145     <object-type name="SideBarManager">
0146       <modify-function signature="addSidebar(QString,SideBarInterface*)">
0147         <modify-argument index="2">
0148           <define-ownership owner="c++"/>
0149         </modify-argument>
0150       </modify-function>
0151     </object-type>
0152     <object-type name="SideBarInterface">
0153       <modify-function signature="createMenuAction()">
0154         <modify-argument index="return">
0155           <define-ownership class="target" owner="c++"/>
0156         </modify-argument>
0157       </modify-function>
0158       <modify-function signature="createSideBarWidget(BrowserWindow*)">
0159         <modify-argument index="return">
0160           <define-ownership class="target" owner="c++"/>
0161         </modify-argument>
0162       </modify-function>
0163     </object-type>
0164 
0165     <object-type name="ComboTabBar">
0166       <enum-type name="SizeType"/>
0167       <enum-type name="DropIndicatorPosition"/>
0168     </object-type>
0169     <object-type name="TabBar"/>
0170     <object-type name="TabContextMenu">
0171       <enum-type name="Option" flags="Options"/>
0172     </object-type>
0173     <object-type name="TabIcon">
0174       <value-type name="Data"/>
0175     </object-type>
0176     <object-type name="TabModel">
0177       <enum-type name="Roles"/>
0178     </object-type>
0179     <object-type name="TabMruModel"/>
0180     <object-type name="TabStackedWidget"/>
0181     <object-type name="TabTreeModel"/>
0182     <object-type name="TabWidget">
0183       <modify-function signature="addView(LoadRequest,QString,QFlags&lt;Qz::NewTabPositionFlag&gt;,bool,int,bool)">
0184         <modify-argument index="2">
0185           <replace-default-expression with="TabWidget::tr(&quot;New tab&quot;)"/>
0186         </modify-argument>
0187       </modify-function>
0188     </object-type>
0189 
0190     <object-type name="AbstractButtonInterface">
0191       <object-type name="ClickController"/>
0192     </object-type>
0193     <object-type name="ClickableLabel"/>
0194     <object-type name="DelayedFileWatcher"/>
0195     <value-type name="DesktopFile"/>
0196     <object-type name="Menu"/>
0197     <object-type name="Action"/>
0198     <object-type name="IconProvider"/>
0199     <object-type name="QzTools">
0200       <modify-function signature="getOpenFileName(const QString&amp;, QWidget*, const QString&amp;, const QString&amp;, const QString&amp;, QString*, QFlags&lt;QFileDialog::Option&gt;)">
0201         <modify-argument index="return">
0202           <replace-type modified-type="(fileName, selectedFilter)"/>
0203         </modify-argument>
0204         <modify-argument index="6">
0205           <replace-type modified-type="QString"/>
0206           <replace-default-expression with="QString()"/>
0207         </modify-argument>
0208         <inject-code class="target" position="end">
0209           <insert-template name="return_for_QFileDialog"/>
0210         </inject-code>
0211       </modify-function>
0212       <modify-function signature="getOpenFileNames(const QString&amp;, QWidget*, const QString&amp;, const QString&amp;, const QString&amp;, QString*, QFlags&lt;QFileDialog::Option&gt;)">
0213         <modify-argument index="return">
0214           <replace-type modified-type="(fileNames, selectedFilter)"/>
0215         </modify-argument>
0216         <modify-argument index="6">
0217           <replace-type modified-type="QString"/>
0218           <replace-default-expression with="QString()"/>
0219         </modify-argument>
0220         <inject-code class="target" position="end">
0221           <insert-template name="return_for_QFileDialog"/>
0222         </inject-code>
0223       </modify-function>
0224       <modify-function signature="getSaveFileName(const QString&amp;, QWidget*, const QString&amp;, const QString&amp;, const QString&amp;, QString*, QFlags&lt;QFileDialog::Option&gt;)">
0225         <modify-argument index="return">
0226           <replace-type modified-type="(fileName, selectedFilter)"/>
0227         </modify-argument>
0228         <modify-argument index="6">
0229           <replace-type modified-type="QString"/>
0230           <replace-default-expression with="QString()"/>
0231         </modify-argument>
0232         <inject-code class="target" position="end">
0233           <insert-template name="return_for_QFileDialog"/>
0234         </inject-code>
0235       </modify-function>
0236     </object-type>
0237     <object-type name="SqlQueryJob"/>
0238     <object-type name="SqlDatabase"/>
0239     <object-type name="ToolButton"/>
0240     <value-type name="WheelHelper">
0241       <enum-type name="Direction"/>
0242     </value-type>
0243 
0244     <object-type name="SearchToolBar"/>
0245     <object-type name="TabbedWebView"/>
0246     <object-type name="WebTab">
0247       <enum-type name="AddChildBehavior"/>
0248     </object-type>
0249 
0250     <add-function signature="registerPlugin(PluginInterface*)">
0251       <inject-code class="target" position="beginning">
0252         Py_INCREF(%PYARG_1);
0253         pyfalkon_register_plugin(%1);
0254       </inject-code>
0255     </add-function>
0256 
0257     <inject-code class="target" position="end">
0258     QList&lt;QByteArray&gt; version = QByteArray(Qz::VERSION).split('.');
0259     PyObject *pyFalkonVersion = PyTuple_New(3);
0260     for (int i = 0; i &lt; 3; ++i)
0261         PyTuple_SET_ITEM(pyFalkonVersion, i, PyLong_FromLong(version[i].toInt()));
0262     PyModule_AddObject(module, "__version_info__", pyFalkonVersion);
0263     PyModule_AddStringConstant(module, "__version__", Qz::VERSION);
0264     </inject-code>
0265 
0266     <template name="return_for_QFileDialog">
0267     %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%1, %2, %3, %4, %5, &amp;%6, %7);
0268     %PYARG_0 = PyTuple_New(2);
0269     PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%RETURN_TYPE](retval_));
0270     auto ARG6_PTR = &amp;%6;
0271     PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[%ARG6_TYPE](ARG6_PTR));
0272     </template>
0273 
0274     <suppress-warning text="Unable to translate type &quot;std::function&lt;QPoint (QSize)&gt;&quot;:*"/>
0275     <suppress-warning text="Unable to translate type &quot;std::function&lt;void ()&gt;&quot;:*"/>
0276     <suppress-warning text="skipping field 'ClickController::popupClosed'*"/>
0277     <suppress-warning text="skipping field 'ClickController::popupPosition'*"/>
0278 
0279 </typesystem>