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
2dcc14a0
Commit
2dcc14a0
authored
Sep 29, 2005
by
jpbl
Browse files
added some comments for PhoneLineManagerImpl
parent
8add3e0c
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/gui/official/PhoneLineManagerImpl.cpp
View file @
2dcc14a0
...
...
@@ -35,9 +35,11 @@ void
PhoneLineManagerImpl
::
initialize
()
{
QMutexLocker
guard
(
&
mIsInitializedMutex
);
mIsInitialized
=
true
;
mSession
=
new
Session
();
mAccount
=
new
Account
(
mSession
->
getDefaultAccount
());
if
(
!
mIsInitialized
)
{
mIsInitialized
=
true
;
mSession
=
new
Session
();
mAccount
=
new
Account
(
mSession
->
getDefaultAccount
());
}
}
void
PhoneLineManagerImpl
::
isInitialized
()
...
...
@@ -49,7 +51,7 @@ void PhoneLineManagerImpl::isInitialized()
}
void
PhoneLineManagerImpl
::
start
()
PhoneLineManagerImpl
::
start
Session
()
{
isInitialized
();
...
...
src/gui/official/PhoneLineManagerImpl.hpp
View file @
2dcc14a0
...
...
@@ -46,8 +46,20 @@ signals:
void
selected
(
unsigned
int
);
public
slots
:
/**
* You need to call this function once. It must be
* call before doing anything in this class.
*
* NOTE: You need to set the creator to SessionIOFactory
* before calling this function.
*/
void
initialize
();
void
start
();
/**
* This will send all the command needed when a
* connection has just been established.
*/
void
startSession
();
void
sendKey
(
Qt
::
Key
c
);
...
...
src/gui/official/TCPSessionIOCreator.cpp
View file @
2dcc14a0
...
...
@@ -12,7 +12,7 @@ TCPSessionIOCreator::create()
{
TCPSessionIO
*
t
=
new
TCPSessionIO
(
mHostname
,
mPort
);
QObject
::
connect
(
t
,
SIGNAL
(
connected
()),
&
PhoneLineManager
::
instance
(),
SLOT
(
start
()));
&
PhoneLineManager
::
instance
(),
SLOT
(
start
Session
()));
t
->
connect
();
return
t
;
}
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