|
|
|
@ -26,7 +26,7 @@
|
|
|
|
|
#include <dcopref.h>
|
|
|
|
|
#include <kapplication.h>
|
|
|
|
|
#include <kurl.h>
|
|
|
|
|
#if KDE_VERSION >= 0x030200
|
|
|
|
|
#if TDE_VERSION >= 0x030200
|
|
|
|
|
#include <kconfigskeleton.h>
|
|
|
|
|
#endif
|
|
|
|
|
#include <kio/global.h>
|
|
|
|
@ -472,7 +472,7 @@ public:
|
|
|
|
|
DCOPClient* dc = dcopRef->dcopClient();
|
|
|
|
|
TQCString replyType;
|
|
|
|
|
TQByteArray dataReceived;
|
|
|
|
|
#if KDE_VERSION >= 0x030200
|
|
|
|
|
#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);
|
|
|
|
@ -1041,7 +1041,7 @@ new_kde(int argc, VALUE * argv, VALUE klass)
|
|
|
|
|
return instance;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#if KDE_VERSION >= 0x030200
|
|
|
|
|
#if TDE_VERSION >= 0x030200
|
|
|
|
|
|
|
|
|
|
static VALUE
|
|
|
|
|
kconfigskeletonitem_immutable(VALUE self)
|
|
|
|
@ -1116,7 +1116,7 @@ konsole_part_sendinput(VALUE self, VALUE value_text)
|
|
|
|
|
return self;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#if KDE_VERSION >= 0x030500
|
|
|
|
|
#if TDE_VERSION >= 0x030500
|
|
|
|
|
static VALUE
|
|
|
|
|
konsole_part_setautostartshell(VALUE self, VALUE enabled)
|
|
|
|
|
{
|
|
|
|
@ -1145,7 +1145,7 @@ Init_korundum()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
set_new_kde(new_kde);
|
|
|
|
|
#if KDE_VERSION >= 0x030200
|
|
|
|
|
#if TDE_VERSION >= 0x030200
|
|
|
|
|
set_kconfigskeletonitem_immutable(kconfigskeletonitem_immutable);
|
|
|
|
|
#endif
|
|
|
|
|
set_kde_resolve_classname(kde_resolve_classname);
|
|
|
|
@ -1163,14 +1163,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 KDE_VERSION >= 0x030200
|
|
|
|
|
#if TDE_VERSION >= 0x030200
|
|
|
|
|
rb_define_method(kconfigskeleton_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 KDE_VERSION >= 0x030500
|
|
|
|
|
#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);
|
|
|
|
|