Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
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-daemon
Commits
0506b3a8
Unverified
Commit
0506b3a8
authored
7 years ago
by
Sébastien Blin
Browse files
Options
Downloads
Patches
Plain Diff
dbus: fix covariant error
Change-Id: Ibd9fa41bde63a52176fb78714cda5d2a19af8b00
parent
5b59ede3
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/dbus/dbusconfigurationmanager.cpp
+3
-3
3 additions, 3 deletions
bin/dbus/dbusconfigurationmanager.cpp
bin/dbus/dbusconfigurationmanager.h
+3
-1
3 additions, 1 deletion
bin/dbus/dbusconfigurationmanager.h
with
6 additions
and
4 deletions
bin/dbus/dbusconfigurationmanager.cpp
+
3
−
3
View file @
0506b3a8
...
@@ -153,13 +153,13 @@ DBusConfigurationManager::sendTextMessage(const std::string& accountID, const st
...
@@ -153,13 +153,13 @@ DBusConfigurationManager::sendTextMessage(const std::string& accountID, const st
return
DRing
::
sendAccountTextMessage
(
accountID
,
to
,
payloads
);
return
DRing
::
sendAccountTextMessage
(
accountID
,
to
,
payloads
);
}
}
std
::
vector
<
DBus
::
Struct
<
std
::
string
,
std
::
map
<
std
::
string
,
std
::
string
>
,
long
unsigned
int
>
>
std
::
vector
<
RingDBusMessage
>
DBusConfigurationManager
::
getLastMessages
(
const
std
::
string
&
accountID
,
const
uint64_t
&
base_timestamp
)
DBusConfigurationManager
::
getLastMessages
(
const
std
::
string
&
accountID
,
const
uint64_t
&
base_timestamp
)
{
{
auto
messages
=
DRing
::
getLastMessages
(
accountID
,
base_timestamp
);
auto
messages
=
DRing
::
getLastMessages
(
accountID
,
base_timestamp
);
std
::
vector
<
DBus
::
Struct
<
std
::
string
,
std
::
map
<
std
::
string
,
std
::
string
>
,
long
unsigned
int
>
>
result
;
std
::
vector
<
RingDBusMessage
>
result
;
for
(
const
auto
&
message
:
messages
)
{
for
(
const
auto
&
message
:
messages
)
{
DBus
::
Struct
<
std
::
string
,
std
::
map
<
std
::
string
,
std
::
string
>
,
long
unsigned
int
>
m
;
RingDBusMessage
m
;
m
.
_1
=
message
.
from
;
m
.
_1
=
message
.
from
;
m
.
_2
=
message
.
payloads
;
m
.
_2
=
message
.
payloads
;
m
.
_3
=
message
.
received
;
m
.
_3
=
message
.
received
;
...
...
This diff is collapsed.
Click to expand it.
bin/dbus/dbusconfigurationmanager.h
+
3
−
1
View file @
0506b3a8
...
@@ -49,6 +49,8 @@
...
@@ -49,6 +49,8 @@
#pragma GCC diagnostic warning "-Wunused-but-set-variable"
#pragma GCC diagnostic warning "-Wunused-but-set-variable"
#endif
#endif
using
RingDBusMessage
=
DBus
::
Struct
<
std
::
string
,
std
::
map
<
std
::
string
,
std
::
string
>
,
uint64_t
>
;
class
DBusConfigurationManager
:
class
DBusConfigurationManager
:
public
cx
::
ring
::
Ring
::
ConfigurationManager_adaptor
,
public
cx
::
ring
::
Ring
::
ConfigurationManager_adaptor
,
public
DBus
::
IntrospectableAdaptor
,
public
DBus
::
IntrospectableAdaptor
,
...
@@ -80,7 +82,7 @@ class DBusConfigurationManager :
...
@@ -80,7 +82,7 @@ class DBusConfigurationManager :
void
sendRegister
(
const
std
::
string
&
accoundID
,
const
bool
&
enable
);
void
sendRegister
(
const
std
::
string
&
accoundID
,
const
bool
&
enable
);
void
registerAllAccounts
(
void
);
void
registerAllAccounts
(
void
);
uint64_t
sendTextMessage
(
const
std
::
string
&
accoundID
,
const
std
::
string
&
to
,
const
std
::
map
<
std
::
string
,
std
::
string
>&
payloads
);
uint64_t
sendTextMessage
(
const
std
::
string
&
accoundID
,
const
std
::
string
&
to
,
const
std
::
map
<
std
::
string
,
std
::
string
>&
payloads
);
std
::
vector
<
DBus
::
Struct
<
std
::
string
,
std
::
map
<
std
::
string
,
std
::
string
>
,
long
unsigned
int
>
>
getLastMessages
(
const
std
::
string
&
accountID
,
const
uint64_t
&
base_timestamp
);
std
::
vector
<
RingDBusMessage
>
getLastMessages
(
const
std
::
string
&
accountID
,
const
uint64_t
&
base_timestamp
);
int
getMessageStatus
(
const
uint64_t
&
id
);
int
getMessageStatus
(
const
uint64_t
&
id
);
std
::
map
<
std
::
string
,
std
::
string
>
getTlsDefaultSettings
();
std
::
map
<
std
::
string
,
std
::
string
>
getTlsDefaultSettings
();
std
::
vector
<
std
::
string
>
getSupportedCiphers
(
const
std
::
string
&
accountID
);
std
::
vector
<
std
::
string
>
getSupportedCiphers
(
const
std
::
string
&
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