1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xpcom/base/nsStatusReporterManager.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,41 @@ 1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* vim: set ts=8 sts=2 et sw=2 tw=80: */ 1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 + 1.11 +#include "nsIStatusReporter.h" 1.12 +#include "nsCOMArray.h" 1.13 +#include "nsString.h" 1.14 + 1.15 +class nsStatusReporter MOZ_FINAL : public nsIStatusReporter 1.16 +{ 1.17 +public: 1.18 + NS_DECL_ISUPPORTS 1.19 + NS_DECL_NSISTATUSREPORTER 1.20 + 1.21 + nsStatusReporter(nsACString& process, 1.22 + nsACString& desc); 1.23 + 1.24 + virtual ~nsStatusReporter(); 1.25 + 1.26 +protected: 1.27 + nsCString sProcess; 1.28 + nsCString sName; 1.29 + nsCString sDesc; 1.30 +}; 1.31 + 1.32 + 1.33 +class nsStatusReporterManager : public nsIStatusReporterManager 1.34 +{ 1.35 +public: 1.36 + NS_DECL_ISUPPORTS 1.37 + NS_DECL_NSISTATUSREPORTERMANAGER 1.38 + 1.39 + nsStatusReporterManager(); 1.40 + virtual ~nsStatusReporterManager(); 1.41 + 1.42 +private: 1.43 + nsCOMArray<nsIStatusReporter> mReporters; 1.44 +};