X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=constants.h;fp=constants.h;h=47630b4e4832d3a23f6b9a523381f30c57a5f0d9;hb=d83d54cbe39ffa872c360c017fccfafc3520e392;hp=d9fc9b7885eba9884111987cc78830855bb71e0e;hpb=562d093bd082a53636e18d4f07d842310984ceb4;p=gpssportsniffer diff --git a/constants.h b/constants.h index d9fc9b7..47630b4 100755 --- a/constants.h +++ b/constants.h @@ -1,6 +1,28 @@ +/**************************************************************************** +** +** Copyright (C) 2011 Tito Eritja Real +** +** 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 . +** +****************************************************************************/ + #ifndef CONSTANTS_H #define CONSTANTS_H +// tile size in pixels +const int tdim=256; + #ifndef APPLICATION_NAME #define APPLICATION_NAME GPS Sport Sniffer #endif @@ -18,7 +40,11 @@ #endif #ifndef DEBUG_VERBOSITY -#define DEBUG_VERBOSITY 3 +#define DEBUG_VERBOSITY 0 +#endif + +#ifndef NOLOG_VERBOSITY +#define NOLOG_VERBOSITY -1 #endif #ifndef DATE_FORMAT @@ -107,6 +133,10 @@ #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 @@ -127,11 +157,19 @@ #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,