Commit 75308847 authored by Laurent Montel's avatar Laurent Montel 😁

Remove not necessary Q_SLOT macro

parent 7684067e
......@@ -51,7 +51,7 @@ public:
Q_SIGNALS:
void finished();
private Q_SLOTS:
private:
void slotAddEndLine();
void slotAddError(const QString &message);
void slotAddInfo(const QString &message);
......@@ -60,16 +60,16 @@ private Q_SLOTS:
void slotBackupDone();
void slotJobFinished();
void slotRestoreDone();
private:
void initializeLogInFile();
void closeLogFile();
QString mTemplateFileName;
QString mImportExportFileName;
PimSettingsBackupRestore *mPimSettingsBackupRestore;
LogInFile *mLogInFile;
LogInfo *mLogInfo;
PimSettingsBackupRestore *mPimSettingsBackupRestore = nullptr;
LogInFile *mLogInFile = nullptr;
LogInfo *mLogInfo = nullptr;
Mode mMode;
bool mInProgress;
bool mInProgress = false;
};
#endif // PIMSETTINGEXPORTERCONSOLE_H
......@@ -69,12 +69,6 @@ Q_SIGNALS:
void needSynchronizeResource(const QString &name, const QString &identifier);
void jobFinished();
private Q_SLOTS:
void slotAllResourceSynchronized();
void slotSynchronizeInstanceDone(const QString &, const QString &identifier);
void slotSynchronizeInstanceFailed(const QString &instance);
void slotTaskCanceled();
protected:
virtual void slotNextStep();
......@@ -133,7 +127,12 @@ protected:
static int sArchiveVersion;
private:
ImportExportProgressIndicatorBase *mImportExportProgressIndicator;
void slotAllResourceSynchronized();
void slotSynchronizeInstanceDone(const QString &, const QString &identifier);
void slotSynchronizeInstanceFailed(const QString &instance);
void slotTaskCanceled();
ImportExportProgressIndicatorBase *mImportExportProgressIndicator = nullptr;
};
#endif // ABSTRACTIMPORTEXPORTJOB_H
......@@ -33,12 +33,12 @@ public:
void start() override;
private Q_SLOTS:
private:
void slotCheckBackupConfig();
void slotCheckBackupResource();
void slotWriteNextArchiveResource();
void slotAddressbookJobTerminated();
private:
void backupConfig();
int mIndexIdentifier = 0;
};
......
......@@ -33,7 +33,7 @@ public:
void start() override;
private Q_SLOTS:
private:
void slotCheckBackupConfig();
void slotCheckBackupData();
};
......
......@@ -33,12 +33,12 @@ public:
void start() override;
private Q_SLOTS:
private:
void slotCheckBackupResource();
void slotCheckBackupConfig();
void slotAlarmJobTerminated();
void slotWriteNextArchiveResource();
private:
void backupConfig();
int mIndexIdentifier = 0;
};
......
......@@ -33,7 +33,7 @@ public:
void start() override;
private Q_SLOTS:
private:
void slotCheckBackupConfig();
void slotCheckBackupData();
};
......
......@@ -33,12 +33,12 @@ public:
void start() override;
private Q_SLOTS:
private:
void slotCheckBackupResource();
void slotCheckBackupConfig();
void slotCalendarJobTerminated();
void slotWriteNextArchiveResource();
private:
void backupConfig();
int mIndexIdentifier = 0;
};
......
......@@ -45,13 +45,12 @@ Q_SIGNALS:
void info(const QString &str);
void terminated();
private Q_SLOTS:
void slotTerminated(bool success);
public Q_SLOTS:
void slotTaskCanceled();
private:
void slotTerminated(bool success);
void finished();
QString mArchiveName;
QString mUrl;
......
......@@ -38,7 +38,7 @@ public:
Q_SIGNALS:
void taskCanceled();
private Q_SLOTS:
private:
void slotCheckBackupIdentity();
void slotCheckBackupMailTransport();
void slotCheckBackupConfig();
......@@ -46,7 +46,7 @@ private Q_SLOTS:
void slotCheckBackupResources();
void slotMailsJobTerminated();
void slotWriteNextArchiveResource();
private:
bool checkBackupType(Utils::StoredType type) const;
void backupTransports();
void backupResources();
......
......@@ -32,12 +32,12 @@ public:
void start() override;
private Q_SLOTS:
private:
void slotCheckBackupResource();
void slotCheckBackupConfig();
void slotNoteJobTerminated();
void slotWriteNextArchiveResource();
private:
void backupConfig();
void backupTheme();
int mIndexIdentifier = 0;
......
......@@ -58,6 +58,7 @@ PimSettingsBackupRestore::PimSettingsBackupRestore(QObject *parent)
PimSettingsBackupRestore::~PimSettingsBackupRestore()
{
delete mImportExportData;
mImportExportData = nullptr;
QFile f(mExportedInfoFileName);
if (f.exists()) {
const bool removeFile = f.remove();
......
......@@ -41,8 +41,6 @@ public:
void nextStep();
void closeArchive();
void setExportedInfoFileName(const QString &filename);
private Q_SLOTS:
void slotJobFinished();
Q_SIGNALS:
void addInfo(const QString &);
......@@ -62,6 +60,7 @@ protected:
virtual void addExportProgressIndicator();
AbstractImportExportJob *mImportExportData = nullptr;
private:
void slotJobFinished();
enum Action {
Backup,
Restore
......
......@@ -40,11 +40,10 @@ Q_SIGNALS:
void synchronizationInstanceDone(const QString &name, const QString &identifier);
void synchronizationInstanceFailed(const QString &);
private Q_SLOTS:
private:
void slotSynchronizationFinished(KJob *);
void slotNextSync();
private:
QStringList mListResources;
int mIndex = 0;
bool mOnlyCollection = true;
......
......@@ -29,10 +29,9 @@ public:
explicit PimSettingExporterConfigureDialog(QWidget *parent = nullptr);
~PimSettingExporterConfigureDialog();
private Q_SLOTS:
private:
void slotAccepted();
private:
PimSettingExporterConfigureWidget *mConfigureWidget = nullptr;
};
......
......@@ -33,10 +33,8 @@ public:
explicit ShowArchiveStructureDialog(const QString &filename, QWidget *parent = nullptr);
~ShowArchiveStructureDialog();
private Q_SLOTS:
void slotExportAsLogFile();
private:
void slotExportAsLogFile();
void exportAsLogFile();
bool fillTree();
void readConfig();
......
......@@ -32,12 +32,12 @@ public:
void setResources(const QHash<QString, QString> &resources);
QStringList resources() const;
private Q_SLOTS:
private:
void slotAccepted();
void slotSelectAll();
void slotUnselectAll();
private:
enum DataType {
ResourceIdentifier = Qt::UserRole + 1
};
......
......@@ -42,11 +42,11 @@ Q_SIGNALS:
void synchronizeInstanceDone(const QString &instance);
void synchronizeInstanceFailed(const QString &instance);
private Q_SLOTS:
private:
void slotSynchronizeInstanceFailed(const QString &identifier);
void slotSynchronizeInstanceDone(const QString &identifier);
void slotSynchronizeFinished();
private:
QStringList mResources;
QWidget *mWindowParent = nullptr;
QProgressDialog *mProgressDialog = nullptr;
......
......@@ -63,6 +63,9 @@ private:
void loadData(const QString &filename = QString(), const QString &templateFile = QString());
void setupActions(bool canZipFile);
void showFinishInformation();
QString mLastArchiveFileName;
// Name, identifier
QHash<QString, QString> mNeedToSyncResources;
LogWidget *mLogWidget= nullptr;
KRecentFilesAction *mRecentFilesAction= nullptr;
QAction *mBackupAction= nullptr;
......@@ -72,9 +75,6 @@ private:
QAction *mShowArchiveInformationsAction= nullptr;
QAction *mShowArchiveInformationsAboutCurrentArchiveAction= nullptr;
PimSettingsBackupRestoreUI *mPimSettingsBackupRestoreUI= nullptr;
QString mLastArchiveFileName;
// Name, identifier
QHash<QString, QString> mNeedToSyncResources;
PimSettingsTrayIcon *mTrayIcon = nullptr;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment