home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Pier Shareware 6
/
The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso
/
035
/
kwclass.zip
/
KPRCHDR.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1994-04-18
|
1KB
|
57 lines
#ifndef _KPRCHDR_
#define _KPRCHDR_
#define INCL_BASE
#define INCL_PM
#include <os2.h>
#ifndef KWCONSTANTS
#include <kwconst.hpp>
#endif
#ifndef _IHANDLER_
#include <ihandler.hpp>
#endif
/*-------------------------------------------------------------
* Class: KProcessEvent
*
* Description:
*
* Event handler for all KASEWORKS process events,
*
------------------------------------------------------------*/
class _Export KProcessEvent : public IEvent
{
public:
KProcessEvent(const IEvent &event) : IEvent(event) {}
unsigned long stepId() { return parameter1().asUnsignedLong(); }
};
/*-------------------------------------------------------------
* Class: KProcessHandler
*
* Description:
*
* Event handler for all KASEWORKS process events,
*
------------------------------------------------------------*/
class _Export KProcessHandler : public IHandler
{
public:
KProcessHandler();
int currentStep();
void setCurrentStep(int step);
protected:
virtual Boolean dispatchHandlerEvent(IEvent &event);
virtual Boolean nextStep(IEvent &event) = 0;
virtual Boolean cancelProcess(IEvent &event) = 0;
virtual Boolean actionComplete(IEvent &event) = 0;
private:
int _currentStep;
};
#endif