Commit aafb7f29 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port thumbnailer to new install location and embed metadata

parent e14cd6e4
Pipeline #217456 passed with stage
in 2 minutes and 3 seconds
# SPDX-FileCopyrightText: 2021 Kai Uwe Broulik <kde@broulik.de>
# SPDX-License-Identifier: BSD-3-Clause
set(itinerarythumbnail_SRCS itinerarycreator.cpp)
add_library(itinerarythumbnail MODULE ${itinerarythumbnail_SRCS})
kcoreaddons_add_plugin(itinerarythumbnail SOURCES itinerarycreator.cpp INSTALL_NAMESPACE "kf${QT_MAJOR_VERSION}/thumbcreator")
target_link_libraries(itinerarythumbnail
KF5::KIOWidgets
Qt::Gui
KPim::PkPass
)
install(TARGETS itinerarythumbnail DESTINATION ${KDE_INSTALL_PLUGINDIR})
install(FILES itinerarythumbnail.desktop DESTINATION ${KDE_INSTALL_KSERVICESDIR})
......@@ -19,6 +19,12 @@ extern "C"
}
}
class KIOPluginForMetaData : public QObject
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "KIOPluginForMetaData" FILE "itinerarythumbnail.json")
};
ItineraryCreator::ItineraryCreator() = default;
ItineraryCreator::~ItineraryCreator() = default;
......@@ -58,3 +64,5 @@ ThumbCreator::Flags ItineraryCreator::flags() const
{
return None;
}
#include "itinerarycreator.moc"
......@@ -7,10 +7,13 @@
#ifndef ITINERARYCREATOR_H
#define ITINERARYCREATOR_H
#include <QObject>
#include <kio/thumbcreator.h>
class ItineraryCreator : public ThumbCreator
class ItineraryCreator : public QObject, public ThumbCreator
{
Q_OBJECT
public:
ItineraryCreator();
~ItineraryCreator() override;
......
[Desktop Entry]
Type=Service
Name=Tickets and boarding passes
Name[ca]=Entrades i passis d'embarcament
Name[ca@valencia]=Entrades i passes d'embarcament
Name[de]=Fahrkarten und Bordkarten
Name[en_GB]=Tickets and boarding passes
Name[es]=Billetes y tarjetas de embarque
Name[fi]=Matkaliput ja maihinnousukortit
Name[fr]=Billets et cartes d'embarquement
Name[ia]=Billetes e carts de imbarcar
Name[it]=Biglietti e carte d'imbarco
Name[ko]=입장권, 승차권, 탑승권
Name[nl]=Tickets en boardingpassen
Name[pl]=Bilety i karty pokładowe
Name[pt]=Bilhetes e cartões de embarque
Name[pt_BR]=Passagens e cartões de embarque
Name[ru]=Билеты и посадочные талоны
Name[sk]=Lístky a palubné vstupenky
Name[sl]=Vozovnice in vstopni kuponi
Name[sv]=Biljetter och boardingkort
Name[tr]=Biletler ve biniş kartları
Name[uk]=Квитки та посадкові талони
Name[x-test]=xxTickets and boarding passesxx
X-KDE-ServiceTypes=ThumbCreator
MimeType=application/vnd.apple.pkpass;
X-KDE-Library=itinerarythumbnail
CacheThumbnail=false # FIXME
{
"CacheThumbnail": false,
"KPlugin": {
"MimeTypes": [
"application/vnd.apple.pkpass"
],
"Name": "Tickets and boarding passes"
}
}
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