add new SubscriptionState.Expiring

This commit is contained in:
Simon Morlat 2013-12-13 11:31:25 +01:00
parent 95e3f26dca
commit f02255ad6a
2 changed files with 7 additions and 1 deletions

View file

@ -19,6 +19,7 @@ public enum PublishState {
Error(3),
/**
* Publish is about to expire. Application can trigger a refresh by calling {@link LinphoneCore.updatePublish()}
* [sip]->refresh_generic_subscribe property is set to 0.
*/
Expiring(4),
/**

View file

@ -28,8 +28,12 @@ public enum SubscriptionState {
/**
* Subscription encountered an error, indicated by { @link LinphoneEvent.getReason() }
*/
Error(6);
Error(6),
/**
* Subscription is about to expire, only notified if [sip]->refresh_generic_subscribe property is set to 0
*/
Expiring(7);
protected final int mValue;
private SubscriptionState(int value){
mValue=value;
@ -43,6 +47,7 @@ public enum SubscriptionState {
case 4: return Active;
case 5: return Terminated;
case 6: return Error;
case 7: return Expiring;
default:
throw new LinphoneCoreException("Unhandled enum value "+value+" for SubscriptionState");
}