Blame src/goa/goaenums.h

Packit 79f644
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
Packit 79f644
/*
Packit 79f644
 * Copyright © 2011 – 2017 Red Hat, Inc.
Packit 79f644
 *
Packit 79f644
 * This library is free software; you can redistribute it and/or
Packit 79f644
 * modify it under the terms of the GNU Lesser General Public
Packit 79f644
 * License as published by the Free Software Foundation; either
Packit 79f644
 * version 2 of the License, or (at your option) any later version.
Packit 79f644
 *
Packit 79f644
 * This library is distributed in the hope that it will be useful,
Packit 79f644
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 79f644
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 79f644
 * Lesser General Public License for more details.
Packit 79f644
 *
Packit 79f644
 * You should have received a copy of the GNU Lesser General
Packit 79f644
 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
Packit 79f644
 */
Packit 79f644
Packit 79f644
#if !defined (__GOA_INSIDE_GOA_H__) && !defined (GOA_COMPILATION)
Packit 79f644
#error "Only <goa/goa.h> can be included directly."
Packit 79f644
#endif
Packit 79f644
Packit 79f644
#ifndef __GOA_ENUMS_H__
Packit 79f644
#define __GOA_ENUMS_H__
Packit 79f644
Packit 79f644
#include <glib.h>
Packit 79f644
Packit 79f644
G_BEGIN_DECLS
Packit 79f644
Packit 79f644
/**
Packit 79f644
 * GoaError:
Packit 79f644
 * @GOA_ERROR_FAILED: The operation failed.
Packit 79f644
 * @GOA_ERROR_NOT_SUPPORTED: The operation is not supported.
Packit 79f644
 * @GOA_ERROR_DIALOG_DISMISSED: The dialog was dismissed.
Packit 79f644
 * @GOA_ERROR_ACCOUNT_EXISTS: Account already exists.
Packit 79f644
 * @GOA_ERROR_NOT_AUTHORIZED: Not authorized to perform operation.
Packit 79f644
 * @GOA_ERROR_SSL: Invalid SSL certificate.
Packit 79f644
 *
Packit 79f644
 * Error codes for the #GOA_ERROR error domain and the
Packit 79f644
 * corresponding D-Bus error names.
Packit 79f644
 */
Packit 79f644
typedef enum
Packit 79f644
{
Packit 79f644
  GOA_ERROR_FAILED,           /* org.gnome.OnlineAccounts.Error.Failed */
Packit 79f644
  GOA_ERROR_NOT_SUPPORTED,    /* org.gnome.OnlineAccounts.Error.NotSupported */
Packit 79f644
  GOA_ERROR_DIALOG_DISMISSED, /* org.gnome.OnlineAccounts.Error.DialogDismissed */
Packit 79f644
  GOA_ERROR_ACCOUNT_EXISTS,   /* org.gnome.OnlineAccounts.Error.AccountExists */
Packit 79f644
  GOA_ERROR_NOT_AUTHORIZED,   /* org.gnome.OnlineAccounts.Error.NotAuthorized */
Packit 79f644
  GOA_ERROR_SSL               /* org.gnome.OnlineAccounts.Error.SSL */
Packit 79f644
} GoaError;
Packit 79f644
Packit 79f644
#define GOA_ERROR_NUM_ENTRIES  (GOA_ERROR_SSL + 1)
Packit 79f644
Packit 79f644
G_END_DECLS
Packit 79f644
Packit 79f644
#endif /* __GOA_ENUMS_H__ */