Guitar
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | List of all members
ApplicationGlobal Class Reference

#include <ApplicationGlobal.h>

Inheritance diagram for ApplicationGlobal:
Inheritance graph
[legend]
Collaboration diagram for ApplicationGlobal:
Collaboration graph
[legend]

Classes

struct  Graphics
 
struct  Private
 

Public Member Functions

 ApplicationGlobal ()
 
 ~ApplicationGlobal ()
 
int copyright_year ()
 
char const * product_version ()
 
char const * source_revision ()
 
GitContext gcx ()
 
void selftest ()
 
void open_trace_logger ()
 
void close_trace_logger ()
 
void restart_trace_logger ()
 
void put_trace_event (const TraceEventWriter::Event &event)
 
void writeLog (const std::string_view &str)
 
void writeLog (const QString &str)
 
std::shared_ptr< AbstractInetClientinet_client ()
 
IncrementalSearchFilter makeIncrementalSearchFilter (const std::string &filtertext)
 
std::string mimetype_by_data (const char *data, size_t size)
 
std::string mimetype_by_data (const QByteArray &ba)
 
std::string mimetype_by_data (std::vector< char > const &ba)
 
std::string mimetype_by_file (const char *path)
 
std::string mimetype_by_file (std::string const &path)
 
GenerativeAI::Credential get_ai_credential (const GenerativeAI::Model &model)
 
bool isUnsafeEnabled () const
 
bool isAiEnabled () const
 

Static Public Member Functions

static bool isMainThread ()
 

Public Attributes

AbstractGitSession::Option gitopt
 
MainWindowmainwindow = nullptr
 
bool start_with_shift_key = false
 
QString language_id
 
QString theme_id
 
QString profiles_xml_path
 
QColor panel_bg_color
 
ThemePtr theme
 
std::unique_ptr< Graphicsgraphics
 
ApplicationSettings appsettings
 
WebContext webcx = {WebClient::HTTP_1_0}
 
AvatarLoader avatar_loader
 
std::vector< AccountProfileaccount_profiles
 
std::shared_ptr< IncrementalSearch > incremental_search
 
QString incremental_search_text
 
std::shared_ptr< FileType > file_type_detector
 
- Public Attributes inherited from ApplicationBasicData
QString organization_name = ORGANIZATION_NAME
 
QString application_name = APPLICATION_NAME
 
QString application_file_path
 
QString generic_config_dir
 
QString app_config_dir
 
QString log_dir
 
QString config_file_path
 

Static Public Attributes

constexpr static std::string_view prefix_chg = "(chg) "
 
constexpr static std::string_view prefix_cpy = "(cpy) "
 
constexpr static std::string_view prefix_ren = "(ren) "
 
constexpr static std::string_view prefix_add = "(add) "
 
constexpr static std::string_view prefix_del = "(del) "
 
constexpr static std::string_view prefix_unmerged = "(unmerged) "
 
constexpr static std::string_view prefix_empty = "() "
 

Private Attributes

Privatem
 

Constructor & Destructor Documentation

◆ ApplicationGlobal()

ApplicationGlobal::ApplicationGlobal ( )

◆ ~ApplicationGlobal()

ApplicationGlobal::~ApplicationGlobal ( )
Here is the call graph for this function:

Member Function Documentation

◆ close_trace_logger()

void ApplicationGlobal::close_trace_logger ( )
Here is the call graph for this function:

◆ copyright_year()

int ApplicationGlobal::copyright_year ( )

◆ gcx()

GitContext ApplicationGlobal::gcx ( )

◆ get_ai_credential()

GenerativeAI::Credential ApplicationGlobal::get_ai_credential ( const GenerativeAI::Model model)
Here is the call graph for this function:

◆ inet_client()

std::shared_ptr< AbstractInetClient > ApplicationGlobal::inet_client ( )

◆ isAiEnabled()

bool ApplicationGlobal::isAiEnabled ( ) const
inline

◆ isMainThread()

bool ApplicationGlobal::isMainThread ( )
static

◆ isUnsafeEnabled()

bool ApplicationGlobal::isUnsafeEnabled ( ) const
inline

◆ makeIncrementalSearchFilter()

IncrementalSearchFilter ApplicationGlobal::makeIncrementalSearchFilter ( const std::string &  filtertext)

◆ mimetype_by_data() [1/3]

std::string ApplicationGlobal::mimetype_by_data ( const char *  data,
size_t  size 
)

◆ mimetype_by_data() [2/3]

std::string ApplicationGlobal::mimetype_by_data ( const QByteArray &  ba)
Here is the call graph for this function:

◆ mimetype_by_data() [3/3]

std::string ApplicationGlobal::mimetype_by_data ( std::vector< char > const &  ba)
Here is the call graph for this function:

◆ mimetype_by_file() [1/2]

std::string ApplicationGlobal::mimetype_by_file ( const char *  path)

◆ mimetype_by_file() [2/2]

std::string ApplicationGlobal::mimetype_by_file ( std::string const &  path)
Here is the call graph for this function:

◆ open_trace_logger()

void ApplicationGlobal::open_trace_logger ( )
Here is the call graph for this function:

◆ product_version()

const char * ApplicationGlobal::product_version ( )

◆ put_trace_event()

void ApplicationGlobal::put_trace_event ( const TraceEventWriter::Event event)
Here is the call graph for this function:

◆ restart_trace_logger()

void ApplicationGlobal::restart_trace_logger ( )
Here is the call graph for this function:

◆ selftest()

void ApplicationGlobal::selftest ( )
Here is the call graph for this function:

◆ source_revision()

const char * ApplicationGlobal::source_revision ( )

◆ writeLog() [1/2]

void ApplicationGlobal::writeLog ( const QString &  str)
Here is the call graph for this function:

◆ writeLog() [2/2]

void ApplicationGlobal::writeLog ( const std::string_view &  str)
Here is the call graph for this function:

Member Data Documentation

◆ account_profiles

std::vector<AccountProfile> ApplicationGlobal::account_profiles

◆ appsettings

ApplicationSettings ApplicationGlobal::appsettings

◆ avatar_loader

AvatarLoader ApplicationGlobal::avatar_loader

◆ file_type_detector

std::shared_ptr<FileType> ApplicationGlobal::file_type_detector

◆ gitopt

AbstractGitSession::Option ApplicationGlobal::gitopt

◆ graphics

std::unique_ptr<Graphics> ApplicationGlobal::graphics

◆ incremental_search

std::shared_ptr<IncrementalSearch> ApplicationGlobal::incremental_search

◆ incremental_search_text

QString ApplicationGlobal::incremental_search_text

◆ language_id

QString ApplicationGlobal::language_id

◆ m

Private* ApplicationGlobal::m
private

◆ mainwindow

MainWindow* ApplicationGlobal::mainwindow = nullptr

◆ panel_bg_color

QColor ApplicationGlobal::panel_bg_color

◆ prefix_add

constexpr static std::string_view ApplicationGlobal::prefix_add = "(add) "
staticconstexpr

◆ prefix_chg

constexpr static std::string_view ApplicationGlobal::prefix_chg = "(chg) "
staticconstexpr

◆ prefix_cpy

constexpr static std::string_view ApplicationGlobal::prefix_cpy = "(cpy) "
staticconstexpr

◆ prefix_del

constexpr static std::string_view ApplicationGlobal::prefix_del = "(del) "
staticconstexpr

◆ prefix_empty

constexpr static std::string_view ApplicationGlobal::prefix_empty = "() "
staticconstexpr

◆ prefix_ren

constexpr static std::string_view ApplicationGlobal::prefix_ren = "(ren) "
staticconstexpr

◆ prefix_unmerged

constexpr static std::string_view ApplicationGlobal::prefix_unmerged = "(unmerged) "
staticconstexpr

◆ profiles_xml_path

QString ApplicationGlobal::profiles_xml_path

◆ start_with_shift_key

bool ApplicationGlobal::start_with_shift_key = false

◆ theme

ThemePtr ApplicationGlobal::theme

◆ theme_id

QString ApplicationGlobal::theme_id

◆ webcx

WebContext ApplicationGlobal::webcx = {WebClient::HTTP_1_0}

The documentation for this class was generated from the following files: