Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
jami-daemon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
146
Issues
146
List
Boards
Labels
Service Desk
Milestones
Iterations
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
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
,
int
>
ShortcutPreferences
::
getShortcuts
()
std
::
map
<
std
::
string
,
std
::
string
>
ShortcutPreferences
::
getShortcuts
()
{
std
::
map
<
std
::
string
,
int
>
shortcutsMap
;
int
shortcut
;
std
::
map
<
std
::
string
,
std
::
string
>
shortcutsMap
;
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
int
>
(
hangupShortKey
,
atoi
(
_hangup
.
data
()
)));
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
int
>
(
pickupShortKey
,
atoi
(
_pickup
.
data
()
)));
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
int
>
(
popupShortKey
,
atoi
(
_popup
.
data
()
)));
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
int
>
(
toggleHoldShortKey
,
atoi
(
_toggleHold
.
data
()
)));
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
int
>
(
togglePickupHangupShortKey
,
atoi
(
_togglePickupHangup
.
data
()
)));
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
std
::
string
>
(
hangupShortKey
,
_hangup
.
data
(
)));
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
std
::
string
>
(
pickupShortKey
,
_pickup
.
data
(
)));
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
std
::
string
>
(
popupShortKey
,
_popup
.
data
(
)));
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
std
::
string
>
(
toggleHoldShortKey
,
_toggleHold
.
data
(
)));
shortcutsMap
.
insert
(
std
::
pair
<
std
::
string
,
std
::
string
>
(
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
,
int
>
getShortcuts
(
void
);
std
::
map
<
std
::
string
,
std
::
string
>
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