area_business_car_attendance.h 1.0 KB

12345678910111213141516171819202122232425
  1. #ifndef AREA_BUSINESS_CAR_ATTENDANCE_H
  2. #define AREA_BUSINESS_CAR_ATTENDANCE_H
  3. #include"area_business.h"
  4. class area_business_car_attendance:public area_business
  5. {
  6. public:
  7. area_business_car_attendance();
  8. virtual int area_business_type()
  9. {
  10. return 6;
  11. }
  12. //记录进入时间等信息,结束考勤,根据离开的时间和距离,判断是否记录一条新的考勤记录
  13. void on_enter(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data>&ptr);
  14. void on_hover(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr);
  15. //记录离开考勤区域信息,开始考勤
  16. void on_leave(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr);
  17. //static void save_attendance(const std::shared_ptr<card_location_base>& card_ptr, const std::shared_ptr<area_hover> area_hover_ptr){}
  18. };
  19. #endif // AREA_BUSINESS_CAR_ATTENDANCE_H