--- smsdaemon/plugins/HostStatusPlugin.cpp 2008/12/07 11:08:31 137 +++ smsdaemon/plugins/HostStatusPlugin.cpp 2008/12/08 21:49:49 158 @@ -1,7 +1,7 @@ #include "HostStatusPlugin.h" -#include "IGsmModem.h" +#include "ISmsTransceiver.h" #include "Sms.h" -#include "util.h" +#include "Util.h" using namespace std; @@ -11,17 +11,20 @@ { } -void HostStatusPlugin::Execute(IGsmModem& modem, SMS& sms) +void HostStatusPlugin::Execute(ISmsTransceiver& modem, SMS& sms) { string message; string out; + Util::my_system("hostname", &out); + message += out; + Util::my_system("uptime", &out); message += out; Util::my_system("df -h | grep dev | awk '{ print $6 \" \" $5}'", &out); message += out; - modem.SendSms(sms.sender, message, true); + modem.SendSms(sms.GetSender(), message, true); }