summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2016-02-15Fix crash when saving a received file to non-writable locationTobias Markmann
WriteBytestream::write(…) now returns a boolean indicating its success state (false in case of an error). Adjusted FileWriteBytestream accordingly. The QtWebKitChatView will test if the file path selected by the user is writable before accepting it and starting the transfer. If it is not writable a red warning message will be added to the file-transfer element in the chat view. Test-Information: Added an integration test that tests the new behavior for the FileWriteBytestream class. Tested two file transfers on OS X 10.11.3, one to a write protected location and another to /tmp. The first is not accepted by the UI, and without the UI sanity check it results in a file-transfer error. The second succeeds as expected. Change-Id: I5aa0c617423073feb371365a23a294c149c88036
2014-12-15Update Copyright in SwiftenKevin Smith
Change-Id: I94ab4bbb68c603fe872abeb8090575de042f5cb4
2013-05-17Fixed unicode path handling.Remko Tronçon
- Use boost::filesystem::path consistently for referring to files. - Use boost::filesystem streams for I/O, such that paths are always handled correctly. - Use stringToPath and pathToString for conversion between strings and boost::filesystem::path, to ensure we have consistent unicode handling across platforms and environments. The default constructor and string conversion uses platform-dependent encoding, depending on the global locale set in the application, which causes problems. So, unless you are in platform dependent code, the default constructor and string() function should not be used. When constructing paths from other paths (e.g. using operator/), also use stringToPath (instead of string arguments) if the path can contain unicode characters. Change-Id: If286bd9e71c8414afc0b24ba67e26ab7608ef6ea
2011-08-28Merge remote branch 'origin/swift-1.x'Remko Tronçon
* swift-1.x: Catch boost file system errors when reading VCards. Conflicts: Swift/Controllers/Storages/VCardFileStorage.cpp
2011-08-28Catch boost file system errors when reading VCards.Remko Tronçon
Release-Notes: Catch errors when writing VCards to disk. Resolves: #897
2011-05-02Replace auto_ptr by shared_ptr.Remko Tronçon
2011-04-30Replace #icnlude "" by #include <> in Swiften.Remko Tronçon
2011-04-18Jingle refactoring.Remko Tronçon
2011-02-14Removed Swift::String.Remko Tronçon
2010-10-26Fix compliation problems with CLang.Remko Tronçon
2010-10-21Added beginnings of outgoing file transfer to Swiften.Remko Tronçon
2010-10-10Fixed compilation of StorageTest.Remko Tronçon
2010-09-11Fixed VCardFileStorageTest.Remko Tronçon
2010-09-02Added check_output SCons flag to generate an XML report.Remko Tronçon
2010-08-24Implemented VCardManager.Remko Tronçon
2010-08-24Added VCardStorage.Remko Tronçon
2010-03-28Removing submodules.Remko Tronçon
2010-03-28Moved Swiften to a separate module.Remko Tronçon