Akonadi

nulltracer.h
1 /***************************************************************************
2  * Copyright (C) 2006 by Tobias Koenig <[email protected]> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU Library General Public License as *
6  * published by the Free Software Foundation; either version 2 of the *
7  * License, or (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU Library General Public *
15  * License along with this program; if not, write to the *
16  * Free Software Foundation, Inc., *
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18  ***************************************************************************/
19 
20 #ifndef AKONADI_NULLTRACER_H
21 #define AKONADI_NULLTRACER_H
22 
23 #include "tracerinterface.h"
24 
25 namespace Akonadi
26 {
27 namespace Server
28 {
29 
34 {
35 public:
36  ~NullTracer() override = default;
37 
38  void beginConnection(const QString &identifier, const QString &msg) override {
39  Q_UNUSED(identifier);
40  Q_UNUSED(msg);
41  }
42 
43  void endConnection(const QString &identifier, const QString &msg) override {
44  Q_UNUSED(identifier);
45  Q_UNUSED(msg);
46  }
47 
48  void connectionInput(const QString &identifier, const QByteArray &msg) override {
49  Q_UNUSED(identifier);
50  Q_UNUSED(msg);
51  }
52 
53  void connectionOutput(const QString &identifier, const QByteArray &msg) override {
54  Q_UNUSED(identifier);
55  Q_UNUSED(msg);
56  }
57 
58  void signal(const QString &signalName, const QString &msg) override {
59  Q_UNUSED(signalName);
60  Q_UNUSED(msg);
61  }
62 
63  void warning(const QString &componentName, const QString &msg) override {
64  Q_UNUSED(componentName);
65  Q_UNUSED(msg);
66  }
67 
68  void error(const QString &componentName, const QString &msg) override {
69  Q_UNUSED(componentName);
70  Q_UNUSED(msg);
71  }
72 };
73 
74 } // namespace Server
75 } // namespace Akonadi
76 
77 #endif
A tracer which forwards all tracing information to /dev/null ;)
Definition: nulltracer.h:33
void connectionInput(const QString &identifier, const QByteArray &msg) override
This method is called whenever the akonadi server retrieves some data from the outside.
Definition: nulltracer.h:48
void warning(const QString &componentName, const QString &msg) override
This method is called whenever a component wants to output a warning.
Definition: nulltracer.h:63
void endConnection(const QString &identifier, const QString &msg) override
This method is called whenever a data (imap) connection to akonadi server is closed.
Definition: nulltracer.h:43
void signal(const QString &signalName, const QString &msg) override
This method is called whenever a dbus signal is emitted on the bus.
Definition: nulltracer.h:58
void error(const QString &componentName, const QString &msg) override
This method is called whenever a component wants to output an error.
Definition: nulltracer.h:68
void beginConnection(const QString &identifier, const QString &msg) override
This method is called whenever a new data (imap) connection to the akonadi server is established...
Definition: nulltracer.h:38
Helper integration between Akonadi and Qt.
This interface can be reimplemented to deliver tracing information of the akonadi server to the outsi...
void connectionOutput(const QString &identifier, const QByteArray &msg) override
This method is called whenever the akonadi server sends some data out to a client.
Definition: nulltracer.h:53
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Jun 5 2020 23:08:55 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.