diff options
Diffstat (limited to 'tubes/source/collaboration.cxx')
-rw-r--r-- | tubes/source/collaboration.cxx | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/tubes/source/collaboration.cxx b/tubes/source/collaboration.cxx new file mode 100644 index 000000000000..846f5dc51cc7 --- /dev/null +++ b/tubes/source/collaboration.cxx @@ -0,0 +1,50 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#include <tubes/collaboration.hxx> + +#include <tubes/conference.hxx> + +Collaboration::Collaboration() +{ +} + +Collaboration::~Collaboration() +{ + if (mpConference) + mpConference->close(); +} + +TeleConference* Collaboration::GetConference() const +{ + return mpConference; +} + +sal_uInt64 Collaboration::GetId() const +{ + return reinterpret_cast<sal_uInt64> (this); +} + +void Collaboration::SendFile( TpContact* pContact, const OUString& rURL ) const +{ + mpConference->sendFile( pContact, rURL, NULL, NULL ); +} + +void Collaboration::SendPacket( const OString& rPacket ) const +{ + mpConference->sendPacket( rPacket ); +} + +void Collaboration::SetConference( TeleConference* pConference ) +{ + mpConference = pConference; + mpConference->setCollaboration( this ); +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |