add alert class instance in x121ea and configure it for using tima tracker alerting ...
This commit is contained in:
@@ -139,6 +139,7 @@ string x121EAUsedSymbols[];
|
||||
XSCX121SetupEA *x121EA;
|
||||
|
||||
//
|
||||
XSCAlert *x121EAAlert;
|
||||
XSCXCTHelper *x121EACTHelper;
|
||||
XSCXCCHelper *x121EACCHelper;
|
||||
|
||||
@@ -207,32 +208,46 @@ void OnTick()
|
||||
// Time Tracking ...
|
||||
|
||||
//
|
||||
if (x121EATimeTracker.IsNewHour())
|
||||
{
|
||||
//
|
||||
if (!is121EAInTestMode)
|
||||
{
|
||||
x121EA.Alert("New Hour ...");
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
if (x121EATimeTracker.IsNewDay())
|
||||
{
|
||||
//
|
||||
if (!is121EAInTestMode)
|
||||
{
|
||||
x121EA.Alert("New Day ...");
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Alert Month ...
|
||||
if (x121EATimeTracker.IsNewMonth())
|
||||
{
|
||||
//
|
||||
if (!is121EAInTestMode)
|
||||
{
|
||||
x121EA.Alert("New Mount ...");
|
||||
x121EAAlert.Alert("New Mount ...");
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Alert Week ...
|
||||
if (x121EATimeTracker.IsNewWeek())
|
||||
{
|
||||
//
|
||||
if (!is121EAInTestMode)
|
||||
{
|
||||
x121EAAlert.Alert("New Week ...");
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Alert New Day ...
|
||||
if (x121EATimeTracker.IsNewDay())
|
||||
{
|
||||
//
|
||||
if (!is121EAInTestMode)
|
||||
{
|
||||
x121EAAlert.Alert("New Day ...");
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Alert New Hour ...
|
||||
if (x121EATimeTracker.IsNewHour())
|
||||
{
|
||||
//
|
||||
if (!is121EAInTestMode)
|
||||
{
|
||||
x121EAAlert.Alert("New Hour ...");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -282,6 +297,17 @@ bool InitialEA()
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Initial Alert Class ...
|
||||
x121EATimeTracker.Clean();
|
||||
x121EAAlert = new XSCAlert();
|
||||
x121EAAlert.SetPrefix(ShortName);
|
||||
x121EAAlert.SetEnableAlerts(x121EAEnableAlerts);
|
||||
x121EAAlert.SetLogAlerts(x121EALogAlerts);
|
||||
x121EAAlert.SetMailAlerts(x121EAMailAlerts);
|
||||
x121EAAlert.SetPushAlerts(x121EAPushAlerts);
|
||||
x121EAAlert.SetTerminalAlerts(x121EATerminalAlerts);
|
||||
|
||||
//
|
||||
// TesterHideIndicators(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user