summaryrefslogtreecommitdiff
path: root/src/qcam/message_handler.h
blob: 4534db9d93f7597b30f93608a30ada2f8fe6e3bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (C) 2020, Laurent Pinchart <laurent.pinchart@ideasonboard.com>
 *
 * message_handler.cpp - qcam - Log message handling
 */
#ifndef __QCAM_MESSAGE_HANDLER_H__
#define __QCAM_MESSAGE_HANDLER_H__

#include <QtGlobal>

class MessageHandler
{
public:
	MessageHandler(bool verbose);

private:
	static void handleMessage(QtMsgType type,
				  const QMessageLogContext &context,
				  const QString &msg);

	static QtMessageHandler handler_;
	static bool verbose_;
};

#endif /* __QCAM_MESSAGE_HANDLER_H__ */