swift
Loading...
Searching...
No Matches
loghistory.cpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 2020 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6#include "misc/loghistory.h"
7
8#include "misc/loghandler.h"
9
10namespace swift::misc
11{
13
19
21
22 void CLogHistoryReplica::onElementAdded(const CStatusMessage &msg) { emit elementAdded(msg); }
23
25} // namespace swift::misc
void localMessageLogged(const swift::misc::CStatusMessage &message)
Emitted when a message is logged in this process.
static CLogHandler * instance()
Return pointer to the CLogHandler singleton.
CLogHistory(QObject *parent=nullptr)
Constructor.
void elementAdded(const swift::misc::CStatusMessage &msg)
Signal emitted for each new log message.
CLogHistoryReplica(QObject *parent=nullptr)
Constructor.
void onElementsReplaced(const CStatusMessageList &msgs) final
Called when the whole list is updated wholesale.
void elementsReplaced(const swift::misc::CStatusMessageList &msgs)
Signal emitted when the whole history is updated wholesale.
CLogHistorySource(QObject *parent=nullptr)
Constructor.
Streamable status message, e.g.
Status messages, e.g. from Core -> GUI.
void addElement(const typename CStatusMessageList::value_type &value)
Definition listmutator.h:57
Free functions in swift::misc.
QObject(QObject *parent)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const