//================================= CLASS CONSTRUCTOR ========================================
function GNotifAdd()
{
//VARIABLES
 this.eAccept = null;
 this.eCancel = null;
 this.automaticSend = null;

//Initializing ...
 this.initialize();
}

//====================================== STATIC ==============================================

//====================================== MEMBERS =============================================
GNotifAdd.prototype.reset = function()
{
 this.finalize();
 this.initialize();
}

GNotifAdd.prototype.initialize = function()
{
 this.eAccept = null;
 this.eCancel = null;
 this.automaticSend = true;
}

GNotifAdd.prototype.setEAccept = function(ieAccept)
{
 this.eAccept = ieAccept;
}

GNotifAdd.prototype.callEAccept = function(idata)
{
 if (this.eAccept != null)
  this.eAccept(idata);
}

GNotifAdd.prototype.setECancel = function(ieCancel)
{
 this.eCancel = ieCancel;
}

GNotifAdd.prototype.callECancel = function()
{
 if (this.eCancel != null)
  this.eCancel();
}

GNotifAdd.prototype.getAutomaticSend = function()
{
 return this.automaticSend;
}

GNotifAdd.prototype.setAutomaticSend = function(iautomaticSend)
{
 this.automaticSend = iautomaticSend;
}

GNotifAdd.prototype.finalize = function()
{
 this.eAccept = null;
 this.eCancel = null;
 this.automaticSend = null;
}
