Commit ced5fe21 authored by Dominique Hummel's avatar Dominique Hummel Committed by Dominique Hummel
Browse files

include link to google hangout as custom prop

parent 7ea83ff6
Pipeline #234231 passed with stage
in 4 minutes and 53 seconds
......@@ -277,6 +277,8 @@ static const auto opaqueTransparency = QLatin1String("opaque");
static const auto declinedStatus = QLatin1String("declined");
static const auto categoriesProperty = QLatin1String("categories");
static const auto hangoutLinkParam = QStringLiteral("hangoutLink");
}
QString APIVersion()
......@@ -460,6 +462,7 @@ ObjectPtr Private::JSONToEvent(const QVariantMap &data, const QString &timezone)
auto event = EventPtr::create();
event->setId(data.value(idParam).toString());
event->setHangoutLink(data.value(hangoutLinkParam).toString());
event->setUid(data.value(eventiCalUIDParam).toString());
event->setEtag(data.value(etagParam).toString());
......
......@@ -14,6 +14,7 @@ using namespace KGAPI2;
namespace
{
static constexpr const char *EventIdProperty = "EventId";
static constexpr const char *EventHangoutLinkProperty = "EventHangoutLink";
}
class Q_DECL_HIDDEN Event::Private
......@@ -102,3 +103,13 @@ void Event::setId(const QString &id)
{
setCustomProperty("LIBKGAPI", EventIdProperty, id);
}
QString Event::hangoutLink() const
{
return customProperty("LIBKGAPI", EventHangoutLinkProperty);
}
void Event::setHangoutLink(const QString &hangoutLink)
{
setCustomProperty("LIBKGAPI", EventHangoutLinkProperty, hangoutLink);
}
\ No newline at end of file
......@@ -86,6 +86,16 @@ public:
*/
void setId(const QString &id);
/**
* @brief Returns the hangout link for Google Meet.
*/
QString hangoutLink() const;
/**
* @brief Sets the hangout link for Google Meet.
*/
void setHangoutLink(const QString &id);
private:
class Private;
QScopedPointer<Private> const d;
......
Supports Markdown
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