Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
631 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef PROGRESSDIALOG_H
  7. #define PROGRESSDIALOG_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. class IProgressDialog
  12. {
  13. public:
  14. virtual void Start( char const *pchTitle, char const *pchText, bool bShowCancel ) = 0;
  15. virtual void Update( float flZeroToOneFraction ) = 0;
  16. virtual void UpdateText( char const *pchFmt, ... ) = 0;
  17. virtual bool IsCancelled() = 0;
  18. virtual void Finish() = 0;
  19. };
  20. extern IProgressDialog *g_pProgressDialog;
  21. #endif // PROGRESSDIALOG_H