 
#ifndef keyrec_DEFINED
#define keyrec_DEFINED 1
 
#ifndef class_DEFINED
#include <class.h>
#endif /* class_DEFINED */
/* 
 * This file was generated by the Andrew class system preprocessor.
 * Don't make changes to this file as it is created from keyrec.ch and will be
 * overwritten.  Make changes to keyrec.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from keyrec.ch.
 */ 
 
/* ********************************************************************** *\
 *         Copyright IBM Corporation 1988,1991 - All Rights Reserved      *
 *        For full copyright information see:'andrew/config/COPYRITE'     *
\* ********************************************************************** */

/*
	$Disclaimer: 
*Permission to use, copy, modify, and distribute this software and its 
*documentation for any purpose is hereby granted without fee, 
*provided that the above copyright notice appear in all copies and that 
*both that copyright notice, this permission notice, and the following 
*disclaimer appear in supporting documentation, and that the names of 
*IBM, Carnegie Mellon University, and other copyright holders, not be 
*used in advertising or publicity pertaining to distribution of the software 
*without specific, written prior permission.
*
*IBM, CARNEGIE MELLON UNIVERSITY, AND THE OTHER COPYRIGHT HOLDERS 
*DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 
*ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO EVENT 
*SHALL IBM, CARNEGIE MELLON UNIVERSITY, OR ANY OTHER COPYRIGHT HOLDER 
*BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 
*DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
*WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 
*ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
*OF THIS SOFTWARE.
* $
*/


 

#define keyrec_VERSION 1

#include <view.ih>

enum keyrec_EventType {
    keyrec_Keystroke,
    keyrec_Menu,
    keyrec_MouseHit
};

union keyrec_KeyValue {
    enum view_MouseAction action;
    long val;
    char *unknown;
};

struct keyitem {
    struct keyitem *next;
    enum keyrec_EventType type;
    struct view *view;
    union keyrec_KeyValue parm[3];
};






/* 
 * End of information copied from keyrec.ch.
 */ 
 
#endif /* class_StaticInfoOnly *//* 
 * Include the superclass information
 */ 
/* keyrec has no super class */ 
 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for keyrec 
 */ 
struct keyrec { 
    struct {
	struct basicobject_methods *keyrec_methods;
    } header;
    boolean recording;
    struct keyitem *head;
    struct keyitem *tail;
    boolean playing;
    struct keyitem *current;

};

 
/* 
 * End of data structure for keyrec.
 */ 
 

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef keyrec_PROGRAMMERVERSION
#define keyrec_PROGRAMMERVERSION 1
#endif /* keyrec_PROGRAMMERVERSION */

#ifdef keyrec_VERSION
#undef keyrec_VERSION
#endif /* keyrec_VERSION */
#define keyrec_VERSION ((((keyrec_PROGRAMMERVERSION << 16) ^ (9 << 8) ^ sizeof(struct keyrec)) & 0x7ffff) + 0x80000 + (1 << 20))


#endif /* class_StaticInfoOnly */
#define keyrec_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *keyrec__GetClassInfo(); \
 extern struct classheader *keyrec_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, keyrec_classheader_StaticExport->name, keyrec__GetClassInfo, NULL, keyrec_classheader_StaticExport->namekey); } 
 
#define keyrec_StaticLoad()  \
    { \
    keyrec_StaticLoadOnlyThisClass();  \
    } 
 
#define keyrec_StaticEntry  {keyrec_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader keyrec_classheader = {
    keyrec_VERSION,
    "keyrec",
    "keyrec",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define keyrec_CLASSPROCEDURES (keyrec_classheader.classprocedures)
int keyrec_classref_;
#endif /* class_StaticInfoOnly */

#endif /* keyrec_DEFINED */

#if !defined(keyrec_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_keyrec) && !defined(class_StaticEntriesOnly)
#define keyrec_ROUTINESDEFINED

#define keyrec_Clear(self) \
    ((* ((void (*)())((self)->header.keyrec_methods->routines[0]))) (self))
#define keyrec_StartRecording(self) \
    ((* ((boolean (*)())((self)->header.keyrec_methods->routines[1]))) (self))
#define keyrec_StopRecording(self) \
    ((* ((boolean (*)())((self)->header.keyrec_methods->routines[2]))) (self))
#define keyrec_Recording(self) \
    ((* ((boolean (*)())((self)->header.keyrec_methods->routines[3]))) (self))
#define keyrec_Copy(self) \
    ((* ((struct keyrec * (*)())((self)->header.keyrec_methods->routines[4]))) (self))
#define keyrec_RecordEvent(self,type,view,value1,value2,value3) \
    ((* ((void (*)())((self)->header.keyrec_methods->routines[5]))) (self,type,view,value1,value2,value3))
#define keyrec_StartPlaying(self) \
    ((* ((boolean (*)())((self)->header.keyrec_methods->routines[6]))) (self))
#define keyrec_NextKey(self,type,view,value1,value2,value3) \
    ((* ((boolean (*)())((self)->header.keyrec_methods->routines[7]))) (self,type,view,value1,value2,value3))
#define keyrec_StopPlaying(self) \
    ((* ((void (*)())((self)->header.keyrec_methods->routines[8]))) (self))

#define keyrec_NewFromObject(self) \
    ((* ((struct keyrec * (*)())((self)->header.keyrec_methods->info->procs->routines[0]))) (&keyrec_classheader, (self)->header.keyrec_methods->info->versionnumber))
#define keyrec_New() \
    (*((struct keyrec * (*)()) (keyrec_CLASSPROCEDURES->routines[0])))(&keyrec_classheader,keyrec_VERSION)
#define keyrec_Initialize(self) \
    (*((void (*)()) (keyrec_CLASSPROCEDURES->routines[2])))(&keyrec_classheader,self, keyrec_VERSION)

#define keyrec_Destroy(self) \
    ((* ((void (*)()) ((self)->header.keyrec_methods->info->procs->routines[1]))) (&keyrec_classheader, self))
#define keyrec_Finalize(self) \
    (*((void (*)()) (keyrec_CLASSPROCEDURES->routines[3])))(&keyrec_classheader,self)

#define keyrec_InitializeObject(self) \
    (*((boolean (*)()) (keyrec_CLASSPROCEDURES->routines[5])))(&keyrec_classheader,self)
#define keyrec_FinalizeObject(self) \
    (*((void (*)()) (keyrec_CLASSPROCEDURES->routines[6])))(&keyrec_classheader,self)


#endif /* !defined(keyrec_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_keyrec ) && !defined(class_StaticEntriesOnly)*/

