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
78701583
Commit
78701583
authored
Apr 30, 2010
by
Simon Morlat
Browse files
Merge branch 'master' of belledonne-communications.com:linphone-private
parents
34f02389
2c1ed582
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
10 deletions
+15
-10
java/org/linphone/core/LinphoneCore.java
java/org/linphone/core/LinphoneCore.java
+1
-1
java/org/linphone/core/LinphoneCoreException.java
java/org/linphone/core/LinphoneCoreException.java
+7
-2
java/org/linphone/core/LinphoneCoreFactory.java
java/org/linphone/core/LinphoneCoreFactory.java
+7
-7
No files found.
java/org/linphone/core/LinphoneCore.java
View file @
78701583
...
...
@@ -99,7 +99,7 @@ public interface LinphoneCore {
*/
public
void
invite
(
String
destination
)
throws
LinphoneCoreException
;
public
void
invite
(
LinphoneAddress
to
);
public
void
invite
(
LinphoneAddress
to
)
throws
LinphoneCoreException
;
public
void
terminateCall
();
/**
...
...
java/org/linphone/core/LinphoneCoreException.java
View file @
78701583
...
...
@@ -22,14 +22,19 @@ package org.linphone.core;
public
class
LinphoneCoreException
extends
Exception
{
public
LinphoneCoreException
()
{
// TODO Auto-generated constructor stub
}
public
LinphoneCoreException
(
String
detailMessage
)
{
super
(
detailMessage
);
// TODO Auto-generated constructor stub
}
public
LinphoneCoreException
(
Throwable
e
)
{
super
(
e
.
getMessage
());
}
public
LinphoneCoreException
(
String
detailMessage
,
Throwable
e
)
{
super
(
detailMessage
+
" reason ["
+
e
.
getMessage
()+
"]"
);
}
}
java/org/linphone/core/LinphoneCoreFactory.java
View file @
78701583
...
...
@@ -19,36 +19,36 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
package
org.linphone.core
;
import
java.io.IOException
;
abstract
public
class
LinphoneCoreFactory
{
private
static
String
defaulfFactory
=
"org.linphone.core.LinphoneCoreFactoryImpl"
;
private
static
String
factoryName
=
"org.linphone.core.LinphoneCoreFactoryImpl"
;
static
LinphoneCoreFactory
theLinphoneCoreFactory
;
/**
* Indicate the name of the class used by this factory
* @param pathName
*/
static
void
setFactoryClassName
(
String
className
)
{
defaulfF
actory
=
className
;
public
static
void
setFactoryClassName
(
String
className
)
{
f
actory
Name
=
className
;
}
public
static
LinphoneCoreFactory
instance
()
{
try
{
if
(
theLinphoneCoreFactory
==
null
)
{
Class
lFactoryClass
=
Class
.
forName
(
defaulfF
actory
);
Class
lFactoryClass
=
Class
.
forName
(
f
actory
Name
);
theLinphoneCoreFactory
=
(
LinphoneCoreFactory
)
lFactoryClass
.
newInstance
();
}
}
catch
(
Exception
e
)
{
System
.
err
.
println
(
"cannot instanciate factory ["
+
defaulfF
actory
+
"]"
);
System
.
err
.
println
(
"cannot instanciate factory ["
+
f
actory
Name
+
"]"
);
}
return
theLinphoneCoreFactory
;
}
abstract
public
LinphoneAuthInfo
createAuthInfo
(
String
username
,
String
password
);
abstract
public
LinphoneCore
createLinphoneCore
(
LinphoneCoreListener
listener
,
String
userConfig
,
String
factoryConfig
,
Object
userdata
)
throws
IO
Exception
;
abstract
public
LinphoneCore
createLinphoneCore
(
LinphoneCoreListener
listener
,
String
userConfig
,
String
factoryConfig
,
Object
userdata
)
throws
LinphoneCore
Exception
;
abstract
public
LinphoneAddress
createLinphoneAddress
(
String
username
,
String
domain
,
String
displayName
);
...
...
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