summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-14 18:57:18 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-14 21:36:32 (GMT)
commitcb05f5a908e20006c954ce38755c2e422ecc2388 (patch)
treea793551a5fe279a57d4330119560e8542f745484 /Swiften/Elements/StreamInitiation.h
parentcad974b45c0fb9355e68d9728e42c9ae3dbcebc7 (diff)
downloadswift-contrib-cb05f5a908e20006c954ce38755c2e422ecc2388.zip
swift-contrib-cb05f5a908e20006c954ce38755c2e422ecc2388.tar.bz2
Removed Swift::String.
Diffstat (limited to 'Swiften/Elements/StreamInitiation.h')
-rw-r--r--Swiften/Elements/StreamInitiation.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/Swiften/Elements/StreamInitiation.h b/Swiften/Elements/StreamInitiation.h
index 16dfd4d..6217cbb 100644
--- a/Swiften/Elements/StreamInitiation.h
+++ b/Swiften/Elements/StreamInitiation.h
@@ -10,7 +10,7 @@
#include <boost/optional.hpp>
#include <boost/shared_ptr.hpp>
-#include "Swiften/Base/String.h"
+#include <string>
#include "Swiften/Elements/Payload.h"
#include <Swiften/Elements/StreamInitiationFileInfo.h>
@@ -21,11 +21,11 @@ namespace Swift {
StreamInitiation() : isFileTransfer(true) {}
- const String& getID() const {
+ const std::string& getID() const {
return id;
}
- void setID(const String& id) {
+ void setID(const std::string& id) {
this->id = id;
}
@@ -37,19 +37,19 @@ namespace Swift {
fileInfo = info;
}
- const std::vector<String>& getProvidedMethods() const {
+ const std::vector<std::string>& getProvidedMethods() const {
return providedMethods;
}
- void addProvidedMethod(const String& method) {
+ void addProvidedMethod(const std::string& method) {
providedMethods.push_back(method);
}
- void setRequestedMethod(const String& method) {
+ void setRequestedMethod(const std::string& method) {
requestedMethod = method;
}
- const String& getRequestedMethod() const {
+ const std::string& getRequestedMethod() const {
return requestedMethod;
}
@@ -63,9 +63,9 @@ namespace Swift {
private:
bool isFileTransfer;
- String id;
+ std::string id;
boost::optional<StreamInitiationFileInfo> fileInfo;
- std::vector<String> providedMethods;
- String requestedMethod;
+ std::vector<std::string> providedMethods;
+ std::string requestedMethod;
};
}