Kaydet (Commit) 011e348e authored tarafından Matúš Kukan's avatar Matúš Kukan

tubes: add invite to Collaboration class

Change-Id: I37463d4365a2fe81e58d5f4bcf9f86d9830e26be
üst c3c2dcf8
......@@ -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,14 +26,18 @@ Collaboration::~Collaboration()
mpConference->close();
}
TeleConference* Collaboration::GetConference() const
sal_uInt64 Collaboration::GetId() const
{
return mpConference;
return reinterpret_cast<sal_uInt64> (this);
}
sal_uInt64 Collaboration::GetId() const
void Collaboration::Invite( TpContact* pContact ) const
{
return reinterpret_cast<sal_uInt64> (this);
if (mpConference)
{
mpConference->invite( pContact );
SaveAndSendFile( pContact );
}
}
void Collaboration::SendFile( TpContact* pContact, const OUString& rURL ) const
......
......@@ -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 );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment