2018-11-02 01:17:57 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* ftermdebugdata.h - Debug data class for FTerm *
|
|
|
|
* *
|
2020-07-08 21:32:47 +02:00
|
|
|
* This file is part of the FINAL CUT widget toolkit *
|
2018-11-02 01:17:57 +01:00
|
|
|
* *
|
2020-04-15 23:44:08 +02:00
|
|
|
* Copyright 2018-2020 Markus Gans *
|
2018-11-02 01:17:57 +01: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 *
|
2018-11-02 01:17:57 +01: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 *
|
2018-11-02 01:17:57 +01: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/>. *
|
|
|
|
***********************************************************************/
|
|
|
|
|
|
|
|
/* Standalone class
|
|
|
|
* ════════════════
|
|
|
|
*
|
|
|
|
* ▕▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▏
|
|
|
|
* ▕ FTermDebugData ▏
|
|
|
|
* ▕▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▏
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FTERMDEBUGDATA_H
|
|
|
|
#define FTERMDEBUGDATA_H
|
|
|
|
|
|
|
|
#if !defined (USE_FINAL_H) && !defined (COMPILE_FINAL_CUT)
|
|
|
|
#error "Only <final/final.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
|
|
|
namespace finalcut
|
|
|
|
{
|
|
|
|
|
2019-05-27 00:50:11 +02:00
|
|
|
// class forward declaration
|
|
|
|
class FTerm;
|
2019-07-21 23:31:21 +02:00
|
|
|
class FTermData;
|
|
|
|
class FTermDetection;
|
2019-05-27 00:50:11 +02:00
|
|
|
|
2018-11-02 01:17:57 +01:00
|
|
|
#if DEBUG
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// class FTermDebugData
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
|
2019-01-04 02:18:54 +01:00
|
|
|
class FTermDebugData final
|
2018-11-02 01:17:57 +01:00
|
|
|
{
|
|
|
|
public:
|
2018-11-20 21:11:04 +01:00
|
|
|
// Constructors
|
2018-12-03 03:22:36 +01:00
|
|
|
FTermDebugData() = default;
|
2018-12-24 18:11:16 +01:00
|
|
|
|
2018-12-09 22:04:55 +01:00
|
|
|
// Disable copy constructor
|
|
|
|
FTermDebugData (const FTermDebugData&) = delete;
|
2018-12-24 18:11:16 +01:00
|
|
|
|
2018-11-20 21:11:04 +01:00
|
|
|
// Destructor
|
2018-12-03 03:22:36 +01:00
|
|
|
~FTermDebugData() = default;
|
2018-11-20 21:11:04 +01:00
|
|
|
|
2020-04-15 23:44:08 +02:00
|
|
|
// Disable copy assignment operator (=)
|
2018-12-09 22:04:55 +01:00
|
|
|
FTermDebugData& operator = (const FTermDebugData&) = delete;
|
|
|
|
|
2018-11-02 01:17:57 +01:00
|
|
|
// Accessors
|
|
|
|
const FString& getAnswerbackString();
|
|
|
|
const FString& getSecDAString();
|
|
|
|
const char* getTermType_256color();
|
|
|
|
const char* getTermType_Answerback();
|
|
|
|
const char* getTermType_SecDA();
|
|
|
|
#if defined(__linux__)
|
|
|
|
int getFramebufferBpp();
|
|
|
|
#endif
|
2019-05-27 00:50:11 +02:00
|
|
|
|
|
|
|
// Methods
|
|
|
|
static void init();
|
2018-11-02 01:17:57 +01:00
|
|
|
|
|
|
|
private:
|
2019-09-04 23:57:31 +02:00
|
|
|
// Data members
|
2019-05-27 00:50:11 +02:00
|
|
|
static FTermData* data;
|
|
|
|
static FTermDetection* term_detection;
|
2018-11-02 01:17:57 +01:00
|
|
|
};
|
|
|
|
#endif // DEBUG
|
|
|
|
|
|
|
|
} // namespace finalcut
|
|
|
|
|
|
|
|
#endif // FTERMDEBUGDATA_H
|