Blame src/goa/goaenums.h

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