michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set ts=8 sts=2 et sw=2 tw=80: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: michael@0: #include "nsIStatusReporter.h" michael@0: #include "nsCOMArray.h" michael@0: #include "nsString.h" michael@0: michael@0: class nsStatusReporter MOZ_FINAL : public nsIStatusReporter michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSISTATUSREPORTER michael@0: michael@0: nsStatusReporter(nsACString& process, michael@0: nsACString& desc); michael@0: michael@0: virtual ~nsStatusReporter(); michael@0: michael@0: protected: michael@0: nsCString sProcess; michael@0: nsCString sName; michael@0: nsCString sDesc; michael@0: }; michael@0: michael@0: michael@0: class nsStatusReporterManager : public nsIStatusReporterManager michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSISTATUSREPORTERMANAGER michael@0: michael@0: nsStatusReporterManager(); michael@0: virtual ~nsStatusReporterManager(); michael@0: michael@0: private: michael@0: nsCOMArray mReporters; michael@0: };