[Classes] [Prev] [Next] [Methods]

CSwitchBoard

Methods Index

Heritage
Description
Usage
Protected Data Members
Friends
Public Methods
Window Event Handlers
State Indicators
Protected Methods
Constructor and Destructor Methods

CSwitchBoard


Heritage

Superclass: CNotifier

Subclasses: None


Description

CSwitchBoard is a utility class that serves as a liaison between the XVT Portability Toolkit and XVT-Power++, providing an interface between all the objects and all of the events in the system.

The switchboard channels all events in the system to the appropriate object. For example:

The switchboard automatically maps the XVT Portability Toolkit events to their corresponding XVT-Power++ methods, so a user does not need to deal with these events. However, if you are interested in how this mapping is done, the following text describes it. The purpose here is not to define the XVT Portability Toolkit events but rather to describe them just enough that the switchboard mappings make sense. For further details on XVT Portability Toolkit events, see the XVT Portability Toolkit Guide.


Usage

The switchboard is created automatically, and its use is hidden from the programmer.


Protected Data Members

static BOOLEAN itIsInstantiated Assures only one instance
static int itIsUpdateEvent Whether the handler is managing an update

Friends

friend class CResourceWindow


Public Methods

Window Event Handlers

static long EventHandler(WINDOW win, EVENT *ep);
static long DialogHandler(WINDOW win, EVENT *ep);

State Indicators

static BOOLEAN IsUpdateEvent(void);

Protected Methods

Constructor and Destructor Methods

CSwitchBoard(CApplication* theApplication);
CSwitchBoard(const CSwitchBoard& theSwitchBoard);
virtual ~CSwitchBoard(void);


[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.