Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
24209be3
Kaydet (Commit)
24209be3
authored
Agu 20, 2012
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tubes: fix indentation and scope of variables
Change-Id: Ibd0b000d2a8f216e0eb202f7fa7795903e5e18e8
üst
466edaa9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
39 deletions
+30
-39
manager.cxx
tubes/source/manager.cxx
+30
-39
No files found.
tubes/source/manager.cxx
Dosyayı görüntüle @
24209be3
...
@@ -792,54 +792,45 @@ static void presence_changed_cb( TpContact* /* contact */,
...
@@ -792,54 +792,45 @@ static void presence_changed_cb( TpContact* /* contact */,
AccountContactPairV
TeleManager
::
getContacts
()
AccountContactPairV
TeleManager
::
getContacts
()
{
{
GList
*
accounts
;
AccountContactPairV
pairs
;
AccountContactPairV
pairs
;
for
(
accounts
=
tp_account_manager_get_valid_accounts
(
pImpl
->
mpAccountManager
);
for
(
GList
*
accounts
=
tp_account_manager_get_valid_accounts
(
pImpl
->
mpAccountManager
);
accounts
!=
NULL
;
accounts
!=
NULL
;
accounts
=
g_list_delete_link
(
accounts
,
accounts
))
accounts
=
g_list_delete_link
(
accounts
,
accounts
))
{
{
TpAccount
*
account
=
reinterpret_cast
<
TpAccount
*>
(
accounts
->
data
);
TpAccount
*
account
=
reinterpret_cast
<
TpAccount
*>
(
accounts
->
data
);
TpConnection
*
connection
=
tp_account_get_connection
(
account
);
TpConnection
*
connection
=
tp_account_get_connection
(
account
);
TpContact
*
self
;
GPtrArray
*
contacts
;
/* Verify account is online and received its contact list. If state is not
guint
i
;
* SUCCESS this means we didn't received the roster from server yet and
* we would have to wait for the "notify:contact-list-state" signal. */
/* Verify account is online and received its contact list. If state is not
if
(
connection
==
NULL
||
tp_connection_get_contact_list_state
(
connection
)
!=
* SUCCESS this means we didn't received the roster from server yet and
TP_CONTACT_LIST_STATE_SUCCESS
)
* we would have to wait for the "notify:contact-list-state" signal. */
continue
;
if
(
connection
==
NULL
||
tp_connection_get_contact_list_state
(
connection
)
!=
TpContact
*
self
=
tp_connection_get_self_contact
(
connection
);
TP_CONTACT_LIST_STATE_SUCCESS
)
GPtrArray
*
contacts
=
tp_connection_dup_contact_list
(
connection
);
continue
;
for
(
guint
i
=
0
;
i
<
contacts
->
len
;
i
++
)
self
=
tp_connection_get_self_contact
(
connection
);
contacts
=
tp_connection_dup_contact_list
(
connection
);
for
(
i
=
0
;
i
<
contacts
->
len
;
i
++
)
{
{
TpContact
*
contact
=
TpContact
*
contact
=
reinterpret_cast
<
TpContact
*>
(
g_ptr_array_index
(
contacts
,
i
));
reinterpret_cast
<
TpContact
*>
(
g_ptr_array_index
(
contacts
,
i
));
if
(
pImpl
->
maRegisteredContacts
.
find
(
contact
)
==
pImpl
->
maRegisteredContacts
.
end
())
if
(
pImpl
->
maRegisteredContacts
.
find
(
contact
)
==
pImpl
->
maRegisteredContacts
.
end
())
{
{
pImpl
->
maRegisteredContacts
.
insert
(
contact
);
pImpl
->
maRegisteredContacts
.
insert
(
contact
);
g_signal_connect
(
contact
,
"presence-changed"
,
g_signal_connect
(
contact
,
"presence-changed"
,
G_CALLBACK
(
presence_changed_cb
),
NULL
);
G_CALLBACK
(
presence_changed_cb
),
NULL
);
}
}
if
(
contact
!=
self
&&
tb_contact_is_online
(
contact
))
if
(
contact
!=
self
&&
tb_contact_is_online
(
contact
))
{
{
g_object_ref
(
account
);
g_object_ref
(
account
);
g_object_ref
(
contact
);
g_object_ref
(
contact
);
AccountContactPair
pair
(
account
,
contact
);
AccountContactPair
pair
(
account
,
contact
);
pairs
.
push_back
(
pair
);
pairs
.
push_back
(
pair
);
}
}
}
}
g_ptr_array_unref
(
contacts
);
g_ptr_array_unref
(
contacts
);
}
}
return
pairs
;
return
pairs
;
}
}
rtl
::
OString
TeleManager
::
getFullClientName
()
rtl
::
OString
TeleManager
::
getFullClientName
()
...
...
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