| 1 | /* |
| 2 | * Copyright (C) 2013 Canonical Ltd. |
| 3 | * |
| 4 | * Contact: Alberto Mardegan <[email protected]> |
| 5 | * |
| 6 | * This file is part of lomiri-online-accounts-ui and lomiri-online-accounts- |
| 7 | * service |
| 8 | * |
| 9 | * This program is free software: you can redistribute it and/or modify it |
| 10 | * under the terms of the GNU General Public License version 3, as published |
| 11 | * by the Free Software Foundation. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, but |
| 14 | * WITHOUT ANY WARRANTY; without even the implied warranties of |
| 15 | * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
| 16 | * PURPOSE. See the GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License along |
| 19 | * with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | */ |
| 21 | |
| 22 | #ifndef OAU_GLOBALS_H |
| 23 | #define OAU_GLOBALS_H |
| 24 | |
| 25 | #define OAU_SERVICE_NAME QStringLiteral("com.lomiri.OnlineAccountsUi") |
| 26 | #define OAU_OBJECT_PATH QStringLiteral("/") |
| 27 | #define OAU_INTERFACE OAU_SERVICE_NAME |
| 28 | |
| 29 | #define OAU_KEY_APPLICATION QStringLiteral("application") |
| 30 | #define OAU_KEY_PROVIDER QStringLiteral("provider") |
| 31 | #define OAU_KEY_SERVICE_ID QStringLiteral("serviceId") |
| 32 | #define OAU_KEY_SERVICE_TYPE QStringLiteral("serviceType") |
| 33 | #define OAU_KEY_WINDOW_ID QStringLiteral("windowId") |
| 34 | #define OAU_KEY_PID QStringLiteral("pid") |
| 35 | #define OAU_KEY_ACCOUNT_ID QStringLiteral("accountId") |
| 36 | |
| 37 | // D-Bus error names |
| 38 | #define OAU_ERROR_PREFIX "com.lomiri.OnlineAccountsUi." |
| 39 | #define OAU_ERROR_USER_CANCELED \ |
| 40 | QStringLiteral(OAU_ERROR_PREFIX "UserCanceled") |
| 41 | #define OAU_ERROR_INVALID_PARAMETERS \ |
| 42 | QStringLiteral(OAU_ERROR_PREFIX "InvalidParameters") |
| 43 | #define OAU_ERROR_INVALID_APPLICATION \ |
| 44 | QStringLiteral(OAU_ERROR_PREFIX "InvalidApplication") |
| 45 | #define OAU_ERROR_INVALID_SERVICE \ |
| 46 | QStringLiteral(OAU_ERROR_PREFIX "InvalidService") |
| 47 | #define OAU_ERROR_PROMPT_SESSION \ |
| 48 | QStringLiteral(OAU_ERROR_PREFIX "NoPromptSession") |
| 49 | |
| 50 | /* SignOnUi service */ |
| 51 | #define SIGNONUI_SERVICE_NAME QStringLiteral("com.nokia.singlesignonui") |
| 52 | #define SIGNONUI_OBJECT_PATH QStringLiteral("/SignonUi") |
| 53 | #define SIGNONUI_INTERFACE SIGNONUI_SERVICE_NAME |
| 54 | |
| 55 | #define SIGNON_UI_ERROR_PREFIX "com.lomiri.SignonUi." |
| 56 | |
| 57 | #define SIGNON_UI_ERROR_INTERNAL \ |
| 58 | QStringLiteral(SIGNON_UI_ERROR_PREFIX "InternalError") |
| 59 | |
| 60 | #endif // OAU_GLOBALS_H |