Skip to content

Commit

Permalink
do some header includes clean-up as recommended by compiler
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Gallien <[email protected]>
  • Loading branch information
mgallien committed Apr 10, 2024
1 parent 31dc9e2 commit 7f426ba
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 20 deletions.
2 changes: 2 additions & 0 deletions src/gui/accountstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/

#include "accountstate.h"

#include "accountmanager.h"
#include "remotewipe.h"
#include "account.h"
Expand All @@ -23,6 +24,7 @@
#include "ocsnavigationappsjob.h"
#include "ocsuserstatusconnector.h"
#include "pushnotifications.h"
#include "networkjobs.h"

#include <QSettings>
#include <QTimer>
Expand Down
18 changes: 9 additions & 9 deletions src/gui/creds/webflowcredentials.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

#include "creds/httpcredentials.h"
#include "creds/keychainchunk.h"
#include "accessmanager.h"
#include "account.h"
#include "configfile.h"
#include "theme.h"
#ifdef WITH_WEBENGINE
#include "wizard/webview.h"
#endif // WITH_WEBENGINE
#include "webflowcredentialsdialog.h"
#include "networkjobs.h"

#include <QAuthenticator>
#include <QNetworkAccessManager>
Expand All @@ -12,15 +21,6 @@
#include <QVBoxLayout>
#include <QLabel>

#include "accessmanager.h"
#include "account.h"
#include "configfile.h"
#include "theme.h"
#ifdef WITH_WEBENGINE
#include "wizard/webview.h"
#endif // WITH_WEBENGINE
#include "webflowcredentialsdialog.h"

using namespace QKeychain;

namespace OCC {
Expand Down
1 change: 1 addition & 0 deletions src/gui/editlocallymanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "editlocallymanager.h"

#include <QUrl>
#include <QUrlQuery>
#include <QLoggingCategory>

namespace OCC {
Expand Down
2 changes: 2 additions & 0 deletions src/gui/tray/talkreply.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "talkreply.h"

#include "accountstate.h"
#include "networkjobs.h"

#include <QJsonDocument>
#include <QJsonObject>
Expand Down
6 changes: 4 additions & 2 deletions src/libsync/abstractnetworkjob.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@
#pragma once

#include "owncloudlib.h"

#include "accountfwd.h"
#include "common/asserts.h"

#include <QObject>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QPointer>
#include <QElapsedTimer>
#include <QDateTime>
#include <QTimer>
#include "accountfwd.h"
#include "common/asserts.h"

class QUrl;

Expand Down
14 changes: 8 additions & 6 deletions src/libsync/account.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
#ifndef SERVERCONNECTION_H
#define SERVERCONNECTION_H

#include "capabilities.h"
#include "clientsideencryption.h"
#include "clientstatusreporting.h"
#include "common/utility.h"
#include "syncfileitem.h"

#include <QByteArray>
#include <QUrl>
#include <QNetworkCookie>
Expand All @@ -26,17 +32,13 @@
#include <QSslCipher>
#include <QSslError>
#include <QSharedPointer>
#include <QHttpMultiPart>
#include <QTimer>

#ifndef TOKEN_AUTH_ONLY
#include <QPixmap>
#endif

#include "capabilities.h"
#include "clientsideencryption.h"
#include "clientstatusreporting.h"
#include "common/utility.h"
#include "syncfileitem.h"

#include <memory>

class QSettings;
Expand Down
7 changes: 4 additions & 3 deletions src/libsync/clientsideencryption.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#ifndef CLIENTSIDEENCRYPTION_H
#define CLIENTSIDEENCRYPTION_H

#include "owncloudlib.h"

#include "clientsideencryptionprimitives.h"
#include "accountfwd.h"

#include <QString>
#include <QObject>
Expand All @@ -12,12 +15,10 @@
#include <QFile>
#include <QVector>
#include <QMap>
#include <QHash>

#include <openssl/evp.h>

#include "accountfwd.h"
#include "networkjobs.h"

namespace QKeychain {
class Job;
class WritePasswordJob;
Expand Down
5 changes: 5 additions & 0 deletions src/libsync/encryptedfoldermetadatahandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,18 @@

#pragma once

#include "owncloudlib.h"

#include "account.h"
#include "rootencryptedfolderinfo.h"
#include "common/syncjournaldb.h"

#include <QHash>
#include <QMutex>
#include <QObject>
#include <QSslCertificate>
#include <QString>
#include <QPointer>

namespace OCC {
class FolderMetadata;
Expand Down

0 comments on commit 7f426ba

Please sign in to comment.