cleanup includes

This commit is contained in:
Patrick von Reth 2015-02-03 15:38:32 +01:00
parent 2dcd673c55
commit 63db3a5c90
37 changed files with 18 additions and 81 deletions

View File

@ -22,6 +22,8 @@
#include "notification/icon_p.h"
#include <QBuffer>
using namespace Snore;
QByteArray Icon::dataFromImage(const QImage &image)

View File

@ -19,10 +19,10 @@
#include "icon_p.h"
#include "../snore_p.h"
#include <QEventLoop>
#include <QApplication>
#include <QFile>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QApplication>
using namespace Snore;

View File

@ -24,12 +24,8 @@
#include <QImage>
#include <QSharedData>
#include <QBuffer>
#include <QFile>
#include <QDebug>
#include <QSet>
#include <QMutex>
class QNetworkAccessManager;

View File

@ -21,7 +21,6 @@
#include "notification/icon.h"
#include "notification/notification_p.h"
#include "plugins/plugincontainer.h"
#include <QMetaEnum>
#include <Qt>
using namespace Snore;

View File

@ -24,7 +24,6 @@
#include "../hint.h"
#include "../application.h"
#include <QVariant>
#include <QDebug>
namespace Snore

View File

@ -25,7 +25,6 @@
#include <QSharedData>
#include <QTimer>
#include <QPointer>
namespace Snore
{

View File

@ -25,7 +25,6 @@
#include "../version.h"
#include <QDir>
#include <QDebug>
#include <QMetaEnum>
#include <QApplication>
#include <QTime>

View File

@ -21,10 +21,8 @@
#include "snore_exports.h"
#include "../snore_p.h"
#include <QPointer>
#include <QSettings>
#include <QFlag>
#include <QPluginLoader>
#include <QDir>
namespace Snore
{

View File

@ -23,13 +23,9 @@
#include "../notification/notification_p.h"
#include "plugincontainer.h"
#include <QTimer>
#include <QPluginLoader>
#include <QDir>
#include <QDebug>
#include <QMetaEnum>
#include <QApplication>
#include <QWidget>
using namespace Snore;

View File

@ -22,11 +22,7 @@
#include "pluginsettingswidget.h"
#include "../notification/notification.h"
#include <QPointer>
#include <QHash>
#include <QTimer>
#include <QtPlugin>
#include <QSettings>
namespace Snore
{

View File

@ -24,8 +24,6 @@
#include "../notification/notification_p.h"
#include <QTimer>
#include <QDir>
#include <QDebug>
#include <QThread>
#include <QMetaMethod>

View File

@ -23,8 +23,6 @@
#include "../notification/notification.h"
#include "../snore.h"
#include <QPointer>
#include <QFlag>
namespace Snore
{

View File

@ -19,9 +19,6 @@
#include "snorefrontend.h"
#include "../snore.h"
#include <QTimer>
#include <QDir>
#include <QDebug>
namespace Snore
{

View File

@ -22,8 +22,6 @@
#include "../notification/notification.h"
#include "plugins.h"
#include <QPointer>
#include <QFlag>
namespace Snore
{

View File

@ -28,10 +28,6 @@
#include <iostream>
#include <QDebug>
#include <QDir>
#include <QSystemTrayIcon>
#include <QApplication>
#include <QSettings>
using namespace Snore;

View File

@ -26,6 +26,7 @@
#include "plugins/plugins.h"
#include "hint.h"
#include <QSettings>
#include <QStringList>
#include <QTextDocument>
#include <QTextDocumentFragment>

View File

@ -22,7 +22,6 @@
#include "snore.h"
#include "plugins/snorebackend.h"
#include <QDir>
#include <QPointer>
#include <QCryptographicHash>

View File

@ -20,17 +20,11 @@
#include "trayicon.h"
#include "core/snore.h"
#include <QDir>
#include <QFile>
#include <QList>
#include <QDebug>
#include <QPluginLoader>
#include <QSystemTrayIcon>
#include <QSettings>
#include <iostream>
#include <stdlib.h>
#include <QApplication>
using namespace Snore;

View File

@ -19,7 +19,7 @@
#ifndef SNORENOTIFY_H
#define SNORENOTIFY_H
#include <QtCore>
#include <QSettings>
namespace Snore
{
@ -38,7 +38,7 @@ public:
private:
class TrayIcon *m_trayIcon;
Snore::SnoreCore *m_snore;
class QSettings m_settings;
QSettings m_settings;
private slots:
void exit();

View File

@ -21,9 +21,11 @@
#include "core/snore.h"
#include "core/snore_p.h"
#include <QSystemTrayIcon>
#include <QMenu>
#include <QAction>
#include <QApplication>
#include <QMenu>
#include <QSystemTrayIcon>
#include <QTimer>
#include "core/version.h"

View File

@ -19,7 +19,6 @@
#ifndef TRAYICON_H
#define TRAYICON_H
#include <QtCore>
#include <QAction>
#include "core/snore.h"

View File

@ -19,7 +19,6 @@
#include "fredesktopnotification.h"
#include <QImage>
#include <QtGlobal>
int FreedesktopImageHint::imageHintID = qDBusRegisterMetaType<FreedesktopImageHint>();

View File

@ -21,7 +21,6 @@
#include "core/notification/notification.h"
#include <QtDBus>
#include <QMetaType>
class FreedesktopImageHint

View File

@ -1,12 +1,8 @@
#include "freedesktopnotification_backend.h"
#include <QtGlobal>
#include <QDebug>
#include "core/notification/notification.h"
#include "core/notification/notification_p.h"
#include "core/snore_p.h"
#include <QtCore>
#include <QImage>
#include "fredesktopnotification.h"
#include "core/snore.h"

View File

@ -21,8 +21,6 @@
#include "core/snore.h"
#include "core/snore_p.h"
#include <QtCore>
#include <QTcpSocket>
using namespace Snore;

View File

@ -24,7 +24,6 @@
#include "core/plugins/snorebackend.h"
#include "core/notification/notification_p.h"
#include <QtDebug>
#include <QWidget>
#include <iostream>

View File

@ -20,11 +20,6 @@
#include "snorenotifier.h"
#include "core/log.h"
#include <QDesktopWidget>
#include <QDesktopServices>
#include <QPicture>
#include <QLayout>
#include <QSize>
using namespace Snore;

View File

@ -19,13 +19,10 @@
#ifndef NOTIFYWIDGET_H
#define NOTIFYWIDGET_H
#include <QWidget>
#include <QTimer>
#include <QSharedMemory>
#include "core/notification/notification.h"
#include <QtQuick/QtQuick>
#include <QPropertyAnimation>
class SnoreNotifier;

View File

@ -23,7 +23,6 @@
#include "core/snore_p.h"
#include <QApplication>
#include <QThread>
using namespace Snore;

View File

@ -4,7 +4,6 @@
#include "core/plugins/plugins.h"
#include "core/plugins/snorebackend.h"
#include <QDebug>
#include <QDir>
#include <QApplication>
#include <QSysInfo>

View File

@ -2,11 +2,7 @@
#include "core/snore.h"
#include "core/snore_p.h"
#include <QtCore>
#include <QSystemTrayIcon>
#include <QTimer>
#include <QTime>
#include <QDebug>
using namespace Snore;
TrayIconNotifer::TrayIconNotifer() :

View File

@ -24,8 +24,6 @@
#include "core/version.h"
#include "core/notification/notification_p.h"
#include <QtCore>
#include <QtDBus>
#include <QImage>
#include <QIcon>

View File

@ -20,7 +20,6 @@
#define FREEDESKTOPNOTIFICATION_FRONTEND_H
#include "core/plugins/snorefrontend.h"
#include "core/application.h"
#include <QtDBus>
class NotificationsAdaptor;

View File

@ -23,10 +23,6 @@
#include "core/notification/notification.h"
#include "core/notification/notification_p.h"
#include <QDir>
#include <QNetworkAccessManager>
#include <QEventLoop>
#include <QNetworkReply>
#include <QObject>
#include <QTcpSocket>

View File

@ -19,7 +19,6 @@
#include "snarlnetwork.h"
#include "core/snore.h"
#include <QtCore>
#include <QTcpServer>
#include <QTcpSocket>

View File

@ -22,7 +22,6 @@
#include "core/log.h"
#include "parser.h"
#include <QPointer>
#include <QTcpSocket>
#include <QTcpServer>

View File

@ -18,8 +18,11 @@
#include "toasty.h"
#include "toastysettings.h"
#include <QtNetwork>
#include <QImage>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QHttpMultiPart>
#include <QFile>
using namespace Snore;