Commit 46b37ae2 authored by Laurent Montel's avatar Laurent Montel 😁

Use override directly

parent 1fe7a9bb
......@@ -44,7 +44,7 @@ class MainWindow : public QMainWindow
public:
explicit MainWindow(QWidget *parent = nullptr);
virtual ~MainWindow();
~MainWindow() override;
private Q_SLOTS:
/**
......
......@@ -38,7 +38,7 @@ class MainWindow : public QMainWindow
public:
explicit MainWindow(QWidget * parent = nullptr);
virtual ~MainWindow();
~MainWindow() override;
public Q_SLOTS:
void getImage();
......
......@@ -44,7 +44,7 @@ class KGAPIBLOGGER_EXPORT BlogFetchJob : public KGAPI2::FetchJob
FetchBy fetchBy,
const AccountPtr &account = AccountPtr(),
QObject *parent = nullptr);
virtual ~BlogFetchJob();
~BlogFetchJob() override;
protected:
void start() override;
......
......@@ -35,7 +35,7 @@ class KGAPIBLOGGER_EXPORT Comment : public KGAPI2::Object
{
public:
explicit Comment();
virtual ~Comment();
~Comment() override;
QString id() const;
void setId(const QString &id);
......
......@@ -48,7 +48,7 @@ class KGAPIBLOGGER_EXPORT CommentApproveJob : public KGAPI2::ModifyJob
ApprovalAction action,
const AccountPtr &account,
QObject *parent = nullptr);
virtual ~CommentApproveJob();
~CommentApproveJob() override;
protected:
void start() override;
......
......@@ -42,7 +42,7 @@ class KGAPIBLOGGER_EXPORT CommentDeleteContentJob : public KGAPI2::ModifyJob
explicit CommentDeleteContentJob(const CommentPtr &comment,
const AccountPtr &account,
QObject *parent = nullptr);
virtual ~CommentDeleteContentJob();
~CommentDeleteContentJob() override;
protected:
void start() override;
......
......@@ -42,7 +42,7 @@ class KGAPIBLOGGER_EXPORT CommentDeleteJob : public KGAPI2::DeleteJob
explicit CommentDeleteJob(const CommentPtr &comment,
const AccountPtr &account,
QObject *parent = nullptr);
virtual ~CommentDeleteJob();
~CommentDeleteJob() override;
protected:
void start() override;
......
......@@ -62,7 +62,7 @@ class KGAPIBLOGGER_EXPORT CommentFetchJob : public KGAPI2::FetchJob
explicit CommentFetchJob(const QString &blogId,
const AccountPtr &account = AccountPtr(),
QObject *parent = nullptr);
virtual ~CommentFetchJob();
~CommentFetchJob() override;
QDateTime endDate() const;
void setEndDate(const QDateTime &endDate);
......
......@@ -41,7 +41,7 @@ class KGAPIBLOGGER_EXPORT Page : public KGAPI2::Object
Imported
};
explicit Page();
virtual ~Page();
~Page() override;
QString id() const;
void setId(const QString &id);
......
......@@ -37,7 +37,7 @@ class KGAPIBLOGGER_EXPORT PageCreateJob : public KGAPI2::CreateJob
explicit PageCreateJob(const PagePtr &page,
const AccountPtr &account,
QObject *parent = nullptr);
virtual ~PageCreateJob();
~PageCreateJob() override;
protected:
void start() override;
......
......@@ -41,7 +41,7 @@ class KGAPIBLOGGER_EXPORT PageDeleteJob : public KGAPI2::DeleteJob
const QString &pageId,
const AccountPtr &account,
QObject *parent = nullptr );
virtual ~PageDeleteJob();
~PageDeleteJob() override;
protected:
void start() override;
......
......@@ -52,7 +52,7 @@ class KGAPIBLOGGER_EXPORT PageFetchJob : public KGAPI2::FetchJob
const QString &pageId,
const AccountPtr &account = AccountPtr(),
QObject *parent = nullptr);
virtual ~PageFetchJob();
~PageFetchJob() override;
bool fetchContent() const;
void setFetchContent(bool fetchContent);
......
......@@ -37,7 +37,7 @@ class KGAPIBLOGGER_EXPORT PageModifyJob : public KGAPI2::ModifyJob
explicit PageModifyJob(const PagePtr &page,
const AccountPtr &account,
QObject *parent = nullptr);
virtual ~PageModifyJob();
~PageModifyJob() override;
protected:
void start() override;
......
......@@ -38,7 +38,7 @@ class KGAPIBLOGGER_EXPORT Post : public KGAPI2::Object
{
public:
Post();
virtual ~Post();
~Post() override;
QString id();
void setId(const QString &id);
......
......@@ -38,7 +38,7 @@ class KGAPIBLOGGER_EXPORT PostCreateJob : public KGAPI2::CreateJob
bool isDraft,
const AccountPtr &account,
QObject *parent = nullptr);
virtual ~PostCreateJob();
~PostCreateJob() override;
protected:
void start() override;
......
......@@ -41,7 +41,7 @@ class KGAPIBLOGGER_EXPORT PostDeleteJob : public KGAPI2::DeleteJob
explicit PostDeleteJob(const PostPtr &post,
const AccountPtr &account,
QObject *parent = nullptr);
virtual ~PostDeleteJob();
~PostDeleteJob() override;
protected:
......
......@@ -83,7 +83,7 @@ class KGAPIBLOGGER_EXPORT PostFetchJob : public KGAPI2::FetchJob
const QString &postId,
const AccountPtr &account = AccountPtr(),
QObject *parent = nullptr);
virtual ~PostFetchJob();
~PostFetchJob() override;
bool fetchBodies() const;
void setFetchBodies(bool fetchBodies);
......
......@@ -37,7 +37,7 @@ class KGAPIBLOGGER_EXPORT PostModifyJob : public KGAPI2::ModifyJob
explicit PostModifyJob(const PostPtr &post,
const AccountPtr &account,
QObject *parent = nullptr);
virtual ~PostModifyJob();
~PostModifyJob() override;
protected:
void start() override;
......
......@@ -58,7 +58,7 @@ class KGAPIBLOGGER_EXPORT PostPublishJob : public KGAPI2::Job
const QDateTime &publishDate,
const AccountPtr &account,
QObject *parent = nullptr);
virtual ~PostPublishJob();
~PostPublishJob() override;
ObjectPtr item() const;
......
......@@ -41,7 +41,7 @@ class KGAPIBLOGGER_EXPORT PostSearchJob : public KGAPI2::FetchJob
const QString &query,
const AccountPtr &account = AccountPtr(),
QObject *parent = nullptr);
virtual ~PostSearchJob();
~PostSearchJob() override;
bool fetchBodies() const;
void setFetchBodies(bool fetchBodies);
......
......@@ -55,7 +55,7 @@ class KGAPICALENDAR_EXPORT Calendar: public KGAPI2::Object
/**
* @brief Destructor
*/
virtual ~Calendar();
~Calendar() override;
/**
* @brief Returns uID of the calendar.
......
......@@ -66,7 +66,7 @@ class KGAPICALENDAR_EXPORT CalendarCreateJob : public KGAPI2::CreateJob
/**
* @brief Destructor
*/
virtual ~CalendarCreateJob();
~CalendarCreateJob() override;
protected:
......
......@@ -90,7 +90,7 @@ class KGAPICALENDAR_EXPORT CalendarDeleteJob : public KGAPI2::DeleteJob
/**
* @brief Destructor
*/
virtual ~CalendarDeleteJob();
~CalendarDeleteJob() override;
protected:
......
......@@ -63,7 +63,7 @@ class KGAPICALENDAR_EXPORT CalendarFetchJob : public KGAPI2::FetchJob
/**
* @brief Destructor
*/
virtual ~CalendarFetchJob();
~CalendarFetchJob() override;
protected:
......
......@@ -65,7 +65,7 @@ class KGAPICALENDAR_EXPORT CalendarModifyJob : public KGAPI2::ModifyJob
/**
* @brief Destructor
*/
virtual ~CalendarModifyJob();
~CalendarModifyJob() override;
protected:
......
......@@ -67,7 +67,7 @@ class KGAPICALENDAR_EXPORT EventCreateJob : public KGAPI2::CreateJob
/**
* @brief Destructor
*/
virtual ~EventCreateJob();
~EventCreateJob() override;
protected:
......
......@@ -94,7 +94,7 @@ class KGAPICALENDAR_EXPORT EventDeleteJob : public KGAPI2::DeleteJob
/**
* @brief Destructor
*/
virtual ~EventDeleteJob();
~EventDeleteJob() override;
protected:
......
......@@ -147,7 +147,7 @@ class KGAPICALENDAR_EXPORT EventFetchJob : public KGAPI2::FetchJob
/**
* @brief Destructor
*/
virtual ~EventFetchJob();
~EventFetchJob() override;
/**
* @brief Sets fulltext filter.
......
......@@ -67,7 +67,7 @@ class KGAPICALENDAR_EXPORT EventModifyJob : public KGAPI2::ModifyJob
/**
* @brief Destructor
*/
virtual ~EventModifyJob();
~EventModifyJob() override;
protected:
......
......@@ -103,7 +103,7 @@ class KGAPICALENDAR_EXPORT EventMoveJob : public KGAPI2::ModifyJob
/**
* @brief Destructor
*/
virtual ~EventMoveJob();
~EventMoveJob() override;
protected:
......
......@@ -62,7 +62,7 @@ class KGAPICONTACTS_EXPORT ContactCreateJob : public KGAPI2::CreateJob
/**
* @brief Destructor
*/
virtual ~ContactCreateJob();
~ContactCreateJob() override;
protected:
......
......@@ -90,7 +90,7 @@ class KGAPICONTACTS_EXPORT ContactDeleteJob : public KGAPI2::DeleteJob
/**
* @brief Destructor
*/
virtual ~ContactDeleteJob();
~ContactDeleteJob() override;
protected:
......
......@@ -111,7 +111,7 @@ class KGAPICONTACTS_EXPORT ContactFetchJob : public KGAPI2::FetchJob
/**
* @brief Destructor
*/
virtual ~ContactFetchJob();
~ContactFetchJob() override;
/**
* @brief Returns whether deleted contacts are fetched.
......
......@@ -63,7 +63,7 @@ class KGAPICONTACTS_EXPORT ContactFetchPhotoJob : public KGAPI2::FetchJob
/**
* @brief Destructor
*/
virtual ~ContactFetchPhotoJob();
~ContactFetchPhotoJob() override;
Q_SIGNALS:
......
......@@ -65,7 +65,7 @@ class KGAPICONTACTS_EXPORT ContactModifyJob : public KGAPI2::ModifyJob
/**
* @brief Destructor
*/
virtual ~ContactModifyJob();
~ContactModifyJob() override;
protected:
......
......@@ -62,7 +62,7 @@ class KGAPICONTACTS_EXPORT ContactsGroup : public KGAPI2::Object
/**
* @brief Destructor
*/
virtual ~ContactsGroup();
~ContactsGroup() override;
/**
* @brief Sets group ID
......
......@@ -68,7 +68,7 @@ class KGAPICONTACTS_EXPORT ContactsGroupCreateJob : public KGAPI2::CreateJob
/**
* @brief Destructor
*/
virtual ~ContactsGroupCreateJob();
~ContactsGroupCreateJob() override;
protected:
......
......@@ -95,7 +95,7 @@ class KGAPICONTACTS_EXPORT ContactsGroupDeleteJob : public KGAPI2::DeleteJob
/**
* @brief Destructor
*/
virtual ~ContactsGroupDeleteJob();
~ContactsGroupDeleteJob() override;
protected:
......
......@@ -65,7 +65,7 @@ class KGAPICONTACTS_EXPORT ContactsGroupFetchJob : public KGAPI2::FetchJob
/**
* @brief Destructor
*/
virtual ~ContactsGroupFetchJob();
~ContactsGroupFetchJob() override;
protected:
......
......@@ -67,7 +67,7 @@ class KGAPICONTACTS_EXPORT ContactsGroupModifyJob : public KGAPI2::ModifyJob
/**
* @brief Destructor.
*/
virtual ~ContactsGroupModifyJob();
~ContactsGroupModifyJob() override;
protected:
/**
......
......@@ -54,7 +54,7 @@ class KGAPICORE_EXPORT AccountInfoFetchJob : public KGAPI2::FetchJob
/**
* @brief Destructor
*/
virtual ~AccountInfoFetchJob();
~AccountInfoFetchJob() override;
protected:
......
......@@ -98,7 +98,7 @@ class KGAPICORE_EXPORT AuthJob : public KGAPI2::Job
/**
* @brief Destructor
*/
virtual ~AuthJob();
~AuthJob() override;
/**
* @brief Returns reauthenticated account.
......
......@@ -60,7 +60,7 @@ class KGAPICORE_EXPORT CreateJob: public KGAPI2::Job
/**
* @brief Destructor
*/
virtual ~CreateJob();
~CreateJob() override;
/**
* @return Returns newly created items
......
......@@ -59,7 +59,7 @@ class KGAPICORE_EXPORT DeleteJob : public KGAPI2::Job
/**
* @brief Destructor
*/
virtual ~DeleteJob();
~DeleteJob() override;
protected:
......
......@@ -59,7 +59,7 @@ class KGAPICORE_EXPORT FetchJob : public KGAPI2::Job
/**
* @brief Destructor
*/
virtual ~FetchJob();
~FetchJob() override;
/**
* @brief Returns all items fetched by this job.
......
......@@ -99,7 +99,7 @@ class KGAPICORE_EXPORT Job : public QObject
/**
* @brief Destructor
*/
virtual ~Job();
~Job() override;
/**
* @brief Error code
......
......@@ -58,7 +58,7 @@ class KGAPICORE_EXPORT ModifyJob : public KGAPI2::Job
/**
* Destructor
*/
virtual ~ModifyJob();
~ModifyJob() override;
/**
* @return Returns modified items.
......
......@@ -39,7 +39,7 @@ class KGAPICORE_EXPORT NewTokensFetchJob : public KGAPI2::Job
public:
explicit NewTokensFetchJob(const QString &tmpToken, const QString &apiKey, const QString &secretKey, int localPort, QObject* parent = nullptr);
virtual ~NewTokensFetchJob();
~NewTokensFetchJob() override;
QString accessToken() const;
QString refreshToken() const;
......
......@@ -61,7 +61,7 @@ class KGAPICORE_EXPORT AuthWidget : public QWidget
explicit AuthWidget(QWidget* parent = nullptr);
virtual ~AuthWidget();
~AuthWidget() override;
/**
* Runs the authentication.
......
......@@ -46,7 +46,7 @@ class Q_DECL_HIDDEN AuthWidgetPrivate: public QObject {
public:
explicit AuthWidgetPrivate(AuthWidget *parent);
virtual ~AuthWidgetPrivate();
~AuthWidgetPrivate() override;
bool showProgressBar;
QString username;
......
......@@ -95,7 +95,7 @@ class KGAPIDRIVE_EXPORT AboutFetchJob : public KGAPI2::FetchJob
* @param parent
*/
explicit AboutFetchJob(const AccountPtr &account, QObject *parent = nullptr);
virtual ~AboutFetchJob();
~AboutFetchJob() override;
/**
* @brief Returns whether to include shared and public files to change IDs count.
......
......@@ -39,7 +39,7 @@ class KGAPIDRIVE_EXPORT AppFetchJob : public KGAPI2::FetchJob
explicit AppFetchJob(const AccountPtr &account, QObject *parent = nullptr);
explicit AppFetchJob(const QString &appId, const AccountPtr &account,
QObject *parent = nullptr);
virtual ~AppFetchJob();
~AppFetchJob() override;
protected:
void start() override;
......
......@@ -49,7 +49,7 @@ class KGAPIDRIVE_EXPORT Change: public KGAPI2::Object
public:
explicit Change();
explicit Change(const Change& other);
virtual ~Change();
~Change() override;
/**
* @brief Returns the id of the change.
......
......@@ -90,7 +90,7 @@ class KGAPIDRIVE_EXPORT ChangeFetchJob : public KGAPI2::FetchJob
explicit ChangeFetchJob(const AccountPtr &account, QObject *parent = nullptr);
explicit ChangeFetchJob(const QString &changeId, const AccountPtr &account,
QObject *parent = nullptr);
virtual ~ChangeFetchJob();
~ChangeFetchJob() override;
bool includeSubscribed() const;
void setIncludeSubscribed(bool includeSubscribed);
......
......@@ -50,7 +50,7 @@ class KGAPIDRIVE_EXPORT ChildReference: public KGAPI2::Object
public:
explicit ChildReference(const QString &id);
explicit ChildReference(const ChildReference &other);
virtual ~ChildReference();
~ChildReference() override;
/**
* @brief Returns the id of the child.
......
......@@ -55,7 +55,7 @@ class KGAPIDRIVE_EXPORT ChildReferenceCreateJob : public KGAPI2::CreateJob
const ChildReferencesList &references,
const AccountPtr &account,
QObject *parent = nullptr);
virtual ~ChildReferenceCreateJob();
~ChildReferenceCreateJob() override;
protected:
void start() override;
......
......@@ -55,7 +55,7 @@ class KGAPIDRIVE_EXPORT ChildReferenceDeleteJob : public KGAPI2::DeleteJob
const ChildReferencesList &references,
const AccountPtr &account,
QObject *parent = nullptr);
virtual ~ChildReferenceDeleteJob();
~ChildReferenceDeleteJob() override;
protected:
void start() override;
......
......@@ -44,7 +44,7 @@ class KGAPIDRIVE_EXPORT ChildReferenceFetchJob : public KGAPI2::FetchJob
const QString &childId,
const AccountPtr &account,
QObject *parent = nullptr);
virtual ~ChildReferenceFetchJob();
~ChildReferenceFetchJob() override;
protected:
void start() override;
......
......@@ -101,7 +101,7 @@ class KGAPIDRIVE_EXPORT FileAbstractDataJob : public KGAPI2::Job
public:
explicit FileAbstractDataJob(const AccountPtr &account,
QObject *parent = nullptr);
virtual ~FileAbstractDataJob();
~FileAbstractDataJob() override;
bool convert() const;
void setConvert(bool convert);
......
......@@ -47,7 +47,7 @@ class KGAPIDRIVE_EXPORT FileAbstractModifyJob : public KGAPI2::ModifyJob
const AccountPtr &account, QObject *parent = nullptr);
explicit FileAbstractModifyJob(const FilesList &files,
const AccountPtr &account, QObject *parent = nullptr);
virtual ~FileAbstractModifyJob();
~FileAbstractModifyJob() override;
protected:
void start() override;
......
......@@ -71,7 +71,7 @@ class KGAPIDRIVE_EXPORT FileAbstractUploadJob : public KGAPI2::Drive::FileAbstra
explicit FileAbstractUploadJob(const QMap < QString /* file path */,
FilePtr /* metadata */ > &files,
const AccountPtr &account, QObject *parent = nullptr);
virtual ~FileAbstractUploadJob();
~FileAbstractUploadJob() override;
bool useContentAsIndexableText() const;
void setUseContentAsIndexableText(bool useContentAsIndexableText);
......
......@@ -51,7 +51,7 @@ class KGAPIDRIVE_EXPORT FileCopyJob : public KGAPI2::Drive::FileAbstractDataJob
explicit FileCopyJob(const QMap < FilePtr /* source file */,
FilePtr /* destination file */ > &files,
const AccountPtr &account, QObject *parent = nullptr);
virtual ~FileCopyJob();
~FileCopyJob() override;
FilesList files() const;
......
......@@ -50,7 +50,7 @@ class KGAPIDRIVE_EXPORT FileCreateJob : public KGAPI2::Drive::FileAbstractUpload
const AccountPtr &account, QObject *parent = nullptr);
explicit FileCreateJob(const QMap < QString /* filepath */, FilePtr /* metadata */ > &files,
const AccountPtr &account, QObject *parent = nullptr);
virtual ~FileCreateJob();
~FileCreateJob() override;
protected:
QNetworkReply *dispatch(QNetworkAccessManager *accessManager,
......