From 8be422898c0154343e13b3bf60767ea3fec941c8 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Mon, 6 Mar 2006 19:40:18 +0000 Subject: [PATCH] test --- src/channel.cpp | 9 +++++---- src/channel.h | 6 ++++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/channel.cpp b/src/channel.cpp index 5f6c4a98..1abab9d6 100755 --- a/src/channel.cpp +++ b/src/channel.cpp @@ -30,7 +30,7 @@ \******************************************************************************/ CChannelSet::CChannelSet() { -/* + // seems not to work... // connect "message send"-message for each channel for ( int i = 0; i < MAX_NUM_CHANNELS; i++ ) @@ -39,7 +39,7 @@ CChannelSet::CChannelSet() SIGNAL ( MessReadyForSending ( CVector ) ), this, SLOT ( OnSendProtMessage ( i, CVector ) ) ); } -*/ +/* // make sure we have MAX_NUM_CHANNELS connections!!! QObject::connect(&vecChannels[0],SIGNAL(MessReadyForSending(CVector)), this,SLOT(OnSendProtMessCh0(CVector))); @@ -61,16 +61,17 @@ QObject::connect(&vecChannels[8],SIGNAL(MessReadyForSending(CVector)), this,SLOT(OnSendProtMessCh8(CVector))); QObject::connect(&vecChannels[9],SIGNAL(MessReadyForSending(CVector)), this,SLOT(OnSendProtMessCh9(CVector))); +*/ } -/* + // seems not to work... void CChannelSet::OnSendProtMessage ( int iChID, CVector vecMessage ) { // just pass message through and add channel ID emit MessReadyForSending ( iChID,vecMessage ); } -*/ + int CChannelSet::GetFreeChan() { diff --git a/src/channel.h b/src/channel.h index 719843fe..9da06ad6 100755 --- a/src/channel.h +++ b/src/channel.h @@ -172,10 +172,11 @@ protected: QMutex Mutex; public slots: -/* + // seems not to work... void OnSendProtMessage ( int iChID, CVector vecMessage ); -*/ + +/* // make sure we have MAX_NUM_CHANNELS connections!!! void OnSendProtMessCh0(CVector mess) {emit MessReadyForSending(0,mess);} void OnSendProtMessCh1(CVector mess) {emit MessReadyForSending(1,mess);} @@ -187,6 +188,7 @@ void OnSendProtMessCh6(CVector mess) {emit MessReadyForSending(6,mess); void OnSendProtMessCh7(CVector mess) {emit MessReadyForSending(7,mess);} void OnSendProtMessCh8(CVector mess) {emit MessReadyForSending(8,mess);} void OnSendProtMessCh9(CVector mess) {emit MessReadyForSending(9,mess);} +*/ signals: void MessReadyForSending ( int iChID, CVector vecMessage );