forked from Mirrors/freeswitch
e3ea7c61bb
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16504 d0543943-73ff-0310-b7d9-9358b9ac24b2
52 lines
1.3 KiB
C++
52 lines
1.3 KiB
C++
#ifndef ACCOUNT_H
|
|
#define ACCOUNT_H
|
|
|
|
#include <QString>
|
|
|
|
#define FSCOMM_GW_STATE_TRYING 0
|
|
#define FSCOMM_GW_STATE_REGISTER 1
|
|
#define FSCOMM_GW_STATE_REGED 2
|
|
#define FSCOMM_GW_STATE_UNREGED 3
|
|
#define FSCOMM_GW_STATE_UNREGISTER 4
|
|
#define FSCOMM_GW_STATE_FAILED 5
|
|
#define FSCOMM_GW_STATE_FAIL_WAIT 6
|
|
#define FSCOMM_GW_STATE_EXPIRED 7
|
|
#define FSCOMM_GW_STATE_NOREG 8
|
|
#define FSCOMM_GW_STATE_NOAVAIL 9
|
|
|
|
|
|
static QString fscomm_gw_state_names[] = {
|
|
QString("Trying"),
|
|
QString("Registering"),
|
|
QString("Registered"),
|
|
QString("Un-Registered"),
|
|
QString("Un-Registering"),
|
|
QString("Failed"),
|
|
QString("Failed"),
|
|
QString("Expired"),
|
|
QString("Not applicable"),
|
|
QString("Not available")
|
|
};
|
|
|
|
class Account {
|
|
public:
|
|
explicit Account(QString name);
|
|
void setName(QString name) { _name = name; }
|
|
QString getName() { return _name; }
|
|
void setState(int state) { _state = state; }
|
|
int getState() { return _state; }
|
|
QString getStateName();
|
|
QString getUUID() { return _uuid; }
|
|
void setStausCode(QString code) { _statusCode = code; }
|
|
void setStatusPhrase(QString phrase) { _statusPhrase = phrase; }
|
|
|
|
private:
|
|
QString _name;
|
|
int _state;
|
|
QString _uuid;
|
|
QString _statusCode;
|
|
QString _statusPhrase;
|
|
};
|
|
|
|
#endif // ACCOUNT_H
|