API Documentation
Loading...
Searching...
No Matches
NetworkConnectionDialog.h
Go to the documentation of this file.
1#pragma once
2/**--------------------------------------------------------------------------------------------
3Copyright (c) 2019, NDEVR LLC
4tyler.parke@ndevr.org
5 __ __ ____ _____ __ __ _______
6 | \ | | | __ \ | ___|\ \ / / | __ \
7 | \ | | | | \ \ | |___ \ \ / / | |__) |
8 | . \| | | |__/ / | |___ \ V / | _ /
9 | |\ |_|_____/__|_____|___\_/____| | \ \
10 |__| \__________________________________| \__\
11
12Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
13Licensee a limited, non-exclusive, non-transferable, royalty-free license
14(without the right to sublicense) to use the API solely for the purpose of
15Licensee's internal development efforts to develop applications for which
16the API was provided.
17
18The above copyright notice and this permission notice shall be included in all
19copies or substantial portions of the Software.
20
21THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
22INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
23PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
24FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
25OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26DEALINGS IN THE SOFTWARE.
27
28Library: NDEVR
29File: SerialConnectionDialog
30Included in API: True
31Author(s): Tyler Parke
32 *-----------------------------------------------------------------------------------------**/
33#pragma once
34#include "DLLInfo.h"
37#include <NDEVR/Connection.h>
39#include <QWidget>
40namespace Ui
41{
42 class NetworkConnectionUI;
43}
44namespace NDEVR
45{
46 class Connection;
47 class ProgressInfo;
48 class Thread;
50 {
51 Q_OBJECT
52 public:
53 explicit NetworkConnectionDialog(QWidget* parent = nullptr);
55 void setFixedProtocol(const String& mode);
56 void clearFixedProtocol();
57 virtual void clear() override;
58 virtual ConnectionInfo connectionInfo() const override;
59 virtual void setConnectionInfo(const ConnectionInfo& connection) override;
60 virtual bool handlesConnection(const ConnectionInfo& connection) override;
61 void setAllowPingLogic(bool allow_ping);
62 void setAllowLocalButton(bool allow_local);
63 bool checkIfValid() const;
64 String protocol() const;
65 protected slots:
66 void updateFromDialog();
67 protected:
68 void refreshPingVisible();
69 protected:
71 Ui::NetworkConnectionUI* ui;
72 bool m_allow_ping_logic = true;
73 bool m_allow_local_button = true;
74 };
76 {
77 public:
78 virtual bool handlesType(const String& connection) const override;
79 virtual TranslatedString title() const override;
80 virtual String icon() const override;
81 virtual ConnectionDialog* createConnectionDialog() const override;
82 };
83}
#define NDEVR_NETWORK_PROTOCOLS_API
Definition DLLInfo.h:73
Definition ConnectionDialog.h:23
Definition ConnectionDialog.h:8
Definition NetworkConnectionDialog.h:76
Definition NetworkConnectionDialog.h:50
String m_fixed_protocol
Definition NetworkConnectionDialog.h:70
Ui::NetworkConnectionUI * ui
Definition NetworkConnectionDialog.h:71
Definition String.h:40
Definition TranslatedString.h:9
Definition ACIColor.h:37
Definition FontEditor.h:6
Definition Connection.h:87