2002-08-02 19:57:46 +00: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 13:45:30 +00:00
|
|
|
#include "XScreen.h"
|
|
|
|
|
|
|
|
//
|
|
|
|
// XScreenOpenFailure
|
|
|
|
//
|
|
|
|
|
2002-06-10 22:06:45 +00:00
|
|
|
CString
|
|
|
|
XScreenOpenFailure::getWhat() const throw()
|
2002-06-03 13:45:30 +00:00
|
|
|
{
|
2002-07-25 17:52:40 +00:00
|
|
|
return format("XScreenOpenFailure", "unable to open screen");
|
2002-06-03 13:45:30 +00:00
|
|
|
}
|
2002-07-31 12:39:34 +00: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");
|
|
|
|
}
|