Split X/26 packet handling into intermediate class
pagex26base holds methods for converting between the enhancements QList and teletext packets. A future page subclass for POP pages will re-use those same methods.
This commit is contained in:
@@ -22,17 +22,15 @@
|
||||
|
||||
#include <QByteArray>
|
||||
#include <QColor>
|
||||
#include <QList>
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
|
||||
#include "pagebase.h"
|
||||
#include "pagex26base.h"
|
||||
#include "x26triplets.h"
|
||||
|
||||
QColor CLUTtoQColor(int myColour);
|
||||
|
||||
// If we inherit from QObject then we can't copy construct, so "make a new subpage that's a copy of this one" wouldn't work
|
||||
class LevelOnePage : public PageBase //: public QObject
|
||||
class LevelOnePage : public PageX26Base //: public QObject
|
||||
{
|
||||
//Q_OBJECT
|
||||
|
||||
@@ -126,9 +124,6 @@ private:
|
||||
int pageNumber, subPageCodes;
|
||||
} m_composeLink[8];
|
||||
|
||||
QList<X26Triplet> m_enhancements;
|
||||
X26Triplet m_paddingX26Triplet;
|
||||
|
||||
const int m_defaultCLUT[32] = {
|
||||
0x000, 0xf00, 0x0f0, 0xff0, 0x00f, 0xf0f, 0x0ff, 0xfff,
|
||||
0x000, 0x700, 0x070, 0x770, 0x007, 0x707, 0x077, 0x777,
|
||||
|
||||
Reference in New Issue
Block a user