Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 237c9208 authored by Laurent Montel's avatar Laurent Montel 😁

Add class for creating gravatar

parent 957e2c67
......@@ -110,6 +110,8 @@ set(kaddressbook_merge_SRCS
set(kaddressbook_gravatar_SRCS
gravatar/job/gravatarcreatejob.cpp
gravatar/job/gravatarupdatejob.cpp
gravatar/widgets/gravatarcreatedialog.cpp
gravatar/widgets/gravatarcreatewidget.cpp
)
set(kaddressbook_LIB_SRCS
......
......@@ -8,3 +8,6 @@ set(KDEPIMLIBS_RUN_SQLITE_ISOLATED_TESTS TRUE)
add_akonadi_isolated_test_advanced( gravatarcreatejobtest.cpp "../job/gravatarcreatejob.cpp" "kaddressbookprivate;pimcommon")
add_akonadi_isolated_test_advanced( gravatarupdatejobtest.cpp "../job/gravatarupdatejob.cpp" "kaddressbookprivate;pimcommon;kabc")
add_akonadi_isolated_test_advanced( gravatarcreatewidgettest.cpp "../widgets/gravatarcreatewidget.cpp" "kaddressbookprivate;pimcommon")
add_akonadi_isolated_test_advanced( gravatarcreatedialogtest.cpp "../widgets/gravatarcreatedialog.cpp" "kaddressbookprivate;pimcommon")
/*
Copyright (c) 2015 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program 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
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "gravatarcreatedialogtest.h"
#include <qtest_kde.h>
GravatarCreateDialogTest::GravatarCreateDialogTest(QObject *parent)
: QObject(parent)
{
}
GravatarCreateDialogTest::~GravatarCreateDialogTest()
{
}
QTEST_KDEMAIN(GravatarCreateDialogTest, GUI)
/*
Copyright (c) 2015 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program 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
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef GRAVATARCREATEDIALOGTEST_H
#define GRAVATARCREATEDIALOGTEST_H
#include <QObject>
class GravatarCreateDialogTest : public QObject
{
Q_OBJECT
public:
explicit GravatarCreateDialogTest(QObject *parent = 0);
~GravatarCreateDialogTest();
};
#endif // GRAVATARCREATEDIALOGTEST_H
/*
Copyright (c) 2015 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program 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
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "gravatarcreatewidgettest.h"
#include <qtest_kde.h>
GravatarCreateWidgetTest::GravatarCreateWidgetTest(QObject *parent)
: QObject(parent)
{
}
GravatarCreateWidgetTest::~GravatarCreateWidgetTest()
{
}
QTEST_KDEMAIN(GravatarCreateWidgetTest, GUI)
/*
Copyright (c) 2015 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program 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
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef GRAVATARCREATEWIDGETTEST_H
#define GRAVATARCREATEWIDGETTEST_H
#include <QObject>
class GravatarCreateWidgetTest : public QObject
{
Q_OBJECT
public:
explicit GravatarCreateWidgetTest(QObject *parent = 0);
~GravatarCreateWidgetTest();
};
#endif // GRAVATARCREATEWIDGETTEST_H
/*
Copyright (c) 2015 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program 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
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "gravatarcreatedialog.h"
using namespace KABGravatar;
GravatarCreateDialog::GravatarCreateDialog(QWidget *parent)
: QDialog(parent)
{
}
GravatarCreateDialog::~GravatarCreateDialog()
{
}
/*
Copyright (c) 2015 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program 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
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef GRAVATARCREATEDIALOG_H
#define GRAVATARCREATEDIALOG_H
#include <QDialog>
namespace KABGravatar {
class GravatarCreateDialog : public QDialog
{
Q_OBJECT
public:
explicit GravatarCreateDialog(QWidget *parent=0);
~GravatarCreateDialog();
};
}
#endif // GRAVATARCREATEDIALOG_H
/*
Copyright (c) 2015 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program 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
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "gravatarcreatewidget.h"
using namespace KABGravatar;
GravatarCreateWidget::GravatarCreateWidget(QWidget *parent)
: QWidget(parent)
{
}
GravatarCreateWidget::~GravatarCreateWidget()
{
}
/*
Copyright (c) 2015 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program 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
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef GRAVATARCREATEWIDGET_H
#define GRAVATARCREATEWIDGET_H
#include <QWidget>
namespace KABGravatar {
class GravatarCreateWidget : public QWidget
{
Q_OBJECT
public:
explicit GravatarCreateWidget(QWidget *parent = 0);
~GravatarCreateWidget();
};
}
#endif // GRAVATARCREATEWIDGET_H
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