#ifndef NODEAGENT_H
#define NODEAGENT_H

#include <nan.h>
#include "agent.h"
#include "libagent.h"

class Agent : public Nan::ObjectWrap {
public:
  static NAN_MODULE_INIT(Init);

private:
  Agent(libagent_Agent *ref, Libagent *libagent);
  ~Agent();

  static NAN_METHOD(New);
  static NAN_GETTER(Enabled);
  static NAN_METHOD(StartTransaction);
  static NAN_METHOD(Log);
  static NAN_METHOD(IsLogEnabled);
  static NAN_METHOD(Report);
  static NAN_METHOD(ReportPlugin);
  static NAN_METHOD(IsPluginEnabled);

  libagent_Agent* ref;
  Libagent* libagent;

  friend class Transaction;
};
#endif
