Commit e3316767 authored by Tobias Koenig's avatar Tobias Koenig
Browse files

Add "Don't show again" checkbox to the rights revoked

message box

svn path=/trunk/KDE/kdepim/runtime/; revision=1196635
parent 5e7b74cd
......@@ -457,7 +457,7 @@ void ResourceState::scheduleConnectionAttempt()
m_resource->scheduleConnectionAttempt();
}
void ResourceState::showInformationDialog( const QString &message, const QString &title )
void ResourceState::showInformationDialog( const QString &message, const QString &title, const QString &dontShowAgainName )
{
KMessageBox::information( 0, message, title );
KMessageBox::information( 0, message, title, dontShowAgainName );
}
......@@ -136,7 +136,7 @@ public:
virtual void synchronizeCollectionTree();
virtual void scheduleConnectionAttempt();
virtual void showInformationDialog( const QString &message, const QString &title );
virtual void showInformationDialog( const QString &message, const QString &title, const QString &dontShowAgainName );
private:
ImapResource *m_resource;
......
......@@ -91,7 +91,7 @@ public:
virtual void synchronizeCollectionTree() = 0;
virtual void scheduleConnectionAttempt() = 0;
virtual void showInformationDialog( const QString &message, const QString &title ) = 0;
virtual void showInformationDialog( const QString &message, const QString &title, const QString &dontShowAgainName ) = 0;
};
#endif
......@@ -309,9 +309,9 @@ void ResourceTask::synchronizeCollectionTree()
m_resource->synchronizeCollectionTree();
}
void ResourceTask::showInformationDialog( const QString &message, const QString &title )
void ResourceTask::showInformationDialog( const QString &message, const QString &title, const QString &dontShowAgainName )
{
m_resource->showInformationDialog( message, title );
m_resource->showInformationDialog( message, title, dontShowAgainName );
}
QList<QByteArray> ResourceTask::fromAkonadiFlags( const QList<QByteArray> &flags )
......
......@@ -110,7 +110,7 @@ protected:
void synchronizeCollectionTree();
void showInformationDialog( const QString &message, const QString &title );
void showInformationDialog( const QString &message, const QString &title, const QString &dontShowAgainName );
static QList<QByteArray> toAkonadiFlags( const QList<QByteArray> &flags );
static QList<QByteArray> fromAkonadiFlags( const QList<QByteArray> &flags );
......
......@@ -271,7 +271,7 @@ void RetrieveCollectionMetadataTask::onRightsReceived( KJob *job )
showInformationDialog( i18n( "<p>Your access rights to folder <b>%1</b> have been restricted, "
"it will no longer be possible to add messages to this folder.</p>",
collectionName ),
i18n( "Access rights revoked" ) );
i18n( "Access rights revoked" ), "ShowRightsRevokedWarning" );
}
if ( newRights != m_collection.rights() ) {
......
......@@ -273,7 +273,7 @@ void DummyResourceState::scheduleConnectionAttempt()
recordCall( "scheduleConnectionAttempt" );
}
void DummyResourceState::showInformationDialog( const QString &message, const QString &title )
void DummyResourceState::showInformationDialog( const QString &message, const QString&, const QString& )
{
recordCall( "showInformationDialog", QVariant::fromValue( message ) );
}
......
......@@ -106,7 +106,7 @@ public:
virtual void synchronizeCollectionTree();
virtual void scheduleConnectionAttempt();
virtual void showInformationDialog( const QString &message, const QString &title );
virtual void showInformationDialog( const QString &message, const QString &title, const QString &dontShowAgainName );
QList< QPair<QByteArray, QVariant> > calls() const;
......
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