Ignore:
Timestamp:
Sep 11, 2013 9:59:03 AM (8 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1
Children:
9ba89ba
Parents:
fcd9065
Message:

Setup the LPTray to use the new LPWatcher class (untested yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/life-preserver/LPWatcher.cpp

    r559e01f r8516ff2  
    44  Each set of 10 is a different type of status 
    55    "message" status: 10-19 
    6     "running" status: 20-29 
     6    "replication" status: 20-29 
    77    "critical" status: 30-39 
    88  Within each set: 
     
    124124      LOGS.insert(14, timestamp); //full timestamp 
    125125      LOGS.insert(15, time); // time only 
    126       if(!quiet){ emit NotificationMessageAvailable(); } 
     126      if(!quiet){ emit MessageAvailable("message"); } 
    127127    }else if(message.contains("starting replication")){ 
    128128      //Setup the file watcher for this new log file 
     
    147147      LOGS.insert(24, timestamp); //full timestamp 
    148148      LOGS.insert(25, time); // time only       
    149       if(!quiet){ emit ProcessUpdateAvailable(); } 
     149      if(!quiet){ emit MessageAvailable("replication"); } 
    150150    }else if( message.contains("FAILED replication") ){ 
    151151      stopRepFileWatcher(); 
     
    160160      LOGS.insert(24, timestamp); //full timestamp 
    161161      LOGS.insert(25, time); // time only       
    162       if(!quiet){ emit ProcessUpdateAvailable(); } 
     162      if(!quiet){ emit MessageAvailable("replication"); } 
    163163    } 
    164164           
     
    203203      LOGS.insert(21,dataset); 
    204204      LOGS.insert(23,txt); 
    205       if(!quiet){ emit ProcessUpdateAvailable(); } 
     205      if(!quiet){ emit MessageAvailable("replication"); } 
    206206    } 
    207207  } 
     
    252252 
    253253void LPWatcher::checkErrorFile(){ 
     254  return; 
    254255  if(QFile::exists(FILE_ERROR)){ 
    255256    //Read the file to determine the cause of the error 
     
    271272    LOGS.insert(34, timestamp); //full timestamp 
    272273    LOGS.insert(35, time); // time only     
    273     emit CriticalMessageAvailable(); 
    274   } 
    275 } 
     274    emit MessageAvailable("critical"); 
     275  } 
     276} 
Note: See TracChangeset for help on using the changeset viewer.