Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
XScreen.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
4 * SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
5 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
6 */
7
8#pragma once
9
10#include "base/XBase.h"
11
15class XScreen : public XBase
16{
17 using XBase::XBase;
18};
19
24{
25 using XScreen::XScreen;
26
27protected:
28 std::string getWhat() const throw() override;
29};
30
32
37{
38public:
43 explicit XScreenUnavailable(double timeUntilRetry);
44 ~XScreenUnavailable() throw() override = default;
45
47
48
50
53 double getRetryTime() const;
54
56
57protected:
58 std::string getWhat() const throw() override;
59
60private:
61 double m_timeUntilRetry;
62};
XBase()
Use getWhat() as the result of what()
Definition XBase.cpp:17
XScreenOpenFailure - Thrown when a screen cannot be opened or initialized.
Definition XScreen.h:24
std::string getWhat() const override
Get a human readable string describing the exception.
Definition XScreen.cpp:14
~XScreenUnavailable() override=default
XScreenUnavailable(double timeUntilRetry)
Definition XScreen.cpp:23
double getRetryTime() const
Get retry time.
Definition XScreen.cpp:28
std::string getWhat() const override
Get a human readable string describing the exception.
Definition XScreen.cpp:33
The XScreen class, generic screen exception.
Definition XScreen.h:16
Definition Config.h:29