Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

USe override keyword

parent e2cc8730
......@@ -40,7 +40,7 @@ class InvitationsAgentItem : public QObject
public:
InvitationsAgentItem(InvitationsAgent *a, const Akonadi::Item &originalItem);
virtual ~InvitationsAgentItem();
~InvitationsAgentItem() override;
void add(const Akonadi::Item &newItem);
private Q_SLOTS:
......@@ -60,7 +60,7 @@ class InvitationsAgent : public Akonadi::AgentBase, public Akonadi::AgentBase::O
public:
explicit InvitationsAgent(const QString &id);
virtual ~InvitationsAgent();
~InvitationsAgent() override;
Akonadi::Collection collection() const;
......
......@@ -50,7 +50,7 @@ public:
/**
* Destroys the outbox queue.
*/
virtual ~OutboxQueue();
~OutboxQueue() override;
/**
* Returns whether the queue is empty.
......
......@@ -50,7 +50,7 @@ public:
/**
* Destroys the send job.
*/
virtual ~SendJob();
~SendJob() override;
/**
* Starts the job.
......
......@@ -48,7 +48,7 @@ public:
/**
* Destroys the store result job.
*/
virtual ~StoreResultJob();
~StoreResultJob() override;
bool success() const;
QString message() const;
......
......@@ -108,7 +108,7 @@ class MigrationScheduler : public QObject
Q_OBJECT
public:
explicit MigrationScheduler(KJobTrackerInterface *jobTracker = nullptr, QObject *parent = nullptr);
virtual ~MigrationScheduler();
~MigrationScheduler() override;
void addMigrator(const QSharedPointer<MigratorBase> &migrator);
......
......@@ -31,7 +31,7 @@ class AkonadiSlave : public KIO::SlaveBase
{
public:
AkonadiSlave(const QByteArray &pool_socket, const QByteArray &app_socket);
virtual ~AkonadiSlave();
~AkonadiSlave() override;
/**
* Reimplemented from SlaveBase
......
......@@ -41,7 +41,7 @@ class POP3Protocol : public KIO::TCPSlaveBase
{
public:
POP3Protocol(const QByteArray &pool, const QByteArray &app, bool SSL);
virtual ~POP3Protocol();
~POP3Protocol() override;
virtual void setHost(const QString &host, quint16 port, const QString &user, const QString &pass) override;
......
......@@ -47,7 +47,7 @@ public:
/**
* Destroys the item fetch job.
*/
virtual ~GidMigrationJob();
~GidMigrationJob() override;
void doStart() override;
......@@ -70,7 +70,7 @@ class UpdateJob : public Akonadi::Job
Q_OBJECT
public:
explicit UpdateJob(const Akonadi::Collection &col, QObject *parent = nullptr);
virtual ~UpdateJob();
~UpdateJob() override;
void doStart() override;
void slotResult(KJob *job) override;
......
......@@ -28,7 +28,7 @@ class GidMigrator : public MigratorBase
Q_OBJECT
public:
GidMigrator(const QString &mimeType);
virtual ~GidMigrator();
~GidMigrator() override;
QString displayName() const override;
QString description() const override;
......
......@@ -51,7 +51,7 @@ public:
Q_ENUM(MigrationState)
KMigratorBase();
virtual ~KMigratorBase();
~KMigratorBase() override;
/**
* Read resource migration state.
......
......@@ -97,7 +97,7 @@ public:
*/
explicit MigratorBase(const QString &identifier, const QString &configFile, const QString &logFile, QObject *parent = nullptr);
virtual ~MigratorBase();
~MigratorBase() override;
QString identifier() const;
......
......@@ -38,7 +38,7 @@ class ConfigDialog : public QDialog
public:
explicit ConfigDialog(QWidget *parent = nullptr);
virtual ~ConfigDialog();
~ConfigDialog() override;
void setPassword(const QString &password);
......
......@@ -32,7 +32,7 @@ class SearchDialog : public QDialog
public:
explicit SearchDialog(QWidget *parent = nullptr);
virtual ~SearchDialog();
~SearchDialog() override;
bool useDefaultCredentials() const;
......
......@@ -54,7 +54,7 @@ public:
};
Settings();
virtual ~Settings();
~Settings() override;
static Settings *self();
void setWinId(WId wid);
void cleanup();
......
......@@ -27,7 +27,7 @@ class GmailChangeItemsLabelsTask : public ChangeItemsFlagsTask
Q_OBJECT
public:
explicit GmailChangeItemsLabelsTask(ResourceStateInterface::Ptr resource, QObject *parent = nullptr);
virtual ~GmailChangeItemsLabelsTask();
~GmailChangeItemsLabelsTask() override;
protected:
void doStart(KIMAP::Session *session);
......
......@@ -39,7 +39,7 @@ class GmailConfigDialog : public QDialog
public:
explicit GmailConfigDialog(GmailResource *resource, WId parent);
virtual ~GmailConfigDialog();
~GmailConfigDialog() override;
bool shouldClearCache() const;
......
......@@ -28,7 +28,7 @@ class GmailLabelAttribute : public Akonadi::Attribute
public:
explicit GmailLabelAttribute();
explicit GmailLabelAttribute(const QByteArray &label);
virtual ~GmailLabelAttribute();
~GmailLabelAttribute() override;
QByteArray label() const;
void setLabel(const QByteArray &label);
......
......@@ -35,7 +35,7 @@ class GmailLinkItemsTask : public QObject
public:
explicit GmailLinkItemsTask(GmailRetrieveItemsTask *retrieveTask, GmailResource *parent0);
virtual ~GmailLinkItemsTask();
~GmailLinkItemsTask() override;
Q_SIGNALS:
void done();
......
......@@ -29,7 +29,7 @@ class GmailPasswordRequester : public PasswordRequesterInterface
public:
GmailPasswordRequester(GmailResource *resource, QObject *parent);
virtual ~GmailPasswordRequester();
~GmailPasswordRequester() override;
virtual void requestPassword(RequestType request = StandardRequest, const QString &serverError = QString());
......
......@@ -37,7 +37,7 @@ class GoogleAccountManager : public QObject
public:
explicit GoogleAccountManager(QObject *parent = nullptr);
virtual ~GoogleAccountManager();
~GoogleAccountManager() override;
bool isReady() const;
......
......@@ -46,7 +46,7 @@ class GoogleResource : public Akonadi::ResourceBase, public Akonadi::AgentBase::
public:
explicit GoogleResource(const QString &id);
virtual ~GoogleResource();
~GoogleResource() override;
virtual GoogleSettings *settings() const = 0;
virtual QList<QUrl> scopes() const = 0;
......
......@@ -43,7 +43,7 @@ class GoogleSettingsDialog : public QDialog
public:
explicit GoogleSettingsDialog(GoogleAccountManager *accountManager, WId wId, GoogleResource *parent);
virtual ~GoogleSettingsDialog();
~GoogleSettingsDialog() override;
GoogleAccountManager *accountManager() const;
KGAPI2::AccountPtr currentAccount() const;
......
......@@ -34,7 +34,7 @@ class AddCollectionTask : public ResourceTask
public:
explicit AddCollectionTask(const ResourceStateInterface::Ptr &resource, QObject *parent = nullptr);
virtual ~AddCollectionTask();
~AddCollectionTask() override;
protected:
void doStart(KIMAP::Session *session) override;
......
......@@ -30,7 +30,7 @@ class AddItemTask : public ResourceTask
public:
explicit AddItemTask(const ResourceStateInterface::Ptr &resource, QObject *parent = nullptr);
virtual ~AddItemTask();
~AddItemTask() override;
protected:
......
......@@ -35,7 +35,7 @@ class BatchFetcher : public KJob
Q_OBJECT
public:
BatchFetcher(MessageHelper::Ptr messageHelper, const KIMAP::ImapSet &set, const KIMAP::FetchJob::FetchScope &scope, int batchSize, KIMAP::Session *session);
virtual ~BatchFetcher();
~BatchFetcher() override;
void start() override;
void fetchNextBatch();
void setUidBased(bool);
......
......@@ -30,7 +30,7 @@ class ChangeCollectionTask : public ResourceTask
public:
explicit ChangeCollectionTask(const ResourceStateInterface::Ptr &resource, QObject *parent = nullptr);
virtual ~ChangeCollectionTask();
~ChangeCollectionTask() override;
void syncEnabledState(bool);
......
......@@ -32,7 +32,7 @@ class ChangeItemsFlagsTask : public ResourceTask
public:
explicit ChangeItemsFlagsTask(const ResourceStateInterface::Ptr &resource, QObject *parent = nullptr);
virtual ~ChangeItemsFlagsTask();
~ChangeItemsFlagsTask() override;
protected Q_SLOTS:
void onSelectDone(KJob *job);
......
......@@ -30,7 +30,7 @@ class ChangeItemTask : public ResourceTask
public:
explicit ChangeItemTask(const ResourceStateInterface::Ptr &resource, QObject *parent = nullptr);
virtual ~ChangeItemTask();
~ChangeItemTask() override;
private Q_SLOTS:
void onAppendMessageDone(KJob *job);
......
......@@ -30,7 +30,7 @@ class ExpungeCollectionTask : public ResourceTask
public:
explicit ExpungeCollectionTask(const ResourceStateInterface::Ptr &resource, QObject *parent = nullptr);
virtual ~ExpungeCollectionTask();
~ExpungeCollectionTask() override;
private Q_SLOTS:
void onSelectDone(KJob *job);
......
......@@ -35,7 +35,7 @@ class ImapResource : public ImapResourceBase
public:
explicit ImapResource(const QString &id);
virtual ~ImapResource();
~ImapResource() override;
QDialog *createConfigureDialog(WId windowId) override;
......
......@@ -30,7 +30,7 @@ class MoveCollectionTask : public ResourceTask
public:
explicit MoveCollectionTask(const ResourceStateInterface::Ptr &resource, QObject *parent = nullptr);
virtual ~MoveCollectionTask();
~MoveCollectionTask() override;
private Q_SLOTS:
void onExamineDone(KJob *job);
......
......@@ -32,7 +32,7 @@ class MoveItemsTask : public ResourceTask
public:
explicit MoveItemsTask(const ResourceStateInterface::Ptr &resource, QObject *parent = nullptr);
virtual ~MoveItemsTask();
~MoveItemsTask() override;
private Q_SLOTS:
void onSelectDone(KJob *job);
......
......@@ -32,7 +32,7 @@ class RemoveCollectionRecursiveTask : public ResourceTask
public:
explicit RemoveCollectionRecursiveTask(const ResourceStateInterface::Ptr &resource, QObject *parent = nullptr);
virtual ~RemoveCollectionRecursiveTask();
~RemoveCollectionRecursiveTask() override;
private Q_SLOTS:
void onMailBoxesReceived(const QList<KIMAP::MailBoxDescriptor> &descriptors, const QList< QList<QByteArray> > &flags);
......
......@@ -50,7 +50,7 @@ public:
Q_ENUM(ActionIfNoSession)
explicit ResourceTask(ActionIfNoSession action, ResourceStateInterface::Ptr resource, QObject *parent = nullptr);
virtual ~ResourceTask();
~ResourceTask() override;
void start(SessionPool *pool);
......
......@@ -30,7 +30,7 @@ class RetrieveCollectionMetadataTask : public ResourceTask
public:
explicit RetrieveCollectionMetadataTask(const ResourceStateInterface::Ptr &resource, QObject *parent = nullptr);
virtual ~RetrieveCollectionMetadataTask();
~RetrieveCollectionMetadataTask() override;
private Q_SLOTS:
void onGetMetaDataDone(KJob *job);
......
......@@ -34,7 +34,7 @@ class RetrieveCollectionsTask : public ResourceTask
public:
explicit RetrieveCollectionsTask(const ResourceStateInterface::Ptr &resource, QObject *parent = nullptr);
virtual ~RetrieveCollectionsTask();
~RetrieveCollectionsTask() override;
private Q_SLOTS:
void onMailBoxesReceived(const QList<KIMAP::MailBoxDescriptor> &descriptors, const QList< QList<QByteArray> > &flags);
......
......@@ -38,7 +38,7 @@ class RetrieveItemsTask : public ResourceTask
public:
explicit RetrieveItemsTask(const ResourceStateInterface::Ptr &resource, QObject *parent = nullptr);
virtual ~RetrieveItemsTask();
~RetrieveItemsTask() override;
void setFetchMissingItemBodies(bool enabled);
public Q_SLOTS:
......
......@@ -32,7 +32,7 @@ class RetrieveItemTask : public ResourceTask
public:
explicit RetrieveItemTask(const ResourceStateInterface::Ptr &resource, QObject *parent = nullptr);
virtual ~RetrieveItemTask();
~RetrieveItemTask() override;
private Q_SLOTS:
void onSelectDone(KJob *job);
......
......@@ -33,7 +33,7 @@ class SettingsPasswordRequester : public PasswordRequesterInterface
public:
explicit SettingsPasswordRequester(ImapResourceBase *resource, QObject *parent = nullptr);
virtual ~SettingsPasswordRequester();
~SettingsPasswordRequester() override;
virtual void requestPassword(RequestType request = StandardRequest, const QString &serverError = QString()) override;
void cancelPasswordRequests() override;
......
......@@ -39,7 +39,7 @@ class KAlarmResource : public ICalResourceBase
Q_OBJECT
public:
explicit KAlarmResource(const QString &id);
virtual ~KAlarmResource();
~KAlarmResource() override;
protected:
/**
......
......@@ -27,7 +27,7 @@ class KolabMessageHelper : public MessageHelper
{
public:
explicit KolabMessageHelper(const Akonadi::Collection &collection);
virtual ~KolabMessageHelper();
~KolabMessageHelper() override;
Akonadi::Item createItemFromMessage(const KMime::Message::Ptr &message, const qint64 uid, const qint64 size, const QMap<QByteArray, QVariant> &attrs, const QList<QByteArray> &flags,
const KIMAP::FetchJob::FetchScope &scope, bool &ok) const override;
......
......@@ -35,7 +35,7 @@ class KolabRetrieveCollectionsTask : public ResourceTask
public:
explicit KolabRetrieveCollectionsTask(const ResourceStateInterface::Ptr &resource, QObject *parent = nullptr);
virtual ~KolabRetrieveCollectionsTask();
~KolabRetrieveCollectionsTask() override;
private Q_SLOTS:
void onMailBoxesReceived(const QList<KIMAP::MailBoxDescriptor> &descriptors, const QList< QList<QByteArray> > &flags);
......
......@@ -122,7 +122,7 @@ public:
QString m_location;
ErrorHandler::Severity m_severity;
DebugStream();
virtual ~DebugStream();
~DebugStream() override;
bool isSequential() const override
{
return true;
......
......@@ -78,7 +78,7 @@ public:
explicit Incidence(const QString &tz, const KCalCore::Incidence::Ptr &incidence = KCalCore::Incidence::Ptr());
public:
virtual ~Incidence();
~Incidence() override;
void saveTo(const KCalCore::Incidence::Ptr &incidence);
......
......@@ -58,7 +58,7 @@ public:
static QString journalToXML(const KCalCore::Journal::Ptr &, const QString &tz);
explicit Journal(const QString &tz, const KCalCore::Journal::Ptr &journal = KCalCore::Journal::Ptr());
virtual ~Journal();
~Journal() override;
QString type() const override
{
......
......@@ -65,7 +65,7 @@ public:
explicit Task( /*KCalCore::ResourceKolab *res, const QString& subResource, quint32 sernum,*/
const QString &tz, const KCalCore::Todo::Ptr &todo = KCalCore::Todo::Ptr());
virtual ~Task();
~Task() override;
QString type() const override
{
......
......@@ -41,7 +41,7 @@ class AccountDialog : public QDialog, private Ui::PopPage
public:
AccountDialog(POP3Resource *parentResource, WId parentWindow);
virtual ~AccountDialog();
~AccountDialog() override;
private Q_SLOTS:
void slotEnablePopInterval(bool state);
......
......@@ -40,7 +40,7 @@ class AKONADI_FILESTORE_EXPORT CollectionCreateJob : public Job
public:
explicit CollectionCreateJob(const Collection &collection, const Collection &targetParent, AbstractJobSession *session = nullptr);
virtual ~CollectionCreateJob();
~CollectionCreateJob() override;
Collection collection() const;
......
......@@ -40,7 +40,7 @@ class AKONADI_FILESTORE_EXPORT CollectionDeleteJob : public Job
public:
explicit CollectionDeleteJob(const Collection &collection, AbstractJobSession *session = nullptr);
virtual ~CollectionDeleteJob();
~CollectionDeleteJob() override;
Collection collection() const;
......
......@@ -47,7 +47,7 @@ public:
explicit CollectionFetchJob(const Collection &collection, Type type = FirstLevel, AbstractJobSession *session = nullptr);
virtual ~CollectionFetchJob();
~CollectionFetchJob() override;
Type type() const;
......
......@@ -40,7 +40,7 @@ class AKONADI_FILESTORE_EXPORT CollectionModifyJob : public Job
public:
explicit CollectionModifyJob(const Collection &collection, AbstractJobSession *session = nullptr);
virtual ~CollectionModifyJob();
~CollectionModifyJob() override;
Collection collection() const;
......
......@@ -40,7 +40,7 @@ class AKONADI_FILESTORE_EXPORT CollectionMoveJob : public Job
public:
explicit CollectionMoveJob(const Collection &collection, const Collection &targetParent, AbstractJobSession *session = nullptr);
virtual ~CollectionMoveJob();
~CollectionMoveJob() override;
Collection collection() const;
......
......@@ -40,7 +40,7 @@ class AKONADI_FILESTORE_EXPORT ItemCreateJob : public Job
public:
explicit ItemCreateJob(const Item &item, const Collection &collection, AbstractJobSession *session = nullptr);
virtual ~ItemCreateJob();
~ItemCreateJob() override;
Collection collection() const;
......
......@@ -39,7 +39,7 @@ class AKONADI_FILESTORE_EXPORT ItemDeleteJob : public Job
public:
explicit ItemDeleteJob(const Item &item, AbstractJobSession *session = nullptr);
virtual ~ItemDeleteJob();
~ItemDeleteJob() override;
Item item() const;
......
......@@ -46,7 +46,7 @@ public:
explicit ItemFetchJob(const Item::List &items, AbstractJobSession *session = nullptr);
virtual ~ItemFetchJob();
~ItemFetchJob() override;
Collection collection() const;
......
......@@ -39,7 +39,7 @@ class AKONADI_FILESTORE_EXPORT ItemModifyJob : public Job
public:
explicit ItemModifyJob(const Item &item, AbstractJobSession *session = nullptr);
virtual ~ItemModifyJob();
~ItemModifyJob() override;
void setIgnorePayload(bool ignorePayload);
......
......@@ -41,7 +41,7 @@ class AKONADI_FILESTORE_EXPORT ItemMoveJob : public Job
public:
ItemMoveJob(const Item &item, const Collection &targetParent, AbstractJobSession *session = nullptr);
virtual ~ItemMoveJob();
~ItemMoveJob() override;
Collection targetParent() const;
......
......@@ -89,7 +89,7 @@ public:
explicit Job(AbstractJobSession *session = nullptr);
virtual ~Job();
~Job() override;
void start() override;
......
......@@ -38,7 +38,7 @@ class AbstractJobSession : public QObject
public:
explicit AbstractJobSession(QObject *parent = nullptr);
virtual ~AbstractJobSession();
~AbstractJobSession() override;
virtual void addJob(Job *job) = 0;
......
......@@ -33,7 +33,7 @@ class FiFoQueueJobSession : public AbstractJobSession
public:
explicit FiFoQueueJobSession(QObject *parent = nullptr);
virtual ~FiFoQueueJobSession();
~FiFoQueueJobSession() override;
void addJob(Job *job) override;
......
......@@ -38,7 +38,7 @@ class AKONADI_FILESTORE_EXPORT StoreCompactJob : public Job
public:
explicit StoreCompactJob(AbstractJobSession *session = nullptr);
virtual ~StoreCompactJob();
~StoreCompactJob() override;
bool accept(Visitor *visitor) override;
......
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