Line 250... |
Line 250... |
250 |
void regShowPhoneDialog(std::function<void (bool state)> showPhoneDialog) { _showPhoneDialog = showPhoneDialog; }
|
250 |
void regShowPhoneDialog(std::function<void (bool state)> showPhoneDialog) { _showPhoneDialog = showPhoneDialog; }
|
251 |
void regSetPhoneNumber(std::function<void (const std::string& number)> setPhoneNumber) { _setPhoneNumber = setPhoneNumber; }
|
251 |
void regSetPhoneNumber(std::function<void (const std::string& number)> setPhoneNumber) { _setPhoneNumber = setPhoneNumber; }
|
252 |
void regSetPhoneStatus(std::function<void (const std::string& msg)> setPhoneStatus) { _setPhoneStatus = setPhoneStatus; }
|
252 |
void regSetPhoneStatus(std::function<void (const std::string& msg)> setPhoneStatus) { _setPhoneStatus = setPhoneStatus; }
|
253 |
void regSetPhoneState(std::function<void (int state, int id)> setPhoneState) { _setPhoneState = setPhoneState; }
|
253 |
void regSetPhoneState(std::function<void (int state, int id)> setPhoneState) { _setPhoneState = setPhoneState; }
|
254 |
void regDisplayMessage(std::function<void (const std::string& msg, const std::string& title)> msg) { _displayMessage = msg; }
|
254 |
void regDisplayMessage(std::function<void (const std::string& msg, const std::string& title)> msg) { _displayMessage = msg; }
|
255 |
void regAskPassword(std::function<void (ulong handle, const std::string& msg, const std::string& title)> pw) { _askPassword = pw; }
|
255 |
void regAskPassword(std::function<void (ulong handle, const std::string& msg, const std::string& title, int x, int y)> pw) { _askPassword = pw; }
|
256 |
void regFileDialogFunction(std::function<void (ulong handle, const std::string& path, const std::string& extension, const std::string& suffix)> fdlg) { _fileDialog = fdlg; }
|
256 |
void regFileDialogFunction(std::function<void (ulong handle, const std::string& path, const std::string& extension, const std::string& suffix)> fdlg) { _fileDialog = fdlg; }
|
257 |
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
|
257 |
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
|
258 |
void regOnOrientationChange(std::function<void (int orientation)> orientationChange) { _onOrientationChange = orientationChange; }
|
258 |
void regOnOrientationChange(std::function<void (int orientation)> orientationChange) { _onOrientationChange = orientationChange; }
|
259 |
void regOnSettingsChanged(std::function<void (const std::string& oldNetlinx, int oldPort, int oldChannelID, const std::string& oldSurface, bool oldToolbarSuppress, bool oldToolbarForce)> settingsChanged) { _onSettingsChanged = settingsChanged; }
|
259 |
void regOnSettingsChanged(std::function<void (const std::string& oldNetlinx, int oldPort, int oldChannelID, const std::string& oldSurface, bool oldToolbarSuppress, bool oldToolbarForce)> settingsChanged) { _onSettingsChanged = settingsChanged; }
|
260 |
#endif
|
260 |
#endif
|
Line 412... |
Line 412... |
412 |
void sendString(uint handle, const std::string& text);
|
412 |
void sendString(uint handle, const std::string& text);
|
413 |
void sendGlobalString(const std::string& text);
|
413 |
void sendGlobalString(const std::string& text);
|
414 |
void sendPHNcommand(const std::string& cmd);
|
414 |
void sendPHNcommand(const std::string& cmd);
|
415 |
void sendKeyStroke(char key);
|
415 |
void sendKeyStroke(char key);
|
416 |
void sendCommandString(int port, const std::string& cmd);
|
416 |
void sendCommandString(int port, const std::string& cmd);
|
417 |
void callSetPassword(ulong handle, const std::string& pw);
|
417 |
void callSetPassword(ulong handle, const std::string& pw, int x, int y);
|
418 |
/**
|
418 |
/**
|
419 |
* This starts the communication with the AMX controller. The method
|
419 |
* This starts the communication with the AMX controller. The method
|
420 |
* registers the callbacks and starts a thread. This thread runs as
|
420 |
* registers the callbacks and starts a thread. This thread runs as
|
421 |
* long as a valid communication is possible or until the communication
|
421 |
* long as a valid communication is possible or until the communication
|
422 |
* end by a command.
|
422 |
* end by a command.
|
Line 542... |
Line 542... |
542 |
std::function<void (int state, int id)> getSetPhoneState() { return _setPhoneState; }
|
542 |
std::function<void (int state, int id)> getSetPhoneState() { return _setPhoneState; }
|
543 |
std::function<void (ulong handle)> getToFront() { return _toFront; }
|
543 |
std::function<void (ulong handle)> getToFront() { return _toFront; }
|
544 |
std::function<void (int width, int height)> getMainWindowSizeFunc() { return _setMainWindowSize; }
|
544 |
std::function<void (int width, int height)> getMainWindowSizeFunc() { return _setMainWindowSize; }
|
545 |
std::function<void (const std::string& file, size_t size)> getDownloadSurface() { return _downloadSurface; }
|
545 |
std::function<void (const std::string& file, size_t size)> getDownloadSurface() { return _downloadSurface; }
|
546 |
std::function<void (const std::string& msg, const std::string& title)> getDisplayMessage() { return _displayMessage; }
|
546 |
std::function<void (const std::string& msg, const std::string& title)> getDisplayMessage() { return _displayMessage; }
|
547 |
std::function<void (ulong handle, const std::string& msg, const std::string& title)> getAskPassword() { return _askPassword; }
|
547 |
std::function<void (ulong handle, const std::string& msg, const std::string& title, int x, int y)> getAskPassword() { return _askPassword; }
|
548 |
std::function<void (ulong handle, const std::string& path, const std::string& extension, const std::string& suffix)> getFileDialogFunction() { return _fileDialog; }
|
548 |
std::function<void (ulong handle, const std::string& path, const std::string& extension, const std::string& suffix)> getFileDialogFunction() { return _fileDialog; }
|
549 |
std::function<void (const std::string& text)> getStartWait() { return _startWait; }
|
549 |
std::function<void (const std::string& text)> getStartWait() { return _startWait; }
|
550 |
std::function<void ()> getStopWait() { return _stopWait; }
|
550 |
std::function<void ()> getStopWait() { return _stopWait; }
|
551 |
std::function<void (ulong handle)> getPageFinished() { return _pageFinished; }
|
551 |
std::function<void (ulong handle)> getPageFinished() { return _pageFinished; }
|
552 |
std::function<void (ulong handle, ulong parent, bool vertical, TBitmap buffer, int width, int height, int left, int top, int space, TColor::COLOR_T fillColor)> getDisplayViewButton() { return _displayViewButton; }
|
552 |
std::function<void (ulong handle, ulong parent, bool vertical, TBitmap buffer, int width, int height, int left, int top, int space, TColor::COLOR_T fillColor)> getDisplayViewButton() { return _displayViewButton; }
|
Line 655... |
Line 655... |
655 |
std::function<void ()> _repaintWindows{nullptr};
|
655 |
std::function<void ()> _repaintWindows{nullptr};
|
656 |
std::function<void (uint handle)> _toFront{nullptr};
|
656 |
std::function<void (uint handle)> _toFront{nullptr};
|
657 |
std::function<void (int width, int height)> _setMainWindowSize{nullptr};
|
657 |
std::function<void (int width, int height)> _setMainWindowSize{nullptr};
|
658 |
std::function<void (const std::string& file, size_t size)> _downloadSurface{nullptr};
|
658 |
std::function<void (const std::string& file, size_t size)> _downloadSurface{nullptr};
|
659 |
std::function<void (const std::string& msg, const std::string& title)> _displayMessage{nullptr};
|
659 |
std::function<void (const std::string& msg, const std::string& title)> _displayMessage{nullptr};
|
660 |
std::function<void (ulong handle, const std::string& msg, const std::string& title)> _askPassword{nullptr};
|
660 |
std::function<void (ulong handle, const std::string& msg, const std::string& title, int x, int y)> _askPassword{nullptr};
|
661 |
std::function<void (ulong handle, const std::string& path, const std::string& extension, const std::string& suffix)> _fileDialog{nullptr};
|
661 |
std::function<void (ulong handle, const std::string& path, const std::string& extension, const std::string& suffix)> _fileDialog{nullptr};
|
662 |
std::function<void (const std::string& text)> _startWait{nullptr};
|
662 |
std::function<void (const std::string& text)> _startWait{nullptr};
|
663 |
std::function<void ()> _stopWait{nullptr};
|
663 |
std::function<void ()> _stopWait{nullptr};
|
664 |
std::function<void (ulong handle)> _pageFinished{nullptr};
|
664 |
std::function<void (ulong handle)> _pageFinished{nullptr};
|
665 |
std::function<void (ulong handle, ulong parent, bool vertical, TBitmap buffer, int width, int height, int left, int top, int space, TColor::COLOR_T fillColor)> _displayViewButton{nullptr};
|
665 |
std::function<void (ulong handle, ulong parent, bool vertical, TBitmap buffer, int width, int height, int left, int top, int space, TColor::COLOR_T fillColor)> _displayViewButton{nullptr};
|