2019-05-27 00:50:11 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* ftermdebugdata.cpp - Debug data class for FTerm *
|
|
|
|
* *
|
2020-07-08 21:32:47 +02:00
|
|
|
* This file is part of the FINAL CUT widget toolkit *
|
2019-05-27 00:50:11 +02:00
|
|
|
* *
|
2020-02-16 00:01:36 +01:00
|
|
|
* Copyright 2019-2020 Markus Gans *
|
2019-05-27 00:50:11 +02:00
|
|
|
* *
|
2020-07-08 21:32:47 +02:00
|
|
|
* FINAL CUT is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU Lesser General Public License as *
|
|
|
|
* published by the Free Software Foundation; either version 3 of *
|
2019-05-27 00:50:11 +02:00
|
|
|
* the License, or (at your option) any later version. *
|
|
|
|
* *
|
2020-07-08 21:32:47 +02:00
|
|
|
* FINAL CUT is distributed in the hope that it will be useful, but *
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of *
|
2019-05-27 00:50:11 +02:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU Lesser General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU Lesser General Public *
|
|
|
|
* License along with this program. If not, see *
|
|
|
|
* <http://www.gnu.org/licenses/>. *
|
|
|
|
***********************************************************************/
|
|
|
|
|
2019-07-21 23:31:21 +02:00
|
|
|
#include "final/fc.h"
|
2019-05-27 00:50:11 +02:00
|
|
|
#include "final/fterm.h"
|
|
|
|
#include "final/ftermdata.h"
|
|
|
|
#include "final/ftermdetection.h"
|
|
|
|
#include "final/ftermdebugdata.h"
|
|
|
|
|
2020-12-31 20:45:10 +01:00
|
|
|
#if DEBUG
|
|
|
|
|
2019-05-27 00:50:11 +02:00
|
|
|
namespace finalcut
|
|
|
|
{
|
2019-06-02 19:11:17 +02:00
|
|
|
|
2019-05-27 00:50:11 +02:00
|
|
|
//----------------------------------------------------------------------
|
2020-02-16 00:01:36 +01:00
|
|
|
// class FTermDebugData
|
2019-05-27 00:50:11 +02:00
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
2020-02-16 00:01:36 +01:00
|
|
|
// public methods of FTermDebugData
|
2019-07-21 23:31:21 +02:00
|
|
|
//----------------------------------------------------------------------
|
|
|
|
const FString& FTermDebugData::getAnswerbackString()
|
|
|
|
{
|
2020-12-03 10:43:20 +01:00
|
|
|
const auto& term_detection = FTerm::getFTermDetection();
|
2019-07-21 23:31:21 +02:00
|
|
|
return term_detection->getAnswerbackString();
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
const FString& FTermDebugData::getSecDAString()
|
|
|
|
{
|
2020-12-03 10:43:20 +01:00
|
|
|
const auto& term_detection = FTerm::getFTermDetection();
|
2019-07-21 23:31:21 +02:00
|
|
|
return term_detection->getSecDAString();
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
const char* FTermDebugData::getTermType_256color()
|
|
|
|
{
|
2020-12-03 10:43:20 +01:00
|
|
|
const auto& term_detection = FTerm::getFTermDetection();
|
2019-07-21 23:31:21 +02:00
|
|
|
return term_detection->getTermType_256color();
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
const char* FTermDebugData::getTermType_Answerback()
|
|
|
|
{
|
2020-12-03 10:43:20 +01:00
|
|
|
const auto& term_detection = FTerm::getFTermDetection();
|
2019-07-21 23:31:21 +02:00
|
|
|
return term_detection->getTermType_Answerback();
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
const char* FTermDebugData::getTermType_SecDA()
|
|
|
|
{
|
2020-12-03 10:43:20 +01:00
|
|
|
const auto& term_detection = FTerm::getFTermDetection();
|
2019-07-21 23:31:21 +02:00
|
|
|
return term_detection->getTermType_SecDA();
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
#if defined(__linux__)
|
|
|
|
int FTermDebugData::getFramebufferBpp()
|
|
|
|
{
|
2020-12-03 10:43:20 +01:00
|
|
|
const auto& fterm_data = FTerm::getFTermData();
|
|
|
|
return fterm_data->getFramebufferBpp();
|
2019-07-21 23:31:21 +02:00
|
|
|
}
|
|
|
|
#endif // defined(__linux__)
|
|
|
|
|
2019-05-27 00:50:11 +02:00
|
|
|
} // namespace finalcut
|
|
|
|
|
2020-12-31 20:45:10 +01:00
|
|
|
#endif // DEBUG
|