Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KDE Pim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Unmaintained
KDE Pim
Commits
06c1a4a7
Commit
06c1a4a7
authored
Jan 05, 2015
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move code to LaunchExternalComponent
parent
27738351
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
26 deletions
+25
-26
kmail/kmlaunchexternalcomponent.cpp
kmail/kmlaunchexternalcomponent.cpp
+19
-0
kmail/kmlaunchexternalcomponent.h
kmail/kmlaunchexternalcomponent.h
+3
-0
kmail/kmmainwidget.cpp
kmail/kmmainwidget.cpp
+3
-23
kmail/kmmainwidget.h
kmail/kmmainwidget.h
+0
-3
No files found.
kmail/kmlaunchexternalcomponent.cpp
View file @
06c1a4a7
...
...
@@ -25,11 +25,13 @@
#include "archivemailagentinterface.h"
#include "sendlateragentinterface.h"
#include "followupreminderinterface.h"
#include "mailcommon/filter/filtermanager.h"
#include <QtDBus/QDBusInterface>
#include <QtDBus/QDBusReply>
#include <QProcess>
#include <QDebug>
#include <antispam-virus/antispamwizard.h>
KMLaunchExternalComponent
::
KMLaunchExternalComponent
(
QWidget
*
parentWidget
,
QObject
*
parent
)
:
QObject
(
parent
),
...
...
@@ -131,3 +133,20 @@ void KMLaunchExternalComponent::slotAccountWizard()
"Please check your installation."
),
i18n
(
"Unable to start account wizard"
)
);
}
void
KMLaunchExternalComponent
::
slotAntiSpamWizard
()
{
KMail
::
AntiSpamWizard
wiz
(
KMail
::
AntiSpamWizard
::
AntiSpam
,
mParentWidget
);
wiz
.
exec
();
}
void
KMLaunchExternalComponent
::
slotAntiVirusWizard
()
{
KMail
::
AntiSpamWizard
wiz
(
KMail
::
AntiSpamWizard
::
AntiVirus
,
mParentWidget
);
wiz
.
exec
();
}
void
KMLaunchExternalComponent
::
slotFilterLogViewer
()
{
MailCommon
::
FilterManager
::
instance
()
->
showFilterLogDialog
(
(
qlonglong
)
mParentWidget
->
winId
()
);
}
kmail/kmlaunchexternalcomponent.h
View file @
06c1a4a7
...
...
@@ -38,6 +38,9 @@ public Q_SLOTS:
void
slotAddrBook
();
void
slotImport
();
void
slotAccountWizard
();
void
slotFilterLogViewer
();
void
slotAntiVirusWizard
();
void
slotAntiSpamWizard
();
private:
QWidget
*
mParentWidget
;
};
...
...
kmail/kmmainwidget.cpp
View file @
06c1a4a7
...
...
@@ -2934,17 +2934,17 @@ void KMMainWidget::setupActions()
{
KAction
*
action
=
new
KAction
(
i18n
(
"Filter &Log Viewer..."
),
this
);
actionCollection
()
->
addAction
(
QLatin1String
(
"filter_log_viewer"
),
action
);
connect
(
action
,
SIGNAL
(
triggered
(
bool
)),
SLOT
(
slotFilterLogViewer
()));
connect
(
action
,
SIGNAL
(
triggered
(
bool
)),
mLaunchExternalComponent
,
SLOT
(
slotFilterLogViewer
()));
}
{
KAction
*
action
=
new
KAction
(
i18n
(
"&Anti-Spam Wizard..."
),
this
);
actionCollection
()
->
addAction
(
QLatin1String
(
"antiSpamWizard"
),
action
);
connect
(
action
,
SIGNAL
(
triggered
(
bool
)),
SLOT
(
slotAntiSpamWizard
()));
connect
(
action
,
SIGNAL
(
triggered
(
bool
)),
mLaunchExternalComponent
,
SLOT
(
slotAntiSpamWizard
()));
}
{
KAction
*
action
=
new
KAction
(
i18n
(
"&Anti-Virus Wizard..."
),
this
);
actionCollection
()
->
addAction
(
QLatin1String
(
"antiVirusWizard"
),
action
);
connect
(
action
,
SIGNAL
(
triggered
(
bool
)),
SLOT
(
slotAntiVirusWizard
()));
connect
(
action
,
SIGNAL
(
triggered
(
bool
)),
mLaunchExternalComponent
,
SLOT
(
slotAntiVirusWizard
()));
}
{
KAction
*
action
=
new
KAction
(
i18n
(
"&Account Wizard..."
),
this
);
...
...
@@ -4192,26 +4192,6 @@ void KMMainWidget::initializeFilterActions()
updateMessageActions
();
}
//-----------------------------------------------------------------------------
void
KMMainWidget
::
slotAntiSpamWizard
()
{
AntiSpamWizard
wiz
(
AntiSpamWizard
::
AntiSpam
,
this
);
wiz
.
exec
();
}
//-----------------------------------------------------------------------------
void
KMMainWidget
::
slotAntiVirusWizard
()
{
AntiSpamWizard
wiz
(
AntiSpamWizard
::
AntiVirus
,
this
);
wiz
.
exec
();
}
//-----------------------------------------------------------------------------
void
KMMainWidget
::
slotFilterLogViewer
()
{
MailCommon
::
FilterManager
::
instance
()
->
showFilterLogDialog
(
(
qlonglong
)
winId
()
);
}
//-----------------------------------------------------------------------------
void
KMMainWidget
::
updateFileMenu
()
{
...
...
kmail/kmmainwidget.h
View file @
06c1a4a7
...
...
@@ -344,9 +344,6 @@ protected slots:
void
slotShowStartupFolder
();
/** Show tip-of-the-day, forced */
void
slotShowTip
();
void
slotAntiSpamWizard
();
void
slotAntiVirusWizard
();
void
slotFilterLogViewer
();
/** Message navigation */
void
slotSelectNextMessage
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment