1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/uconv/src/nsConverterOutputStream.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,36 @@ 1.4 +/* vim:set expandtab ts=4 sw=4 sts=4 cin: */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef NSCONVERTEROUTPUTSTREAM_H_ 1.10 +#define NSCONVERTEROUTPUTSTREAM_H_ 1.11 + 1.12 +#include "nsIConverterOutputStream.h" 1.13 +#include "nsCOMPtr.h" 1.14 +#include "mozilla/Attributes.h" 1.15 + 1.16 +class nsIUnicodeEncoder; 1.17 +class nsIOutputStream; 1.18 + 1.19 +/* ff8780a5-bbb1-4bc5-8ee7-057e7bc5c925 */ 1.20 +#define NS_CONVERTEROUTPUTSTREAM_CID \ 1.21 +{ 0xff8780a5, 0xbbb1, 0x4bc5, \ 1.22 + { 0x8e, 0xe7, 0x05, 0x7e, 0x7b, 0xc5, 0xc9, 0x25 } } 1.23 + 1.24 +class nsConverterOutputStream MOZ_FINAL : public nsIConverterOutputStream { 1.25 + public: 1.26 + nsConverterOutputStream() {} 1.27 + 1.28 + NS_DECL_ISUPPORTS 1.29 + NS_DECL_NSIUNICHAROUTPUTSTREAM 1.30 + NS_DECL_NSICONVERTEROUTPUTSTREAM 1.31 + 1.32 + private: 1.33 + ~nsConverterOutputStream(); 1.34 + 1.35 + nsCOMPtr<nsIUnicodeEncoder> mConverter; 1.36 + nsCOMPtr<nsIOutputStream> mOutStream; 1.37 +}; 1.38 + 1.39 +#endif