~ubuntu-branches/ubuntu/trusty/syncevolution/trusty-proposed

« back to all changes in this revision

Viewing changes to src/backends/xmlrpc/XMLRPCSyncSource.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Tino Keitel
  • Date: 2011-07-20 16:02:02 UTC
  • mfrom: (3.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110720160202-e8uf7ogw4vh0q0f3
Tags: 1.1.99.5a-1
* New upstream version 1.1.99.5a, first release candiate for 1.2
* Added python-openssl dependency, the HTTP server needs it for HTTPS support
* Added versioned dependency on libsynthesis0 to get required features
* Fixed .orig.tar.gz generation in get-orig-source target
* Added myself to Uploaders:, thanks to David for sponsoring
* Use updated upstream tag for source package generation
* Removed 0001-Replace-with-in-call-to-PKG_CHECK_MODULES.patch, fixed upstream
* Renamed NEWS.Debian to NEWS so that it is actually used
* Updated NEWS for 1.1.99.5a

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include "XMLRPCSyncSource.h"
27
27
 
28
28
#include <boost/algorithm/string/split.hpp>
 
29
#include <boost/algorithm/string/classification.hpp>
29
30
 
30
31
#include <syncevo/declarations.h>
31
32
SE_BEGIN_CXX
46
47
    m_supportedTypes = dataformat;
47
48
 
48
49
    string const dbid = getDatabaseID();
49
 
    boost::split(m_splitDatabase, dbid, boost::is_any_of("|"));
 
50
    boost::split(m_splitDatabase, dbid, boost::is_from_range('|', '|'));
50
51
    m_serverUrl = m_splitDatabase[0];
51
52
}
52
53
 
53
 
const char *XMLRPCSyncSource::getMimeType() const
 
54
std::string XMLRPCSyncSource::getMimeType() const
54
55
{
55
56
    return m_mimeType.c_str();
56
57
}
57
58
 
58
 
const char *XMLRPCSyncSource::getMimeVersion() const
 
59
std::string XMLRPCSyncSource::getMimeVersion() const
59
60
{
60
61
    return m_mimeVersion.c_str();
61
62
}