00001
00002
00003
00004 #include <qstring.h>
00005
00006
00007 #include "dvbtypes.h"
00008
00009 QString toString(fe_status status)
00010 {
00011 QString str("");
00012 if (FE_HAS_SIGNAL & status) str += "Signal,";
00013 if (FE_HAS_CARRIER & status) str += "Carrier,";
00014 if (FE_HAS_VITERBI & status) str += "FEC Stable,";
00015 if (FE_HAS_SYNC & status) str += "Sync,";
00016 if (FE_HAS_LOCK & status) str += "Lock,";
00017 if (FE_TIMEDOUT & status) str += "Timed Out,";
00018 if (FE_REINIT & status) str += "Reinit,";
00019 return str;
00020 }