diff options
author | Edwin Mons <edwin.mons@isode.com> | 2014-05-23 09:01:23 (GMT) |
---|---|---|
committer | Swift Review <review@swift.im> | 2014-06-22 12:35:26 (GMT) |
commit | bd7f30aec53fc776be678577dbe4f9afec5898a6 (patch) | |
tree | 66afad4382dc16f7405a856dd0b5abc38db51653 /Sluift/Helpers.h | |
parent | 1eb14b6bde145ca54ac9b981df339fb8c56d3930 (diff) | |
download | swift-bd7f30aec53fc776be678577dbe4f9afec5898a6.zip swift-bd7f30aec53fc776be678577dbe4f9afec5898a6.tar.bz2 |
Sluift component support
Change-Id: Ib8af01c04c866e198c04d35236dea4da464c9116
Diffstat (limited to 'Sluift/Helpers.h')
-rw-r--r-- | Sluift/Helpers.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Sluift/Helpers.h b/Sluift/Helpers.h new file mode 100644 index 0000000..d04a610 --- /dev/null +++ b/Sluift/Helpers.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2013-2014 Kevin Smith and Remko Tronçon + * Licensed under the GNU General Public License. + * See the COPYING file for more information. + */ + +#pragma once + +#include <Swiften/Base/Override.h> +#include <Swiften/Base/API.h> + +#include <string> + +namespace Swift { + class ClientError; + class ComponentError; + + template<typename T> std::string getCommonErrorString(T& error); + std::string getErrorString(const ClientError& error); + std::string getErrorString(const ComponentError& error); +} |