Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-android
Commits
4603657f
Commit
4603657f
authored
12 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
#15735: Add addAccount and removeAccount methods to AIDL interface
parent
3bbb4799
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/com/savoirfairelinux/sflphone/service/ISipService.aidl
+2
-0
2 additions, 0 deletions
src/com/savoirfairelinux/sflphone/service/ISipService.aidl
src/com/savoirfairelinux/sflphone/service/SipService.java
+31
-0
31 additions, 0 deletions
src/com/savoirfairelinux/sflphone/service/SipService.java
with
33 additions
and
0 deletions
src/com/savoirfairelinux/sflphone/service/ISipService.aidl
+
2
−
0
View file @
4603657f
...
...
@@ -6,6 +6,8 @@ interface ISipService {
void accept(in String callID);
void hangUp(in String callID);
List getAccountList();
String addAccount(in Map accountDetails);
void removeAccount(in String accoundId);
Map getAccountDetails(in String accountID);
void setAccountDetails(in String accountId, in Map accountDetails);
void setAudioPlugin(in String callID);
...
...
This diff is collapsed.
Click to expand it.
src/com/savoirfairelinux/sflphone/service/SipService.java
+
31
−
0
View file @
4603657f
...
...
@@ -191,9 +191,40 @@ public class SipService extends Service {
configurationManagerJNI
.
setAccountDetails
(
accountId
,
swigmap
);
}
});
}
@Override
public
String
addAccount
(
Map
map
)
{
class
AddAccount
extends
SipRunnableWithReturn
{
StringMap
map
;
AddAccount
(
StringMap
m
)
{
map
=
m
;
}
@Override
protected
String
doRun
()
throws
SameThreadException
{
Log
.
i
(
TAG
,
"SipService.getAccountDetails() thread running..."
);
return
configurationManagerJNI
.
addAccount
(
map
);
}
};
final
StringMap
swigmap
=
AccountDetailsHandler
.
convertFromNativeToSwig
((
HashMap
<
String
,
String
>)
map
);
AddAccount
runInstance
=
new
AddAccount
(
swigmap
);
getExecutor
().
execute
(
runInstance
);
while
(!
runInstance
.
isDone
())
{}
String
accountId
=
(
String
)
runInstance
.
getVal
();
return
accountId
;
}
@Override
public
void
removeAccount
(
final
String
accountId
)
{
getExecutor
().
execute
(
new
SipRunnable
()
{
@Override
protected
void
doRun
()
throws
SameThreadException
{
Log
.
i
(
TAG
,
"SipService.setAccountDetails() thread running..."
);
configurationManagerJNI
.
removeAccount
(
accountId
);
}
});
}
};
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment