Source: publishstate.js

/* Wrapper generated by lp-gen-wrappers, do not edit*/

var linphone = linphone || {};
/**
 * Enum for publish states. 
 * @readonly
 * @enum {number}
**/
linphone.PublishState = {
	/**
	 * Initial state, do not use 
	*/
	None : 0,
	/**
	 * An outgoing publish was created and submitted 
	*/
	Progress : 1,
	/**
	 * Publish is accepted. 
	*/
	Ok : 2,
	/**
	 * Publish encoutered an error, 
	*/
	Error : 3,
	/**
	 * Publish is about to expire, only sent if [sip]->refresh_generic_publish property is set to 0. 
	*/
	Expiring : 4,
	/**
	 * Event has been un published 
	*/
	Cleared : 5
};
/**
 * Get the name of a value of the PublishState enum as a string.
 * @function linphone#getPublishStateText
 * @param { number } value - One of the values of the PublishState enum.
**/
linphone.getPublishStateText = function(value) {
	switch (value) {
	case linphone.PublishState.None:
		return "None";
	case linphone.PublishState.Progress:
		return "Progress";
	case linphone.PublishState.Ok:
		return "Ok";
	case linphone.PublishState.Error:
		return "Error";
	case linphone.PublishState.Expiring:
		return "Expiring";
	case linphone.PublishState.Cleared:
		return "Cleared";
	default:
		return "?";
	}
};