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
KMailTransport
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
PIM
KMailTransport
Commits
b39f6ae7
Commit
b39f6ae7
authored
Dec 31, 2009
by
Thomas McGuire
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make this a value-based class instead of a singleton, as per API review.
svn path=/trunk/KDE/kdepimlibs/; revision=1068247
parent
03568353
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
35 deletions
+5
-35
dispatcherinterface.cpp
dispatcherinterface.cpp
+0
-15
dispatcherinterface.h
dispatcherinterface.h
+2
-12
dispatcherinterface_p.h
dispatcherinterface_p.h
+0
-5
tests/abort.cpp
tests/abort.cpp
+1
-1
tests/clearerror.cpp
tests/clearerror.cpp
+1
-1
tests/sendqueued.cpp
tests/sendqueued.cpp
+1
-1
No files found.
dispatcherinterface.cpp
View file @
b39f6ae7
...
...
@@ -36,16 +36,6 @@ using namespace MailTransport;
K_GLOBAL_STATIC
(
DispatcherInterfacePrivate
,
sInstance
)
DispatcherInterfacePrivate
::
DispatcherInterfacePrivate
()
:
instance
(
new
DispatcherInterface
()
)
{
}
DispatcherInterfacePrivate
::~
DispatcherInterfacePrivate
()
{
delete
instance
;
}
void
DispatcherInterfacePrivate
::
massModifyResult
(
KJob
*
job
)
{
// Nothing to do here, really. If the job fails, the user can retry it.
...
...
@@ -60,11 +50,6 @@ DispatcherInterface::DispatcherInterface()
{
}
DispatcherInterface
*
DispatcherInterface
::
self
()
{
return
sInstance
->
instance
;
}
AgentInstance
DispatcherInterface
::
dispatcherInstance
()
const
{
AgentInstance
a
=
...
...
dispatcherinterface.h
View file @
b39f6ae7
...
...
@@ -33,8 +33,7 @@ namespace MailTransport {
dispatchManually) and retry sending (@see retryDispatching).
This class also takes care of registering the attributes that the mail
dispatcher agent and MailTransport use. The attributes are registered
the first time you call self(), so do that early in your application.
dispatcher agent and MailTransport use.
@author Constantin Berzan <exit3219@gmail.com>
@since 4.4
...
...
@@ -43,10 +42,7 @@ class MAILTRANSPORT_EXPORT DispatcherInterface
{
public:
/**
Returns the DispatcherInterface instance.
*/
static
DispatcherInterface
*
self
();
DispatcherInterface
();
/**
Returns the current instance of the mail dispatcher agent. May return an invalid
...
...
@@ -65,12 +61,6 @@ class MAILTRANSPORT_EXPORT DispatcherInterface
queues them again for sending.
*/
void
retryDispatching
();
private:
DispatcherInterface
();
friend
class
DispatcherInterfacePrivate
;
Q_DISABLE_COPY
(
DispatcherInterface
)
};
}
// namespace MailTransport
...
...
dispatcherinterface_p.h
View file @
b39f6ae7
...
...
@@ -34,11 +34,6 @@ class DispatcherInterfacePrivate : public QObject
public:
DispatcherInterfacePrivate
();
~
DispatcherInterfacePrivate
();
DispatcherInterface
*
instance
;
public
Q_SLOTS
:
void
massModifyResult
(
KJob
*
job
);
...
...
tests/abort.cpp
View file @
b39f6ae7
...
...
@@ -42,7 +42,7 @@ Runner::Runner()
void
Runner
::
sendAbort
()
{
const
AgentInstance
mda
=
DispatcherInterface
::
self
()
->
dispatcherInstance
();
const
AgentInstance
mda
=
DispatcherInterface
().
dispatcherInstance
();
if
(
!
mda
.
isValid
()
)
{
kDebug
()
<<
"Invalid instance; waiting."
;
QTimer
::
singleShot
(
1000
,
this
,
SLOT
(
sendAbort
())
);
...
...
tests/clearerror.cpp
View file @
b39f6ae7
...
...
@@ -47,7 +47,7 @@ Runner::Runner()
void
Runner
::
checkFolders
()
{
DispatcherInterface
::
self
()
->
retryDispatching
();
DispatcherInterface
().
retryDispatching
();
}
int
main
(
int
argc
,
char
**
argv
)
...
...
tests/sendqueued.cpp
View file @
b39f6ae7
...
...
@@ -47,7 +47,7 @@ Runner::Runner()
void
Runner
::
checkFolders
()
{
DispatcherInterface
::
self
()
->
dispatchManually
();
DispatcherInterface
().
dispatchManually
();
}
int
main
(
int
argc
,
char
**
argv
)
...
...
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