• Skip to content
  • Skip to link menu
  • KDE API Reference
  • KDE Home
  • Contact Us
 

Nepomuk-Core

  • tools
  • debugger
debug-message-view.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2011 Collabora Ltd. <info@collabora.com>
3  @author George Kiagiadakis <george.kiagiadakis@collabora.com>
4 
5  This library is free software; you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published
7  by the Free Software Foundation; either version 2.1 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef DEBUG_MESSAGES_MODEL_H
19 #define DEBUG_MESSAGES_MODEL_H
20 
21 #include <QTextEdit>
22 #include <TelepathyQt/Types>
23 #include <TelepathyQt/PendingOperation>
24 
25 
26 class DebugMessageView : public QTextEdit
27 {
28  Q_OBJECT
29 public:
30  explicit DebugMessageView(QWidget *parent = 0);
31  void setService(const QString & service);
32  virtual ~DebugMessageView();
33 
34 private Q_SLOTS:
35  void onServiceRegistered(const QString & service);
36  void onDebugReceiverInvalidated(Tp::DBusProxy *proxy,
37  const QString &errorName, const QString &errorMessage);
38  void onDebugReceiverReady(Tp::PendingOperation *op);
39  void onDebugReceiverMonitoringEnabled(Tp::PendingOperation *op);
40  void onFetchMessagesFinished(Tp::PendingOperation *op);
41  void onNewDebugMessage(const Tp::DebugMessage &msg);
42  void onAddMark();
43  void openFindDialog();
44 
45 Q_SIGNALS:
46  void statusMessage(const QString& msg);
47 
48 private:
49  void appendMessage(const Tp::DebugMessage &msg);
50 
51  QString m_serviceName;
52  Tp::DebugReceiverPtr m_debugReceiver;
53  Tp::DebugMessageList m_tmpCache;
54  QDBusServiceWatcher *m_serviceWatcher;
55  bool m_ready;
56 };
57 
58 #endif // DEBUG_MESSAGES_MODEL_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Fri Mar 22 2013 10:58:52 by doxygen 1.8.1.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ktp-common-internals API Reference

Skip menu "ktp-common-internals API Reference"
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal