Changeset 231 for Evidence/Edd
- Timestamp:
- 06/24/10 14:25:18 (14 years ago)
- Location:
- Evidence/Edd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Evidence/Edd/Edd.cc
r229 r231 112 112 if (ServiceName != Name) return; 113 113 114 // Check if service available 114 115 QPalette Pal = palette(); 115 116 // Check if service available117 116 if (!SetStatus(this, Name, Time, Format, Index)) { 118 117 setText("n/a"); … … 810 809 811 810 // 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) { 813 812 printf("Failed connection in EddDim()\n"); 814 813 } … … 843 842 New.Name = Name; 844 843 New.ByteArray = QByteArray(); 844 New.Count = 1; 845 845 New.DIMService = new DimStampedInfo(Name.toAscii().data(), INT_MAX, NO_LINK, this); 846 New.Count = 1;847 846 ServiceList.append(New); 848 847 … … 936 935 // Update statistics only for Dim services 937 936 if (!Name.startsWith("Edd/")) Volume += Data.size(); 937 938 YEP(Name, Time, Data, Format, Text); 938 939 } 939 940 … … 941 942 void EddDim::infoHandler() { 942 943 943 if (!EvidenceServer::ServiceOK(getInfo())) YEP(getInfo()->getName(), -1);944 if (!EvidenceServer::ServiceOK(getInfo())) INT(getInfo()->getName(), -1); 944 945 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()))); 950 948 } 951 949 } … … 1235 1233 Layout->addWidget(Command, 10, 0, 1, 4); 1236 1234 1237 EddText *Text = new EddText("Bias/ Textout", true);1235 EddText *Text = new EddText("Bias/ConsoleOut", true); 1238 1236 Text->setFixedWidth(400); 1239 1237 Layout->addWidget(Text, 11, 0, 4, 4); … … 1623 1621 1624 1622 1625 //---------------------------------------------------------------------1626 1623 //**************************** Main program *************************** 1627 //---------------------------------------------------------------------1628 1629 1624 int main(int argc, char *argv[]) { 1630 1625 -
Evidence/Edd/Edd.h
r222 r231 251 251 signals: 252 252 void YEP(QString, int, QByteArray = QByteArray(), QString = QString(), QString = QString()); 253 void INT(QString, int, QByteArray = QByteArray(), QString = QString(), QString = QString()); 253 254 }; 254 255
Note:
See TracChangeset
for help on using the changeset viewer.