Remove use of TDE_VERSION

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
master
Michele Calgaro 1 week ago
parent e847c5f4f9
commit 2f42836dcd
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -221,91 +221,5 @@ AC_DEFUN([KDE_CHECK_PERL],
AC_MSG_RESULT($has_wanted_perl)
])
dnl **********
dnl check whether we need the qextmdi lib
dnl (Shamlesly stolen from gideon souorces and
dnl modified for quanta by fredi)
dnl ..and borrowed again for a tdebindings test by rdale
dnl **********
AC_DEFUN([KDE_CHECK_MDI],
[
AC_MSG_CHECKING(whether to use tdemdi lib from tdelibs)
AC_CACHE_VAL(ac_cv_mdi_setup,
[
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$KDE_INCLUDES $TQT_INCLUDES $all_includes"
AC_TRY_COMPILE([
#include <tdeversion.h>
],
[
#if TDE_VERSION < ((3<<16) | (2<<8) | (0))
KDE_choke me
#endif
],
ac_cv_mdi_setup=yes,
ac_cv_mdi_setup=no
)
CXXFLAGS="$save_CXXFLAGS"
AC_LANG_RESTORE
])
if test "$ac_cv_mdi_setup" = "yes"; then
LIB_KMDI="-ltdemdi"
AC_MSG_RESULT(yes)
else
LIB_KMDI=''
AC_MSG_RESULT(no)
fi
AC_SUBST(LIB_KMDI)
])
dnl Check if tdemdi is present, if not don't bother..
KDE_CHECK_MDI
AC_DEFUN([KDE_CHECK_KNS],
[
AC_MSG_CHECKING(whether to use the tdenewstuff lib from tdelibs)
AC_CACHE_VAL(ac_cv_kns_setup,
[
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$KDE_INCLUDES $TQT_INCLUDES $all_includes"
AC_TRY_COMPILE([
#include <tdeversion.h>
],
[
#if TDE_VERSION < ((3<<16) | (3<<8) | (92))
KDE_choke me
#endif
],
ac_cv_kns_setup=yes,
ac_cv_kns_setup=no
)
CXXFLAGS="$save_CXXFLAGS"
AC_LANG_RESTORE
])
if test "$ac_cv_kns_setup" = "yes"; then
LIB_KNS="-ltdenewstuff"
AC_MSG_RESULT(yes)
else
LIB_KNS=''
AC_MSG_RESULT(no)
fi
AC_SUBST(LIB_KNS)
])
dnl Check if tdenewstuff is present, if not don't bother..
KDE_CHECK_KNS
dnl remove when fixed
DO_NOT_COMPILE="$DO_NOT_COMPILE qtsharp"

@ -25,7 +25,6 @@
#include <kurl.h>
#include <kdebug.h>
#include <tdeversion.h>
#include <tdetempfile.h>
namespace KJSEmbed {

@ -20,15 +20,12 @@
#include <tqmap.h>
#include <tqdatastream.h>
#include <tdeversion.h>
#include <dcopclient.h>
#include <dcopobject.h>
#include <dcopref.h>
#include <tdeapplication.h>
#include <kurl.h>
#if TDE_VERSION >= 0x030200
#include <tdeconfigskeleton.h>
#endif
#include <tdeio/global.h>
#include <tdeparts/browserextension.h>
#include <kde_terminal_interface.h>
@ -482,11 +479,7 @@ public:
DCOPClient* dc = dcopRef->dcopClient();
TQCString replyType;
TQByteArray dataReceived;
#if TDE_VERSION >= 0x030200
bool ok = dc->call(dcopRef->app(), dcopRef->obj(), _remFun, *_data, replyType, dataReceived, _useEventLoop, _timeout);
#else
bool ok = dc->call(dcopRef->app(), dcopRef->obj(), _remFun, *_data, replyType, dataReceived, _useEventLoop);
#endif
if (!ok) {
// Note that a failed dcop call returns 'nil', not 'false'
@ -1051,8 +1044,6 @@ new_kde(int argc, VALUE * argv, VALUE klass)
return instance;
}
#if TDE_VERSION >= 0x030200
static VALUE
tdeconfigskeletonitem_immutable(VALUE self)
{
@ -1087,8 +1078,6 @@ config_additem(int argc, VALUE * argv, VALUE self)
return self;
}
#endif
static VALUE
konsole_part_startprogram(VALUE self, VALUE value_program, VALUE value_args)
{
@ -1126,7 +1115,6 @@ konsole_part_sendinput(VALUE self, VALUE value_text)
return self;
}
#if TDE_VERSION >= 0x030500
static VALUE
konsole_part_setautostartshell(VALUE self, VALUE enabled)
{
@ -1144,7 +1132,6 @@ konsole_part_setautodestroy(VALUE self, VALUE enabled)
t->setAutoDestroy(enabled == Qtrue);
return self;
}
#endif
void
Init_korundum()
@ -1155,9 +1142,7 @@ Init_korundum()
}
set_new_kde(new_kde);
#if TDE_VERSION >= 0x030200
set_tdeconfigskeletonitem_immutable(tdeconfigskeletonitem_immutable);
#endif
set_kde_resolve_classname(kde_resolve_classname);
// The Qt extension is linked against libsmoketqt.so, but Korundum links against
@ -1173,19 +1158,14 @@ Init_korundum()
rb_define_singleton_method(kde_module, "dcop_call", (VALUE (*) (...)) dcop_call, -1);
rb_define_singleton_method(kde_module, "dcop_send", (VALUE (*) (...)) dcop_send, -1);
#if TDE_VERSION >= 0x030200
rb_define_method(tdeconfigskeleton_class, "addItem", (VALUE (*) (...)) config_additem, -1);
#endif
rb_define_method(konsole_part_class, "startProgram", (VALUE (*) (...)) konsole_part_startprogram, 2);
rb_define_method(konsole_part_class, "showShellInDir", (VALUE (*) (...)) konsole_part_showshellindir, 1);
rb_define_method(konsole_part_class, "sendInput", (VALUE (*) (...)) konsole_part_sendinput, 1);
#if TDE_VERSION >= 0x030500
rb_define_method(konsole_part_class, "setAutoStartShell", (VALUE (*) (...)) konsole_part_setautostartshell, 1);
rb_define_method(konsole_part_class, "autoStartShell=", (VALUE (*) (...)) konsole_part_setautostartshell, 1);
rb_define_method(konsole_part_class, "setAutoDestroy", (VALUE (*) (...)) konsole_part_setautodestroy, 1);
rb_define_method(konsole_part_class, "autoDestroy=", (VALUE (*) (...)) konsole_part_setautodestroy, 1);
#endif
rb_require("KDE/korundum.rb");
}

@ -18,7 +18,6 @@
#include <qtruby.h>
#include <smokeruby.h>
#include <tdeversion.h>
#include <dcopclient.h>
#include <dcopobject.h>
#include <dcopref.h>
@ -41,11 +40,9 @@
#include <kuserprofile.h>
#include <tdeaboutdata.h>
#include <karchive.h>
#if TDE_VERSION >= 0x030200
#include <tdeconfigskeleton.h>
#include <kplugininfo.h>
#include <kmountpoint.h>
#endif
#include <tdeio/jobclasses.h>
#include <dom/dom_node.h>
#include <dom/dom_element.h>
@ -616,7 +613,6 @@ void marshall_KServiceGroupList(Marshall *m) {
}
}
#if TDE_VERSION >= 0x030200
void marshall_KMountPointList(Marshall *m) {
switch(m->action()) {
case Marshall::FromVALUE:
@ -714,7 +710,6 @@ void marshall_KPluginInfoList(Marshall *m) {
break;
}
}
#endif
void marshall_TDEActionPtrList(Marshall *m) {
switch(m->action()) {
@ -1196,9 +1191,7 @@ void marshall_ValueItemList(Marshall *m) {
#define DEF_VALUELIST_MARSHALLER(ListIdent,ItemList,Item,Itr) namespace { char ListIdent##STR[] = #Item; }; \
Marshall::HandlerFn marshall_##ListIdent = marshall_ValueItemList<Item,ItemList,Itr,ListIdent##STR>;
#if TDE_VERSION >= 0x030200
DEF_VALUELIST_MARSHALLER( ChoicesList, TQValueList<TDEConfigSkeleton::ItemEnum::Choice>, TDEConfigSkeleton::ItemEnum::Choice, TQValueList<TDEConfigSkeleton::ItemEnum::Choice>::Iterator )
#endif
DEF_VALUELIST_MARSHALLER( TDEAboutPersonList, TQValueList<TDEAboutPerson>, TDEAboutPerson, TQValueList<TDEAboutPerson>::Iterator )
DEF_VALUELIST_MARSHALLER( TDEAboutTranslatorList, TQValueList<TDEAboutTranslator>, TDEAboutTranslator, TQValueList<TDEAboutTranslator>::Iterator )
DEF_VALUELIST_MARSHALLER( KIOCopyInfoList, TQValueList<TDEIO::CopyInfo>, TDEIO::CopyInfo, TQValueList<TDEIO::CopyInfo>::Iterator )
@ -1398,12 +1391,10 @@ TypeHandler KDE_handlers[] = {
{ "KService::List", marshall_KServiceList },
{ "KServiceGroup::List", marshall_KServiceGroupList },
{ "KServiceGroup::Ptr", marshall_KServiceGroupPtr },
#if TDE_VERSION >= 0x030200
{ "KMountPoint::List", marshall_KMountPointList },
{ "KPluginInfo::List", marshall_KPluginInfoList },
{ "TQValueList<TDEConfigSkeleton::ItemEnum::Choice>", marshall_ChoicesList },
{ "TQValueList<TDEConfigSkeleton::ItemEnum::Choice>&", marshall_ChoicesList },
#endif
{ "KServiceType::List", marshall_KServiceTypeList },
{ "TDETrader::OfferList", marshall_TDETraderOfferList },
{ "KURL::List", marshall_KURLList },

@ -9,7 +9,7 @@ EXTRA_DIST=generate.pl.in qtguess.pl.in qt_smoke.h Makefile.am
libsmoketde_la_LDFLAGS = -version-info 3:2:2 -no-undefined $(all_libraries) $(GLINC) $(KDE_RPATH)
# the libraries to link against.
libsmoketde_la_LIBADD = $(LIB_TDEHTML) -lkjs -lfontconfig $(LIB_KMDI) $(LIB_KNS) $(LIB_TDESPELL) $(LIB_TDEUTILS) $(LIB_TDEPRINT) $(GLLIB) $(LIB_TQT) $(LIB_TDEUI) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEPARTS) -lDCOP -ltdefx -ltdenewstuff -ltdemdi
libsmoketde_la_LIBADD = $(LIB_TDEHTML) -lkjs -lfontconfig -ltdemdi -ltdenewstuff $(LIB_TDESPELL) $(LIB_TDEUTILS) $(LIB_TDEPRINT) $(GLLIB) $(LIB_TQT) $(LIB_TDEUI) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TDEPARTS) -lDCOP -ltdefx -ltdenewstuff -ltdemdi
x_sources = x_1.cpp x_2.cpp x_3.cpp x_4.cpp x_5.cpp x_6.cpp x_7.cpp \
x_8.cpp x_9.cpp x_10.cpp x_11.cpp x_12.cpp x_13.cpp x_14.cpp x_15.cpp \

@ -18,7 +18,6 @@
#include <tdeapplication.h>
#include <tdeconfigdata.h>
#include <tqiconset.h>
#include <tdeversion.h>
#include <kicontheme.h>
#include <tdelocale.h>
#include <kdrawutil.h>

Loading…
Cancel
Save