Mixxx

/home/maxime/Projets/Mixxx/1.10/mixxx/src/script/qtscriptinterface.h

Go to the documentation of this file.
00001 #ifndef QTSCRIPTINTERFACE_H
00002 #define QTSCRIPTINTERFACE_H
00003 
00004 #include "playinterface.h"
00005 
00006 #include <QtScript>
00007 
00008 class QtScriptInterface : public QObject {
00009 
00010         Q_OBJECT
00011 
00012 public:
00013         QtScriptInterface(PlayInterface *pi);
00014 
00015         QString getResult();
00016 
00017         void executeScript(const char* script, int process);
00018 // Functions that point back to playinterface
00019 // Not implementing the old fader ones for now since they're bad
00020 public slots:
00021         void test();
00022         
00023         void stop(int channel);
00024         void play(int channel);
00025 //      void setFader(double fade);
00026 
00027         void setTag(int tag);
00028         void clearTag();
00029         
00030         void kill();
00031         void killTag(int tag);
00032                 
00033 //      double getFader();
00034         double getValue(QString group, QString name);
00035                 
00036 //      void startFadeCrossfader();
00037         void startList(QString group, QString name);
00038         void startFade(QString group, QString name);
00039         void point(int time, double value);
00040 //      void fadePoint(int time, double value);
00041         void endFade();
00042         void endList();
00043 
00044         void playChannel1(int time, QString path);
00045         void playChannel2(int time, QString path);
00046 
00047 private:
00048         PlayInterface* m_pi;
00049         QScriptEngine m_engine;
00050         QString m_result;
00051 
00052         static QScriptValue newQPushButton(QScriptContext *context, QScriptEngine *engine);
00053 };
00054 
00055 #endif
00056 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines