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

Start to resolve url

parent 44ac1347
......@@ -195,6 +195,10 @@ set(libpimcommon_temporary_SRCS
temporaryfile/attachmenttemporaryfilesdirs.cpp
)
set(libpimcommon_gravatar_SRCS
gravatar/gravatarresolvurljob.cpp
)
set(libpimcommon_SRCS
settings/pimcommonsettings.cpp
${libpimcommon_util_SRCS}
......@@ -211,6 +215,7 @@ set(libpimcommon_SRCS
${libpimcommon_baloodebug_SRCS}
${libpimcommon_syntaxhighlighter_SRCS}
${libpimcommon_temporary_SRCS}
${libpimcommon_gravatar_SRCS}
)
......
/*
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 "gravatarresolvurljob.h"
using namespace PimCommon;
GravatarResolvUrlJob::GravatarResolvUrlJob(QObject *parent)
: QObject(parent)
{
}
GravatarResolvUrlJob::~GravatarResolvUrlJob()
{
}
bool GravatarResolvUrlJob::canStart() const
{
return !mEmail.trimmed().isEmpty();
}
void GravatarResolvUrlJob::start()
{
}
QString GravatarResolvUrlJob::email() const
{
return mEmail;
}
void GravatarResolvUrlJob::setEmail(const QString &email)
{
mEmail = email;
}
/*
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 GRAVATARRESOLVURLJOB_H
#define GRAVATARRESOLVURLJOB_H
#include "pimcommon_export.h"
#include <QObject>
namespace PimCommon {
class PIMCOMMON_EXPORT GravatarResolvUrlJob : public QObject
{
Q_OBJECT
public:
explicit GravatarResolvUrlJob(QObject *parent = 0);
~GravatarResolvUrlJob();
bool canStart() const;
void start();
QString email() const;
void setEmail(const QString &email);
private:
QString mEmail;
};
}
#endif // GRAVATARRESOLVURLJOB_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