#ifndef HDDWINDOW_H #define HDDWINDOW_H #include #include #include #include #include #include #include #include #include #include "channelMasks.h" class HDDWindow : public QMainWindow { Q_OBJECT public: HDDWindow( int chans, QWidget* parentCP, QWidget* parent ); // Default constructor. ~HDDWindow(); // Default destructor. void setEstRecTime( QString speed ); // Set the estimated recording time for every channel. (Same for each channel) void themeGood( bool toggle ); // Set if the selected theme is good for the sound. public slots: void hddStatusData( int chan, QString total, QString used, double sec ); // Set the fields for the channel with new data. void hddLowest(); // Determine which HDD is the lowest on time signals: void writeMsg( QString text, int type ); // Write a message to the activity log. void lowHDD( double aRec, double total, double free, int rem ); // Send the information for the lowest HDD to display on the control panel. private: enum { cLabels = 7 }; QGridLayout* layout; // Main layout. QLabel* colLabels[ cLabels ]; // Column labels. QLabel** rowLabels; // Row labels. QLineEdit** estRec; // Estimated recording speed. QLineEdit** actRec; // Actual recording speed. QLineEdit** totalSpace; // Total space. QLineEdit** freeSpace; // Free space left. QLineEdit** timeLeft; // Time left to record. QFrame** ledStatus; // LED Status int channels; // Number of channels in the radar. double* lastUsedSize; // The last used HDD space for each channel. double* curUsedSize; // The current used HDD space for each channel. double* timeL; // The time left for each HDD. bool* newData; // Keep track of if the channel has received new data. bool warningPlayed; // Has the warning sound clip been played yet? bool rightThemeSelected; // Is a theme selected to play the clip with? }; #endif // HDDWINDOW_H