mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
Change to start messing with QSharedPointer instead of regular pointers to deal with events correctly. Thanks Math.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16316 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -31,12 +31,12 @@
|
||||
|
||||
#include <QtCore>
|
||||
#include <QString>
|
||||
#include <fshost.h>
|
||||
|
||||
typedef enum {
|
||||
FSCOMM_CALL_STATE_RINGING = 0,
|
||||
FSCOMM_CALL_STATE_TRYING = 1,
|
||||
FSCOMM_CALL_STATE_ANSWERED = 2
|
||||
FSCOMM_CALL_STATE_ANSWERED = 2,
|
||||
FSCOMM_CALL_STATE_FAILED = 3
|
||||
} fscomm_call_state_t;
|
||||
|
||||
typedef enum {
|
||||
@@ -57,11 +57,14 @@ public:
|
||||
fscomm_call_direction_t getDirection() { return _direction; }
|
||||
fscomm_call_state_t getState() { return _state; }
|
||||
void setState(fscomm_call_state_t state) { _state = state; }
|
||||
void setCause(QString cause) { _cause = cause; }
|
||||
QString getCause() { return _cause; }
|
||||
|
||||
private:
|
||||
int _call_id;
|
||||
QString _cid_name;
|
||||
QString _cid_number;
|
||||
QString _cause;
|
||||
fscomm_call_direction_t _direction;
|
||||
QString _uuid;
|
||||
QString _buuid;
|
||||
|
Reference in New Issue
Block a user