Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
LibKGAPI
Commits
ced5fe21
Commit
ced5fe21
authored
Sep 16, 2022
by
Dominique Hummel
Committed by
Dominique Hummel
Sep 16, 2022
Browse files
include link to google hangout as custom prop
parent
7ea83ff6
Pipeline
#234231
passed with stage
in 4 minutes and 53 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/calendar/calendarservice.cpp
View file @
ced5fe21
...
...
@@ -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
());
...
...
src/calendar/event.cpp
View file @
ced5fe21
...
...
@@ -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
src/calendar/event.h
View file @
ced5fe21
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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