/[projects]/smsdaemon/ModemTransceiver.cpp
ViewVC logotype

Diff of /smsdaemon/ModemTransceiver.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 135 by torben, Sun Dec 7 08:58:15 2008 UTC revision 142 by torben, Sun Dec 7 15:51:02 2008 UTC
# Line 16  Line 16 
16  #include "common.h"  #include "common.h"
17    
18  #include "SmsPdu.h"  #include "SmsPdu.h"
19    #include "SmsHelper.h"
20    
21  using namespace std;  using namespace std;
22    
# Line 109  vector<SMS> GsmModem::ReadSms(bool readA Line 110  vector<SMS> GsmModem::ReadSms(bool readA
110    
111                                    
112                  string sms_entry = result.substr(0,endpos);                  string sms_entry = result.substr(0,endpos);
113                  retval.push_back( SMS::FromPduString(sms_entry) );;                  retval.push_back( SmsHelper::FromPduString(sms_entry) );;
114    
115                  if (endpos == string::npos)                  if (endpos == string::npos)
116                          break;                          break;
# Line 156  void GsmModem::SendSms(string to, string Line 157  void GsmModem::SendSms(string to, string
157    
158                  SendSmsPdu(pdu.pdu, pdu.len);                  SendSmsPdu(pdu.pdu, pdu.len);
159          }          }
160            Common::instance()->logMessage( "All PDU's send");
161    
162  }  }
163    
# Line 172  int  GsmModem::DeleteAllSms() Line 174  int  GsmModem::DeleteAllSms()
174    
175          for (unsigned int i= 0; i<sms.size(); ++i)          for (unsigned int i= 0; i<sms.size(); ++i)
176          {          {
177                  DeleteSms( sms[i].sms_index);                  DeleteSms( sms[i].GetIndex() );
178          }          }
179          return sms.size();          return sms.size();
180  }  }

Legend:
Removed from v.135  
changed lines
  Added in v.142

  ViewVC Help
Powered by ViewVC 1.1.20