#include <cstring>
#include "parser.h"
+#include "tariffs.h"
const int pt_mega = 1024 * 1024;
//-----------------------------------------------------------------------------
//answerList->clear();
answerList->erase(answerList->begin(), answerList->end());
-if (tariffs->Add(tariffToAdd, currAdmin) == 0)
+if (tariffs->Add(tariffToAdd, *currAdmin) == 0)
{
answerList->push_back("<AddTariff Result=\"Ok\"/>");
}
return;
}
-if (tariffs->Del(tariffToDel, currAdmin) == 0)
+if (tariffs->Del(tariffToDel, *currAdmin) == 0)
{
answerList->push_back("<DelTariff Result=\"Ok\"/>");
}
if (!td.tariffConf.name.data().empty())
{
TARIFF_DATA tariffData = td.GetData();
- if (tariffs->Chg(tariffData, currAdmin) == 0)
+ if (tariffs->Chg(tariffData, *currAdmin) == 0)
{
answerList->push_back("<SetTariff Result=\"ok\"/>");
return;