Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

channel.h

Go to the documentation of this file.
00001 #ifndef CHANNEL_H
00002 #define CHANNEL_H
00003 
00004 #include "bcwindowbase.inc"
00005 #include "defaults.inc"
00006 #include "filexml.inc"
00007 
00008 // Used by both GUI to change channels and devices to map channels to
00009 // device parameters.
00010 
00011 class Channel
00012 {
00013 public:
00014         Channel();
00015         Channel(Channel *channel);
00016         ~Channel();
00017 
00018         void reset();
00019         Channel& operator=(Channel &channel);
00020         void copy_settings(Channel *channel);
00021         void copy_usage(Channel *channel);
00022         int load(FileXML *file);
00023         int save(FileXML *file);
00024 // Only used for channel scanning
00025         void load_defaults(Defaults *defaults);
00026         void save_defaults(Defaults *defaults);
00027         
00028 
00029 // Flags for GUI settings the device uses
00030         int use_frequency;
00031         int use_fine;
00032         int use_norm;
00033         int use_input;
00034 // Device supports scanning
00035         int has_scanning;
00036 
00037 
00038 
00039 // User supplied name
00040         char title[BCTEXTLEN];
00041 // Name given by device for the channel
00042         char device_name[BCTEXTLEN];
00043 // Number of the table entry in the appropriate freqtable
00044         int entry;
00045 // Table to use
00046         int freqtable;
00047 // Fine tuning offset
00048         int fine_tune;
00049 // Input source
00050         int input;
00051         int norm;
00052 // Index used by the device
00053         int device_index;
00054 // Tuner number used by the device
00055         int tuner;
00056 };
00057 
00058 
00059 #endif

Generated on Sun Jan 8 13:38:51 2006 for Cinelerra-svn by  doxygen 1.4.4