2 DCOP interfaces for one application

Andras Mantia amantia at kde.org
Thu Jan 29 15:18:13 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

 How can I create two DCOP interfaces for the same application? I've tried the 
following:

class DCOPWindowManagerIf : virtual public DCOPObject
{
  K_DCOP

  k_dcop:

  virtual int currentEditorIfNum() const = 0;
  ...
};


class DCOPSettingsIf : virtual public DCOPObject
{
  K_DCOP

  k_dcop:

  virtual QString encoding() const = 0;
  ...
};

class QuantaApp : public KDockMainWindow, virtual public DCOPWindowManagerIf, 
virtual public DCOPSettingsIf
{
 ..
}

QuantaApp::QuantaApp() : KDockMainWindow(0L,"Quanta"), 
DCOPObject("WindowManagerIf"), DCOPObject("SettingsIf")
{
}

But as soon as I add the "virtual public DCOPSettingsIf", I get the following 
compilation error:

quanta/src/quanta.h:105: error: no
   unique final overrider for `virtual bool DCOPObject::process(const
   QCString&, const QByteArray&, QCString&, QByteArray&)' in `QuantaApp'
/quanta/src/quanta.h:105: error: no
   unique final overrider for `virtual QCStringList DCOPObject::interfaces()'
   in `QuantaApp'
/quanta/src/quanta.h:105: error: no
   unique final overrider for `virtual QCStringList DCOPObject::functions()' 
in
   `QuantaApp'
/quanta/src/quanta.h:105: error: no
   unique final overrider for `virtual bool DCOPObject::process(const
   QCString&, const QByteArray&, QCString&, QByteArray&)' in `QuantaApp'
/quanta/src/quanta.h:105: error: no
   unique final overrider for `virtual QCStringList DCOPObject::interfaces()'
   in `QuantaApp'
/quanta/src/quanta.h:105: error: no
   unique final overrider for `virtual QCStringList DCOPObject::functions()' 
in
   `QuantaApp'


I've been looking at the tutorials, help, but couldn't find anything. In 
sources there is some place where it's done, but couldn't figure out how 
should I do it simply and in an elegant way.
Can someone help me?

Andras


- -- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQFAGSQ1TQdfac6L/08RAjEGAJ0UOtTNqd89e2l2TeH6hOaH/ZkEPQCgtYdw
EvFwvg/ckU76j+48bm/j5EY=
=kXtT
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list