00001 #ifndef _CHANNELDATA_H_ 00002 #define _CHANNELDATA_H_ 00003 00004 // Qt headers 00005 #include <QString> 00006 #include <QList> 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 00042 bool insert_chan(uint sourceid); 00043 void handleChannels(int id, QList<ChanInfo> *chanlist); 00044 unsigned int promptForChannelUpdates( 00045 QList<ChanInfo>::iterator chaninfo, unsigned int chanid); 00046 00047 public: 00048 bool interactive; 00049 bool non_us_updating; 00050 bool channel_preset; 00051 bool channel_updates; 00052 bool remove_new_channels; 00053 bool filter_new_channels; 00054 QString cardtype; 00055 }; 00056 00057 #endif // _CHANNELDATA_H_
1.6.3