tubes: add invite to Collaboration class
Change-Id: I37463d4365a2fe81e58d5f4bcf9f86d9830e26be
This commit is contained in:
parent
c3c2dcf80d
commit
011e348e11
@ -32,8 +32,8 @@ public:
|
||||
virtual void SaveAndSendFile( TpContact* pContact ) const = 0;
|
||||
virtual void StartCollaboration( TeleConference* pConference ) = 0;
|
||||
|
||||
TUBES_DLLPRIVATE TeleConference* GetConference() const;
|
||||
TUBES_DLLPRIVATE sal_uInt64 GetId() const;
|
||||
TUBES_DLLPRIVATE void Invite( TpContact* pContact ) const;
|
||||
|
||||
void DisplayContacts();
|
||||
void SendFile( TpContact* pContact, const OUString& rURL ) const;
|
||||
|
@ -26,16 +26,20 @@ Collaboration::~Collaboration()
|
||||
mpConference->close();
|
||||
}
|
||||
|
||||
TeleConference* Collaboration::GetConference() const
|
||||
{
|
||||
return mpConference;
|
||||
}
|
||||
|
||||
sal_uInt64 Collaboration::GetId() const
|
||||
{
|
||||
return reinterpret_cast<sal_uInt64> (this);
|
||||
}
|
||||
|
||||
void Collaboration::Invite( TpContact* pContact ) const
|
||||
{
|
||||
if (mpConference)
|
||||
{
|
||||
mpConference->invite( pContact );
|
||||
SaveAndSendFile( pContact );
|
||||
}
|
||||
}
|
||||
|
||||
void Collaboration::SendFile( TpContact* pContact, const OUString& rURL ) const
|
||||
{
|
||||
mpConference->sendFile( pContact, rURL, NULL, NULL );
|
||||
|
@ -84,12 +84,7 @@ class TubeContacts : public ModelessDialog
|
||||
pAC = static_cast<AccountContactPair*> (maList.FirstSelected()->GetUserData());
|
||||
if (pAC)
|
||||
{
|
||||
if (mpCollaboration->GetConference())
|
||||
{
|
||||
TpContact* pContact = pAC->second;
|
||||
mpCollaboration->GetConference()->invite( pContact );
|
||||
mpCollaboration->SaveAndSendFile( pContact );
|
||||
}
|
||||
mpCollaboration->Invite( pAC->second );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user