Fix kdenetwork Qt3 FTBFS

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237929 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 1e22120bb3
commit 4721accb32

@ -107,7 +107,7 @@ KDictSpellingHighlighter* ChatTextEditPart::spellHighlighter()
} }
// NAUGHTY, BAD AND WRONG! (but needed to fix nick complete bugs) // NAUGHTY, BAD AND WRONG! (but needed to fix nick complete bugs)
#include <private/tqrichtext_p.h> #include <tqrichtext_p.h>
class EvilTextEdit : public KTextEdit class EvilTextEdit : public KTextEdit
{ {
public: public:

@ -10,7 +10,7 @@
#include <tqclipboard.h> #include <tqclipboard.h>
#include <tqevent.h> #include <tqevent.h>
#include <kparts/genericfactory.h> #include <kparts/genericfactory.h>
#include <private/tqrichtext_p.h> #include <tqrichtext_p.h>
#include "krichtexteditpart.h" #include "krichtexteditpart.h"
#include "krichtexteditpart.moc" #include "krichtexteditpart.moc"

@ -496,7 +496,7 @@ void HistoryDialog::slotSearch()
if (!file.isOpen()) if (!file.isOpen())
{ {
kdWarning(14310) << k_funcinfo << "Error opening " << kdWarning(14310) << k_funcinfo << "Error opening " <<
file.name() << ": " << file.errorString().data() << endl; file.name() << ": " << file.errorString().ascii() << endl;
continue; continue;
} }

@ -24,78 +24,9 @@ if test "$ac_libgadu_libs" != "" ; then
LIBGG_LIBS="-L$ac_libgadu_libs" LIBGG_LIBS="-L$ac_libgadu_libs"
fi fi
if test "x$with_external_libgadu" != xno; then dnl This may need a test still for compatibility
ac_save_LIBS="$LIBS" COMPILE_GADU=true
ac_save_CFLAGS="$CFLAGS" use_libgadu_copy=
LIBS="$LIBGG_LIBS -lgadu $LIBPTHREAD"
CFLAGS="$CFLAGS $LIBGG_INCLUDES"
AC_MSG_CHECKING([libgadu version 1.5(rcX) with pthread support])
AC_TRY_RUN(
[
#include <libgadu.h>
#include <stdio.h>
#include <string.h>
int main()
{
#if defined __GG_LIBGADU_HAVE_PTHREAD && defined GG_LOGIN60
int maj, min, date, items;
const char *libgadu_version = gg_libgadu_version();
items = sscanf( libgadu_version, "%u.%u.%u", &maj,&min,&date );
if ( items != 3 ) { /* version in YYYYDDMM format only */
sscanf( libgadu_version, "%u", &date );
if ( date < 20040520 )
return 1;
else
return 0;
}
if ( maj != 1 ) {
return 1;
}
if ( ( min == 4 || min == 5 ) && date < 20040520 ) {
return 1;
}
if ( min == 5 || min == 6 ){
return 0;
}
#endif
return 1;
}
], [
LIBGG_LIBS="$LIBGG_LIBS -lgadu $LIBPTHREAD"
AC_MSG_RESULT([yes])
COMPILE_GADU=true
use_libgadu_copy=
], [
AC_MSG_RESULT([no])
])
LIBS="$ac_save_LIBS"
CFLAGS="$ac_save_CFLAGS"
if test "x$with_external_libgadu" != xcheck && test -z "$COMPILE_GADU"; then
AC_MSG_ERROR([--with-external-libgadu was given, but test for libgadu failed])
fi
fi
if test -z "$COMPILE_GADU"; then
AC_MSG_CHECKING([if supplied libgadu-copy can be used])
if test "$kde_use_threading" = "yes"; then
AC_MSG_RESULT([yes])
use_libgadu_copy=yes
COMPILE_GADU=true
else
AC_MSG_RESULT([no (no pthread), support for Gadu-Gadu will be disabled])
use_libgadu_copy=
COMPILE_GADU=
fi
fi
AC_SUBST(LIBGG_INCLUDES) AC_SUBST(LIBGG_INCLUDES)
AC_SUBST(LIBGG_LIBS) AC_SUBST(LIBGG_LIBS)
@ -103,41 +34,6 @@ AC_SUBST(COMPILE_GADU)
AM_CONDITIONAL(include_gadu, test -n "$COMPILE_GADU") AM_CONDITIONAL(include_gadu, test -n "$COMPILE_GADU")
AM_CONDITIONAL(include_libggcopy, test -n "$use_libgadu_copy") AM_CONDITIONAL(include_libggcopy, test -n "$use_libgadu_copy")
if test "$use_libgadu_copy" = "yes"; then
AM_CONFIG_HEADER(kopete/protocols/gadu/libgadu/libgadu-config.h)
if test "$ac_cv_c_bigendian" = "yes"; then
AC_DEFINE_UNQUOTED([__GG_LIBGADU_BIGENDIAN], 1, [Define if big endian])
fi
KDE_CHECK_LONG_LONG()
if test "$kde_cv_c_long_long" = "yes"; then
AC_DEFINE_UNQUOTED([__GG_LIBGADU_HAVE_LONG_LONG], 1, [long long support])
fi
KDE_CHECK_SSL()
if test "$have_ssl" = "yes"; then
AC_DEFINE_UNQUOTED([__GG_LIBGADU_HAVE_OPENSSL], 1, [Define if SSL support is available])
fi
AC_MSG_CHECKING([for C99-compatible vsnprintf()])
AC_TRY_RUN(
[
#include <stdio.h>
int main()
{
char tmp;
return (snprintf(&tmp, sizeof(tmp), "test") != 4);
}
],[
AC_MSG_RESULT([yes])
AC_DEFINE_UNQUOTED([__GG_LIBGADU_HAVE_C99_VSNPRINTF], 1, [C99 vsnprintf() available])
], [
AC_MSG_RESULT([no])
])
AC_CHECK_FUNCS([va_copy],
[AC_DEFINE_UNQUOTED([__GG_LIBGADU_HAVE_VA_COPY], 1, [va_copy])],[])
AC_CHECK_FUNCS([_va_copy],
[AC_DEFINE_UNQUOTED([__GG_LIBGADU_HAVE__VA_COPY], 1, [__va_copy])],[])
fi
KDE_PKG_CHECK_MODULES(IDN, libidn, have_libidn=yes, have_libidn=no) KDE_PKG_CHECK_MODULES(IDN, libidn, have_libidn=yes, have_libidn=no)
if test x$have_libidn = xno; then if test x$have_libidn = xno; then
AC_MSG_WARN([Libidn not found, Kopete Jabber plugin will not be compiled]) AC_MSG_WARN([Libidn not found, Kopete Jabber plugin will not be compiled])

@ -299,16 +299,16 @@ bool ResponseProtocol::readGroupWiseLine( TQCString & line )
while ( true ) while ( true )
{ {
TQ_UINT8 c; TQ_UINT8 c;
if (! okToProceed() ) if (! okToProceed() )
return false; return false;
m_din >> c; m_din >> c;
m_bytes++; m_bytes++;
line += TQChar(c).ascii(); line += TQChar(c).latin1();
if ( c == '\n' ) if ( c == '\n' )
break; break;
} }
return true; return true;
} }
#include "responseprotocol.moc" #include "responseprotocol.moc"

@ -45,7 +45,7 @@
* up the contact it is for, and call the function passed into the class by the * up the contact it is for, and call the function passed into the class by the
* mapping function. * mapping function.
* *
* Since TQObjects cannot be inside templates, the TQMember classes that connect * Since TQObjects cannot be inside templates, the QMember classes that connect
* to the slots are seperate. * to the slots are seperate.
*/ */
@ -81,13 +81,13 @@ TQObject members, these connect to the KIRC signals and call
the Mapping functions when they emit. the Mapping functions when they emit.
**/ **/
class TQMember : public TQObject class QMember : public TQObject
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
TQMember( IRCSignalMappingT *m, TQObject *p ) : TQObject( p ), mapping( m ){}; QMember( IRCSignalMappingT *m, TQObject *p ) : TQObject( p ), mapping( m ){};
public slots: public slots:
void slotEmit( const TQString &id ) void slotEmit( const TQString &id )
@ -100,13 +100,13 @@ class TQMember : public TQObject
IRCSignalMappingT *mapping; IRCSignalMappingT *mapping;
}; };
class TQMemberSingle : public TQObject class QMemberSingle : public TQObject
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
TQMemberSingle( IRCSignalMappingSingleT *m, TQObject *p ) : TQObject( p ), mapping( m ){} QMemberSingle( IRCSignalMappingSingleT *m, TQObject *p ) : TQObject( p ), mapping( m ){}
public slots: public slots:
void slotEmit( const TQString &id, const TQString &arg ) void slotEmit( const TQString &id, const TQString &arg )
@ -119,13 +119,13 @@ class TQMemberSingle : public TQObject
IRCSignalMappingSingleT *mapping; IRCSignalMappingSingleT *mapping;
}; };
class TQMemberDouble : public TQObject class QMemberDouble : public TQObject
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
TQMemberDouble( IRCSignalMappingDoubleT *m, TQObject *p ) : TQObject( p ), mapping( m ){} QMemberDouble( IRCSignalMappingDoubleT *m, TQObject *p ) : TQObject( p ), mapping( m ){}
public slots: public slots:
void slotEmit( const TQString &id, const TQString &arg, const TQString &arg2 ) void slotEmit( const TQString &id, const TQString &arg, const TQString &arg2 )
@ -138,13 +138,13 @@ class TQMemberDouble : public TQObject
IRCSignalMappingDoubleT *mapping; IRCSignalMappingDoubleT *mapping;
}; };
class TQMemberTriple : public TQObject class QMemberTriple : public TQObject
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
TQMemberTriple( IRCSignalMappingTripleT *m, TQObject *p ) : TQObject( p ), mapping( m ){} QMemberTriple( IRCSignalMappingTripleT *m, TQObject *p ) : TQObject( p ), mapping( m ){}
public slots: public slots:
void slotEmit( const TQString &id, const TQString &arg, const TQString &arg2, const TQString &arg3 ) void slotEmit( const TQString &id, const TQString &arg, const TQString &arg2, const TQString &arg3 )
@ -293,7 +293,7 @@ class IRCSignalHandler : public TQObject
IRCSignalMappingT *mapping = new IRCSignalMapping<TClass>( m, signal, method ); IRCSignalMappingT *mapping = new IRCSignalMapping<TClass>( m, signal, method );
mappings.append(mapping); mappings.append(mapping);
TQObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal, TQObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal,
new TQMember( mapping, this), new QMember( mapping, this),
TQT_SLOT( slotEmit( const TQString &) ) TQT_SLOT( slotEmit( const TQString &) )
); );
} }
@ -305,7 +305,7 @@ class IRCSignalHandler : public TQObject
IRCSignalMappingSingleT *mapping = new IRCSignalMappingSingle<TClass>( m, signal, method ); IRCSignalMappingSingleT *mapping = new IRCSignalMappingSingle<TClass>( m, signal, method );
mappings.append(mapping); mappings.append(mapping);
TQObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal, TQObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal,
new TQMemberSingle( mapping, this), new QMemberSingle( mapping, this),
TQT_SLOT( slotEmit( const TQString &, const TQString &) ) TQT_SLOT( slotEmit( const TQString &, const TQString &) )
); );
} }
@ -317,7 +317,7 @@ class IRCSignalHandler : public TQObject
IRCSignalMappingDoubleT *mapping = new IRCSignalMappingDouble<TClass>( m, signal, method ); IRCSignalMappingDoubleT *mapping = new IRCSignalMappingDouble<TClass>( m, signal, method );
mappings.append(mapping); mappings.append(mapping);
TQObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal, TQObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal,
new TQMemberDouble( mapping, this), new QMemberDouble( mapping, this),
TQT_SLOT( slotEmit( const TQString &, const TQString &,const TQString &) ) TQT_SLOT( slotEmit( const TQString &, const TQString &,const TQString &) )
); );
} }
@ -330,7 +330,7 @@ class IRCSignalHandler : public TQObject
IRCSignalMappingTripleT *mapping = new IRCSignalMappingTriple<TClass>( m, signal, method ); IRCSignalMappingTripleT *mapping = new IRCSignalMappingTriple<TClass>( m, signal, method );
mappings.append(mapping); mappings.append(mapping);
TQObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal, TQObject::connect( static_cast<IRCAccount*>( m->mySelf()->account() )->engine(), signal,
new TQMemberTriple( mapping, this), new QMemberTriple( mapping, this),
TQT_SLOT( slotEmit( const TQString &, const TQString &,const TQString &,const TQString &) ) TQT_SLOT( slotEmit( const TQString &, const TQString &,const TQString &,const TQString &) )
); );
} }

@ -10,6 +10,7 @@ AM_CPPFLAGS = -Iui \
-I$(srcdir)/webcam \ -I$(srcdir)/webcam \
-I$(srcdir)/ui \ -I$(srcdir)/ui \
$(KOPETE_INCLUDES) \ $(KOPETE_INCLUDES) \
-I$(top_srcdir)/kopete/libkopete/private \
$(all_includes) $(all_includes)
kde_module_LTLIBRARIES = kopete_msn.la kde_module_LTLIBRARIES = kopete_msn.la

@ -54,7 +54,7 @@
#include "kopetemessage.h" #include "kopetemessage.h"
#include "kopetecontact.h" #include "kopetecontact.h"
#include "kopeteuiglobal.h" #include "kopeteuiglobal.h"
#include "private/kopeteemoticons.h" #include "kopeteemoticons.h"
//#include "kopeteaccountmanager.h" //#include "kopeteaccountmanager.h"
//#include "kopeteprotocol.h" //#include "kopeteprotocol.h"

@ -205,7 +205,7 @@ void SendFileTask::connectSucceeded()
} }
else else
{ {
kdDebug(YAHOO_RAW_DEBUG) << k_funcinfo << "Error opening file: " << m_file.errorString().data() << endl; kdDebug(YAHOO_RAW_DEBUG) << k_funcinfo << "Error opening file: " << m_file.errorString().ascii() << endl;
client()->notifyError( i18n( "An error occurred while sending the file." ), m_file.errorString(), Client::Error ); client()->notifyError( i18n( "An error occurred while sending the file." ), m_file.errorString(), Client::Error );
setError(); setError();
return; return;

@ -104,7 +104,7 @@ void SendPictureTask::connectSucceeded()
} }
else else
{ {
kdDebug(YAHOO_RAW_DEBUG) << "Error opening file: " << file.errorString().data() << endl; kdDebug(YAHOO_RAW_DEBUG) << "Error opening file: " << file.errorString().ascii() << endl;
client()->notifyError(i18n("Error opening file: %1").tqarg(m_path), file.errorString(), Client::Error ); client()->notifyError(i18n("Error opening file: %1").tqarg(m_path), file.errorString(), Client::Error );
return; return;
} }

Loading…
Cancel
Save