summaryrefslogtreecommitdiff
path: root/cpp/test/uwp/controller/ViewController.xaml.h
blob: 30f8b26d140305736cdf029921676d3cabbeb9bc (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
// **********************************************************************
//
// Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

#pragma once

#include <ViewController.g.h>
#include <collection.h>
#include <map>
#include <string>
#include <memory>

namespace
{
class MainHelperI;
class ProcessControllerI;
class ControllerHelper;
}

namespace Controller
{

[Windows::Foundation::Metadata::WebHostHidden]
public ref class ViewController sealed
{
public:

    ViewController();
    virtual ~ViewController();

protected:

    virtual void OnNavigatedTo(Windows::UI::Xaml::Navigation::NavigationEventArgs^ e) override;
private:

    friend class MainHelperI;
    friend class ProcessControllerI;
    friend class ControllerHelper;
    HINSTANCE loadDll(const std::string&);
    void println(const std::string&);
    std::string getHost() const;
    void Hostname_SelectionChanged(Platform::Object^ sender, Windows::UI::Xaml::Controls::SelectionChangedEventArgs^ e);

    std::map<std::string, HINSTANCE> _dlls;
};

}