--- smsdaemon/SmsToolTransceiver.cpp 2008/12/08 21:28:40 157 +++ smsdaemon/SmsToolTransceiver.cpp 2008/12/09 09:35:36 162 @@ -1,7 +1,8 @@ #include "SmsToolTransceiver.h" #include "Logger.h" -#include "util.h" +#include "Util.h" +#include "Common.h" #include #include @@ -37,6 +38,8 @@ } out << "To: " << to << "\n\n" << message ; out.close(); + + Common::instance()->smsCounter.outgoing++; int result = rename(tempfile.c_str(), destfile.c_str()); @@ -67,7 +70,8 @@ { if (entry->d_name[0] == '.') continue; - + Logger::logMessage( string("SmsTool::ReadSms >") +entry->d_name); + try { SMS sms = ParseFile( incoming + entry->d_name); @@ -135,15 +139,22 @@ for (unsigned int i=0; i ") + headers[i]); + } } }