registration_states.h 1.4 KB
Newer Older
1
/*
2
 *  Copyright (C) 2004-2019 Savoir-faire Linux Inc.
3
 *
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
 *  Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
 *  Author: Yan Morin <yan.morin@savoirfairelinux.com>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program 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 General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
19
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA.
20 21 22 23 24
 */

#ifndef REGISTRATION_STATES_H_
#define REGISTRATION_STATES_H_

Edric Milaret's avatar
Edric Milaret committed
25 26 27 28
#ifdef REGISTERED
#undef REGISTERED
#endif

Adrien Béraud's avatar
Adrien Béraud committed
29
namespace jami {
30

31
/** Contains all the Registration states for an account can be in */
32
enum class RegistrationState {
33 34 35
    UNREGISTERED,
    TRYING,
    REGISTERED,
36
    ERROR_GENERIC,
37 38
    ERROR_AUTH,
    ERROR_NETWORK,
39
    ERROR_HOST,
40
    ERROR_SERVICE_UNAVAILABLE,
41
    ERROR_EXIST_STUN,
42 43 44
    ERROR_NOT_ACCEPTABLE,
    ERROR_NEED_MIGRATION,
    INITIALIZING
45
};
46

Adrien Béraud's avatar
Adrien Béraud committed
47
} // namespace jami
48

49
#endif // REGISTRATION_STATES_H_