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
38928517
Kaydet (Commit)
38928517
authored
Tem 21, 2012
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tubes: do not include file-transfer-helper.h in public headers
Change-Id: Ie66069a37c70b43cbee34130b5b63967a1c9f033
üst
4d8e800d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
20 deletions
+18
-20
Package_inc.mk
tubes/Package_inc.mk
+0
-1
conference.hxx
tubes/inc/tubes/conference.hxx
+0
-2
manager.hxx
tubes/inc/tubes/manager.hxx
+1
-2
conference.cxx
tubes/source/conference.cxx
+7
-11
manager.cxx
tubes/source/manager.cxx
+10
-4
No files found.
tubes/Package_inc.mk
Dosyayı görüntüle @
38928517
...
@@ -29,7 +29,6 @@ $(eval $(call gb_Package_Package,tubes_inc,$(SRCDIR)/tubes/inc))
...
@@ -29,7 +29,6 @@ $(eval $(call gb_Package_Package,tubes_inc,$(SRCDIR)/tubes/inc))
$(eval $(call gb_Package_add_file,tubes_inc,inc/tubes/conference.hxx,tubes/conference.hxx))
$(eval $(call gb_Package_add_file,tubes_inc,inc/tubes/conference.hxx,tubes/conference.hxx))
$(eval $(call gb_Package_add_file,tubes_inc,inc/tubes/constants.h,tubes/constants.h))
$(eval $(call gb_Package_add_file,tubes_inc,inc/tubes/constants.h,tubes/constants.h))
$(eval $(call gb_Package_add_file,tubes_inc,inc/tubes/contact-list.hxx,tubes/contact-list.hxx))
$(eval $(call gb_Package_add_file,tubes_inc,inc/tubes/contact-list.hxx,tubes/contact-list.hxx))
$(eval $(call gb_Package_add_file,tubes_inc,inc/tubes/file-transfer-helper.h,tubes/file-transfer-helper.h))
$(eval $(call gb_Package_add_file,tubes_inc,inc/tubes/manager.hxx,tubes/manager.hxx))
$(eval $(call gb_Package_add_file,tubes_inc,inc/tubes/manager.hxx,tubes/manager.hxx))
$(eval $(call gb_Package_add_file,tubes_inc,inc/tubes/tubesdllapi.h,tubes/tubesdllapi.h))
$(eval $(call gb_Package_add_file,tubes_inc,inc/tubes/tubesdllapi.h,tubes/tubesdllapi.h))
$(eval $(call gb_Package_add_file,tubes_inc,inc/tubes/warnings_guard_boost_signals2.hpp,tubes/warnings_guard_boost_signals2.hpp))
$(eval $(call gb_Package_add_file,tubes_inc,inc/tubes/warnings_guard_boost_signals2.hpp,tubes/warnings_guard_boost_signals2.hpp))
...
...
tubes/inc/tubes/conference.hxx
Dosyayı görüntüle @
38928517
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
#include <sal/config.h>
#include <sal/config.h>
#include "tubes/tubesdllapi.h"
#include "tubes/tubesdllapi.h"
#include "tubes/file-transfer-helper.h"
#include <rtl/ustring.hxx>
#include <rtl/ustring.hxx>
#include <telepathy-glib/telepathy-glib.h>
#include <telepathy-glib/telepathy-glib.h>
#include <queue>
#include <queue>
...
@@ -89,7 +88,6 @@ public:
...
@@ -89,7 +88,6 @@ public:
static
void
TubeOfferedHandler
(
GObject
*
pSource
,
GAsyncResult
*
pResult
,
gpointer
pUserData
);
static
void
TubeOfferedHandler
(
GObject
*
pSource
,
GAsyncResult
*
pResult
,
gpointer
pUserData
);
static
void
TubeAcceptedHandler
(
GObject
*
pSource
,
GAsyncResult
*
pResult
,
gpointer
pUserData
);
static
void
TubeAcceptedHandler
(
GObject
*
pSource
,
GAsyncResult
*
pResult
,
gpointer
pUserData
);
static
void
FTReady
(
EmpathyFTHandler
*
handler
,
GError
*
error
,
gpointer
user_data
);
static
void
methodCallHandler
(
GDBusConnection
*
pConnection
,
static
void
methodCallHandler
(
GDBusConnection
*
pConnection
,
const
gchar
*
pSender
,
const
gchar
*
pSender
,
...
...
tubes/inc/tubes/manager.hxx
Dosyayı görüntüle @
38928517
...
@@ -134,6 +134,7 @@ public:
...
@@ -134,6 +134,7 @@ public:
/** True if there has been tube channel received and is still not used. */
/** True if there has been tube channel received and is still not used. */
TUBES_DLLPUBLIC
static
bool
hasWaitingConference
();
TUBES_DLLPUBLIC
static
bool
hasWaitingConference
();
static
void
setCurrentUuid
(
const
OString
&
rUuid
);
void
disconnect
();
void
disconnect
();
...
@@ -192,8 +193,6 @@ public:
...
@@ -192,8 +193,6 @@ public:
TpAccount
*
getAccount
(
const
rtl
::
OString
&
rAccountID
);
TpAccount
*
getAccount
(
const
rtl
::
OString
&
rAccountID
);
/* Callbacks; not for use outside this class. */
/* Callbacks; not for use outside this class. */
static
void
TransferDone
(
EmpathyFTHandler
*
handler
,
TpFileTransferChannel
*
,
gpointer
user_data
);
static
void
DBusChannelHandler
(
static
void
DBusChannelHandler
(
TpSimpleHandler
*
/*handler*/
,
TpSimpleHandler
*
/*handler*/
,
TpAccount
*
pAccount
,
TpAccount
*
pAccount
,
...
...
tubes/source/conference.cxx
Dosyayı görüntüle @
38928517
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include <tubes/conference.hxx>
#include <tubes/conference.hxx>
#include <tubes/manager.hxx>
#include <tubes/manager.hxx>
#include <tubes/constants.h>
#include <tubes/constants.h>
#include <tubes/file-transfer-helper.h>
#if defined SAL_LOG_INFO
#if defined SAL_LOG_INFO
namespace
namespace
...
@@ -439,14 +439,10 @@ void TeleConference::invite( TpContact *pContact )
...
@@ -439,14 +439,10 @@ void TeleConference::invite( TpContact *pContact )
class
SendFileRequest
{
class
SendFileRequest
{
public
:
public
:
SendFileRequest
(
TeleConference
*
pSelf
,
SendFileRequest
(
TeleConference
::
FileSentCallback
pCallback
,
void
*
pUserData
)
TeleConference
::
FileSentCallback
pCallback
,
void
*
pUserData
)
:
mpCallback
(
pCallback
)
:
mpSelf
(
pSelf
)
,
mpCallback
(
pCallback
)
,
mpUserData
(
pUserData
)
{};
,
mpUserData
(
pUserData
)
{};
/* FIXME: make a shared pointer? */
TeleConference
*
mpSelf
;
TeleConference
::
FileSentCallback
mpCallback
;
TeleConference
::
FileSentCallback
mpCallback
;
void
*
mpUserData
;
void
*
mpUserData
;
};
};
...
@@ -471,7 +467,7 @@ static void TeleConference_TransferError( EmpathyFTHandler *handler, const GErro
...
@@ -471,7 +467,7 @@ static void TeleConference_TransferError( EmpathyFTHandler *handler, const GErro
g_object_unref
(
handler
);
g_object_unref
(
handler
);
}
}
void
TeleConference
::
FTReady
(
EmpathyFTHandler
*
handler
,
GError
*
error
,
gpointer
user_data
)
static
void
TeleConference_
FTReady
(
EmpathyFTHandler
*
handler
,
GError
*
error
,
gpointer
user_data
)
{
{
SendFileRequest
*
request
=
reinterpret_cast
<
SendFileRequest
*>
(
user_data
);
SendFileRequest
*
request
=
reinterpret_cast
<
SendFileRequest
*>
(
user_data
);
...
@@ -487,7 +483,7 @@ void TeleConference::FTReady( EmpathyFTHandler *handler, GError *error, gpointer
...
@@ -487,7 +483,7 @@ void TeleConference::FTReady( EmpathyFTHandler *handler, GError *error, gpointer
G_CALLBACK
(
TeleConference_TransferDone
),
request
);
G_CALLBACK
(
TeleConference_TransferDone
),
request
);
g_signal_connect
(
handler
,
"transfer-error"
,
g_signal_connect
(
handler
,
"transfer-error"
,
G_CALLBACK
(
TeleConference_TransferError
),
request
);
G_CALLBACK
(
TeleConference_TransferError
),
request
);
empathy_ft_handler_set_service_name
(
handler
,
request
->
mpSelf
->
mpManager
->
getFullServiceName
().
getStr
());
empathy_ft_handler_set_service_name
(
handler
,
TeleManager
::
getFullServiceName
().
getStr
());
empathy_ft_handler_start_transfer
(
handler
);
empathy_ft_handler_start_transfer
(
handler
);
}
}
}
}
...
@@ -504,13 +500,13 @@ void TeleConference::sendFile( rtl::OUString &localUri, FileSentCallback pCallba
...
@@ -504,13 +500,13 @@ void TeleConference::sendFile( rtl::OUString &localUri, FileSentCallback pCallba
GFile
*
pSource
=
g_file_new_for_uri
(
GFile
*
pSource
=
g_file_new_for_uri
(
OUStringToOString
(
localUri
,
RTL_TEXTENCODING_UTF8
).
getStr
()
);
OUStringToOString
(
localUri
,
RTL_TEXTENCODING_UTF8
).
getStr
()
);
SendFileRequest
*
pReq
=
new
SendFileRequest
(
this
,
pCallback
,
pUserData
);
SendFileRequest
*
pReq
=
new
SendFileRequest
(
pCallback
,
pUserData
);
empathy_ft_handler_new_outgoing
(
mpAccount
,
empathy_ft_handler_new_outgoing
(
mpAccount
,
tp_channel_get_target_contact
(
TP_CHANNEL
(
mpChannel
)),
tp_channel_get_target_contact
(
TP_CHANNEL
(
mpChannel
)),
pSource
,
pSource
,
0
,
0
,
&
TeleConference
::
FTReady
,
pReq
);
TeleConference_
FTReady
,
pReq
);
}
}
...
...
tubes/source/manager.cxx
Dosyayı görüntüle @
38928517
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
#include "tubes/manager.hxx"
#include "tubes/manager.hxx"
#include "tubes/constants.h"
#include "tubes/constants.h"
#include "tubes/file-transfer-helper.h"
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/frame/XComponentLoader.hpp>
#include <com/sun/star/frame/XComponentLoader.hpp>
...
@@ -180,6 +181,11 @@ bool TeleManager::hasWaitingConference()
...
@@ -180,6 +181,11 @@ bool TeleManager::hasWaitingConference()
return
!
pImpl
->
msCurrentUUID
.
isEmpty
();
return
!
pImpl
->
msCurrentUUID
.
isEmpty
();
}
}
void
TeleManager
::
setCurrentUuid
(
const
OString
&
rUuid
)
{
pImpl
->
msCurrentUUID
=
rUuid
;
}
// FIXME this is exported only because of ScDocFuncDemo
// FIXME this is exported only because of ScDocFuncDemo
SAL_DLLPUBLIC_EXPORT
void
TeleManager_fileReceived
(
const
rtl
::
OUString
&
rStr
)
SAL_DLLPUBLIC_EXPORT
void
TeleManager_fileReceived
(
const
rtl
::
OUString
&
rStr
)
{
{
...
@@ -205,9 +211,9 @@ SAL_DLLPUBLIC_EXPORT void TeleManager_fileReceived( const rtl::OUString &rStr )
...
@@ -205,9 +211,9 @@ SAL_DLLPUBLIC_EXPORT void TeleManager_fileReceived( const rtl::OUString &rStr )
}
}
}
}
void
TeleManager
::
TransferDone
(
EmpathyFTHandler
*
handler
,
TpFileTransferChannel
*
,
gpointer
)
void
TeleManager
_
TransferDone
(
EmpathyFTHandler
*
handler
,
TpFileTransferChannel
*
,
gpointer
)
{
{
SAL_INFO
(
"tubes"
,
"TeleManager
::
TransferDone: hooray!"
);
SAL_INFO
(
"tubes"
,
"TeleManager
_
TransferDone: hooray!"
);
GFile
*
gfile
=
empathy_ft_handler_get_gfile
(
handler
);
GFile
*
gfile
=
empathy_ft_handler_get_gfile
(
handler
);
char
*
uri
=
g_file_get_uri
(
gfile
);
char
*
uri
=
g_file_get_uri
(
gfile
);
rtl
::
OUString
aUri
(
uri
,
strlen
(
uri
),
RTL_TEXTENCODING_UTF8
);
rtl
::
OUString
aUri
(
uri
,
strlen
(
uri
),
RTL_TEXTENCODING_UTF8
);
...
@@ -217,7 +223,7 @@ void TeleManager::TransferDone( EmpathyFTHandler *handler, TpFileTransferChannel
...
@@ -217,7 +223,7 @@ void TeleManager::TransferDone( EmpathyFTHandler *handler, TpFileTransferChannel
sal_Int32
last
=
aUri
.
lastIndexOf
(
'_'
);
sal_Int32
last
=
aUri
.
lastIndexOf
(
'_'
);
OString
sUuid
(
OUStringToOString
(
aUri
.
copy
(
first
+
1
,
last
-
first
-
1
),
OString
sUuid
(
OUStringToOString
(
aUri
.
copy
(
first
+
1
,
last
-
first
-
1
),
RTL_TEXTENCODING_UTF8
));
RTL_TEXTENCODING_UTF8
));
pImpl
->
msCurrentUUID
=
sUuid
;
TeleManager
::
setCurrentUuid
(
sUuid
)
;
TeleManager_fileReceived
(
aUri
);
TeleManager_fileReceived
(
aUri
);
g_object_unref
(
handler
);
g_object_unref
(
handler
);
...
@@ -256,7 +262,7 @@ TeleManager_IncomingHandlerReady (
...
@@ -256,7 +262,7 @@ TeleManager_IncomingHandlerReady (
empathy_ft_handler_incoming_set_destination
(
pHandler
,
pDestination
);
empathy_ft_handler_incoming_set_destination
(
pHandler
,
pDestination
);
g_object_unref
(
pDestination
);
g_object_unref
(
pDestination
);
g_signal_connect
(
pHandler
,
"transfer-done"
,
G_CALLBACK
(
&
TeleManager
::
TransferDone
),
pManager
);
g_signal_connect
(
pHandler
,
"transfer-done"
,
G_CALLBACK
(
TeleManager_
TransferDone
),
pManager
);
g_signal_connect
(
pHandler
,
"transfer-error"
,
G_CALLBACK
(
TeleManager_TransferError
),
pManager
);
g_signal_connect
(
pHandler
,
"transfer-error"
,
G_CALLBACK
(
TeleManager_TransferError
),
pManager
);
empathy_ft_handler_start_transfer
(
pHandler
);
empathy_ft_handler_start_transfer
(
pHandler
);
}
}
...
...
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