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
69061f3d
Commit
69061f3d
authored
Nov 07, 2011
by
Tristan Matthews
Browse files
* #7393: methods that return pointers to internal members should not be const
parent
e7724a88
Changes
8
Hide whitespace changes
Inline
Side-by-side
daemon/src/managerimpl.cpp
View file @
69061f3d
...
@@ -2761,7 +2761,7 @@ bool ManagerImpl::accountExists(const std::string& accountID)
...
@@ -2761,7 +2761,7 @@ bool ManagerImpl::accountExists(const std::string& accountID)
}
}
Account
*
Account
*
ManagerImpl
::
getAccount
(
const
std
::
string
&
accountID
)
const
ManagerImpl
::
getAccount
(
const
std
::
string
&
accountID
)
{
{
AccountMap
::
const_iterator
iter
=
accountMap_
.
find
(
accountID
);
AccountMap
::
const_iterator
iter
=
accountMap_
.
find
(
accountID
);
if
(
iter
!=
accountMap_
.
end
())
if
(
iter
!=
accountMap_
.
end
())
...
...
daemon/src/managerimpl.h
View file @
69061f3d
...
@@ -1160,7 +1160,7 @@ class ManagerImpl {
...
@@ -1160,7 +1160,7 @@ class ManagerImpl {
* @param accountID account ID to get
* @param accountID account ID to get
* @return Account* The account pointer or 0
* @return Account* The account pointer or 0
*/
*/
Account
*
getAccount
(
const
std
::
string
&
accountID
)
const
;
Account
*
getAccount
(
const
std
::
string
&
accountID
);
/** Return the std::string from a CallID
/** Return the std::string from a CallID
* Protected by mutex
* Protected by mutex
...
@@ -1174,7 +1174,7 @@ class ManagerImpl {
...
@@ -1174,7 +1174,7 @@ class ManagerImpl {
* @param accountID Account ID to get
* @param accountID Account ID to get
* @return VoIPLink* The voip link from the account pointer or 0
* @return VoIPLink* The voip link from the account pointer or 0
*/
*/
VoIPLink
*
getAccountLink
(
const
std
::
string
&
accountID
=
""
)
const
;
VoIPLink
*
getAccountLink
(
const
std
::
string
&
accountID
=
""
);
std
::
string
getAccountIdFromNameAndServer
(
const
std
::
string
&
userName
,
const
std
::
string
&
server
)
const
;
std
::
string
getAccountIdFromNameAndServer
(
const
std
::
string
&
userName
,
const
std
::
string
&
server
)
const
;
...
...
daemon/src/managerimpl_registration.cpp
View file @
69061f3d
...
@@ -63,7 +63,7 @@ ManagerImpl::registerAccounts()
...
@@ -63,7 +63,7 @@ ManagerImpl::registerAccounts()
}
}
VoIPLink
*
ManagerImpl
::
getAccountLink
(
const
std
::
string
&
accountID
)
const
VoIPLink
*
ManagerImpl
::
getAccountLink
(
const
std
::
string
&
accountID
)
{
{
if
(
not
accountID
.
empty
())
if
(
not
accountID
.
empty
())
return
getAccount
(
accountID
)
->
getVoIPLink
();
return
getAccount
(
accountID
)
->
getVoIPLink
();
...
...
daemon/src/sip/sdp.cpp
View file @
69061f3d
...
@@ -113,7 +113,7 @@ void Sdp::setActiveRemoteSdpSession(const pjmedia_sdp_session *sdp)
...
@@ -113,7 +113,7 @@ void Sdp::setActiveRemoteSdpSession(const pjmedia_sdp_session *sdp)
ERROR
(
"Sdp: Error: Could not found dtmf event from remote sdp"
);
ERROR
(
"Sdp: Error: Could not found dtmf event from remote sdp"
);
}
}
std
::
string
Sdp
::
getCodecName
()
const
std
::
string
Sdp
::
getCodecName
()
{
{
try
{
try
{
sfl
::
AudioCodec
*
codec
=
getSessionMedia
();
sfl
::
AudioCodec
*
codec
=
getSessionMedia
();
...
@@ -123,12 +123,12 @@ std::string Sdp::getCodecName() const
...
@@ -123,12 +123,12 @@ std::string Sdp::getCodecName() const
}
}
}
}
sfl
::
AudioCodec
*
Sdp
::
getSessionMedia
()
const
sfl
::
AudioCodec
*
Sdp
::
getSessionMedia
()
{
{
if
(
sessionAudioMedia_
.
size
()
<
1
)
if
(
sessionAudioMedia_
.
size
()
<
1
)
throw
SdpException
(
"No codec description for this media"
);
throw
SdpException
(
"No codec description for this media"
);
return
stat
ic_cast
<
sfl
::
AudioCodec
*>
(
sessionAudioMedia_
[
0
]);
return
dynam
ic_cast
<
sfl
::
AudioCodec
*>
(
sessionAudioMedia_
[
0
]);
}
}
...
...
daemon/src/sip/sdp.h
View file @
69061f3d
...
@@ -138,7 +138,7 @@ class Sdp {
...
@@ -138,7 +138,7 @@ class Sdp {
* Return the codec of the first media after negotiation
* Return the codec of the first media after negotiation
* @throw SdpException
* @throw SdpException
*/
*/
sfl
::
AudioCodec
*
getSessionMedia
()
const
;
sfl
::
AudioCodec
*
getSessionMedia
();
/*
/*
* On building an invite outside a dialog, build the local offer and create the
* On building an invite outside a dialog, build the local offer and create the
...
@@ -271,7 +271,7 @@ class Sdp {
...
@@ -271,7 +271,7 @@ class Sdp {
void
setMediaTransportInfoFromRemoteSdp
();
void
setMediaTransportInfoFromRemoteSdp
();
std
::
string
getCodecName
()
const
;
std
::
string
getCodecName
();
void
receivingAnswerAfterInitialOffer
(
const
pjmedia_sdp_session
*
remote
);
void
receivingAnswerAfterInitialOffer
(
const
pjmedia_sdp_session
*
remote
);
...
...
daemon/src/sip/sipaccount.h
View file @
69061f3d
...
@@ -204,7 +204,7 @@ class SIPAccount : public Account {
...
@@ -204,7 +204,7 @@ class SIPAccount : public Account {
* @param void
* @param void
* @return pjsip_regc* A pointer to the registration structure
* @return pjsip_regc* A pointer to the registration structure
*/
*/
pjsip_regc
*
getRegistrationInfo
()
const
{
pjsip_regc
*
getRegistrationInfo
()
{
return
regc_
;
return
regc_
;
}
}
...
@@ -223,7 +223,7 @@ class SIPAccount : public Account {
...
@@ -223,7 +223,7 @@ class SIPAccount : public Account {
* file, that can be used directly by PJSIP to initialize
* file, that can be used directly by PJSIP to initialize
* TLS transport.
* TLS transport.
*/
*/
const
pjsip_tls_setting
*
getTlsSetting
()
const
{
pjsip_tls_setting
*
getTlsSetting
()
{
return
&
tlsSetting_
;
return
&
tlsSetting_
;
}
}
...
...
daemon/src/sip/sipvoiplink.cpp
View file @
69061f3d
...
@@ -282,7 +282,7 @@ SIPVoIPLink::getEvent()
...
@@ -282,7 +282,7 @@ SIPVoIPLink::getEvent()
void
SIPVoIPLink
::
sendRegister
(
Account
*
a
)
void
SIPVoIPLink
::
sendRegister
(
Account
*
a
)
{
{
SIPAccount
*
account
=
stat
ic_cast
<
SIPAccount
*>
(
a
);
SIPAccount
*
account
=
dynam
ic_cast
<
SIPAccount
*>
(
a
);
createSipTransport
(
account
);
createSipTransport
(
account
);
account
->
setRegister
(
true
);
account
->
setRegister
(
true
);
...
...
plugins/addressbook/evolution/eds.c
View file @
69061f3d
...
@@ -41,7 +41,6 @@
...
@@ -41,7 +41,6 @@
#include
<string.h>
#include
<string.h>
#include
<pango/pango.h>
#include
<pango/pango.h>
#include
"eds.h"
#include
"eds.h"
//#include <addressbook-config.h>
#include
<libedataserver/e-source.h>
#include
<libedataserver/e-source.h>
#include
"config.h"
#include
"config.h"
...
...
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