Vidalia  0.3.1
Classes | Macros
PluginEngine.h File Reference
#include <QtGui>
#include <QtScript>
#include "VidaliaTabPrototype.h"
#include "HelperProcessPrototype.h"
#include "TorControlPrototype.h"

Go to the source code of this file.

Classes

class  PluginEngine
 

Macros

#define ADD_PROTOTYPE(protoType)
 
#define MAKE_CREATABLE(protoType)   globalObject().setProperty(protoType::name(), newFunction(protoType::constructor, __script##protoType));
 

Macro Definition Documentation

§ ADD_PROTOTYPE

#define ADD_PROTOTYPE (   protoType)
Value:
QScriptValue __script##protoType = newQObject(new protoType); \
setDefaultPrototype(protoType::metaTypeId(), __script##protoType); \

Definition at line 28 of file PluginEngine.h.

Referenced by PluginEngine::PluginEngine().

§ MAKE_CREATABLE

#define MAKE_CREATABLE (   protoType)    globalObject().setProperty(protoType::name(), newFunction(protoType::constructor, __script##protoType));

Definition at line 32 of file PluginEngine.h.

Referenced by PluginEngine::PluginEngine().