home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 217 / DPCS0306DVD.ISO / Toolkit / Internet / FileZilla / Server / FileZilla_Server-0.9.11.exe / source / SpeedLimit.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-06-06  |  1.8 KB  |  60 lines

  1. // FileZilla Server - a Windows ftp server
  2.  
  3. // Copyright (C) 2002-2004 - Tim Kosse <tim.kosse@gmx.de>
  4.  
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU General Public License
  7. // as published by the Free Software Foundation; either version 2
  8. // of the License, or (at your option) any later version.
  9.  
  10. // This program is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. // GNU General Public License for more details.
  14.  
  15. // You should have received a copy of the GNU General Public License
  16. // along with this program; if not, write to the Free Software
  17. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  18.  
  19. // SpeedLimit.h: interface for the CSpeedLimit class.
  20. //
  21. //////////////////////////////////////////////////////////////////////
  22.  
  23. #if !defined(AFX_SPEEDLIMIT_H__D4CEBB35_CE08_4438_9A42_4F565DE84AE4__INCLUDED_)
  24. #define AFX_SPEEDLIMIT_H__D4CEBB35_CE08_4438_9A42_4F565DE84AE4__INCLUDED_
  25.  
  26. #if _MSC_VER > 1000
  27. #pragma once
  28. #endif // _MSC_VER > 1000
  29.  
  30. class CSpeedLimit
  31. {
  32. public:
  33.     bool IsItActive(const SYSTEMTIME &time) const;
  34.     CSpeedLimit();
  35.     virtual ~CSpeedLimit();
  36.  
  37.     virtual int GetRequiredBufferLen() const;
  38.     virtual char * FillBuffer(char *p) const;
  39.     virtual unsigned char * ParseBuffer(unsigned char *pBuffer, int length);
  40.  
  41.     BOOL        m_DateCheck;
  42.     struct t_date
  43.     {
  44.         int y, m, d;
  45.     } m_Date;
  46.  
  47.     BOOL        m_FromCheck;
  48.     BOOL        m_ToCheck;
  49.     struct t_time
  50.     {
  51.         int h, m, s;
  52.     } m_FromTime, m_ToTime;
  53.     int            m_Speed;
  54.     int m_Day;
  55. };
  56.  
  57. typedef std::vector<CSpeedLimit> SPEEDLIMITSLIST;
  58.  
  59. #endif // !defined(AFX_SPEEDLIMIT_H__D4CEBB35_CE08_4438_9A42_4F565DE84AE4__INCLUDED_)
  60.