|
|
|
|
@ -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");
|
|
|
|
|
}
|
|
|
|
|
|