diff options
author | Richard Maudsley <richard.maudsley@isode.com> | 2014-01-02 12:21:41 (GMT) |
---|---|---|
committer | Richard Maudsley <richard.maudsley@isode.com> | 2014-01-13 15:11:53 (GMT) |
commit | 6856bc320355bb881eddf99d01a56076b2139207 (patch) | |
tree | b7054e421da9dd8227b3bbe11b2ea20575b760df /Swiften/Base/FileSize.h | |
parent | 9cf1fe4ec5d3729ceb53385aeb245a4a688823e0 (diff) | |
download | swift-6856bc320355bb881eddf99d01a56076b2139207.zip swift-6856bc320355bb881eddf99d01a56076b2139207.tar.bz2 |
Improved plaintext chat view for screen-reader support.
Change-Id: Ib7c10350b56683db95f4c6be49f79f8a9d9e80ec
Diffstat (limited to 'Swiften/Base/FileSize.h')
-rw-r--r-- | Swiften/Base/FileSize.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Swiften/Base/FileSize.h b/Swiften/Base/FileSize.h new file mode 100644 index 0000000..c9ed5fe --- /dev/null +++ b/Swiften/Base/FileSize.h @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2010-2014 Kevin Smith and Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#pragma once + +#include <Swiften/Base/API.h> +#include <boost/cstdint.hpp> +#include <string> + +namespace Swift { + +SWIFTEN_API std::string formatSize(const boost::uintmax_t bytes); + +} |