We need to move expunge method in kernel class. It will allow to move expunge trash outside kmail when we close kmail

wilder
Montel Laurent 10 years ago
parent aa1629e7d1
commit 2dc0e64bce
  1. 2
      CMakeLists.txt
  2. 6
      autotests/dummykernel.cpp
  3. 1
      autotests/dummykernel.h
  4. 6
      src/filter/filterimporter/autotests/filtertestkernel.cpp
  5. 1
      src/filter/filterimporter/autotests/filtertestkernel.h
  6. 1
      src/interfaces/mailinterfaces.h

@ -18,7 +18,7 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMQtDeclareLoggingCategory) include(ECMQtDeclareLoggingCategory)
include(ECMAddTests) include(ECMAddTests)
set(PIM_VERSION "5.2.80") set(PIM_VERSION "5.2.81")
set(MAILCOMMON_LIB_VERSION ${PIM_VERSION}) set(MAILCOMMON_LIB_VERSION ${PIM_VERSION})
set(AKONADIMIME_LIB_VERSION "5.2.80") set(AKONADIMIME_LIB_VERSION "5.2.80")
set(MESSAGELIB_LIB_VERSION "5.2.80") set(MESSAGELIB_LIB_VERSION "5.2.80")

@ -76,6 +76,12 @@ bool DummyKernel::showPopupAfterDnD()
return false; return false;
} }
void DummyKernel::expunge(Akonadi::Collection::Id col, bool sync)
{
Q_UNUSED(col);
Q_UNUSED(sync);
}
qreal DummyKernel::closeToQuotaThreshold() qreal DummyKernel::closeToQuotaThreshold()
{ {
return 80; return 80;

@ -35,6 +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;
private: private:
KIdentityManagement::IdentityManager *mIdentityManager; KIdentityManagement::IdentityManager *mIdentityManager;

@ -92,6 +92,12 @@ bool FilterTestKernel::showPopupAfterDnD()
return false; return false;
} }
void FilterTestKernel::expunge(Akonadi::Collection::Id col, bool sync)
{
Q_UNUSED(col);
Q_UNUSED(sync);
}
qreal FilterTestKernel::closeToQuotaThreshold() qreal FilterTestKernel::closeToQuotaThreshold()
{ {
return 80; return 80;

@ -51,6 +51,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;
private: private:
KIdentityManagement::IdentityManager *mIdentityManager; KIdentityManagement::IdentityManager *mIdentityManager;

@ -67,6 +67,7 @@ public:
virtual Akonadi::ChangeRecorder *folderCollectionMonitor() const = 0; virtual Akonadi::ChangeRecorder *folderCollectionMonitor() const = 0;
virtual void updateSystemTray() = 0; virtual void updateSystemTray() = 0;
virtual MessageComposer::MessageSender *msgSender() = 0; virtual MessageComposer::MessageSender *msgSender() = 0;
virtual void expunge(Akonadi::Collection::Id col, bool sync) = 0;
virtual ~IKernel() virtual ~IKernel()
{ {

Loading…
Cancel
Save