Kaydet (Commit) e96b8bd4 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

configmgr: support writing back to dconf (WIP)

Needs to be enabled manually for now by changing CONFIGURATION_LAYERS's tail
from " user:..." to " user:*... dconf:!".

Change-Id: I31cd806f21d2ded376832faf98f49167b7243d1c
üst 004ede28
...@@ -291,7 +291,9 @@ void Components::writeModifications() { ...@@ -291,7 +291,9 @@ void Components::writeModifications() {
} }
break; break;
case ModificationTarget::Dconf: case ModificationTarget::Dconf:
//TODO #if ENABLE_DCONF
dconf::writeModifications(*this, data_);
#endif
break; break;
} }
} }
......
This diff is collapsed.
...@@ -12,12 +12,17 @@ ...@@ -12,12 +12,17 @@
#include <sal/config.h> #include <sal/config.h>
namespace configmgr { struct Data; } namespace configmgr {
class Components;
struct Data;
}
namespace configmgr { namespace dconf { namespace configmgr { namespace dconf {
void readLayer(Data & data, int layer); void readLayer(Data & data, int layer);
void writeModifications(Components & components, Data & data);
} } } }
#endif #endif
......
...@@ -45,6 +45,8 @@ public: ...@@ -45,6 +45,8 @@ public:
void remove(Path const & path); void remove(Path const & path);
void clear() { root_.children.clear(); }
bool empty() const { return root_.children.empty(); } bool empty() const { return root_.children.empty(); }
Node const & getRoot() const { return root_;} Node const & getRoot() const { return root_;}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment