#ifndef PYTHONQTWRAPPER_QDESKTOPSERVICES_H #define PYTHONQTWRAPPER_QDESKTOPSERVICES_H #include #include #include #include #include #include class PythonQtShell_QDesktopServices : public QDesktopServices { public: PythonQtShell_QDesktopServices():QDesktopServices(),_wrapper(NULL) {}; PythonQtInstanceWrapper* _wrapper; }; class PythonQtWrapper_QDesktopServices : public QObject { Q_OBJECT public: Q_ENUMS(StandardLocation ) enum StandardLocation{ DesktopLocation = QDesktopServices::DesktopLocation, DocumentsLocation = QDesktopServices::DocumentsLocation, FontsLocation = QDesktopServices::FontsLocation, ApplicationsLocation = QDesktopServices::ApplicationsLocation, MusicLocation = QDesktopServices::MusicLocation, MoviesLocation = QDesktopServices::MoviesLocation, PicturesLocation = QDesktopServices::PicturesLocation, TempLocation = QDesktopServices::TempLocation, HomeLocation = QDesktopServices::HomeLocation, DataLocation = QDesktopServices::DataLocation}; public slots: QDesktopServices* new_QDesktopServices(); void delete_QDesktopServices(QDesktopServices* obj) { delete obj; } bool static_QDesktopServices_openUrl(const QUrl& url); void static_QDesktopServices_unsetUrlHandler(const QString& scheme); QString static_QDesktopServices_storageLocation(QDesktopServices::StandardLocation type); QString static_QDesktopServices_displayName(QDesktopServices::StandardLocation type); void static_QDesktopServices_setUrlHandler(const QString& scheme, QObject* receiver, const char* method); }; #endif // PYTHONQTWRAPPER_QDESKTOPSERVICES_H