##// END OF EJS Templates
added experimental compacting to avoid generation of hundreds of files that all include the same stuff...
added experimental compacting to avoid generation of hundreds of files that all include the same stuff git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@128 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r92:f97ec94c87a9
Show More
PythonQtWrapper_QDesktopServices.h
38 lines | 1.6 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QDESKTOPSERVICES_H
#define PYTHONQTWRAPPER_QDESKTOPSERVICES_H
#include <qdesktopservices.h>
#include <QObject>
#include <PythonQt.h>
#include <QVariant>
#include <qobject.h>
#include <qurl.h>
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