blob: 3e7ebf8116bdabf98c0e840c4f7a33ee84a68a4c [file] [log] [blame]
Nicolas Jager998fbd72016-08-08 11:41:28 -04001#pragma once
2/**************************************************************************
3* Copyright (C) 2016 by Savoir-faire Linux *
4* Author: Jäger Nicolas <nicolas.jager@savoirfairelinux.com> *
5* *
6* This program is free software; you can redistribute it and/or modify *
7* it under the terms of the GNU General Public License as published by *
8* the Free Software Foundation; either version 3 of the License, or *
9* (at your option) any later version. *
10* *
11* This program is distributed in the hope that it will be useful, *
12* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14* GNU General Public License for more details. *
15* *
16* You should have received a copy of the GNU General Public License *
17* along with this program. If not, see <http://www.gnu.org/licenses/>. *
18**************************************************************************/
19#include "RingConsolePanel.g.h"
20
21namespace RingClientUWP
22{
23namespace Views
24{
25public ref class RingConsolePanel sealed
26{
27public:
28 RingConsolePanel();
Nicolas Jagereeef17c2016-08-16 10:21:54 -040029 void output(Platform::String^ message);
30
31private:
32 void sendCommand();
33 void addCommandToHistory();
34 void _btnSendDbgCmd__Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
35 void _sendDbgCmd__KeyDown(Platform::Object^ sender, Windows::UI::Xaml::Input::KeyRoutedEventArgs^ e);
36
37 int historyLevel = 0;
38 /* commands already send */
39 Vector<String^> historyCmds;
40 /* command not already send */
41 String^ currentCmd;
Nicolas Jager998fbd72016-08-08 11:41:28 -040042};
43}
44}