Changeset 231 for Evidence/Edd


Ignore:
Timestamp:
06/24/10 14:25:18 (14 years ago)
Author:
ogrimm
Message:
Bug fixes following previous update
Location:
Evidence/Edd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Evidence/Edd/Edd.cc

    r229 r231  
    112112  if (ServiceName != Name) return;
    113113
     114  // Check if service available
    114115  QPalette Pal = palette(); 
    115 
    116   // Check if service available
    117116  if (!SetStatus(this, Name, Time, Format, Index)) {
    118117    setText("n/a");
     
    810809
    811810  // Connect to DIM handler
    812   if (connect(this, SIGNAL(YEP(QString, int, QByteArray, QString, QString)), SLOT(Update(QString, int, QByteArray, QString, QString))) == false) {
     811  if (connect(this, SIGNAL(INT(QString, int, QByteArray, QString, QString)), SLOT(Update(QString, int, QByteArray, QString, QString))) == false) {
    813812    printf("Failed connection in EddDim()\n");
    814813  }
     
    843842  New.Name = Name;
    844843  New.ByteArray = QByteArray();
     844  New.Count = 1;
    845845  New.DIMService = new DimStampedInfo(Name.toAscii().data(), INT_MAX, NO_LINK, this);
    846   New.Count = 1;
    847846  ServiceList.append(New);
    848847
     
    936935  // Update statistics only for Dim services
    937936  if (!Name.startsWith("Edd/")) Volume += Data.size();
     937 
     938  YEP(Name, Time, Data, Format, Text); 
    938939}
    939940
     
    941942void EddDim::infoHandler() {
    942943
    943   if (!EvidenceServer::ServiceOK(getInfo())) YEP(getInfo()->getName(), -1);
     944  if (!EvidenceServer::ServiceOK(getInfo())) INT(getInfo()->getName(), -1);
    944945  else {
    945         YEP(getInfo()->getName(),
    946                 getInfo()->getTimestamp(),
    947                 QByteArray((char *) getInfo()->getData(),
    948                 getInfo()->getSize()), getInfo()->getFormat(),
    949                 QString::fromStdString(EvidenceServer::ToString(getInfo())));
     946        INT(getInfo()->getName(), getInfo()->getTimestamp(), QByteArray((char *) getInfo()->getData(),
     947                getInfo()->getSize()), getInfo()->getFormat(), QString::fromStdString(EvidenceServer::ToString(getInfo())));
    950948  }
    951949}
     
    12351233  Layout->addWidget(Command, 10, 0, 1, 4);   
    12361234
    1237   EddText *Text = new EddText("Bias/Textout", true);
     1235  EddText *Text = new EddText("Bias/ConsoleOut", true);
    12381236  Text->setFixedWidth(400);
    12391237  Layout->addWidget(Text, 11, 0, 4, 4);     
     
    16231621
    16241622
    1625 //---------------------------------------------------------------------
    16261623//**************************** Main program ***************************
    1627 //---------------------------------------------------------------------
    1628 
    16291624int main(int argc, char *argv[]) {
    16301625
  • Evidence/Edd/Edd.h

    r222 r231  
    251251  signals:
    252252    void YEP(QString, int, QByteArray = QByteArray(), QString = QString(), QString = QString());
     253    void INT(QString, int, QByteArray = QByteArray(), QString = QString(), QString = QString());
    253254};
    254255
Note: See TracChangeset for help on using the changeset viewer.