home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / business / printcar / printcar.exe / src / IrDA / IrError.cc < prev    next >
C/C++ Source or Header  |  2000-06-05  |  2KB  |  92 lines

  1. //
  2. // $Id: IrError.cc,v 1.2 2000/06/04 23:23:38 sergey Exp $
  3. //
  4.  
  5. #include "IrError.h"
  6. #include "Util/Error.h"
  7.  
  8. namespace IrDA
  9. {
  10.     // IrPort
  11.  
  12.     void IrError::openIrLibraryError()
  13.     {
  14.         Util::Error::errorMessage0(false, "Fail to open IR Library");
  15.     }
  16.  
  17.     void IrError::closeIrLibraryError()
  18.     {
  19.         Util::Error::errorMessage0(false, "Fail to close IR Library");
  20.     }
  21.  
  22.     // IrConnection
  23.  
  24.     void IrError::sendDataError(int maxSize, int size)
  25.     {
  26.         Util::Error::errorMessage(false, "Fail to send data (max size:%d, size:%d)", maxSize, size);
  27.     }
  28.  
  29.     void IrError::bindError()
  30.     {
  31.         Util::Error::errorMessage0(false, "Can't bind to IR protocol stack");
  32.     }
  33.  
  34.     void IrError::unbindError()
  35.     {
  36.         Util::Error::errorMessage0(false, "Can't unbind from IR protocol stack");
  37.     }
  38.  
  39.     void IrError::discoveryError()
  40.     {
  41.         Util::Error::errorMessage0(false, "IR discovery request failed");
  42.     }
  43.  
  44.     void IrError::lapConnectionError()
  45.     {
  46.         Util::Error::errorMessage0(false, "Fail to establish LAP connection");
  47.     }
  48.  
  49.     void IrError::lapDisconnectionError()
  50.     {
  51.         Util::Error::errorMessage0(false, "Fail to drop LAP connection");
  52.     }
  53.  
  54.     void IrError::getRemoteLsapError()
  55.     {
  56.         Util::Error::errorMessage0(false, "Fail to obtain remote LSAP");
  57.     }
  58.  
  59.     void IrError::lmpConnectionError()
  60.     {
  61.         Util::Error::errorMessage0(false, "Fail to establish LMP connection");
  62.     }
  63.  
  64.     void IrError::tinyTpConnectionError()
  65.     {
  66.         Util::Error::errorMessage0(false, "Fail to establish TinyTP connection");
  67.     }
  68.  
  69.     void IrError::setDeviceInfoError()
  70.     {
  71.         Util::Error::errorMessage0(false, "Fail to set device info");
  72.     }
  73.  
  74.     // IrIAS
  75.  
  76.     void IrError::iasQueryError(const char* query, int rc)
  77.     {
  78.         Util::Error::errorMessage(false, "IAS query '%s' failed: %d", query, rc);
  79.     }
  80.  
  81.     void IrError::unexpectedIasQueryError(const char* query, int rc)
  82.     {
  83.         Util::Error::errorMessage(false, "Unexpected IAS query '%s' result type: %d", query, rc);
  84.     }
  85.  
  86.     void IrError::iasCallbackError(int status)
  87.     {
  88.         Util::Error::errorMessage(false, "IAS callback error: %d", (int)status);
  89.     }
  90. }
  91. // namespace IrDA
  92.