diff options
| author | 2016-05-17 14:16:05 +0100 | |
|---|---|---|
| committer | 2016-05-17 18:18:01 +0100 | |
| commit | 1676464bdc3e7f1ae47cda3d95344c044c2c9207 (patch) | |
| tree | 30b66bb70918768dd9b8f0a5eb8ebc71790852e7 /src/modules/dcc | |
| parent | Fix bug introduced in 37b9fe9 (diff) | |
| download | KVIrc-1676464bdc3e7f1ae47cda3d95344c044c2c9207.tar.gz KVIrc-1676464bdc3e7f1ae47cda3d95344c044c2c9207.tar.bz2 KVIrc-1676464bdc3e7f1ae47cda3d95344c044c2c9207.zip | |
various cosmetic: consistent comment format
+ remove separators to make it consistent.
Diffstat (limited to 'src/modules/dcc')
| -rw-r--r-- | src/modules/dcc/DccBroker.cpp | 36 | ||||
| -rw-r--r-- | src/modules/dcc/DccChatWindow.cpp | 8 | ||||
| -rw-r--r-- | src/modules/dcc/DccVoiceCodec.cpp | 2 | ||||
| -rw-r--r-- | src/modules/dcc/DccVoiceWindow.h | 24 | ||||
| -rw-r--r-- | src/modules/dcc/canvaswidget.cpp | 52 | ||||
| -rw-r--r-- | src/modules/dcc/requests.cpp | 32 |
6 files changed, 71 insertions, 83 deletions
diff --git a/src/modules/dcc/DccBroker.cpp b/src/modules/dcc/DccBroker.cpp index d0476b4c1..7d02e0108 100644 --- a/src/modules/dcc/DccBroker.cpp +++ b/src/modules/dcc/DccBroker.cpp @@ -150,9 +150,9 @@ void DccBroker::cancelDcc(DccDialog * box, DccDescriptor * dcc) dcc = nullptr; } -////////////////////////////////////////////////////////////////////////////////////// +// // RSEND -////////////////////////////////////////////////////////////////////////////////////// +// void DccBroker::rsendManage(DccDescriptor * dcc) { @@ -278,9 +278,9 @@ void DccBroker::rsendExecute(DccDialog * box, DccDescriptor * dcc) rsendExecute(dcc); } -////////////////////////////////////////////////////////////////////////////////////// +// // DCC CHAT -////////////////////////////////////////////////////////////////////////////////////// +// void DccBroker::handleChatRequest(DccDescriptor * dcc) { @@ -352,9 +352,9 @@ void DccBroker::executeChat(DccDialog * box, DccDescriptor * dcc) m_pDccWindowList->append(chat); } -////////////////////////////////////////////////////////////////////////////////////// +// // ACTIVE VOICE -////////////////////////////////////////////////////////////////////////////////////// +// void DccBroker::activeVoiceManage(DccDescriptor * dcc) { @@ -404,9 +404,9 @@ void DccBroker::activeVoiceExecute(DccDialog * box, DccDescriptor * dcc) m_pDccWindowList->append(v); } -////////////////////////////////////////////////////////////////////////////////////// +// // PASSIVE VOICE -////////////////////////////////////////////////////////////////////////////////////// +// void DccBroker::passiveVoiceExecute(DccDescriptor * dcc) { @@ -418,9 +418,9 @@ void DccBroker::passiveVoiceExecute(DccDescriptor * dcc) m_pDccWindowList->append(v); } -////////////////////////////////////////////////////////////////////////////////////// +// // ACTIVE VIDEO -////////////////////////////////////////////////////////////////////////////////////// +// #ifndef COMPILE_DISABLE_DCC_VIDEO void DccBroker::activeVideoManage(DccDescriptor * dcc) @@ -475,9 +475,9 @@ void DccBroker::activeVideoExecute(DccDialog *, DccDescriptor *) #endif } -////////////////////////////////////////////////////////////////////////////////////// +// // PASSIVE VIDEO -////////////////////////////////////////////////////////////////////////////////////// +// #ifndef COMPILE_DISABLE_DCC_VIDEO void DccBroker::passiveVideoExecute(DccDescriptor * dcc) @@ -494,9 +494,9 @@ void DccBroker::passiveVideoExecute(DccDescriptor *) #endif } -////////////////////////////////////////////////////////////////////////////////////// +// // ACTIVE CANVAS -////////////////////////////////////////////////////////////////////////////////////// +// #ifdef COMPILE_DCC_CANVAS void DccBroker::activeCanvasManage(DccDescriptor * dcc) @@ -554,9 +554,9 @@ void DccBroker::activeCanvasExecute(DccDialog *, DccDescriptor *) #endif } -////////////////////////////////////////////////////////////////////////////////////// +// // PASSIVE CANVAS -////////////////////////////////////////////////////////////////////////////////////// +// #ifdef COMPILE_DCC_CANVAS void DccBroker::passiveCanvasExecute(DccDescriptor * dcc) @@ -570,9 +570,9 @@ void DccBroker::passiveCanvasExecute(DccDescriptor * dcc) } #endif -////////////////////////////////////////////////////////////////////////////////////// +// // SEND -////////////////////////////////////////////////////////////////////////////////////// +// void DccBroker::recvFileManage(DccDescriptor * dcc) { diff --git a/src/modules/dcc/DccChatWindow.cpp b/src/modules/dcc/DccChatWindow.cpp index dff390e64..eaf657e2f 100644 --- a/src/modules/dcc/DccChatWindow.cpp +++ b/src/modules/dcc/DccChatWindow.cpp @@ -69,9 +69,9 @@ extern DccBroker * g_pDccBroker; -////////////////////////////////////////////////////////////////////////////////////// +// // WINDOW -////////////////////////////////////////////////////////////////////////////////////// +// DccChatWindow::DccChatWindow(DccDescriptor * dcc, const char * name) : DccWindow(KviWindow::DccChat, name, dcc) @@ -595,9 +595,9 @@ void DccChatWindow::connected() } } -////////////////////////////////////////////////////////////////////////////////////// +// // THREAD -////////////////////////////////////////////////////////////////////////////////////// +// DccChatThread::DccChatThread(KviWindow * wnd, kvi_socket_t fd) : DccThread(wnd, fd) diff --git a/src/modules/dcc/DccVoiceCodec.cpp b/src/modules/dcc/DccVoiceCodec.cpp index 8b153883a..8f52060a2 100644 --- a/src/modules/dcc/DccVoiceCodec.cpp +++ b/src/modules/dcc/DccVoiceCodec.cpp @@ -94,8 +94,6 @@ int DccVoiceNullCodec::decodedFrameSize() return 1024; } -//-------------------------- - DccVideoCodec::DccVideoCodec() { } diff --git a/src/modules/dcc/DccVoiceWindow.h b/src/modules/dcc/DccVoiceWindow.h index bc37ffecb..e0d526382 100644 --- a/src/modules/dcc/DccVoiceWindow.h +++ b/src/modules/dcc/DccVoiceWindow.h @@ -149,14 +149,11 @@ protected slots: #if 0 - - /* - -////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -CODEC DEFINITION +// +// CODEC DEFINITION +// Sample rate = samples/sec (ex. 8000) Sample size = bits (ex. 16 bits) @@ -170,8 +167,6 @@ CODEC DEFINITION 8000:16:le:gsm 8000:16:le:adpcm -////////////////////////////////////////////////////////////////////////////////////////////////////////////// - class KviVoiceParty { public: @@ -211,8 +206,6 @@ void KviVoiceParty::addChild(KviVoiceParty * pChild) m_pChildrenTree->append(pChild); } -////////////////////////////////////////////////////////////////////////////////////////////////////////////// - class KviVoiceAudioEncoder { public: @@ -229,8 +222,6 @@ public: ~KviVoiceAudioDecoder(); }; -////////////////////////////////////////////////////////////////////////////////////////////////////////////// - class KviVoiceLink { public: @@ -261,8 +252,6 @@ KviVoiceLink::~KviVoiceLink() if(m_pAudioDecoder)delete m_pAudioDecoder; } -////////////////////////////////////////////////////////////////////////////////////////////////////////////// - class KviVoice_r8000s16eL_to_r8000s16eB_Transformer { @@ -386,14 +375,15 @@ void KviVoiceConference::conferenceThread() shutdownUdpSocket(); } -////////////////////////////////////////////////////////////////////////////////////////////////////////////// */ +// // DCC VOICE NG proto +// // -// tcp control connection +// TCP control connection // --> HELLO: DccVoice protocol header // <-- HELLO: DccVoice protocol header // --> IACCEPT: Codec-description|CodecId,Codec-description|CodecID,Codec... (in order of preference) @@ -415,7 +405,7 @@ void KviVoiceConference::conferenceThread() // Each chunk should be encoded independently of the others // We can switch codec at each chunk (but not at each packet) // When some packets are lost we loose the entire chunk -// A block is completly synchronized in time (unless we loose some chunks: in that case +// A block is completely synchronized in time (unless we loose some chunks: in that case // we may decide to synchronize with silence or insert a glitch...) // Decoding never depends on the future diff --git a/src/modules/dcc/canvaswidget.cpp b/src/modules/dcc/canvaswidget.cpp index 4395a3d52..8da7a0204 100644 --- a/src/modules/dcc/canvaswidget.cpp +++ b/src/modules/dcc/canvaswidget.cpp @@ -38,9 +38,9 @@ #include <math.h> #include <stdlib.h> -////////////////////////////////////////////////////////////////////////////////////// +// // KviCanvasRectangleItem -////////////////////////////////////////////////////////////////////////////////////// +// KviCanvasRectangleItem::KviCanvasRectangleItem(QCanvas * c, int x, int y, int w, int h) : QCanvasRectangle(x, y, w, h, c) @@ -70,9 +70,9 @@ void KviCanvasRectangleItem::setProperty(const QString & property, const QVarian } } -////////////////////////////////////////////////////////////////////////////////////// +// // KviCanvasPolygon -////////////////////////////////////////////////////////////////////////////////////// +// KviCanvasPolygon::KviCanvasPolygon(QCanvas * c, int x, int y, QPointArray & pnts, double dScaleFactor) : QCanvasPolygon(c) @@ -174,9 +174,9 @@ void KviCanvasPolygon::draw(QPainter & p) } } -////////////////////////////////////////////////////////////////////////////////////// +// // KviCanvasEllipticItem -////////////////////////////////////////////////////////////////////////////////////// +// KviCanvasEllipticItem::KviCanvasEllipticItem(QCanvas * c, int x, int y, int w, int h) : KviCanvasRectangleItem(c, x, y, w, h) @@ -239,9 +239,9 @@ int KviCanvasEllipticItem::rtti() const return KVI_CANVAS_RTTI_ELLIPSE; } -////////////////////////////////////////////////////////////////////////////////////// +// // KviCanvasEllipse -////////////////////////////////////////////////////////////////////////////////////// +// KviCanvasEllipse::KviCanvasEllipse(QCanvas * c, int x, int y, int w, int h) : KviCanvasEllipticItem(c, x, y, w, h) @@ -262,9 +262,9 @@ void KviCanvasEllipse::drawContent(QPainter & p) p.drawEllipse((int)x(), (int)y(), width(), height()); } -////////////////////////////////////////////////////////////////////////////////////// +// // KviCanvasPie -////////////////////////////////////////////////////////////////////////////////////// +// KviCanvasPie::KviCanvasPie(QCanvas * c, int x, int y, int w, int h) : KviCanvasEllipticItem(c, x, y, w, h) @@ -289,9 +289,9 @@ void KviCanvasPie::drawContent(QPainter & p) p.drawPie((int)x(), (int)y(), width(), height(), iStartAngle, iEndAngle); } -////////////////////////////////////////////////////////////////////////////////////// +// // KviCanvasChord -////////////////////////////////////////////////////////////////////////////////////// +// KviCanvasChord::KviCanvasChord(QCanvas * c, int x, int y, int w, int h) : KviCanvasEllipticItem(c, x, y, w, h) @@ -316,9 +316,9 @@ void KviCanvasChord::drawContent(QPainter & p) p.drawChord((int)x(), (int)y(), width(), height(), iStartAngle, iEndAngle); } -////////////////////////////////////////////////////////////////////////////////////// +// // KviCanvasRectangle -////////////////////////////////////////////////////////////////////////////////////// +// KviCanvasRectangle::KviCanvasRectangle(QCanvas * c, int x, int y, int w, int h) : KviCanvasRectangleItem(c, x, y, w, h) @@ -372,9 +372,9 @@ void KviCanvasRectangle::draw(QPainter & p) drawSelection(p); } -////////////////////////////////////////////////////////////////////////////////////// +// // KviCanvasRichText -////////////////////////////////////////////////////////////////////////////////////// +// KviCanvasRichText::KviCanvasRichText(QCanvas * c, int x, int y, int w, int h) : KviCanvasRectangleItem(c, x, y, w, h) @@ -409,9 +409,9 @@ void KviCanvasRichText::draw(QPainter & p) drawSelection(p); } -////////////////////////////////////////////////////////////////////////////////////// +// // KviCanvasLine -////////////////////////////////////////////////////////////////////////////////////// +// KviCanvasLine::KviCanvasLine(QCanvas * c, int x1, int y1, int x2, int y2) : QCanvasLine(c) @@ -456,9 +456,9 @@ void KviCanvasLine::draw(QPainter & p) } } -////////////////////////////////////////////////////////////////////////////////////// +// // KviCanvasView -////////////////////////////////////////////////////////////////////////////////////// +// KviCanvasView::KviCanvasView(QCanvas * c, DccCanvasWidget * cw, QWidget * par) : QCanvasView(c, par) @@ -1200,9 +1200,9 @@ void KviCanvasView::propertyChanged(const QString & s, const QVariant & v) canvas()->update(); } -////////////////////////////////////////////////////////////////////////////////////// +// // KviVariantTableItem -////////////////////////////////////////////////////////////////////////////////////// +// KviVariantTableItem::KviVariantTableItem(QTable * t, const QVariant & property) : QTableItem(t, QTableItem::WhenCurrent, QString()) @@ -1381,9 +1381,9 @@ void KviVariantTableItem::paint(QPainter * p, const QColorGroup & cg, const QRec } } -////////////////////////////////////////////////////////////////////////////////////// +// // KviCanvasItemPropertiesWidget -////////////////////////////////////////////////////////////////////////////////////// +// KviCanvasItemPropertiesWidget::KviCanvasItemPropertiesWidget(QWidget * par) : QTable(par) @@ -1473,9 +1473,9 @@ void KviCanvasItemPropertiesWidget::editItem(QCanvasItem * it) } } -////////////////////////////////////////////////////////////////////////////////////// +// // DccCanvasWidget -////////////////////////////////////////////////////////////////////////////////////// +// DccCanvasWidget::DccCanvasWidget(QWidget * par) : QWidget(par, "canvas_widget") diff --git a/src/modules/dcc/requests.cpp b/src/modules/dcc/requests.cpp index 2d1f8d595..ab1b55c55 100644 --- a/src/modules/dcc/requests.cpp +++ b/src/modules/dcc/requests.cpp @@ -206,9 +206,9 @@ static bool dcc_module_normalize_target_data(KviDccRequest * dcc, KviCString & i return true; } -////////////////////////////////////////////////////////////////////////////////////// +// // CHAT -////////////////////////////////////////////////////////////////////////////////////// +// static void dccModuleParseDccChat(KviDccRequest * dcc) { @@ -362,9 +362,9 @@ static void dccModuleParseDccChat(KviDccRequest * dcc) g_pDccBroker->handleChatRequest(d); } -////////////////////////////////////////////////////////////////////////////////////// +// // SEND -////////////////////////////////////////////////////////////////////////////////////// +// static void dccModuleParseDccRecv(KviDccRequest * dcc); @@ -603,9 +603,9 @@ static void dccModuleParseDccResume(KviDccRequest * dcc) } } -////////////////////////////////////////////////////////////////////////////////////// +// // RECV -////////////////////////////////////////////////////////////////////////////////////// +// static void dccModuleParseDccRecv(KviDccRequest * dcc) { @@ -739,9 +739,9 @@ static void dccModuleParseDccRecv(KviDccRequest * dcc) } } -////////////////////////////////////////////////////////////////////////////////////// +// // RSEND -////////////////////////////////////////////////////////////////////////////////////// +// static void dccModuleParseDccRSend(KviDccRequest * dcc) { @@ -844,9 +844,9 @@ static void dccModuleParseDccRSend(KviDccRequest * dcc) g_pDccBroker->recvFileManage(d); } -////////////////////////////////////////////////////////////////////////////////////// +// // GET -////////////////////////////////////////////////////////////////////////////////////// +// static void dccModuleParseDccGet(KviDccRequest * dcc) { @@ -994,9 +994,9 @@ static void dccModuleParseDccGet(KviDccRequest * dcc) g_pDccBroker->sendFileExecute(nullptr, d); } -////////////////////////////////////////////////////////////////////////////////////// +// // VOICE -////////////////////////////////////////////////////////////////////////////////////// +// static void dccModuleParseDccVoice(KviDccRequest * dcc) { @@ -1067,9 +1067,9 @@ static void dccModuleParseDccVoice(KviDccRequest * dcc) g_pDccBroker->activeVoiceManage(d); } -////////////////////////////////////////////////////////////////////////////////////// +// // VIDEO -////////////////////////////////////////////////////////////////////////////////////// +// static void dccModuleParseDccVideo(KviDccRequest * dcc) { @@ -1128,9 +1128,9 @@ static void dccModuleParseDccVideo(KviDccRequest * dcc) #endif } -////////////////////////////////////////////////////////////////////////////////////// +// // CANVAS -////////////////////////////////////////////////////////////////////////////////////// +// static void dccModuleParseDccCanvas(KviDccRequest * dcc) { |
