[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: 2 DCOP interfaces for one application
From: Andras Mantia <amantia () kde ! org>
Date: 2004-01-29 15:18:13
Message-ID: 200401291718.13139.amantia () kde ! org
[Download RAW message or body]
-----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-----
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic