##// END OF EJS Templates
- added hasOwner method to manage ownership more nicely...
- added hasOwner method to manage ownership more nicely - added force flag to make delete() work - added check for hasOwner git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@51 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r15:ae998290bf19
Show More
PythonQtWrapper_QDesktopServices.h
27 lines | 1.4 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QDESKTOPSERVICES_H
#define PYTHONQTWRAPPER_QDESKTOPSERVICES_H
#include <qdesktopservices.h>
#include <QObject>
#include <QVariant>
#include <qobject.h>
#include <qurl.h>
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; }
QString static_QDesktopServices_displayName(QDesktopServices::StandardLocation type);
bool static_QDesktopServices_openUrl(const QUrl& url);
void static_QDesktopServices_setUrlHandler(const QString& scheme, QObject* receiver, const char* method);
QString static_QDesktopServices_storageLocation(QDesktopServices::StandardLocation type);
void static_QDesktopServices_unsetUrlHandler(const QString& scheme);
};
#endif // PYTHONQTWRAPPER_QDESKTOPSERVICES_H