Index: sources/AlarmGenerator.h =================================================================== diff -u -r19092150c9343b729ad87be76805300417bfd68c -r911882aaf10ee02ef646013914a2ddd6225224ca --- sources/AlarmGenerator.h (.../AlarmGenerator.h) (revision 19092150c9343b729ad87be76805300417bfd68c) +++ sources/AlarmGenerator.h (.../AlarmGenerator.h) (revision 911882aaf10ee02ef646013914a2ddd6225224ca) @@ -21,26 +21,33 @@ // Project #include "MAlarmStatusData.h" +// forward declarations +class tst_messaging; + /*! * \brief The AlarmGenerator class * \details This class is a helper class for the UI generated Alarms */ class AlarmGenerator { + // friends + friend class ::tst_messaging; + // typedef /*! \brief quint16 depends on the Alarm_State_Flag_Bit_Positions length. * quint16 is currently used to cover 256 Alarm ID * ( but I guess it should be S32 regarding ti RM46 arch * unless has been defined otherwise and since we started from 0 (signed not used) * then quint16 would be enough) */ - typedef quint16 TAlarms; + typedef quint16 TAlarms ; + typedef QList TBits ; // member variables static const quint8 _len = Gui::GuiAlarmFlags::NUM_OF_ALARM_STATE_FLAG_BIT_POS; // member functions - static QBitArray setBits(QList vBits); + static QBitArray setBits(TBits vBits); public: AlarmGenerator() {} @@ -52,4 +59,3 @@ static const AlarmStatusData ALARM_ID_HD_COMM_TIMEOUT(); static const AlarmStatusData ALARM_ID_BLE_CUFF (); // not implemented (PRS 395) }; -