Don't share mailto
[kdepim.git] / akonadiconsole / notificationmonitor.h
blob52a85d07b60c421c02daf1c466a99abedc8f4ca3
1 /*
2 Copyright (c) 2009 Volker Krause <vkrause@kde.org>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
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.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17 USA.
20 #ifndef AKONADICONSOLE_NOTIFICATIONMONITOR_H
21 #define AKONADICONSOLE_NOTIFICATIONMONITOR_H
23 #include <QWidget>
25 class QModelIndex;
26 class NotificationModel;
27 class QFile;
29 class NotificationMonitor : public QWidget
31 Q_OBJECT
32 public:
33 explicit NotificationMonitor(QWidget *parent);
35 private Q_SLOTS:
36 void contextMenu(const QPoint &pos);
37 void slotSaveToFile();
39 private:
40 void writeRows(const QModelIndex &parent, QFile &file, int indentLevel);
42 NotificationModel *m_model;
45 #endif