2002-08-02 23:57:46 +04:00
|
|
|
/*
|
|
|
|
* synergy -- mouse and keyboard sharing utility
|
|
|
|
* Copyright (C) 2002 Chris Schoeneman
|
|
|
|
*
|
|
|
|
* This package is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* found in the file COPYING that should have accompanied this file.
|
|
|
|
*
|
|
|
|
* This package is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
2002-06-03 17:45:30 +04:00
|
|
|
#include "XScreen.h"
|
|
|
|
|
|
|
|
//
|
|
|
|
// XScreenOpenFailure
|
|
|
|
//
|
|
|
|
|
2002-06-11 02:06:45 +04:00
|
|
|
CString
|
|
|
|
XScreenOpenFailure::getWhat() const throw()
|
2002-06-03 17:45:30 +04:00
|
|
|
{
|
2002-07-25 21:52:40 +04:00
|
|
|
return format("XScreenOpenFailure", "unable to open screen");
|
2002-06-03 17:45:30 +04:00
|
|
|
}
|
2002-07-31 16:39:34 +04:00
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// XScreenUnavailable
|
|
|
|
//
|
|
|
|
|
|
|
|
XScreenUnavailable::XScreenUnavailable(double timeUntilRetry) :
|
|
|
|
m_timeUntilRetry(timeUntilRetry)
|
|
|
|
{
|
|
|
|
// do nothing
|
|
|
|
}
|
|
|
|
|
|
|
|
XScreenUnavailable::~XScreenUnavailable()
|
|
|
|
{
|
|
|
|
// do nothing
|
|
|
|
}
|
|
|
|
|
|
|
|
double
|
|
|
|
XScreenUnavailable::getRetryTime() const
|
|
|
|
{
|
|
|
|
return m_timeUntilRetry;
|
|
|
|
}
|
|
|
|
|
|
|
|
CString
|
|
|
|
XScreenUnavailable::getWhat() const throw()
|
|
|
|
{
|
|
|
|
return format("XScreenUnavailable", "unable to open screen");
|
|
|
|
}
|