diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-12-11 01:41:26 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-12-11 19:36:33 +0100 |
commit | 7542bb6bd597400167da57dc43dd37ff85a6e173 (patch) | |
tree | c8ba8ffc7ff08af3f3f3478f6ee98bf0fd5b7bb1 /kopete/protocols/msn/webcam/msnwebcamdialog.cpp | |
parent | fac887803df710a5ca534e0b79a5a274461e6697 (diff) | |
download | tdenetwork-7542bb6bd597400167da57dc43dd37ff85a6e173.tar.gz tdenetwork-7542bb6bd597400167da57dc43dd37ff85a6e173.zip |
kopete: Restore the MSN protocol because a replacement MSN server was created.
This reverts commits 0486034738 - 2d5f9c55da and f6fd4ab6c0.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 73f00336178a9f312bac2992649120d462e0ac2d)
Diffstat (limited to 'kopete/protocols/msn/webcam/msnwebcamdialog.cpp')
-rw-r--r-- | kopete/protocols/msn/webcam/msnwebcamdialog.cpp | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/kopete/protocols/msn/webcam/msnwebcamdialog.cpp b/kopete/protocols/msn/webcam/msnwebcamdialog.cpp new file mode 100644 index 00000000..f10d6abe --- /dev/null +++ b/kopete/protocols/msn/webcam/msnwebcamdialog.cpp @@ -0,0 +1,82 @@ +/* + Kopete MSN Protocol + Copyright (c) 2005 by Olivier Goffart <ogoffart @kde.org> + + Note: this is just YahooWebcamDialog with s/Yahoo/MSN/g + + Copyright (c) 2005 by Matt Rogers <mattr@kde.org> + Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org> + + ************************************************************************* + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ************************************************************************* +*/ + +#include "msnwebcamdialog.h" + +#include <tqframe.h> +#include <tqobject.h> +#include <tqwidget.h> +#include <kdebug.h> +#include <tdelocale.h> + + + +MSNWebcamDialog::MSNWebcamDialog( const TQString& contact, TQWidget * parent, const char * name ) + : KDialogBase( KDialogBase::Plain, i18n( "Webcam for %1" ).arg( contact ), + KDialogBase::Close, KDialogBase::Close, parent, name, false, true /*seperator*/ ), + m_imageContainer( this ) +{ + setInitialSize( TQSize(320,290), true ); + + setEscapeButton( KDialogBase::Close ); + /* + TQObject::connect( contact, TQT_SIGNAL( signalReceivedWebcamImage( const TQPixmap& ) ), + this, TQT_SLOT( newImage( const TQPixmap& ) ) ); + */ + TQObject::connect( this, TQT_SIGNAL( closeClicked() ), this, TQT_SIGNAL( closingWebcamDialog() ) ); + /* + TQObject::connect( contact, TQT_SIGNAL( webcamClosed( int ) ), this, TQT_SLOT( webcamClosed( int ) ) ); + */ + TQFrame* page = plainPage(); + if ( page ) + { + kdDebug(14180) << k_funcinfo << "Adding webcam image container" << endl; + //m_imageContainer.setText( i18n( "No webcam image received" ) ); + //m_imageContainer.setAlignment( TQt::AlignCenter ); + m_imageContainer.setMinimumSize(320,240); + } + show(); +} + +MSNWebcamDialog::~ MSNWebcamDialog( ) +{ + +} + +void MSNWebcamDialog::newImage( const TQPixmap & image ) +{ + kdDebug(14180) << k_funcinfo << "New image received" << endl; + // kdDebug(14180) << image << endl; + //m_imageContainer.clear(); + m_imageContainer.updatePixmap( image ); + //show(); +} + +void MSNWebcamDialog::webcamClosed( int reason ) +{ + kdDebug(14180) << k_funcinfo << "webcam closed with reason?? " << reason <<endl; + //m_imageContainer.clear(); + //m_imageContainer.setText( i18n( "Webcam closed with reason %1" ).arg( TQString::number( reason ) ) ); + //m_imageContainer.setAlignment( TQt::AlignCenter ); + //show(); +} + +// kate: indent-mode csands; tab-width 4; + +#include "msnwebcamdialog.moc" |