diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2012-03-23 17:40:21 +0000 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-07-17 16:39:58 +0200 |
commit | dcca79f6e74ea8b2347bbd87a85c04f2b6cb7646 (patch) | |
tree | 542685be97c3e196cbd23d80b0dd95f089df8ab7 /sc/source/ui/inc/collab.hxx | |
parent | 58499ea785ca7dd2661a54e9df4fa9d66f0d8895 (diff) |
Replace file received link with a signal.
Diffstat (limited to 'sc/source/ui/inc/collab.hxx')
-rw-r--r-- | sc/source/ui/inc/collab.hxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sc/source/ui/inc/collab.hxx b/sc/source/ui/inc/collab.hxx index 0337b793bdff..df059ad886fa 100644 --- a/sc/source/ui/inc/collab.hxx +++ b/sc/source/ui/inc/collab.hxx @@ -30,7 +30,6 @@ #define INCLUDED_SC_COLLAB_HXX #include <sal/config.h> -#include <tools/link.hxx> #include <boost/signals2.hpp> typedef struct _TpContact TpContact; @@ -44,10 +43,7 @@ class ScCollaboration { public: - /** @param rLink - Callback when a file is received, called with TeleConference* - */ - ScCollaboration( const Link& rLinkFile ); + ScCollaboration(); ~ScCollaboration(); bool initManager(); @@ -61,14 +57,16 @@ public: bool recvPacket( rtl::OString& rString, TeleConference* pConference ); void sendFile( rtl::OUString &rFileURL ); - void receivedFile( rtl::OUString &rFileURL ); + /** Emitted when a file is received + */ + boost::signals2::signal<void ( rtl::OUString *pFileURL )> sigFileReceived; /* Internal callbacks */ void packetReceivedCallback( TeleConference *pConference, TelePacket &rPacket ); + void receivedFile( rtl::OUString &rFileURL ); private: - Link maLinkFile; TpAccount* mpAccount; TpContact* mpContact; TeleManager* mpManager; |