home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / business / printcar / printcar.exe / src / PrintStatusForm.h < prev    next >
C/C++ Source or Header  |  2000-06-06  |  1KB  |  56 lines

  1. //
  2. //  $Id: PrintStatusForm.h,v 1.1 2000/06/06 09:30:51 sergey Exp $
  3. //
  4.  
  5. #ifndef _PrintStatusForm_h_
  6. #define _PrintStatusForm_h_
  7.  
  8. #include "UI/Form.h"
  9. #include "IrDA/IrCallback.h"
  10.  
  11.  
  12. //
  13. // Modeless print status form.
  14. //
  15. // Implements IrDA callback interface in order to reflect
  16. // IR communication status.
  17. //
  18. class PrintStatusForm:
  19.     public UI::Form,
  20.     private IrDA::Callback
  21. {
  22. public:
  23.     PrintStatusForm(Word formID);
  24.  
  25. // operations
  26.  
  27.     virtual void create();
  28.  
  29. // attributes
  30.  
  31.     IrDA::Callback& irCallback() const { return const_cast<PrintStatusForm&>(*this); }
  32.  
  33. // IR callback implementation
  34. private:
  35.     virtual void connected();
  36.     virtual void disconnected();
  37.     virtual void dataSendReady();
  38.     virtual void dataReceived(const Byte* data, int size);
  39.     virtual void statusChanged(Status status);
  40.  
  41. // implementation
  42.  
  43.     void setConnectedStatus();
  44.     void setDisconnectedStatus();
  45.     void setNoProgressStatus();
  46.     void setPrintingStatus();
  47.  
  48.     void updateStatusLabel(const char* text);
  49.  
  50. // data members
  51. private:
  52.     int _packetCount;
  53. };
  54.  
  55. #endif  // _PrintStatusForm_h_
  56.