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 efd54e9b authored by Laurent Montel's avatar Laurent Montel 😁

Start to fix gravatar support

CCBUG: 347441
parent c3322cd3
......@@ -107,6 +107,11 @@ set(kaddressbook_merge_SRCS
merge/widgets/mergecontacterrorlabel.cpp
)
set(kaddressbook_gravatar_SRCS
gravatar/gravatarcreatejob.cpp
gravatar/gravatarupdatejob.cpp
)
set(kaddressbook_LIB_SRCS
contactlist.cpp
startup.cpp
......@@ -127,6 +132,7 @@ set(kaddressbook_LIB_SRCS
${kaddressbook_xxport_SRCS}
${kaddressbook_sendmail_SRCS}
${kaddressbook_sendvcards_SRCS}
${kaddressbook_gravatar_SRCS}
)
qt4_add_dbus_adaptor( kaddressbook_LIB_SRCS org.kde.kaddressbook.xml mainwidget.h MainWidget)
......@@ -152,6 +158,7 @@ add_subdirectory(merge/tests)
add_subdirectory(sendmail/tests)
add_subdirectory(sendvcards/autotests)
add_subdirectory(printing/grantlee/autotests)
add_subdirectory(gravatar/autotests)
if(QGPGME_FOUND)
target_link_libraries(kaddressbookprivate ${QGPGME_LIBRARIES})
......
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/../.. )
include(AkonadiMacros)
set(KDEPIMLIBS_RUN_ISOLATED_TESTS TRUE)
set(KDEPIMLIBS_RUN_SQLITE_ISOLATED_TESTS TRUE)
add_akonadi_isolated_test_advanced( gravatarcreatejobtest.cpp "" "")
add_akonadi_isolated_test_advanced( gravatarupdatejobtest.cpp "" "")
/*
This file is part of KAddressBook.
Copyright (c) 2015 Laurent Montel <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 as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
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 "gravatarcreatejobtest.h"
#include <qtest_kde.h>
GravatarCreateJobTest::GravatarCreateJobTest(QObject *parent)
: QObject(parent)
{
}
GravatarCreateJobTest::~GravatarCreateJobTest()
{
}
QTEST_KDEMAIN(GravatarCreateJobTest, NoGUI)
/*
This file is part of KAddressBook.
Copyright (c) 2015 Laurent Montel <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 as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
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 GRAVATARCREATEJOBTEST_H
#define GRAVATARCREATEJOBTEST_H
#include <QObject>
class GravatarCreateJobTest : public QObject
{
Q_OBJECT
public:
explicit GravatarCreateJobTest(QObject *parent = 0);
~GravatarCreateJobTest();
};
#endif // GRAVATARCREATEJOBTEST_H
/*
This file is part of KAddressBook.
Copyright (c) 2015 Laurent Montel <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 as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
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 "gravatarupdatejobtest.h"
#include <qtest_kde.h>
GravatarUpdateJobTest::GravatarUpdateJobTest(QObject *parent)
: QObject(parent)
{
}
GravatarUpdateJobTest::~GravatarUpdateJobTest()
{
}
QTEST_KDEMAIN(GravatarUpdateJobTest, NoGUI)
/*
This file is part of KAddressBook.
Copyright (c) 2015 Laurent Montel <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 as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
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 GRAVATARUPDATEJOBTEST_H
#define GRAVATARUPDATEJOBTEST_H
#include <QObject>
class GravatarUpdateJobTest : public QObject
{
Q_OBJECT
public:
explicit GravatarUpdateJobTest(QObject *parent = 0);
~GravatarUpdateJobTest();
};
#endif // GRAVATARUPDATEJOBTEST_H
/*
This file is part of KAddressBook.
Copyright (c) 2015 Laurent Montel <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 as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
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 "gravatarcreatejob.h"
using namespace KABGravatar;
GravatarCreateJob::GravatarCreateJob(QObject *parent)
: QObject(parent)
{
}
GravatarCreateJob::~GravatarCreateJob()
{
}
void GravatarCreateJob::start()
{
}
/*
This file is part of KAddressBook.
Copyright (c) 2015 Laurent Montel <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 as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
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 GRAVATARCREATEJOB_H
#define GRAVATARCREATEJOB_H
#include <QObject>
namespace KABGravatar {
class GravatarCreateJob : public QObject
{
Q_OBJECT
public:
explicit GravatarCreateJob(QObject *parent = 0);
~GravatarCreateJob();
void start();
};
}
#endif // GRAVATARCREATEJOB_H
/*
This file is part of KAddressBook.
Copyright (c) 2015 Laurent Montel <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 as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
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 "gravatarupdatejob.h"
using namespace KABGravatar;
GravatarUpdateJob::GravatarUpdateJob(QObject *parent)
: QObject(parent)
{
}
GravatarUpdateJob::~GravatarUpdateJob()
{
}
void GravatarUpdateJob::start()
{
}
/*
This file is part of KAddressBook.
Copyright (c) 2015 Laurent Montel <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 as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
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 GRAVATARUPDATEJOB_H
#define GRAVATARUPDATEJOB_H
#include <QObject>
namespace KABGravatar {
class GravatarUpdateJob : public QObject
{
Q_OBJECT
public:
explicit GravatarUpdateJob(QObject *parent = 0);
~GravatarUpdateJob();
void start();
};
}
#endif // GRAVATARUPDATEJOB_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