[Kde-bindings] [Bug 96738] New: dcopperl bindings do not support overloaded dcop functions

Zach Chadwick zachad at yahoo.com
Mon Jan 10 21:33:53 UTC 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
        
http://bugs.kde.org/show_bug.cgi?id=96738        
           Summary: dcopperl bindings do not support overloaded dcop
                    functions
           Product: bindings
           Version: unspecified
          Platform: RedHat RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: kde-bindings mail kde org
        ReportedBy: zachad yahoo com


Version:            (using KDE KDE 3.3.2)
Installed from:    RedHat RPMs
OS:                Linux

When using the DCOP perl bindings, the DCOP object that is created is unable to choose the correct overloaded function.  

The KNotify DCOP provides the following functions:

QCStringList interfaces()
QCStringList functions()
void notify(QString event,QString fromApp,QString text,QString sound,QString file,
            int present,int level)
void notify(QString event,QString fromApp,QString text,QString sound,QString file,
            int present,int level,int winId)
void notify(QString event,QString fromApp,QString text,QString sound,QString file,
            int present,int level,int winId,int eventId)
void reconfigure()
void setVolume(int volume)

There are 3 notify functions, taking 7, 8 & 9 arguments respectivly. The following perl snippet attempts to only use the first notify() function, but is being called with 8 arguments.

#!/usr/bin/perl
use DCOP;

my $client = new DCOP;
$client->attach();

my $knot = $client->createObject("knotify");

$knot->notify("event-name",
              "application name",
	      "This is my message",
	      undef,
	      undef,
	      16,
	      1,
	      1);

This produces the error:

DCOP: Too many (8) arguments to function "notify(QString,QString,QString,QString,QString,int,int)" at /usr/lib/perl5/vendor_perl/5.8.3/i586-linux-thread-multi/DCOP/Object.pm line 19.
Segmentation fault

Expected is a passive-popup window in the corner with my message in it.



More information about the Kde-bindings mailing list