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

Diff of /smsdaemon/SmsDaemon.cpp

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

revision 95 by torben, Mon Jun 16 12:21:30 2008 UTC revision 126 by torben, Sat Dec 6 14:25:53 2008 UTC
# Line 19  Line 19 
19    
20  using namespace std;  using namespace std;
21    
   
22  void SmsDaemon::CreateLogMessage(SMS& sms,bool hasPlugin)  void SmsDaemon::CreateLogMessage(SMS& sms,bool hasPlugin)
23  {  {
24          ostringstream os;          ostringstream os;
# Line 79  void SmsDaemon::MainLoop() Line 78  void SmsDaemon::MainLoop()
78    
79          mainContinue = true;          mainContinue = true;
80    
81            int loopcount = 0;
82          while (mainContinue)          while (mainContinue)
83          {          {
84                    if (loopcount > 100 )
85                    {
86                            CheckSms();
87    
88                  CheckSms();                          cmn->GetTaskManager()->ExecuteTasks(_modem);
89    
90                  cmn->GetTaskManager()->ExecuteTasks(_modem);                          loopcount = 0;
91                    }
92    
93                  if (cmn->isDebug && kbhit())                  if (cmn->isDebug && kbhit())
94                          break;                          break;
95    
96                    loopcount++;
97                  Util::Sleep(10);                  Util::Sleep(10);
98    
99          }          }
# Line 104  void SmsDaemon::Start() Line 109  void SmsDaemon::Start()
109    
110          cmn->logMessage("--------------------------------");          cmn->logMessage("--------------------------------");
111          cmn->logMessage( VERSION );          cmn->logMessage( VERSION );
112          cmn->logMessage( SVNVER );          cmn->logMessage( SVNVERSION );
113    
114          cmn->GetTaskManager()->LoadTasks();          cmn->GetTaskManager()->LoadTasks();
115          cmn->GetPluginManager()->LoadPlugins();          cmn->GetPluginManager()->LoadPlugins();

Legend:
Removed from v.95  
changed lines
  Added in v.126

  ViewVC Help
Powered by ViewVC 1.1.20