NDEVR
API Documentation
FileServerSettingsDialog.h
1
/*--------------------------------------------------------------------------------------------
2
Copyright (c) 2020, NDEVR LLC
3
tyler.parke@ndevr.org
4
__ __ ____ _____ __ __ _______
5
| \ | | | __ \ | ___|\ \ / / | __ \
6
| \ | | | | \ \ | |___ \ \ / / | |__) |
7
| . \| | | |__/ / | |___ \ V / | _ /
8
| |\ |_|_____/__|_____|___\_/____| | \ \
9
|__| \__________________________________| \__\
10
11
Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12
Licensee a limited, non-exclusive, non-transferable, royalty-free license
13
(without the right to sublicense) to use the API solely for the purpose of
14
Licensee's internal development efforts to develop applications for which
15
the API was provided.
16
17
The above copyright notice and this permission notice shall be included in all
18
copies or substantial portions of the Software.
19
20
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25
DEALINGS IN THE SOFTWARE.
26
27
Library: NDEVRFileServer
28
File: FileServerSettingsDialog
29
Included in API: True
30
Author(s): tyler.parke
31
*-----------------------------------------------------------------------------------------**/
32
33
#pragma once
34
#include <QWidget>
35
#include <NDEVR/ServerCredentials.h>
36
class
QItemSelection;
37
namespace
Ui
38
{
39
class
FileServerSettingsDialogUI;
40
}
41
namespace
NDEVR
42
{
43
class
AdaptiveWebServer
;
44
class
NDEVRFileServer;
48
class
FileServerSettingsDialog
:
public
QWidget
49
{
50
Q_OBJECT
51
public
:
55
FileServerSettingsDialog
(NDEVRFileServer* server, QWidget* parent =
nullptr
);
57
void
resetToDefaults
();
59
void
startServer
();
60
private
:
61
void
updateUserApprovalTable();
62
void
init();
63
void
approveSelection(
bool
approve);
64
protected
slots:
65
void
onUserApproveSelectionChangedSlot(
const
QItemSelection& selected,
const
QItemSelection& deselected);
66
private
:
67
Ui::FileServerSettingsDialogUI* ui =
nullptr
;
68
NDEVRFileServer* m_server =
nullptr
;
69
AdaptiveWebServer
* m_web_server =
nullptr
;
70
};
71
}
AdaptiveWebServer
WebSocket server implementation of NDEVRCommunicationLogic with optional SSL/TLS support.
Definition
AdaptiveWebServer.h:18
FileServerSettingsDialog::FileServerSettingsDialog
FileServerSettingsDialog(NDEVRFileServer *server, QWidget *parent=nullptr)
Constructs the settings dialog.
FileServerSettingsDialog::startServer
void startServer()
Starts the file server.
FileServerSettingsDialog::resetToDefaults
void resetToDefaults()
Resets all settings to their defaults.
NDEVR
The primary namespace for the NDEVR SDK.
Definition
ArialTileFetcherModule.h:35
NDEVRFileServer
Headers
FileServerSettingsDialog.h
NDEVR.org