00001 00002 00009 /******************************************************************** 00010 Description: The quartz class 00011 part of the 3Dsia project 00012 created: xandi, 250400 00013 00014 History: 00015 date, name, changes, in funtion 00016 DDMMYY develo did this and this and that there 00017 00018 ********************************************************************/ 00019 #ifndef QUARTZ_H 00020 #define QUARTZ_H 00021 00022 #include "misc.h" 00023 00024 class QuartzClass 00025 { 00026 00027 public: 00028 00030 00035 QuartzClass ( Buffer*, int reqPackType, int freq = 15 ); 00036 00038 00042 void setFrequency ( int freq ); 00043 00044 00046 00051 int QuartzClass::getFrequency ( void ); 00052 00054 00059 int QuartzClass::getRequestPacket ( void ); 00060 00062 00067 Buffer* QuartzClass::getBuf ( void ); 00068 00069 private: 00070 00071 Buffer* qbuf; 00072 int requestPacket; 00073 int frequency; 00074 00075 }; 00076 00078 00083 void* QuartzThread ( void* qObj ); 00084 00085 #endif