#include <SubscriberC.h>
List of all members.
Detailed Description
Class CSubscriber
Member Function Documentation
| virtual void CSubscriber::SendMsg |
( |
TREELISTMSG |
msg, |
|
|
TLITEM |
TlItem, |
|
|
const CVariant & |
newVarVal | |
|
) |
| | [virtual] |
this function sent notification to all subscribed instances.
- Parameters:
-
| msg | message type |
| TlItem | tree list item which relates to the message |
| newVarVal | new value of the the item |
| virtual void CSubscriber::Subscribe |
( |
CSubscriber * |
pSubscr |
) |
[virtual] |
subscribe the instance derived from CSubscriber for retrieving messages from the tree list control. Client should use CTreeListPane::Subscribe(pSubscr) to subscribe itself for messages instead of using this one.
- Parameters:
-
| pSubscr | Pointer of the instance derived from CSubscriber |
| virtual void CSubscriber::UnSubscribe |
( |
CSubscriber * |
pSubscr |
) |
[virtual] |
Unsubscribe the instance at the control. The instance will no longer receive value change messages sent by the control. If the instance is deleted, it must unsubscribe itself at the control.
| virtual bool CSubscriber::ValueChanged |
( |
TREELISTMSG |
msg, |
|
|
TLITEM |
TlItem, |
|
|
const CVariant & |
newVarVal | |
|
) |
| | [virtual] |
This is a pure virtual function which has to be implemented by deriving classes, i.e. by a client as well. The function is called synchronously if an item value is changed via UI in the control.
- Parameters:
-
| msg | type of message |
| TlItem | Item within the tree list control which has been changed. |
| newVarVal | new value of the tree list item. |
The documentation for this class was generated from the following file: