Commit 19bd7856 authored by Laurent Montel's avatar Laurent Montel 😁

Add method to expunge here

parent 7e62c3f3
...@@ -106,8 +106,10 @@ void DummyKernel::setLastSelectedFolder(Akonadi::Collection::Id col) ...@@ -106,8 +106,10 @@ void DummyKernel::setLastSelectedFolder(Akonadi::Collection::Id col)
void DummyKernel::expunge(Akonadi::Collection::Id col, bool sync) void DummyKernel::expunge(Akonadi::Collection::Id id, bool sync)
{ {
Q_UNUSED(col); Akonadi::Collection col(id);
Q_UNUSED(sync); if (col.isValid()) {
mFolderCollectionMonitor->expunge(Akonadi::Collection(col), sync);
}
} }
...@@ -35,7 +35,7 @@ public: ...@@ -35,7 +35,7 @@ public:
Akonadi::Collection::Id lastSelectedFolder() Q_DECL_OVERRIDE; Akonadi::Collection::Id lastSelectedFolder() Q_DECL_OVERRIDE;
void setLastSelectedFolder(Akonadi::Collection::Id col) Q_DECL_OVERRIDE; void setLastSelectedFolder(Akonadi::Collection::Id col) Q_DECL_OVERRIDE;
bool showPopupAfterDnD() Q_DECL_OVERRIDE; bool showPopupAfterDnD() Q_DECL_OVERRIDE;
void expunge(Akonadi::Collection::Id col, bool sync) Q_DECL_OVERRIDE; void expunge(Akonadi::Collection::Id id, bool sync) Q_DECL_OVERRIDE;
private: private:
KIdentityManagement::IdentityManager *mIdentityManager; KIdentityManagement::IdentityManager *mIdentityManager;
......
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