[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Signals/slots via DCOP
From:       Cristian Tibirna <tibirna () kde ! org>
Date:       2000-08-10 6:29:36
[Download RAW message or body]

On Wed, 9 Aug 2000 at 23:08 -0700, Waldo Bastian said:

> On Fri, 04 Aug 2000, Matthias Ettrich wrote:
> > > Ok, DCOPServer / DCOPClient have support for "sending object" now.
> > > Shall I put some wrappers for emit / connect /disconnect in DCOPObject?
> >
> > sounds reasonable.
> 
> Any idea how to get hold of the "DCOPClient" in DCOPObject??
> 
> DCOP doesn't use kdecore, so I can't use kapp->dcopClient()

Whoops! *And* nothing guarantees that a DCOPObject inheritant will exist
in a properly handled DCOPClient.

I'm afraid it would require melting kdecore's freeze...

class KApplication : blah {

blah

protected:
  DCOPClient *dcptr;

blah

public:
  const DCOPClient *dcopclientptr() const {return dcptr;};

blah

};

in the .cpp:

blah 
  
DCOPClient *dcopClient() {

blah

  dcptr = pDCOPClient;
  return pDCOPClient;

}

Hmm?


-- 
Cristian Tibirna     : ctibirna@total.net     : www.total.net/~ctibirna
PhD Student          : ctibirna@gch.ulaval.ca : web.gch.ulaval.ca/~ctibirna
KDE contact - Canada :  tibirna@kde.org       : www.kde.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic