Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
255eaef3
Commit
255eaef3
authored
Sep 17, 2013
by
Simon Morlat
Browse files
add missing file
parent
90dd9fe8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
java/common/org/linphone/core/PublishState.java
java/common/org/linphone/core/PublishState.java
+45
-0
No files found.
java/common/org/linphone/core/PublishState.java
0 → 100644
View file @
255eaef3
package
org.linphone.core
;
public
enum
PublishState
{
/**
* Initial state, should not be used.
*/
None
(
0
),
/**
* Publish is in progress.
*/
Progress
(
1
),
/**
* Publish succeeded.
*/
Ok
(
2
),
/**
* Publish encountered an error. {@link LinphoneEvent.getReason()} gives more information about failure.
*/
Error
(
3
),
/**
* Publish is about to expire. Application can trigger a refresh by calling {@link LinphoneCore.updatePublish()}
*/
Expiring
(
4
),
/**
* Publish is terminated cleared.
*/
Cleared
(
5
);
protected
final
int
mValue
;
private
PublishState
(
int
value
){
mValue
=
value
;
}
static
protected
PublishState
fromInt
(
int
value
)
throws
LinphoneCoreException
{
switch
(
value
){
case
0
:
return
None
;
case
1
:
return
Progress
;
case
2
:
return
Ok
;
case
3
:
return
Error
;
case
4
:
return
Expiring
;
case
5
:
return
Cleared
;
default
:
throw
new
LinphoneCoreException
(
"Unhandled enum value "
+
value
+
" for PublishState"
);
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment