1
Index: kdenetwork-4.6.2/kopete/CMakeLists.txt
2
===================================================================
3
--- kdenetwork-4.6.2.orig/kopete/CMakeLists.txt 2011-04-01 10:59:27.000000000 +0000
4
+++ kdenetwork-4.6.2/kopete/CMakeLists.txt 2011-04-04 17:10:27.741257431 +0000
6
macro_optional_find_package(msiLBC)
7
macro_log_feature(MSILBC_FOUND "msiLBC" "iLBC is low bitrate audio codec - plugin for mediastreamer" "http://download.savannah.gnu.org/releases/linphone/plugins/sources/" FALSE "" "Needed to build Google Talk libjingle voice call support with iLBC codec")
9
+macro_optional_find_package(Jasper)
10
+macro_bool_to_01(JASPER_FOUND HAVE_JASPER)
11
+macro_log_feature(JASPER_FOUND Jasper "JasPer library implements the codec specified in the JPEG-2000 Part-1 standard" "http://www.ece.uvic.ca/~mdadams/jasper/" FALSE "" "Required in order to be able to receive and send webcam images from/to Yahoo in Kopete")
13
# Generate config-kopete.h
14
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-kopete.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kopete.h )
16
Index: kdenetwork-4.6.2/kopete/config-kopete.h.cmake
17
===================================================================
18
--- kdenetwork-4.6.2.orig/kopete/config-kopete.h.cmake 2011-04-01 10:59:27.000000000 +0000
19
+++ kdenetwork-4.6.2/kopete/config-kopete.h.cmake 2011-04-04 17:10:48.357257499 +0000
21
#cmakedefine HAVE_LIBV4L2 1
23
#cmakedefine HAVE_V4L 1
25
+/* Define to 1 if libjasper found */
26
+#cmakedefine HAVE_JASPER
27
Index: kdenetwork-4.6.2/kopete/protocols/yahoo/CMakeLists.txt
28
===================================================================
29
--- kdenetwork-4.6.2.orig/kopete/protocols/yahoo/CMakeLists.txt 2011-02-25 21:47:33.000000000 +0000
30
+++ kdenetwork-4.6.2/kopete/protocols/yahoo/CMakeLists.txt 2011-04-04 17:10:27.741257431 +0000
33
-macro_log_feature(JASPER_FOUND Jasper "JasPer library implements the codec specified in the JPEG-2000 Part-1 standard" "http://www.ece.uvic.ca/~mdadams/jasper/" TRUE "" "Required in order to be able to receive and send webcam images from/to Yahoo in Kopete")
35
add_subdirectory( libkyahoo )
36
#add_subdirectory( ui )
37
add_subdirectory( icons )
40
${CMAKE_CURRENT_SOURCE_DIR}/ui
41
${CMAKE_CURRENT_SOURCE_DIR}/libkyahoo
42
-${JASPER_INCLUDE_DIR}
45
+ include_directories(${JASPER_INCLUDE_DIR})
48
link_directories( ${CMAKE_CURRENT_BINARY_DIR}/libkyahoo )
50
Index: kdenetwork-4.6.2/kopete/protocols/yahoo/libkyahoo/CMakeLists.txt
51
===================================================================
52
--- kdenetwork-4.6.2.orig/kopete/protocols/yahoo/libkyahoo/CMakeLists.txt 2011-02-25 21:47:33.000000000 +0000
53
+++ kdenetwork-4.6.2/kopete/protocols/yahoo/libkyahoo/CMakeLists.txt 2011-04-04 17:10:27.741257431 +0000
55
-include_directories( ${JASPER_INCLUDE_DIR} )
57
add_subdirectory( tests )
61
yahoobuddyiconloader.cpp
73
+ set(libkyahoo_SRCS ${libkyahoo_SRCS} webcamimgformat.cpp)
76
kde4_add_library( kyahoo SHARED ${libkyahoo_SRCS} )
78
Index: kdenetwork-4.6.2/kopete/protocols/yahoo/libkyahoo/webcamtask.cpp
79
===================================================================
80
--- kdenetwork-4.6.2.orig/kopete/protocols/yahoo/libkyahoo/webcamtask.cpp 2011-02-25 21:47:33.000000000 +0000
81
+++ kdenetwork-4.6.2/kopete/protocols/yahoo/libkyahoo/webcamtask.cpp 2011-04-04 17:10:27.741257431 +0000
83
emit viewerLeft( who );
89
//webcamImage.loadFromData( info->buffer->buffer() );
92
kDebug(YAHOO_RAW_DEBUG) << "Failed to initialize WebcamImgFormat helper";
98
Index: kdenetwork-4.6.2/kopete/protocols/yahoo/yahoocontact.cpp
99
===================================================================
100
--- kdenetwork-4.6.2.orig/kopete/protocols/yahoo/yahoocontact.cpp 2011-02-25 21:47:33.000000000 +0000
101
+++ kdenetwork-4.6.2/kopete/protocols/yahoo/yahoocontact.cpp 2011-04-04 17:10:27.741257431 +0000
103
#include "kopetetransfermanager.h"
104
#include "kopeteavatarmanager.h"
106
+#include "config-kopete.h"
109
#include "yahoocontact.h"
110
#include "yahooaccount.h"
113
void YahooContact::inviteWebcam()
115
- // TODO: some message if code for local video devices is not present
117
m_account->yahooSession()->sendWebcamInvite( m_userId );
119
+ KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Error,
120
+ i18n("Unable to find the Jasper image conversion program.\nJasper is required to render Yahoo webcam images."
121
+ "\nPlease see %1 for further information.", QString("http://userbase.kde.org/Kopete/Webcam_Support") ) );
126
void YahooContact::receivedWebcamImage( const QPixmap& image )
129
void YahooContact::requestWebcam()
132
if( !m_webcamDialog )
134
m_account->yahooSession()->requestWebcam( contactId() );
136
+ KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Error,
137
+ i18n("Unable to find the Jasper image conversion program.\nJasper is required to render Yahoo webcam images."
138
+ "\nPlease see %1 for further information.", QString("http://userbase.kde.org/Kopete/Webcam_Support") ) );
143
void YahooContact::closeWebcamDialog()
144
Index: kdenetwork-4.6.2/kopete/protocols/yahoo/yahoowebcam.cpp
145
===================================================================
146
--- kdenetwork-4.6.2.orig/kopete/protocols/yahoo/yahoowebcam.cpp 2011-02-25 21:47:33.000000000 +0000
147
+++ kdenetwork-4.6.2/kopete/protocols/yahoo/yahoowebcam.cpp 2011-04-04 17:10:27.741257431 +0000
149
#include "avdevice/videodevicepool.h"
153
#include "webcamimgformat.h"
156
YahooWebcam::YahooWebcam( YahooAccount *account ) : QObject( 0 )
158
setObjectName( QLatin1String("yahoo_webcam") );
165
if (WebcamImgFormat::instance())
168
kDebug(YAHOO_RAW_DEBUG) << "Failed to convert outgoing Yahoo webcam image";
170
kDebug(YAHOO_RAW_DEBUG) << "Failed to initialize WebcamImgFormat helper";
174
void YahooWebcam::addViewer( const QString &viewer )