settingsprovider.cpp
1 //------------------------------------------------------------------------------
2 // settingsprovider.cpp
3 //------------------------------------------------------------------------------
4 // Copyright 2011 - 2013 Zalewa <zalewapl@gmail.com>. All rights reserved.
5 //
6 // Redistribution and use in source and binary forms, with or without
7 // modification, are permitted provided that the following conditions are met:
8 //
9 // 1. Redistributions of source code must retain the above copyright notice,
10 // this list of conditions and the following disclaimer.
11 //
12 // 2. Redistributions in binary form must reproduce the above copyright
13 // notice, this list of conditions and the following disclaimer in
14 // the documentation and/or other materials provided with
15 // the distribution.
16 //
17 // THIS SOFTWARE IS PROVIDED BY ZALEWA ``AS IS'' AND ANY EXPRESS OR IMPLIED
18 // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
20 // EVENT SHALL ZALEWA OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
21 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
25 // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
26 // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
27 // OF SUCH DAMAGE.
28 //
29 // The views and conclusions contained in the software and documentation are
30 // those of the authors and should not be interpreted as representing official
31 // policies, either expressed or implied, of Zalewa.
32 //------------------------------------------------------------------------------
33 // Copyright (C) 2013 "Zalewa" <zalewapl@gmail.com>
34 //------------------------------------------------------------------------------
35 #include "settingsprovider.h"
36 
37 DClass<SettingsProvider>
38 {
39 };
40 
41 DPointered(SettingsProvider)
42 
44 {
45 }
46 
47 SettingsProvider::~SettingsProvider()
48 {
49 }
50 
52 {
53  foreach (const QString& key, other.allKeys())
54  {
55  setValue(key, other.value(key));
56  }
57 }
void copyFrom(const SettingsProvider &other)
Copies all settings from &#39;other&#39; to &#39;this&#39;.