Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
savoirfairelinux
jami-daemon
Commits
3fa0375b
Commit
3fa0375b
authored
Jul 22, 2010
by
Julien Bonjean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[#3376] Fixed compilation errors whith shortcuts
parent
4a9d8b81
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
19 deletions
+8
-19
sflphone-common/src/dbus/configurationmanager.cpp
sflphone-common/src/dbus/configurationmanager.cpp
+0
-10
sflphone-common/src/preferences.cpp
sflphone-common/src/preferences.cpp
+7
-8
sflphone-common/src/preferences.h
sflphone-common/src/preferences.h
+1
-1
No files found.
sflphone-common/src/dbus/configurationmanager.cpp
View file @
3fa0375b
...
...
@@ -727,17 +727,7 @@ std::vector<std::string> ConfigurationManager::getAllIpInterfaceByName(void) {
std
::
map
<
std
::
string
,
std
::
string
>
ConfigurationManager
::
getShortcuts
()
{
std
::
map
<
std
::
string
,
std
::
string
>
shortcutsMap
;
for
(
int
i
=
0
;
i
<
(
int
)
shortcutsKeys
.
size
();
i
++
)
{
std
::
string
key
=
shortcutsKeys
.
at
(
i
);
std
::
string
shortcut
=
Manager
::
instance
().
getConfigString
(
"Shortcuts"
,
key
);
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
std
::
string
>
(
key
,
shortcut
));
}
return
Manager
::
instance
().
shortcutPreferences
.
getShortcuts
();
return
shortcutsMap
;
}
void
ConfigurationManager
::
setShortcuts
(
...
...
sflphone-common/src/preferences.cpp
View file @
3fa0375b
...
...
@@ -444,17 +444,16 @@ ShortcutPreferences::ShortcutPreferences() : _hangup("")
ShortcutPreferences
::~
ShortcutPreferences
()
{}
std
::
map
<
std
::
string
,
in
t
>
ShortcutPreferences
::
getShortcuts
()
std
::
map
<
std
::
string
,
std
::
str
in
g
>
ShortcutPreferences
::
getShortcuts
()
{
std
::
map
<
std
::
string
,
int
>
shortcutsMap
;
int
shortcut
;
std
::
map
<
std
::
string
,
std
::
string
>
shortcutsMap
;
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
in
t
>
(
hangupShortKey
,
atoi
(
_hangup
.
data
()))
)
;
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
in
t
>
(
pickupShortKey
,
atoi
(
_pickup
.
data
()))
)
;
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
in
t
>
(
popupShortKey
,
atoi
(
_popup
.
data
()))
)
;
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
in
t
>
(
toggleHoldShortKey
,
atoi
(
_toggleHold
.
data
()))
)
;
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
in
t
>
(
togglePickupHangupShortKey
,
atoi
(
_togglePickupHangup
.
data
()))
)
;
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
std
::
str
in
g
>
(
hangupShortKey
,
_hangup
.
data
()));
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
std
::
str
in
g
>
(
pickupShortKey
,
_pickup
.
data
()));
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
std
::
str
in
g
>
(
popupShortKey
,
_popup
.
data
()));
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
std
::
str
in
g
>
(
toggleHoldShortKey
,
_toggleHold
.
data
()));
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
std
::
str
in
g
>
(
togglePickupHangupShortKey
,
_togglePickupHangup
.
data
()));
return
shortcutsMap
;
}
...
...
sflphone-common/src/preferences.h
View file @
3fa0375b
...
...
@@ -375,7 +375,7 @@ class ShortcutPreferences : public Serializable {
virtual
void
unserialize
(
Conf
::
MappingNode
*
map
);
std
::
map
<
std
::
string
,
in
t
>
getShortcuts
(
void
);
std
::
map
<
std
::
string
,
std
::
str
in
g
>
getShortcuts
(
void
);
void
setShortcuts
(
std
::
map
<
std
::
string
,
int
>
shortcut
);
std
::
string
getHangup
(
void
)
{
return
_hangup
;
}
...
...
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