Initial version
[gpssportsniffer] / settings.cpp
index 1ee1b7e..6c19b23 100755 (executable)
@@ -1,10 +1,29 @@
+/****************************************************************************
+**
+**  Copyright (C) 2011  Tito Eritja Real <jtitoo@gmail.com>
+**
+**  This program is free software: you can redistribute it and/or modify
+**  it under the terms of the GNU General Public License as published by
+**  the Free Software Foundation, either version 3 of the License, or
+**  (at your option) any later version.
+**
+**  This program is distributed in the hope that it will be useful,
+**  but WITHOUT ANY WARRANTY; without even the implied warranty of
+**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+**  GNU General Public License for more details.
+**
+**  You should have received a copy of the GNU General Public License
+**  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+**
+****************************************************************************/
+
 #include "settings.h"
 
 Settings::Settings(Log *log)
     :servicesStarted(false),isConfigured(false),log(log),autosaveInterval(5){
 
-    horizontalAccuracy=200; //200
-    verticalAccuracy=100;   //100
+    horizontalAccuracy=ACCURACY_H_MIN; //200
+    verticalAccuracy=ACCURACY_V_MIN;   //100
     trackToSniffColor="#ff0000";
     trackColor="#5bff24";
 }
@@ -14,8 +33,8 @@ Settings::Settings(const Settings& set, Log *log):
   ,xmlFile(set.xmlFile),servicesStarted(set.servicesStarted),isConfigured(set.isConfigured),log(log){
     log->debug("--Settings 2n constuctor ---");
     log->debug("isConfigured:" + isConfigured);
-    horizontalAccuracy=200;
-    verticalAccuracy=100;
+    horizontalAccuracy=ACCURACY_H_MIN;
+    verticalAccuracy=ACCURACY_V_MIN;
     trackToSniffColor="#ff0000";
     trackColor="#5bff24";
 }