00001 #ifndef _CHANNELDATA_H_ 00002 #define _CHANNELDATA_H_ 00003 00004 // Qt headers 00005 #include <qstring.h> 00006 #include <qvaluelist.h> 00007 00008 class ChanInfo 00009 { 00010 public: 00011 ChanInfo() { } 00012 ChanInfo(const ChanInfo &other) { callsign = other.callsign; 00013 iconpath = other.iconpath; 00014 chanstr = other.chanstr; 00015 xmltvid = other.xmltvid; 00016 old_xmltvid = other.old_xmltvid; 00017 name = other.name; 00018 freqid = other.freqid; 00019 finetune = other.finetune; 00020 tvformat = other.tvformat; 00021 } 00022 00023 QString callsign; 00024 QString iconpath; 00025 QString chanstr; 00026 QString xmltvid; 00027 QString old_xmltvid; 00028 QString name; 00029 QString freqid; 00030 QString finetune; 00031 QString tvformat; 00032 }; 00033 00034 class ChannelData 00035 { 00036 public: 00037 ChannelData() : 00038 interactive(false), non_us_updating(false), 00039 channel_preset(false), channel_updates(false), 00040 remove_new_channels(false), filter_new_channels(true), 00041 cardtype(QString::null) {} 00042 00043 bool insert_chan(uint sourceid); 00044 void handleChannels(int id, QValueList<ChanInfo> *chanlist); 00045 unsigned int promptForChannelUpdates( 00046 QValueList<ChanInfo>::iterator chaninfo, unsigned int chanid); 00047 00048 public: 00049 bool interactive; 00050 bool non_us_updating; 00051 bool channel_preset; 00052 bool channel_updates; 00053 bool remove_new_channels; 00054 bool filter_new_channels; 00055 QString cardtype; 00056 }; 00057 00058 #endif // _CHANNELDATA_H_
1.5.5