nsStatusReporterManager.h 903 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "nsIStatusReporter.h"
  6. #include "nsCOMArray.h"
  7. #include "nsString.h"
  8. class nsStatusReporter final : public nsIStatusReporter
  9. {
  10. public:
  11. NS_DECL_ISUPPORTS
  12. NS_DECL_NSISTATUSREPORTER
  13. nsStatusReporter(nsACString& aProcess, nsACString& aDesc);
  14. private:
  15. nsCString sProcess;
  16. nsCString sName;
  17. nsCString sDesc;
  18. virtual ~nsStatusReporter();
  19. };
  20. class nsStatusReporterManager : public nsIStatusReporterManager
  21. {
  22. public:
  23. NS_DECL_ISUPPORTS
  24. NS_DECL_NSISTATUSREPORTERMANAGER
  25. nsStatusReporterManager();
  26. private:
  27. nsCOMArray<nsIStatusReporter> mReporters;
  28. virtual ~nsStatusReporterManager();
  29. };