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

« back to all changes in this revision

Viewing changes to src/syncevo/ConfigNode.h

  • 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:
32
32
 
33
33
#include <syncevo/declarations.h>
34
34
#include <syncevo/util.h>
 
35
#include <syncevo/ConfigFilter.h>
35
36
SE_BEGIN_CXX
36
37
 
37
 
/** a case-insensitive string to string mapping */
38
 
class ConfigProps : public map<string, string, Nocase<string> > {
39
 
 public:
40
 
    /** format as <key> = <value> lines */
41
 
    operator string () const;
42
 
};
 
38
// see ConfigFilter.h
 
39
class ConfigProps;
43
40
 
44
41
/**
45
42
 * This class corresponds to the Funambol C++ client
62
59
     */
63
60
    virtual void flush() = 0;
64
61
 
 
62
    /** reload from background storage, discarding in-memory changes */
 
63
    virtual void reload() {}
 
64
 
65
65
    /**
66
66
     * Returns the value of the given property
67
67
     *
173
173
     * Add the given properties. To replace the content of the
174
174
     * node, call clear() first.
175
175
     */
176
 
    virtual void writeProperties(const ConfigProps &props)
177
 
    {
178
 
        BOOST_FOREACH(const ConfigProps::value_type &entry, props) {
179
 
            setProperty(entry.first, entry.second);
180
 
        }
181
 
    }
 
176
    virtual void writeProperties(const ConfigProps &props);
182
177
 
183
178
    /**
184
179
     * Remove a certain property.