Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Unmaintained
KDE Pim
Commits
cc7aaa31
Commit
cc7aaa31
authored
Jul 07, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add namespace
parent
777fee1f
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
57 additions
and
11 deletions
+57
-11
agents/followupreminderagent/followupreminder_export.h
agents/followupreminderagent/followupreminder_export.h
+38
-0
agents/followupreminderagent/followupreminderinfo.cpp
agents/followupreminderagent/followupreminderinfo.cpp
+1
-1
agents/followupreminderagent/followupreminderinfo.h
agents/followupreminderagent/followupreminderinfo.h
+4
-2
agents/followupreminderagent/followupreminderinfowidget.cpp
agents/followupreminderagent/followupreminderinfowidget.cpp
+1
-1
agents/followupreminderagent/followupreminderinfowidget.h
agents/followupreminderagent/followupreminderinfowidget.h
+3
-1
agents/followupreminderagent/followupremindermanager.cpp
agents/followupreminderagent/followupremindermanager.cpp
+1
-0
agents/followupreminderagent/followupremindermanager.h
agents/followupreminderagent/followupremindermanager.h
+3
-1
agents/followupreminderagent/followupremindernoanswerdialog.cpp
.../followupreminderagent/followupremindernoanswerdialog.cpp
+1
-1
agents/followupreminderagent/followupremindernoanswerdialog.h
...ts/followupreminderagent/followupremindernoanswerdialog.h
+3
-2
agents/followupreminderagent/tests/followupreminderinfotest.cpp
.../followupreminderagent/tests/followupreminderinfotest.cpp
+2
-2
No files found.
agents/followupreminderagent/followupreminder_export.h
0 → 100644
View file @
cc7aaa31
/*
Copyright (c) 2014 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#ifndef FOLLOWUPREMINDER_EXPORT_H
#define FOLLOWUPREMINDER_EXPORT_H
#include <kdemacros.h>
#ifndef FOLLOWUPREMINDER_EXPORT
# if defined(KDEPIM_STATIC_LIBS)
/* No export/import for static libraries */
# define FOLLOWUPREMINDER_EXPORT
# elif defined(MAKE_FOLLOWUPREMINDER_LIB)
/* We are building this library */
# define FOLLOWUPREMINDER_EXPORT KDE_EXPORT
# else
/* We are using this library */
# define FOLLOWUPREMINDER_EXPORT KDE_IMPORT
# endif
#endif
#endif
agents/followupreminderagent/followupreminderinfo.cpp
View file @
cc7aaa31
...
...
@@ -18,7 +18,7 @@
#include "followupreminderinfo.h"
#include <KConfigGroup>
using
namespace
FollowUpReminder
;
FollowUpReminderInfo
::
FollowUpReminderInfo
()
:
mId
(
-
1
)
...
...
agents/followupreminderagent/followupreminderinfo.h
View file @
cc7aaa31
...
...
@@ -20,8 +20,10 @@
#include <Akonadi/Item>
#include <QDateTime>
#include "followupreminder_export.h"
class
KConfigGroup
;
class
FollowUpReminderInfo
namespace
FollowUpReminder
{
class
FOLLOWUPREMINDER_EXPORT
FollowUpReminderInfo
{
public:
FollowUpReminderInfo
();
...
...
@@ -52,5 +54,5 @@ private:
QDateTime
mFollowUpReminderDate
;
QString
mTo
;
};
}
#endif // FOLLOWUPREMINDERINFO_H
agents/followupreminderagent/followupreminderinfowidget.cpp
View file @
cc7aaa31
...
...
@@ -53,7 +53,7 @@ FollowUpReminderInfoWidget::~FollowUpReminderInfoWidget()
{
}
void
FollowUpReminderInfoWidget
::
setInfo
(
const
QList
<
FollowUpReminderInfo
*>
&
info
)
void
FollowUpReminderInfoWidget
::
setInfo
(
const
QList
<
FollowUpReminder
::
FollowUpReminderInfo
*>
&
info
)
{
//TODO
}
...
...
agents/followupreminderagent/followupreminderinfowidget.h
View file @
cc7aaa31
...
...
@@ -21,7 +21,9 @@
#include <QWidget>
#include <KConfigGroup>
class
QTreeWidget
;
namespace
FollowUpReminder
{
class
FollowUpReminderInfo
;
}
class
FollowUpReminderInfoWidget
:
public
QWidget
{
Q_OBJECT
...
...
@@ -32,7 +34,7 @@ public:
void
restoreTreeWidgetHeader
(
const
QByteArray
&
data
);
void
saveTreeWidgetHeader
(
KConfigGroup
&
group
);
void
setInfo
(
const
QList
<
FollowUpReminderInfo
*>
&
info
);
void
setInfo
(
const
QList
<
FollowUpReminder
::
FollowUpReminderInfo
*>
&
info
);
private
slots
:
void
customContextMenuRequested
(
const
QPoint
&
pos
);
void
slotRemoveItem
();
...
...
agents/followupreminderagent/followupremindermanager.cpp
View file @
cc7aaa31
...
...
@@ -26,6 +26,7 @@
#include <KConfig>
#include <knotification.h>
#include <KLocalizedString>
using
namespace
FollowUpReminder
;
FollowUpReminderManager
::
FollowUpReminderManager
(
QObject
*
parent
)
:
QObject
(
parent
)
...
...
agents/followupreminderagent/followupremindermanager.h
View file @
cc7aaa31
...
...
@@ -22,7 +22,9 @@
#include <KSharedConfig>
#include <Akonadi/Item>
#include <QPointer>
namespace
FollowUpReminder
{
class
FollowUpReminderInfo
;
}
class
FollowUpReminderNoAnswerDialog
;
class
FollowUpReminderManager
:
public
QObject
{
...
...
@@ -40,7 +42,7 @@ private slots:
private:
void
answerReceived
(
const
QString
&
from
);
KSharedConfig
::
Ptr
mConfig
;
QList
<
FollowUpReminderInfo
*>
mFollowUpReminderInfoList
;
QList
<
FollowUpReminder
::
FollowUpReminderInfo
*>
mFollowUpReminderInfoList
;
QPointer
<
FollowUpReminderNoAnswerDialog
>
mNoAnswerDialog
;
};
...
...
agents/followupreminderagent/followupremindernoanswerdialog.cpp
View file @
cc7aaa31
...
...
@@ -53,7 +53,7 @@ FollowUpReminderNoAnswerDialog::~FollowUpReminderNoAnswerDialog()
writeConfig
();
}
void
FollowUpReminderNoAnswerDialog
::
setInfo
(
const
QList
<
FollowUpReminderInfo
*>
&
info
)
void
FollowUpReminderNoAnswerDialog
::
setInfo
(
const
QList
<
FollowUpReminder
::
FollowUpReminderInfo
*>
&
info
)
{
//mWidget->setInfo(info);
}
...
...
agents/followupreminderagent/followupremindernoanswerdialog.h
View file @
cc7aaa31
...
...
@@ -19,8 +19,9 @@
#define FOLLOWUPREMINDERNOANSWERDIALOG_H
#include <KDialog>
namespace
FollowUpReminder
{
class
FollowUpReminderInfo
;
}
class
FollowUpReminderInfoWidget
;
class
FollowUpReminderNoAnswerDialog
:
public
KDialog
{
...
...
@@ -29,7 +30,7 @@ public:
explicit
FollowUpReminderNoAnswerDialog
(
QWidget
*
parent
=
0
);
~
FollowUpReminderNoAnswerDialog
();
void
setInfo
(
const
QList
<
FollowUpReminderInfo
*>
&
info
);
void
setInfo
(
const
QList
<
FollowUpReminder
::
FollowUpReminderInfo
*>
&
info
);
private:
void
readConfig
();
...
...
agents/followupreminderagent/tests/followupreminderinfotest.cpp
View file @
cc7aaa31
...
...
@@ -25,7 +25,7 @@ FollowUpReminderInfoTest::FollowUpReminderInfoTest()
void
FollowUpReminderInfoTest
::
shouldHaveDefaultValue
()
{
FollowUpReminderInfo
info
;
FollowUpReminder
::
FollowUpReminderInfo
info
;
QCOMPARE
(
info
.
id
(),
Akonadi
::
Item
::
Id
(
-
1
));
QCOMPARE
(
info
.
messageId
(),
QString
());
QCOMPARE
(
info
.
isValid
(),
false
);
...
...
@@ -34,7 +34,7 @@ void FollowUpReminderInfoTest::shouldHaveDefaultValue()
void
FollowUpReminderInfoTest
::
shoudBeNotValid
()
{
FollowUpReminderInfo
info
;
FollowUpReminder
::
FollowUpReminderInfo
info
;
//We need a Akonadi::Id valid and a messageId not empty and a valid date and a "To" not empty
info
.
setMessageId
(
QLatin1String
(
"foo"
));
QCOMPARE
(
info
.
isValid
(),
false
);
...
...
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