QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qtscriptshell_PlatformPlugin.h
Go to the documentation of this file.
1 #ifndef QTSCRIPTSHELL_PLATFORMPLUGIN_H
2 #define QTSCRIPTSHELL_PLATFORMPLUGIN_H
3 
4 #include <platformplugin.h>
5 
6 #include <QtScript/qscriptvalue.h>
7 
8 class QtScriptShell_PlatformPlugin : public Phonon::PlatformPlugin
9 {
10 public:
13 
14  QString applicationName() const;
15  QObject* createBackend();
16  QObject* createBackend(const QString& library, const QString& version);
17  Phonon::AbstractMediaStream* createMediaStream(const QUrl& url, QObject* parent);
18  QIcon icon(const QString& name) const;
19  bool isMimeTypeAvailable(const QString& mimeType) const;
20  qreal loadVolume(const QString& outputName) const;
21  void notification(const char* notificationName, const QString& text, const QStringList& actions = QStringList(), QObject* receiver = 0, const char* actionSlot = 0) const;
22  QList<int > objectDescriptionIndexes(Phonon::ObjectDescriptionType type) const;
23  QHash<QByteArray , QVariant > objectDescriptionProperties(Phonon::ObjectDescriptionType type, int index) const;
24  void saveVolume(const QString& outputName, qreal volume);
25 
26  QScriptValue __qtscript_self;
27 };
28 
29 #endif // QTSCRIPTSHELL_PLATFORMPLUGIN_H