[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: DCOP and slots
From: Ravi <ravi () kde ! org>
Date: 2004-01-12 23:14:51
Message-ID: 200401121814.51364.ravi () kde ! org
[Download RAW message or body]
Hello,
How do I create DCOP functions (without inheritance) which are also slots?
Here is a short example of what I want to do:
class MyClass : public QObject, virtual public DCOPObject
{
Q_OBJECT
K_DCOP
[constructors, etc. omitted]
// k_dcop: ???
public slots:
void changeName(const QString &name) { doChangeName( name ); }
protected:
virtual void doChangeName(const QString &name);
};
This is an example of a nonvirtual interface (referred to in a recent thread
in this mailing list: http://www.gotw.ca/publications/mill18.htm was quoted
as an exposition). I would like changeName() to not only be a slot, but also
be a DCOP function. In this case, I cannot make an abstract class with a pure
virtual changeName() function as it would defeat the purpose of the
nonvirtual interface. How do I combine slots and k_dcop?
Regards,
Ravi
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic