| 1 | /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ |
| 2 | /* |
| 3 | * Copyright © 2011 – 2017 Red Hat, Inc. |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Lesser General |
| 16 | * Public License along with this library; if not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | #if !defined (__GOA_BACKEND_INSIDE_GOA_BACKEND_H__) && !defined (GOA_BACKEND_COMPILATION) |
| 20 | #error "Only <goabackend/goabackend.h> can be included directly." |
| 21 | #endif |
| 22 | |
| 23 | #ifndef __GOA_BACKEND_ENUMS_H__ |
| 24 | #define __GOA_BACKEND_ENUMS_H__ |
| 25 | |
| 26 | #include <glib.h> |
| 27 | |
| 28 | G_BEGIN_DECLS |
| 29 | |
| 30 | /** |
| 31 | * GoaProviderGroup: |
| 32 | * @GOA_PROVIDER_GROUP_BRANDED: Providers with a well-known brand. For |
| 33 | * example, Google. |
| 34 | * @GOA_PROVIDER_GROUP_CONTACTS: Providers that offer address book services. |
| 35 | * For example, CardDAV. |
| 36 | * @GOA_PROVIDER_GROUP_MAIL: Providers that offer email-like messaging |
| 37 | * services. For example, IMAP and SMTP. |
| 38 | * @GOA_PROVIDER_GROUP_TICKETING: Providers with ticketing |
| 39 | * capabilities. For example, Kerberos. |
| 40 | * @GOA_PROVIDER_GROUP_CHAT: Providers that offer chat-like messaging |
| 41 | * capabilities. For example, XMPP, IRC. |
| 42 | * @GOA_PROVIDER_GROUP_INVALID: Used for error handling. No provider |
| 43 | * should belong to this group. |
| 44 | * |
| 45 | * An enum for specifying which group a provider belongs to. This is |
| 46 | * can be used to organize the providers while displaying them in an |
| 47 | * user interface. |
| 48 | */ |
| 49 | typedef enum |
| 50 | { |
| 51 | GOA_PROVIDER_GROUP_BRANDED, |
| 52 | GOA_PROVIDER_GROUP_CONTACTS, |
| 53 | GOA_PROVIDER_GROUP_MAIL, |
| 54 | GOA_PROVIDER_GROUP_TICKETING, |
| 55 | GOA_PROVIDER_GROUP_CHAT, |
| 56 | GOA_PROVIDER_GROUP_INVALID |
| 57 | } GoaProviderGroup; |
| 58 | |
| 59 | /** |
| 60 | * GoaProviderFeatures: |
| 61 | * @GOA_PROVIDER_FEATURE_BRANDED: Common providers to be highlighted (ie. Google, OwnCloud). |
| 62 | * @GOA_PROVIDER_FEATURE_MAIL: Mail services (ie. SMTP, IMAP). |
| 63 | * @GOA_PROVIDER_FEATURE_CALENDAR: Calendaring services (ie. CalDAV). |
| 64 | * @GOA_PROVIDER_FEATURE_CONTACTS: Addressbook services (ie. CardDAV). |
| 65 | * @GOA_PROVIDER_FEATURE_CHAT: Instant messaging services (ie. XMPP, IRC). |
| 66 | * @GOA_PROVIDER_FEATURE_DOCUMENTS: Deprecated; currently unused. |
| 67 | * @GOA_PROVIDER_FEATURE_PHOTOS: Photos storage services (ie. Flickr). |
| 68 | * @GOA_PROVIDER_FEATURE_FILES: Files storage services (ie. WebDAV). |
| 69 | * @GOA_PROVIDER_FEATURE_TICKETING: Ticketing services (ie. Kerberos). |
| 70 | * @GOA_PROVIDER_FEATURE_READ_LATER: Deprecated; currently unused. |
| 71 | * @GOA_PROVIDER_FEATURE_PRINTERS: Deprecated; currently unused. |
| 72 | * @GOA_PROVIDER_FEATURE_MAPS: Deprecated; currently unused. |
| 73 | * @GOA_PROVIDER_FEATURE_MUSIC: Music related services (e.g. Vkontakte). |
| 74 | * @GOA_PROVIDER_FEATURE_TODO: Deprecated; currently unused. |
| 75 | * @GOA_PROVIDER_FEATURE_INVALID: Used for error handling. No provider |
| 76 | * should provide this feature. |
| 77 | * |
| 78 | * These flags specify the features exported by each provider. They can be |
| 79 | * expecially useful to restrict the list of available providers when |
| 80 | * requesting the creation of an account for a specific purpose (eg. from a |
| 81 | * chat program). |
| 82 | * |
| 83 | * Since: 3.10 |
| 84 | */ |
| 85 | typedef enum /*< flags >*/ |
| 86 | { |
| 87 | GOA_PROVIDER_FEATURE_BRANDED = 1 << 1, |
| 88 | GOA_PROVIDER_FEATURE_MAIL = 1 << 2, |
| 89 | GOA_PROVIDER_FEATURE_CALENDAR = 1 << 3, |
| 90 | GOA_PROVIDER_FEATURE_CONTACTS = 1 << 4, |
| 91 | GOA_PROVIDER_FEATURE_CHAT = 1 << 5, |
| 92 | GOA_PROVIDER_FEATURE_DOCUMENTS = 1 << 6, |
| 93 | GOA_PROVIDER_FEATURE_PHOTOS = 1 << 7, |
| 94 | GOA_PROVIDER_FEATURE_FILES = 1 << 8, |
| 95 | GOA_PROVIDER_FEATURE_TICKETING = 1 << 9, |
| 96 | GOA_PROVIDER_FEATURE_READ_LATER= 1 << 10, |
| 97 | GOA_PROVIDER_FEATURE_PRINTERS = 1 << 11, |
| 98 | GOA_PROVIDER_FEATURE_MAPS = 1 << 12, |
| 99 | GOA_PROVIDER_FEATURE_MUSIC = 1 << 13, |
| 100 | GOA_PROVIDER_FEATURE_TODO = 1 << 14, |
| 101 | GOA_PROVIDER_FEATURE_INVALID = 0 |
| 102 | } GoaProviderFeatures; |
| 103 | |
| 104 | G_END_DECLS |
| 105 | |
| 106 | #endif /* __GOA_BACKEND_ENUMS_H__ */ |