2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Henri Lampela henri.lampela@ixonos.com
6 Sami Rämö - sami.ramo@ixonos.com
8 Situare is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 version 2 as published by the Free Software Foundation.
12 Situare is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with Situare; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
27 namespace SituareError {
29 ERROR_GENERAL = 0, // an unknown/unspecified error
30 ERROR_MISSING_ARGUMENT, // missing mandatory argument for requested action
31 SESSION_EXPIRED = 10, // situare session credentials expired
32 LOGIN_FAILED, // login to situare service failed
33 UPDATE_FAILED, // location update to situare failed
34 DATA_RETRIEVAL_FAILED, // user/friends list retrieval failed
35 ADDRESS_RETRIEVAL_FAILED, // reversegeo request failed
36 IMAGE_DOWNLOAD_FAILED, // image download failed from facebook
37 MAP_IMAGE_DOWNLOAD_FAILED, // map image download failed from OSM
38 GPS_INITIALIZATION_FAILED, // GPS intialization failed
39 INVALID_JSON, // JSON parsing failed i.e. invalid JSON string
40 ERROR_GEOLOCATION_SERVER_UNAVAILABLE = 501, // reverseGeo server not responding
41 ERROR_GEOLOCATION_REQUEST_FAIL, // reverseGeo response failed
42 ERROR_GEOLOCATION_LONLAT_INVALID // reverseGeo failed, invalid lon/lat
47 namespace ErrorContext {
49 SITUARE = 0, // situare context
50 NETWORK // QNetworkReply context