/* vim: set et ts=8 sw=8: */ /* gclue-enum.h * * Copyright 2013 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . * * Author: Zeeshan Ali (Khattak) */ #ifndef GCLUE_ENUMS_H #define GCLUE_ENUMS_H #include G_BEGIN_DECLS /** * GClueAccuracyLevel: * @GCLUE_ACCURACY_LEVEL_NONE: Accuracy level unknown or unset. * @GCLUE_ACCURACY_LEVEL_COUNTRY: Country-level accuracy. * @GCLUE_ACCURACY_LEVEL_CITY: City-level accuracy. * @GCLUE_ACCURACY_LEVEL_NEIGHBORHOOD: neighborhood-level accuracy. * @GCLUE_ACCURACY_LEVEL_STREET: Street-level accuracy. * @GCLUE_ACCURACY_LEVEL_EXACT: Exact accuracy. Typically requires GPS receiver. * * Used to specify level of accuracy requested by, or allowed for a client. **/ typedef enum {/*< underscore_name=gclue_accuracy_level>*/ GCLUE_ACCURACY_LEVEL_NONE = 0, GCLUE_ACCURACY_LEVEL_COUNTRY = 1, GCLUE_ACCURACY_LEVEL_CITY = 4, GCLUE_ACCURACY_LEVEL_NEIGHBORHOOD = 5, GCLUE_ACCURACY_LEVEL_STREET = 6, GCLUE_ACCURACY_LEVEL_EXACT = 8, } GClueAccuracyLevel; const char *gclue_accuracy_level_get_string (GClueAccuracyLevel val); /** * GClueClientProxyCreateFlags: * @GCLUE_CLIENT_PROXY_CREATE_NONE: Empty set of create flags * @GCLUE_CLIENT_PROXY_CREATE_AUTO_DELETE: * Automatically delete the client from the server when the #GClueClient is * destroyed. This flag should usually be set. **/ typedef enum {/*< underscore_name=gclue_client_proxy_create_flags>*/ GCLUE_CLIENT_PROXY_CREATE_NONE = 0, GCLUE_CLIENT_PROXY_CREATE_AUTO_DELETE = 1 << 0, } GClueClientProxyCreateFlags; G_END_DECLS #endif /* GCLUE_ENUMS_H */