blob: 0ad44475d25c2c2f2ff9a994967472862f364daf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
//
// MainPage.xaml.h
// Declaration of the MainPage class.
//
#pragma once
#include "MainPage.g.h"
#include <IceUtil/IceUtil.h>
#include <Ice/Ice.h>
#include <Hello.h>
namespace hello
{
ref class MainPage;
class HelloCallback : virtual public IceUtil::Shared
{
public:
HelloCallback(MainPage^);
void helloSent(bool);
void helloSuccess();
void helloFailure(const Ice::Exception&);
private:
MainPage^ _page;
};
typedef IceUtil::Handle<HelloCallback> HelloCallbackPtr;
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public ref class MainPage sealed
{
public:
MainPage();
protected:
virtual void OnNavigatedTo(Windows::UI::Xaml::Navigation::NavigationEventArgs^ e) override;
private:
friend class HelloCallback;
Demo::HelloPrx proxy();
bool isBatch();
void helloSuccess();
void helloFailure(const Ice::Exception& ex);
void helloSent(bool);
void print(const std::string&);
void hello_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
void shutdown_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
void flush_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
Ice::CommunicatorPtr _communicator;
};
}
|