MessageTextPage.xaml.h 2.91 KB
Newer Older
1 2 3
/**************************************************************************
* Copyright (C) 2016 by Savoir-faire Linux                                *
* Author: Jäger Nicolas <nicolas.jager@savoirfairelinux.com>              *
4
* Author: Traczyk Andreas<andreas.traczyk@savoirfairelinux.com>           *
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
*                                                                         *
* This program is free software; you can redistribute it and/or modify    *
* it under the terms of the GNU General Public License as published by    *
* the Free Software Foundation; either version 3 of the License, or       *
* (at your option) any later version.                                     *
*                                                                         *
* This program is distributed in the hope that it will be useful,         *
* but WITHOUT ANY WARRANTY; without even the implied warranty of          *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           *
* GNU General Public License for more details.                            *
*                                                                         *
* You should have received a copy of the GNU General Public License       *
* along with this program.  If not, see <http://www.gnu.org/licenses/>.   *
**************************************************************************/
#pragma once

21
#include "TextBlockExtension.h"
22 23 24 25
#include "MessageTextPage.g.h"

namespace RingClientUWP
{
26 27
delegate void CloseMessageTextPage();

28 29
namespace Views
{
30

31 32 33 34
public ref class MessageTextPage sealed
{
public:
    MessageTextPage();
35

36
    void scrollDown();
37
    void updateMessageStatus(String^ messageId, int status);
38

39
internal:
40
    void updatePageContent(SmartPanelItem^ item = nullptr);
41 42
    event CloseMessageTextPage^ closeMessageTextPage;

43
private:
44 45 46 47
    String^ lastMessageText;
    Vector<ConversationMessage^>^ conversation_;
    Platform::Array<ConversationMessage^>^ converstationChunk_;

48 49
    void _sendBtn__Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
    void sendMessage();
50
    void OnincomingMessage(Platform::String ^callId, Platform::String ^payload);
51
    void OnSelectionChanged(Platform::Object ^sender, Windows::UI::Xaml::Controls::SelectionChangedEventArgs ^e);
52 53 54 55 56 57
    void _clearConversationBtn__Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
    void _audioCallBtn__Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
    void _videoCallBtn__Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
    void _messageTextBox__TextChanged(Platform::Object^ sender, Windows::UI::Xaml::Controls::TextChangedEventArgs^ e);
    void _sendContactRequestBtn__Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
    void _messageTextBox__KeyDown(Platform::Object^ sender, Windows::UI::Xaml::Input::KeyRoutedEventArgs^ e);
58 59 60
};
}
}