Initial version
[gpssportsniffer] / constants.h
index d9fc9b7..47630b4 100755 (executable)
@@ -1,6 +1,28 @@
+/****************************************************************************
+**
+**  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/>.
+**
+****************************************************************************/
+
 #ifndef CONSTANTS_H
 #define CONSTANTS_H
 
+// tile size in pixels
+const int tdim=256;
+
 #ifndef APPLICATION_NAME
 #define APPLICATION_NAME GPS Sport Sniffer
 #endif
 #endif
 
 #ifndef DEBUG_VERBOSITY
-#define DEBUG_VERBOSITY 3
+#define DEBUG_VERBOSITY 0
+#endif
+
+#ifndef NOLOG_VERBOSITY
+#define NOLOG_VERBOSITY -1
 #endif
 
 #ifndef DATE_FORMAT
 #define MIN_ICC_ZOOM 8
 #endif
 
+#ifndef MAX_ZOOM_DOWNL
+#define MAX_ZOOM_DOWNL 16
+#endif
+
 #ifndef TIME_SECONDS_POSSITIONING_PAN
 #define TIME_SECONDS_POSSITIONING_PAN 7
 #endif
 #define HTTP_TIMEOUT 3600
 #endif
 
+#ifndef ACCURACY_V_MIN
+#define ACCURACY_V_MIN 10000
+#endif
+
+#ifndef ACCURACY_H_MIN
+#define ACCURACY_H_MIN 20000
+#endif
 
-enum MapType {  MapTypeGoogleMaps=0,
-                MapTypeICC=1,
-                MapTypeOpenCycleMaps=2,
-                MapTypeOpenStreetMaps=3
+enum MapType {  MapTypeCloudMade=0,
+                MapTypeGoogleMaps=1,
+                MapTypeICC=2,
+                MapTypeOpenCycleMaps=3,
+                MapTypeOpenStreetMaps=4
 };
 
 enum XMLFileType{XMLFile_GPX=0,