UserPtr userPtr;
};
//-----------------------------------------------------------------------------
-class ADD_DEL_TARIFF_NOTIFIER : public STG::NotifierBase<STG::TariffData> {
-public:
- explicit ADD_DEL_TARIFF_NOTIFIER(SMUX & s)
- : STG::NotifierBase<STG::TariffData>(), smux(s) {}
- void notify(const STG::TariffData &) override;
-
-private:
- SMUX & smux;
-};
-//-----------------------------------------------------------------------------
class SMUX : public STG::Plugin {
public:
SMUX();
STG::ScopedConnection m_onAddUserConn;
STG::ScopedConnection m_onDelUserConn;
+ STG::ScopedConnection m_onAddTariffConn;
+ STG::ScopedConnection m_onDelTariffConn;
std::list<CHG_AFTER_NOTIFIER> notifiers;
- ADD_DEL_TARIFF_NOTIFIER addDelTariffNotifier;
STG::PluginLogger logger;
};
{
smux.UpdateTables();
}
-
-inline
-void ADD_DEL_TARIFF_NOTIFIER::notify(const STG::TariffData &)
-{
-smux.UpdateTables();
-}