mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 19:31:02 +01:00
Update the typesystem file for the Radio -> Internet change and regenerate the Python bindings
This commit is contained in:
parent
69bd5555e7
commit
5d74ff9cc7
@ -7,6 +7,8 @@
|
||||
#include <coverprovider.h>
|
||||
#include <coverproviders.h>
|
||||
#include <directory.h>
|
||||
#include <internetmodel.h>
|
||||
#include <internetservice.h>
|
||||
#include <librarybackend.h>
|
||||
#include <libraryquery.h>
|
||||
#include <player.h>
|
||||
@ -50,8 +52,6 @@
|
||||
#include <qstyle.h>
|
||||
#include <qurl.h>
|
||||
#include <qwidget.h>
|
||||
#include <internetmodel.h>
|
||||
#include <internetservice.h>
|
||||
#include <song.h>
|
||||
#include <specialplaylisttype.h>
|
||||
#include <taskmanager.h>
|
||||
@ -288,6 +288,424 @@ return new PythonQtShell_Directory(); }
|
||||
|
||||
|
||||
|
||||
void PythonQtWrapper_InternetModel::AddService(InternetModel* theWrappedObject, InternetService* service)
|
||||
{
|
||||
( theWrappedObject->AddService(service));
|
||||
}
|
||||
|
||||
bool PythonQtWrapper_InternetModel::IsPlayable(InternetModel* theWrappedObject, const QModelIndex& index) const
|
||||
{
|
||||
return ( theWrappedObject->IsPlayable(index));
|
||||
}
|
||||
|
||||
void PythonQtWrapper_InternetModel::ReloadSettings(InternetModel* theWrappedObject)
|
||||
{
|
||||
( theWrappedObject->ReloadSettings());
|
||||
}
|
||||
|
||||
void PythonQtWrapper_InternetModel::RemoveService(InternetModel* theWrappedObject, InternetService* service)
|
||||
{
|
||||
( theWrappedObject->RemoveService(service));
|
||||
}
|
||||
|
||||
InternetService* PythonQtWrapper_InternetModel::static_InternetModel_ServiceByName(const QString& name)
|
||||
{
|
||||
return (InternetModel::ServiceByName(name));
|
||||
}
|
||||
|
||||
InternetService* PythonQtWrapper_InternetModel::ServiceForIndex(InternetModel* theWrappedObject, const QModelIndex& index) const
|
||||
{
|
||||
return ( theWrappedObject->ServiceForIndex(index));
|
||||
}
|
||||
|
||||
InternetService* PythonQtWrapper_InternetModel::ServiceForItem(InternetModel* theWrappedObject, const QStandardItem* item) const
|
||||
{
|
||||
return ( theWrappedObject->ServiceForItem(item));
|
||||
}
|
||||
|
||||
void PythonQtWrapper_InternetModel::ShowContextMenu(InternetModel* theWrappedObject, const QModelIndex& merged_model_index, const QPoint& global_pos)
|
||||
{
|
||||
( theWrappedObject->ShowContextMenu(merged_model_index, global_pos));
|
||||
}
|
||||
|
||||
Qt::ItemFlags PythonQtWrapper_InternetModel::flags(InternetModel* theWrappedObject, const QModelIndex& index) const
|
||||
{
|
||||
return ( ((PythonQtPublicPromoter_InternetModel*)theWrappedObject)->promoted_flags(index));
|
||||
}
|
||||
|
||||
bool PythonQtWrapper_InternetModel::hasChildren(InternetModel* theWrappedObject, const QModelIndex& parent) const
|
||||
{
|
||||
return ( ((PythonQtPublicPromoter_InternetModel*)theWrappedObject)->promoted_hasChildren(parent));
|
||||
}
|
||||
|
||||
QMimeData* PythonQtWrapper_InternetModel::mimeData(InternetModel* theWrappedObject, const QList<QModelIndex >& indexes) const
|
||||
{
|
||||
return ( ((PythonQtPublicPromoter_InternetModel*)theWrappedObject)->promoted_mimeData(indexes));
|
||||
}
|
||||
|
||||
QStringList PythonQtWrapper_InternetModel::mimeTypes(InternetModel* theWrappedObject) const
|
||||
{
|
||||
return ( ((PythonQtPublicPromoter_InternetModel*)theWrappedObject)->promoted_mimeTypes());
|
||||
}
|
||||
|
||||
PlayerInterface* PythonQtWrapper_InternetModel::player(InternetModel* theWrappedObject) const
|
||||
{
|
||||
return ( theWrappedObject->player());
|
||||
}
|
||||
|
||||
int PythonQtWrapper_InternetModel::rowCount(InternetModel* theWrappedObject, const QModelIndex& parent) const
|
||||
{
|
||||
return ( ((PythonQtPublicPromoter_InternetModel*)theWrappedObject)->promoted_rowCount(parent));
|
||||
}
|
||||
|
||||
TaskManager* PythonQtWrapper_InternetModel::task_manager(InternetModel* theWrappedObject) const
|
||||
{
|
||||
return ( theWrappedObject->task_manager());
|
||||
}
|
||||
|
||||
|
||||
|
||||
QStandardItem* PythonQtShell_InternetService::CreateRootItem()
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "CreateRootItem");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"QStandardItem*"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
|
||||
QStandardItem* returnValue = 0;
|
||||
void* args[1] = {NULL};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) {
|
||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
|
||||
if (args[0]!=&returnValue) {
|
||||
if (args[0]==NULL) {
|
||||
PythonQt::priv()->handleVirtualOverloadReturnError("CreateRootItem", methodInfo, result);
|
||||
} else {
|
||||
returnValue = *((QStandardItem**)args[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return returnValue;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
QModelIndex PythonQtShell_InternetService::GetCurrentIndex()
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetCurrentIndex");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"QModelIndex"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
|
||||
QModelIndex returnValue;
|
||||
void* args[1] = {NULL};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) {
|
||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
|
||||
if (args[0]!=&returnValue) {
|
||||
if (args[0]==NULL) {
|
||||
PythonQt::priv()->handleVirtualOverloadReturnError("GetCurrentIndex", methodInfo, result);
|
||||
} else {
|
||||
returnValue = *((QModelIndex*)args[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return returnValue;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
return QModelIndex();
|
||||
}
|
||||
QWidget* PythonQtShell_InternetService::HeaderWidget() const
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "HeaderWidget");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"QWidget*"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
|
||||
QWidget* returnValue = 0;
|
||||
void* args[1] = {NULL};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) {
|
||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
|
||||
if (args[0]!=&returnValue) {
|
||||
if (args[0]==NULL) {
|
||||
PythonQt::priv()->handleVirtualOverloadReturnError("HeaderWidget", methodInfo, result);
|
||||
} else {
|
||||
returnValue = *((QWidget**)args[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return returnValue;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
return InternetService::HeaderWidget();
|
||||
}
|
||||
QString PythonQtShell_InternetService::Icon()
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Icon");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"QString"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
|
||||
QString returnValue;
|
||||
void* args[1] = {NULL};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) {
|
||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
|
||||
if (args[0]!=&returnValue) {
|
||||
if (args[0]==NULL) {
|
||||
PythonQt::priv()->handleVirtualOverloadReturnError("Icon", methodInfo, result);
|
||||
} else {
|
||||
returnValue = *((QString*)args[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return returnValue;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
return InternetService::Icon();
|
||||
}
|
||||
void PythonQtShell_InternetService::ItemDoubleClicked(QStandardItem* item)
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ItemDoubleClicked");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"" , "QStandardItem*"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
|
||||
void* args[2] = {NULL, (void*)&item};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
InternetService::ItemDoubleClicked(item);
|
||||
}
|
||||
void PythonQtShell_InternetService::LazyPopulate(QStandardItem* parent)
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "LazyPopulate");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"" , "QStandardItem*"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
|
||||
void* args[2] = {NULL, (void*)&parent};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
|
||||
}
|
||||
void PythonQtShell_InternetService::ReloadSettings()
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ReloadSettings");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={""};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
|
||||
void* args[1] = {NULL};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
InternetService::ReloadSettings();
|
||||
}
|
||||
void PythonQtShell_InternetService::ShowContextMenu(const QModelIndex& index, const QPoint& global_pos)
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ShowContextMenu");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"" , "const QModelIndex&" , "const QPoint&"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
|
||||
void* args[3] = {NULL, (void*)&index, (void*)&global_pos};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
InternetService::ShowContextMenu(index, global_pos);
|
||||
}
|
||||
void PythonQtShell_InternetService::childEvent(QChildEvent* arg__1)
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"" , "QChildEvent*"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
|
||||
void* args[2] = {NULL, (void*)&arg__1};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
InternetService::childEvent(arg__1);
|
||||
}
|
||||
void PythonQtShell_InternetService::customEvent(QEvent* arg__1)
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"" , "QEvent*"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
|
||||
void* args[2] = {NULL, (void*)&arg__1};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
InternetService::customEvent(arg__1);
|
||||
}
|
||||
bool PythonQtShell_InternetService::event(QEvent* arg__1)
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"bool" , "QEvent*"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
|
||||
bool returnValue = 0;
|
||||
void* args[2] = {NULL, (void*)&arg__1};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) {
|
||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
|
||||
if (args[0]!=&returnValue) {
|
||||
if (args[0]==NULL) {
|
||||
PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
|
||||
} else {
|
||||
returnValue = *((bool*)args[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return returnValue;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
return InternetService::event(arg__1);
|
||||
}
|
||||
bool PythonQtShell_InternetService::eventFilter(QObject* arg__1, QEvent* arg__2)
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
|
||||
bool returnValue = 0;
|
||||
void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) {
|
||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
|
||||
if (args[0]!=&returnValue) {
|
||||
if (args[0]==NULL) {
|
||||
PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
|
||||
} else {
|
||||
returnValue = *((bool*)args[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return returnValue;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
return InternetService::eventFilter(arg__1, arg__2);
|
||||
}
|
||||
void PythonQtShell_InternetService::timerEvent(QTimerEvent* arg__1)
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"" , "QTimerEvent*"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
|
||||
void* args[2] = {NULL, (void*)&arg__1};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
InternetService::timerEvent(arg__1);
|
||||
}
|
||||
InternetService* PythonQtWrapper_InternetService::new_InternetService(const QString& name, InternetModel* model, QObject* parent)
|
||||
{
|
||||
return new PythonQtShell_InternetService(name, model, parent); }
|
||||
|
||||
QWidget* PythonQtWrapper_InternetService::HeaderWidget(InternetService* theWrappedObject) const
|
||||
{
|
||||
return ( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_HeaderWidget());
|
||||
}
|
||||
|
||||
QString PythonQtWrapper_InternetService::Icon(InternetService* theWrappedObject)
|
||||
{
|
||||
return ( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_Icon());
|
||||
}
|
||||
|
||||
void PythonQtWrapper_InternetService::ItemDoubleClicked(InternetService* theWrappedObject, QStandardItem* item)
|
||||
{
|
||||
( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_ItemDoubleClicked(item));
|
||||
}
|
||||
|
||||
void PythonQtWrapper_InternetService::ReloadSettings(InternetService* theWrappedObject)
|
||||
{
|
||||
( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_ReloadSettings());
|
||||
}
|
||||
|
||||
void PythonQtWrapper_InternetService::ShowContextMenu(InternetService* theWrappedObject, const QModelIndex& index, const QPoint& global_pos)
|
||||
{
|
||||
( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_ShowContextMenu(index, global_pos));
|
||||
}
|
||||
|
||||
InternetModel* PythonQtWrapper_InternetService::model(InternetService* theWrappedObject) const
|
||||
{
|
||||
return ( theWrappedObject->model());
|
||||
}
|
||||
|
||||
QString PythonQtWrapper_InternetService::name(InternetService* theWrappedObject) const
|
||||
{
|
||||
return ( theWrappedObject->name());
|
||||
}
|
||||
|
||||
|
||||
|
||||
void PythonQtShell_LibraryBackend::AddDirectory(const QString& path)
|
||||
{
|
||||
if (_wrapper) {
|
||||
@ -8109,424 +8527,6 @@ void PythonQtWrapper_QueryOptions::set_query_mode(QueryOptions* theWrappedObject
|
||||
|
||||
|
||||
|
||||
void PythonQtWrapper_InternetModel::AddService(InternetModel* theWrappedObject, InternetService* service)
|
||||
{
|
||||
( theWrappedObject->AddService(service));
|
||||
}
|
||||
|
||||
bool PythonQtWrapper_InternetModel::IsPlayable(InternetModel* theWrappedObject, const QModelIndex& index) const
|
||||
{
|
||||
return ( theWrappedObject->IsPlayable(index));
|
||||
}
|
||||
|
||||
void PythonQtWrapper_InternetModel::ReloadSettings(InternetModel* theWrappedObject)
|
||||
{
|
||||
( theWrappedObject->ReloadSettings());
|
||||
}
|
||||
|
||||
void PythonQtWrapper_InternetModel::RemoveService(InternetModel* theWrappedObject, InternetService* service)
|
||||
{
|
||||
( theWrappedObject->RemoveService(service));
|
||||
}
|
||||
|
||||
InternetService* PythonQtWrapper_InternetModel::static_InternetModel_ServiceByName(const QString& name)
|
||||
{
|
||||
return (InternetModel::ServiceByName(name));
|
||||
}
|
||||
|
||||
InternetService* PythonQtWrapper_InternetModel::ServiceForIndex(InternetModel* theWrappedObject, const QModelIndex& index) const
|
||||
{
|
||||
return ( theWrappedObject->ServiceForIndex(index));
|
||||
}
|
||||
|
||||
InternetService* PythonQtWrapper_InternetModel::ServiceForItem(InternetModel* theWrappedObject, const QStandardItem* item) const
|
||||
{
|
||||
return ( theWrappedObject->ServiceForItem(item));
|
||||
}
|
||||
|
||||
void PythonQtWrapper_InternetModel::ShowContextMenu(InternetModel* theWrappedObject, const QModelIndex& merged_model_index, const QPoint& global_pos)
|
||||
{
|
||||
( theWrappedObject->ShowContextMenu(merged_model_index, global_pos));
|
||||
}
|
||||
|
||||
Qt::ItemFlags PythonQtWrapper_InternetModel::flags(InternetModel* theWrappedObject, const QModelIndex& index) const
|
||||
{
|
||||
return ( ((PythonQtPublicPromoter_InternetModel*)theWrappedObject)->promoted_flags(index));
|
||||
}
|
||||
|
||||
bool PythonQtWrapper_InternetModel::hasChildren(InternetModel* theWrappedObject, const QModelIndex& parent) const
|
||||
{
|
||||
return ( ((PythonQtPublicPromoter_InternetModel*)theWrappedObject)->promoted_hasChildren(parent));
|
||||
}
|
||||
|
||||
QMimeData* PythonQtWrapper_InternetModel::mimeData(InternetModel* theWrappedObject, const QList<QModelIndex >& indexes) const
|
||||
{
|
||||
return ( ((PythonQtPublicPromoter_InternetModel*)theWrappedObject)->promoted_mimeData(indexes));
|
||||
}
|
||||
|
||||
QStringList PythonQtWrapper_InternetModel::mimeTypes(InternetModel* theWrappedObject) const
|
||||
{
|
||||
return ( ((PythonQtPublicPromoter_InternetModel*)theWrappedObject)->promoted_mimeTypes());
|
||||
}
|
||||
|
||||
PlayerInterface* PythonQtWrapper_InternetModel::player(InternetModel* theWrappedObject) const
|
||||
{
|
||||
return ( theWrappedObject->player());
|
||||
}
|
||||
|
||||
int PythonQtWrapper_InternetModel::rowCount(InternetModel* theWrappedObject, const QModelIndex& parent) const
|
||||
{
|
||||
return ( ((PythonQtPublicPromoter_InternetModel*)theWrappedObject)->promoted_rowCount(parent));
|
||||
}
|
||||
|
||||
TaskManager* PythonQtWrapper_InternetModel::task_manager(InternetModel* theWrappedObject) const
|
||||
{
|
||||
return ( theWrappedObject->task_manager());
|
||||
}
|
||||
|
||||
|
||||
|
||||
QStandardItem* PythonQtShell_InternetService::CreateRootItem()
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "CreateRootItem");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"QStandardItem*"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
|
||||
QStandardItem* returnValue = 0;
|
||||
void* args[1] = {NULL};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) {
|
||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
|
||||
if (args[0]!=&returnValue) {
|
||||
if (args[0]==NULL) {
|
||||
PythonQt::priv()->handleVirtualOverloadReturnError("CreateRootItem", methodInfo, result);
|
||||
} else {
|
||||
returnValue = *((QStandardItem**)args[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return returnValue;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
QModelIndex PythonQtShell_InternetService::GetCurrentIndex()
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetCurrentIndex");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"QModelIndex"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
|
||||
QModelIndex returnValue;
|
||||
void* args[1] = {NULL};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) {
|
||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
|
||||
if (args[0]!=&returnValue) {
|
||||
if (args[0]==NULL) {
|
||||
PythonQt::priv()->handleVirtualOverloadReturnError("GetCurrentIndex", methodInfo, result);
|
||||
} else {
|
||||
returnValue = *((QModelIndex*)args[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return returnValue;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
return QModelIndex();
|
||||
}
|
||||
QWidget* PythonQtShell_InternetService::HeaderWidget() const
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "HeaderWidget");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"QWidget*"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
|
||||
QWidget* returnValue = 0;
|
||||
void* args[1] = {NULL};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) {
|
||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
|
||||
if (args[0]!=&returnValue) {
|
||||
if (args[0]==NULL) {
|
||||
PythonQt::priv()->handleVirtualOverloadReturnError("HeaderWidget", methodInfo, result);
|
||||
} else {
|
||||
returnValue = *((QWidget**)args[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return returnValue;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
return InternetService::HeaderWidget();
|
||||
}
|
||||
QString PythonQtShell_InternetService::Icon()
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Icon");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"QString"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
|
||||
QString returnValue;
|
||||
void* args[1] = {NULL};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) {
|
||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
|
||||
if (args[0]!=&returnValue) {
|
||||
if (args[0]==NULL) {
|
||||
PythonQt::priv()->handleVirtualOverloadReturnError("Icon", methodInfo, result);
|
||||
} else {
|
||||
returnValue = *((QString*)args[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return returnValue;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
return InternetService::Icon();
|
||||
}
|
||||
void PythonQtShell_InternetService::ItemDoubleClicked(QStandardItem* item)
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ItemDoubleClicked");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"" , "QStandardItem*"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
|
||||
void* args[2] = {NULL, (void*)&item};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
InternetService::ItemDoubleClicked(item);
|
||||
}
|
||||
void PythonQtShell_InternetService::LazyPopulate(QStandardItem* parent)
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "LazyPopulate");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"" , "QStandardItem*"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
|
||||
void* args[2] = {NULL, (void*)&parent};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
|
||||
}
|
||||
void PythonQtShell_InternetService::ReloadSettings()
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ReloadSettings");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={""};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
|
||||
void* args[1] = {NULL};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
InternetService::ReloadSettings();
|
||||
}
|
||||
void PythonQtShell_InternetService::ShowContextMenu(const QModelIndex& index, const QPoint& global_pos)
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ShowContextMenu");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"" , "const QModelIndex&" , "const QPoint&"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
|
||||
void* args[3] = {NULL, (void*)&index, (void*)&global_pos};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
InternetService::ShowContextMenu(index, global_pos);
|
||||
}
|
||||
void PythonQtShell_InternetService::childEvent(QChildEvent* arg__1)
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"" , "QChildEvent*"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
|
||||
void* args[2] = {NULL, (void*)&arg__1};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
InternetService::childEvent(arg__1);
|
||||
}
|
||||
void PythonQtShell_InternetService::customEvent(QEvent* arg__1)
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"" , "QEvent*"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
|
||||
void* args[2] = {NULL, (void*)&arg__1};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
InternetService::customEvent(arg__1);
|
||||
}
|
||||
bool PythonQtShell_InternetService::event(QEvent* arg__1)
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"bool" , "QEvent*"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
|
||||
bool returnValue = 0;
|
||||
void* args[2] = {NULL, (void*)&arg__1};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) {
|
||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
|
||||
if (args[0]!=&returnValue) {
|
||||
if (args[0]==NULL) {
|
||||
PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
|
||||
} else {
|
||||
returnValue = *((bool*)args[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return returnValue;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
return InternetService::event(arg__1);
|
||||
}
|
||||
bool PythonQtShell_InternetService::eventFilter(QObject* arg__1, QEvent* arg__2)
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
|
||||
bool returnValue = 0;
|
||||
void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) {
|
||||
args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);
|
||||
if (args[0]!=&returnValue) {
|
||||
if (args[0]==NULL) {
|
||||
PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
|
||||
} else {
|
||||
returnValue = *((bool*)args[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return returnValue;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
return InternetService::eventFilter(arg__1, arg__2);
|
||||
}
|
||||
void PythonQtShell_InternetService::timerEvent(QTimerEvent* arg__1)
|
||||
{
|
||||
if (_wrapper) {
|
||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
|
||||
PyErr_Clear();
|
||||
if (obj && !PythonQtSlotFunction_Check(obj)) {
|
||||
static const char* argumentList[] ={"" , "QTimerEvent*"};
|
||||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
|
||||
void* args[2] = {NULL, (void*)&arg__1};
|
||||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
|
||||
if (result) { Py_DECREF(result); }
|
||||
Py_DECREF(obj);
|
||||
return;
|
||||
}
|
||||
Py_XDECREF(obj);
|
||||
}
|
||||
InternetService::timerEvent(arg__1);
|
||||
}
|
||||
InternetService* PythonQtWrapper_InternetService::new_InternetService(const QString& name, InternetModel* model, QObject* parent)
|
||||
{
|
||||
return new PythonQtShell_InternetService(name, model, parent); }
|
||||
|
||||
QWidget* PythonQtWrapper_InternetService::HeaderWidget(InternetService* theWrappedObject) const
|
||||
{
|
||||
return ( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_HeaderWidget());
|
||||
}
|
||||
|
||||
QString PythonQtWrapper_InternetService::Icon(InternetService* theWrappedObject)
|
||||
{
|
||||
return ( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_Icon());
|
||||
}
|
||||
|
||||
void PythonQtWrapper_InternetService::ItemDoubleClicked(InternetService* theWrappedObject, QStandardItem* item)
|
||||
{
|
||||
( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_ItemDoubleClicked(item));
|
||||
}
|
||||
|
||||
void PythonQtWrapper_InternetService::ReloadSettings(InternetService* theWrappedObject)
|
||||
{
|
||||
( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_ReloadSettings());
|
||||
}
|
||||
|
||||
void PythonQtWrapper_InternetService::ShowContextMenu(InternetService* theWrappedObject, const QModelIndex& index, const QPoint& global_pos)
|
||||
{
|
||||
( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_ShowContextMenu(index, global_pos));
|
||||
}
|
||||
|
||||
InternetModel* PythonQtWrapper_InternetService::model(InternetService* theWrappedObject) const
|
||||
{
|
||||
return ( theWrappedObject->model());
|
||||
}
|
||||
|
||||
QString PythonQtWrapper_InternetService::name(InternetService* theWrappedObject) const
|
||||
{
|
||||
return ( theWrappedObject->name());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Song* PythonQtWrapper_Song::new_Song()
|
||||
{
|
||||
return new PythonQtShell_Song(); }
|
||||
|
@ -6,6 +6,8 @@
|
||||
#include <coverprovider.h>
|
||||
#include <coverproviders.h>
|
||||
#include <directory.h>
|
||||
#include <internetmodel.h>
|
||||
#include <internetservice.h>
|
||||
#include <librarybackend.h>
|
||||
#include <libraryquery.h>
|
||||
#include <libraryview.h>
|
||||
@ -51,8 +53,6 @@
|
||||
#include <qstyle.h>
|
||||
#include <qurl.h>
|
||||
#include <qwidget.h>
|
||||
#include <internetmodel.h>
|
||||
#include <internetservice.h>
|
||||
#include <song.h>
|
||||
#include <specialplaylisttype.h>
|
||||
#include <taskmanager.h>
|
||||
@ -184,6 +184,98 @@ int py_get_id(Directory* theWrappedObject){ return theWrappedObject->id; }
|
||||
|
||||
|
||||
|
||||
class PythonQtPublicPromoter_InternetModel : public InternetModel
|
||||
{ public:
|
||||
inline Qt::ItemFlags promoted_flags(const QModelIndex& index) const { return InternetModel::flags(index); }
|
||||
inline bool promoted_hasChildren(const QModelIndex& parent) const { return InternetModel::hasChildren(parent); }
|
||||
inline QMimeData* promoted_mimeData(const QList<QModelIndex >& indexes) const { return InternetModel::mimeData(indexes); }
|
||||
inline QStringList promoted_mimeTypes() const { return InternetModel::mimeTypes(); }
|
||||
inline int promoted_rowCount(const QModelIndex& parent) const { return InternetModel::rowCount(parent); }
|
||||
};
|
||||
|
||||
class PythonQtWrapper_InternetModel : public QObject
|
||||
{ Q_OBJECT
|
||||
public:
|
||||
Q_ENUMS(PlayBehaviour Role Type )
|
||||
enum PlayBehaviour{
|
||||
PlayBehaviour_None = InternetModel::PlayBehaviour_None, PlayBehaviour_UseSongLoader = InternetModel::PlayBehaviour_UseSongLoader, PlayBehaviour_SingleItem = InternetModel::PlayBehaviour_SingleItem, PlayBehaviour_DoubleClickAction = InternetModel::PlayBehaviour_DoubleClickAction};
|
||||
enum Role{
|
||||
Role_Type = InternetModel::Role_Type, Role_PlayBehaviour = InternetModel::Role_PlayBehaviour, Role_Url = InternetModel::Role_Url, Role_SongMetadata = InternetModel::Role_SongMetadata, Role_CanLazyLoad = InternetModel::Role_CanLazyLoad, Role_Service = InternetModel::Role_Service, RoleCount = InternetModel::RoleCount};
|
||||
enum Type{
|
||||
Type_Service = InternetModel::Type_Service, TypeCount = InternetModel::TypeCount};
|
||||
public slots:
|
||||
void delete_InternetModel(InternetModel* obj) { delete obj; }
|
||||
void AddService(InternetModel* theWrappedObject, InternetService* service);
|
||||
bool IsPlayable(InternetModel* theWrappedObject, const QModelIndex& index) const;
|
||||
void ReloadSettings(InternetModel* theWrappedObject);
|
||||
void RemoveService(InternetModel* theWrappedObject, InternetService* service);
|
||||
InternetService* static_InternetModel_ServiceByName(const QString& name);
|
||||
InternetService* ServiceForIndex(InternetModel* theWrappedObject, const QModelIndex& index) const;
|
||||
InternetService* ServiceForItem(InternetModel* theWrappedObject, const QStandardItem* item) const;
|
||||
void ShowContextMenu(InternetModel* theWrappedObject, const QModelIndex& merged_model_index, const QPoint& global_pos);
|
||||
Qt::ItemFlags flags(InternetModel* theWrappedObject, const QModelIndex& index) const;
|
||||
bool hasChildren(InternetModel* theWrappedObject, const QModelIndex& parent) const;
|
||||
QMimeData* mimeData(InternetModel* theWrappedObject, const QList<QModelIndex >& indexes) const;
|
||||
QStringList mimeTypes(InternetModel* theWrappedObject) const;
|
||||
PlayerInterface* player(InternetModel* theWrappedObject) const;
|
||||
int rowCount(InternetModel* theWrappedObject, const QModelIndex& parent) const;
|
||||
TaskManager* task_manager(InternetModel* theWrappedObject) const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class PythonQtShell_InternetService : public InternetService
|
||||
{
|
||||
public:
|
||||
PythonQtShell_InternetService(const QString& name, InternetModel* model, QObject* parent = NULL):InternetService(name, model, parent),_wrapper(NULL) {};
|
||||
|
||||
virtual QStandardItem* CreateRootItem();
|
||||
virtual QModelIndex GetCurrentIndex();
|
||||
virtual QWidget* HeaderWidget() const;
|
||||
virtual QString Icon();
|
||||
virtual void ItemDoubleClicked(QStandardItem* item);
|
||||
virtual void LazyPopulate(QStandardItem* parent);
|
||||
virtual void ReloadSettings();
|
||||
virtual void ShowContextMenu(const QModelIndex& index, const QPoint& global_pos);
|
||||
virtual void childEvent(QChildEvent* arg__1);
|
||||
virtual void customEvent(QEvent* arg__1);
|
||||
virtual bool event(QEvent* arg__1);
|
||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
|
||||
virtual void timerEvent(QTimerEvent* arg__1);
|
||||
|
||||
PythonQtInstanceWrapper* _wrapper;
|
||||
};
|
||||
|
||||
class PythonQtPublicPromoter_InternetService : public InternetService
|
||||
{ public:
|
||||
inline QWidget* promoted_HeaderWidget() const { return InternetService::HeaderWidget(); }
|
||||
inline QString promoted_Icon() { return InternetService::Icon(); }
|
||||
inline void promoted_ItemDoubleClicked(QStandardItem* item) { InternetService::ItemDoubleClicked(item); }
|
||||
inline void promoted_ReloadSettings() { InternetService::ReloadSettings(); }
|
||||
inline void promoted_ShowContextMenu(const QModelIndex& index, const QPoint& global_pos) { InternetService::ShowContextMenu(index, global_pos); }
|
||||
};
|
||||
|
||||
class PythonQtWrapper_InternetService : public QObject
|
||||
{ Q_OBJECT
|
||||
public:
|
||||
public slots:
|
||||
InternetService* new_InternetService(const QString& name, InternetModel* model, QObject* parent = NULL);
|
||||
void delete_InternetService(InternetService* obj) { delete obj; }
|
||||
QWidget* HeaderWidget(InternetService* theWrappedObject) const;
|
||||
QString Icon(InternetService* theWrappedObject);
|
||||
void ItemDoubleClicked(InternetService* theWrappedObject, QStandardItem* item);
|
||||
void ReloadSettings(InternetService* theWrappedObject);
|
||||
void ShowContextMenu(InternetService* theWrappedObject, const QModelIndex& index, const QPoint& global_pos);
|
||||
InternetModel* model(InternetService* theWrappedObject) const;
|
||||
QString name(InternetService* theWrappedObject) const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class PythonQtShell_LibraryBackend : public LibraryBackend
|
||||
{
|
||||
public:
|
||||
@ -1172,98 +1264,6 @@ void delete_QueryOptions(QueryOptions* obj) { delete obj; }
|
||||
|
||||
|
||||
|
||||
class PythonQtPublicPromoter_InternetModel : public InternetModel
|
||||
{ public:
|
||||
inline Qt::ItemFlags promoted_flags(const QModelIndex& index) const { return InternetModel::flags(index); }
|
||||
inline bool promoted_hasChildren(const QModelIndex& parent) const { return InternetModel::hasChildren(parent); }
|
||||
inline QMimeData* promoted_mimeData(const QList<QModelIndex >& indexes) const { return InternetModel::mimeData(indexes); }
|
||||
inline QStringList promoted_mimeTypes() const { return InternetModel::mimeTypes(); }
|
||||
inline int promoted_rowCount(const QModelIndex& parent) const { return InternetModel::rowCount(parent); }
|
||||
};
|
||||
|
||||
class PythonQtWrapper_InternetModel : public QObject
|
||||
{ Q_OBJECT
|
||||
public:
|
||||
Q_ENUMS(PlayBehaviour Role Type )
|
||||
enum PlayBehaviour{
|
||||
PlayBehaviour_None = InternetModel::PlayBehaviour_None, PlayBehaviour_UseSongLoader = InternetModel::PlayBehaviour_UseSongLoader, PlayBehaviour_SingleItem = InternetModel::PlayBehaviour_SingleItem, PlayBehaviour_DoubleClickAction = InternetModel::PlayBehaviour_DoubleClickAction};
|
||||
enum Role{
|
||||
Role_Type = InternetModel::Role_Type, Role_PlayBehaviour = InternetModel::Role_PlayBehaviour, Role_Url = InternetModel::Role_Url, Role_SongMetadata = InternetModel::Role_SongMetadata, Role_CanLazyLoad = InternetModel::Role_CanLazyLoad, Role_Service = InternetModel::Role_Service, RoleCount = InternetModel::RoleCount};
|
||||
enum Type{
|
||||
Type_Service = InternetModel::Type_Service, TypeCount = InternetModel::TypeCount};
|
||||
public slots:
|
||||
void delete_InternetModel(InternetModel* obj) { delete obj; }
|
||||
void AddService(InternetModel* theWrappedObject, InternetService* service);
|
||||
bool IsPlayable(InternetModel* theWrappedObject, const QModelIndex& index) const;
|
||||
void ReloadSettings(InternetModel* theWrappedObject);
|
||||
void RemoveService(InternetModel* theWrappedObject, InternetService* service);
|
||||
InternetService* static_InternetModel_ServiceByName(const QString& name);
|
||||
InternetService* ServiceForIndex(InternetModel* theWrappedObject, const QModelIndex& index) const;
|
||||
InternetService* ServiceForItem(InternetModel* theWrappedObject, const QStandardItem* item) const;
|
||||
void ShowContextMenu(InternetModel* theWrappedObject, const QModelIndex& merged_model_index, const QPoint& global_pos);
|
||||
Qt::ItemFlags flags(InternetModel* theWrappedObject, const QModelIndex& index) const;
|
||||
bool hasChildren(InternetModel* theWrappedObject, const QModelIndex& parent) const;
|
||||
QMimeData* mimeData(InternetModel* theWrappedObject, const QList<QModelIndex >& indexes) const;
|
||||
QStringList mimeTypes(InternetModel* theWrappedObject) const;
|
||||
PlayerInterface* player(InternetModel* theWrappedObject) const;
|
||||
int rowCount(InternetModel* theWrappedObject, const QModelIndex& parent) const;
|
||||
TaskManager* task_manager(InternetModel* theWrappedObject) const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class PythonQtShell_InternetService : public InternetService
|
||||
{
|
||||
public:
|
||||
PythonQtShell_InternetService(const QString& name, InternetModel* model, QObject* parent = NULL):InternetService(name, model, parent),_wrapper(NULL) {};
|
||||
|
||||
virtual QStandardItem* CreateRootItem();
|
||||
virtual QModelIndex GetCurrentIndex();
|
||||
virtual QWidget* HeaderWidget() const;
|
||||
virtual QString Icon();
|
||||
virtual void ItemDoubleClicked(QStandardItem* item);
|
||||
virtual void LazyPopulate(QStandardItem* parent);
|
||||
virtual void ReloadSettings();
|
||||
virtual void ShowContextMenu(const QModelIndex& index, const QPoint& global_pos);
|
||||
virtual void childEvent(QChildEvent* arg__1);
|
||||
virtual void customEvent(QEvent* arg__1);
|
||||
virtual bool event(QEvent* arg__1);
|
||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
|
||||
virtual void timerEvent(QTimerEvent* arg__1);
|
||||
|
||||
PythonQtInstanceWrapper* _wrapper;
|
||||
};
|
||||
|
||||
class PythonQtPublicPromoter_InternetService : public InternetService
|
||||
{ public:
|
||||
inline QWidget* promoted_HeaderWidget() const { return InternetService::HeaderWidget(); }
|
||||
inline QString promoted_Icon() { return InternetService::Icon(); }
|
||||
inline void promoted_ItemDoubleClicked(QStandardItem* item) { InternetService::ItemDoubleClicked(item); }
|
||||
inline void promoted_ReloadSettings() { InternetService::ReloadSettings(); }
|
||||
inline void promoted_ShowContextMenu(const QModelIndex& index, const QPoint& global_pos) { InternetService::ShowContextMenu(index, global_pos); }
|
||||
};
|
||||
|
||||
class PythonQtWrapper_InternetService : public QObject
|
||||
{ Q_OBJECT
|
||||
public:
|
||||
public slots:
|
||||
InternetService* new_InternetService(const QString& name, InternetModel* model, QObject* parent = NULL);
|
||||
void delete_InternetService(InternetService* obj) { delete obj; }
|
||||
QWidget* HeaderWidget(InternetService* theWrappedObject) const;
|
||||
QString Icon(InternetService* theWrappedObject);
|
||||
void ItemDoubleClicked(InternetService* theWrappedObject, QStandardItem* item);
|
||||
void ReloadSettings(InternetService* theWrappedObject);
|
||||
void ShowContextMenu(InternetService* theWrappedObject, const QModelIndex& index, const QPoint& global_pos);
|
||||
InternetModel* model(InternetService* theWrappedObject) const;
|
||||
QString name(InternetService* theWrappedObject) const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class PythonQtShell_Song : public Song
|
||||
{
|
||||
public:
|
||||
|
@ -9,6 +9,8 @@ PythonQt::priv()->registerClass(&CoverProvider::staticMetaObject, "Clementine",
|
||||
PythonQt::priv()->registerClass(&CoverProviders::staticMetaObject, "Clementine", PythonQtCreateObject<PythonQtWrapper_CoverProviders>, NULL, module, 0);
|
||||
PythonQt::priv()->registerCPPClass("CoverSearchResult", "", "Clementine", PythonQtCreateObject<PythonQtWrapper_CoverSearchResult>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_CoverSearchResult>, module, 0);
|
||||
PythonQt::priv()->registerCPPClass("Directory", "", "Clementine", PythonQtCreateObject<PythonQtWrapper_Directory>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_Directory>, module, 0);
|
||||
PythonQt::priv()->registerClass(&InternetModel::staticMetaObject, "Clementine", PythonQtCreateObject<PythonQtWrapper_InternetModel>, NULL, module, 0);
|
||||
PythonQt::priv()->registerClass(&InternetService::staticMetaObject, "Clementine", PythonQtCreateObject<PythonQtWrapper_InternetService>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_InternetService>, module, 0);
|
||||
PythonQt::priv()->registerClass(&LibraryBackend::staticMetaObject, "Clementine", PythonQtCreateObject<PythonQtWrapper_LibraryBackend>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_LibraryBackend>, module, 0);
|
||||
PythonQt::priv()->registerClass(&LibraryBackendInterface::staticMetaObject, "Clementine", PythonQtCreateObject<PythonQtWrapper_LibraryBackendInterface>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_LibraryBackendInterface>, module, 0);
|
||||
PythonQt::priv()->registerCPPClass("LibraryBackendInterface::Album", "", "Clementine", PythonQtCreateObject<PythonQtWrapper_LibraryBackendInterface_Album>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_LibraryBackendInterface_Album>, module, 0);
|
||||
@ -27,8 +29,6 @@ PythonQt::priv()->registerClass(&PlaylistManagerInterface::staticMetaObject, "Cl
|
||||
PythonQt::priv()->registerClass(&PlaylistParser::staticMetaObject, "Clementine", PythonQtCreateObject<PythonQtWrapper_PlaylistParser>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_PlaylistParser>, module, 0);
|
||||
PythonQt::priv()->registerClass(&PlaylistSequence::staticMetaObject, "Clementine", PythonQtCreateObject<PythonQtWrapper_PlaylistSequence>, NULL, module, 0);
|
||||
PythonQt::priv()->registerCPPClass("QueryOptions", "", "Clementine", PythonQtCreateObject<PythonQtWrapper_QueryOptions>, NULL, module, 0);
|
||||
PythonQt::priv()->registerClass(&InternetModel::staticMetaObject, "Clementine", PythonQtCreateObject<PythonQtWrapper_InternetModel>, NULL, module, 0);
|
||||
PythonQt::priv()->registerClass(&InternetService::staticMetaObject, "Clementine", PythonQtCreateObject<PythonQtWrapper_InternetService>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_InternetService>, module, 0);
|
||||
PythonQt::priv()->registerCPPClass("Song", "", "Clementine", PythonQtCreateObject<PythonQtWrapper_Song>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_Song>, module, PythonQt::Type_RichCompare);
|
||||
PythonQt::priv()->registerClass(&SongInsertVetoListener::staticMetaObject, "Clementine", PythonQtCreateObject<PythonQtWrapper_SongInsertVetoListener>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_SongInsertVetoListener>, module, 0);
|
||||
PythonQt::priv()->registerCPPClass("SpecialPlaylistType", "", "Clementine", PythonQtCreateObject<PythonQtWrapper_SpecialPlaylistType>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_SpecialPlaylistType>, module, 0);
|
||||
|
@ -39,8 +39,8 @@
|
||||
#include "playlist/playlistsequence.h"
|
||||
#include "playlist/specialplaylisttype.h"
|
||||
#include "playlistparsers/playlistparser.h"
|
||||
#include "radio/radiomodel.h"
|
||||
#include "radio/radioservice.h"
|
||||
#include "internet/internetmodel.h"
|
||||
#include "internet/internetservice.h"
|
||||
#include "smartplaylists/generator.h"
|
||||
|
||||
#endif // BINDINGS_INCLUDES_H
|
||||
|
@ -5,16 +5,16 @@
|
||||
|
||||
<enum-type name="Engine::State" />
|
||||
<enum-type name="Engine::TrackChangeType" flags="Engine::TrackChangeFlags" />
|
||||
<enum-type name="InternetModel::PlayBehaviour" />
|
||||
<enum-type name="InternetModel::Role" />
|
||||
<enum-type name="InternetModel::Type" />
|
||||
<enum-type name="InternetService::AddMode" />
|
||||
<enum-type name="Playlist::Column" />
|
||||
<enum-type name="Playlist::LastFMStatus" />
|
||||
<enum-type name="Playlist::Role" />
|
||||
<enum-type name="PlaylistSequence::ShuffleMode" />
|
||||
<enum-type name="PlaylistSequence::RepeatMode" />
|
||||
<enum-type name="QueryOptions::QueryMode" />
|
||||
<enum-type name="RadioModel::PlayBehaviour" />
|
||||
<enum-type name="RadioModel::Role" />
|
||||
<enum-type name="RadioModel::Type" />
|
||||
<enum-type name="RadioService::AddMode" />
|
||||
<enum-type name="Song::FileType" />
|
||||
<enum-type name="UrlHandler_LoadResult::Type" />
|
||||
|
||||
@ -39,6 +39,8 @@
|
||||
<object-type name="CoverProviderFactory" />
|
||||
<object-type name="CoverProviders" />
|
||||
<object-type name="Engine::Base" />
|
||||
<object-type name="InternetModel" />
|
||||
<object-type name="InternetService" />
|
||||
<object-type name="LibraryBackend" />
|
||||
<object-type name="LibraryBackendInterface" />
|
||||
<object-type name="LibraryQuery">
|
||||
@ -62,8 +64,6 @@
|
||||
<object-type name="PlaylistManagerInterface" />
|
||||
<object-type name="PlaylistParser" />
|
||||
<object-type name="PlaylistSequence" />
|
||||
<object-type name="RadioModel" />
|
||||
<object-type name="RadioService" />
|
||||
<object-type name="smart_playlists::GeneratorPtr" />
|
||||
<object-type name="SongInsertVetoListener" />
|
||||
<object-type name="SpecialPlaylistType" />
|
||||
|
Loading…
Reference in New Issue
Block a user