Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
1231f4a4
Commit
1231f4a4
authored
Sep 09, 2013
by
Emmanuel Lepage Vallee
Browse files
* #29736: presence: Rename signals
parent
7f8dacd4
Changes
5
Show whitespace changes
Inline
Side-by-side
daemon/src/client/dbus/presencemanager-introspec.xml
View file @
1231f4a4
...
...
@@ -71,6 +71,7 @@
</annotation>
<arg
type=
"s"
name=
"accountID"
direction=
"in"
>
</arg>
<annotation
name=
"com.trolltech.QtDBus.QtTypeName.Out0"
value=
"VectorMapStringString"
/>
<arg
type=
"aa{ss}"
name=
"credentialInformation"
direction=
"out"
tp:type=
"String_String_Map"
>
<tp:docstring>
List of hashes map with the following key-value pairs:
...
...
@@ -102,7 +103,7 @@
<!-- SIGNALS !-->
<signal
name=
"new
PresSubClientNotifica
tion"
tp:name-for-bindings=
"new
PresSubClientNotifica
tion"
>
<signal
name=
"new
ClientSubscrip
tion"
tp:name-for-bindings=
"new
ClientSubscrip
tion"
>
<tp:added
version=
"1.3.0"
/>
<tp:docstring>
Notify when a registered presence uri presence informations changes
...
...
@@ -124,7 +125,7 @@
</arg>
</signal>
<signal
name=
"new
PresSubServer
Request"
tp:name-for-bindings=
"new
PresSubServer
Request"
>
<signal
name=
"new
ServerSubscription
Request"
tp:name-for-bindings=
"new
ServerSubscription
Request"
>
<tp:added
version=
"1.3.0"
/>
<arg
type=
"s"
name=
"buddyUri"
>
<tp:docstring>
...
...
daemon/src/client/presencemanager.h
View file @
1231f4a4
...
...
@@ -77,8 +77,8 @@ class PresenceManager
#endif
#ifdef __ANDROID__
void
new
PresSubClientNotifica
tion
(
const
std
::
string
&
uri
,
const
std
::
string
&
basic
,
const
std
::
string
&
note
);
void
new
PresSubServer
Request
(
const
std
::
string
&
remote
);
void
new
ClientSubscrip
tion
(
const
std
::
string
&
uri
,
const
std
::
string
&
basic
,
const
std
::
string
&
note
);
void
new
ServerSubscription
Request
(
const
std
::
string
&
remote
);
#endif //__ANDROID__
/* Presence subscription/Notification. */
...
...
daemon/src/sip/pres_sub_server.cpp
View file @
1231f4a4
...
...
@@ -154,7 +154,7 @@ pj_bool_t pres_on_rx_subscribe_request(pjsip_rx_data *rdata) {
/* Create a new PresSubServer server and wait for client approve */
PresSubServer
*
presSubServer
=
new
PresSubServer
(
pres
,
sub
,
remote
,
dlg
);
pjsip_evsub_set_mod_data
(
sub
,
pres
->
getModId
(),
presSubServer
);
pres
->
report
N
ew
PresSubServer
Request
(
presSubServer
);
// Notify the client.
pres
->
report
n
ew
ServerSubscription
Request
(
presSubServer
);
// Notify the client.
pres
->
addPresSubServer
(
presSubServer
);
/* Capture the value of Expires header. */
...
...
daemon/src/sip/sippresence.cpp
View file @
1231f4a4
...
...
@@ -141,7 +141,7 @@ void SIPPresence::reportPresSubClientNotification(const std::string& uri, pjsip_
const
std
::
string
note
(
status
->
info
[
0
].
rpid
.
note
.
ptr
,
status
->
info
[
0
].
rpid
.
note
.
slen
);
DEBUG
(
" Received status of PresSubClient %s: status=%s note=%s"
,
uri
.
c_str
(),(
status
->
info
[
0
].
basic_open
?
"open"
:
"closed"
),
note
.
c_str
());
/* report status to client signal */
Manager
::
instance
().
getClient
()
->
getPresenceManager
()
->
new
PresSubClientNotifica
tion
(
uri
,
status
->
info
[
0
].
basic_open
,
note
);
Manager
::
instance
().
getClient
()
->
getPresenceManager
()
->
new
ClientSubscrip
tion
(
uri
,
status
->
info
[
0
].
basic_open
,
note
);
}
void
SIPPresence
::
subscribeClient
(
const
std
::
string
&
uri
,
const
bool
&
flag
){
...
...
@@ -186,8 +186,8 @@ void SIPPresence::removePresSubClient(PresSubClient *c){
}
void
SIPPresence
::
report
N
ew
PresSubServer
Request
(
PresSubServer
*
s
){
Manager
::
instance
().
getClient
()
->
getPresenceManager
()
->
new
PresSubServer
Request
(
s
->
remote
);
void
SIPPresence
::
report
n
ew
ServerSubscription
Request
(
PresSubServer
*
s
){
Manager
::
instance
().
getClient
()
->
getPresenceManager
()
->
new
ServerSubscription
Request
(
s
->
remote
);
}
void
SIPPresence
::
approvePresSubServer
(
const
std
::
string
&
uri
,
const
bool
&
flag
){
...
...
daemon/src/sip/sippresence.h
View file @
1231f4a4
...
...
@@ -175,7 +175,7 @@ public:
* Report new Subscription to the client, waiting for approval.
* @param s PresenceSubcription pointer.
*/
void
report
N
ew
PresSubServer
Request
(
PresSubServer
*
s
);
void
report
n
ew
ServerSubscription
Request
(
PresSubServer
*
s
);
/**
* IP2IP context.
* Process new subscription based on client decision.
...
...
Write
Preview
Supports
Markdown
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