mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
583 B
25 lines
583 B
15 years ago
|
// Copyright 2009 Ryan Dahl <ry@tinyclouds.org>
|
||
|
#ifndef SRC_EVENTS_H_
|
||
|
#define SRC_EVENTS_H_
|
||
16 years ago
|
|
||
15 years ago
|
#include <node_object_wrap.h>
|
||
16 years ago
|
#include <v8.h>
|
||
|
|
||
|
namespace node {
|
||
|
|
||
|
class EventEmitter : public ObjectWrap {
|
||
16 years ago
|
public:
|
||
15 years ago
|
static void Initialize(v8::Local<v8::FunctionTemplate> ctemplate);
|
||
16 years ago
|
static v8::Persistent<v8::FunctionTemplate> constructor_template;
|
||
|
|
||
15 years ago
|
bool Emit(const char *event, int argc, v8::Handle<v8::Value> argv[]);
|
||
16 years ago
|
|
||
16 years ago
|
protected:
|
||
15 years ago
|
static v8::Handle<v8::Value> Emit(const v8::Arguments& args);
|
||
15 years ago
|
|
||
15 years ago
|
EventEmitter() : ObjectWrap () { }
|
||
16 years ago
|
};
|
||
|
|
||
15 years ago
|
} // namespace node
|
||
|
#endif // SRC_EVENTS_H_
|