Skip to content

Commit

Permalink
[nemo-qml-plugin-calendar] Add import/export tool. Contributes to MER…
Browse files Browse the repository at this point in the history
…#1120

This commit adds a tool to import ics data into the local device
calendar, and export events from the local device as an ics file.

Contributes to MER#1120
  • Loading branch information
Chris Adams committed Oct 16, 2015
1 parent 39f20be commit 2003d22
Show file tree
Hide file tree
Showing 7 changed files with 898 additions and 2 deletions.
5 changes: 3 additions & 2 deletions calendar.pro
@@ -1,6 +1,7 @@
TEMPLATE = subdirs
SUBDIRS = src tests lightweight
SUBDIRS = src tests lightweight tools

tests.depends = src
tools.depends = src

OTHER_FILES += rpm/* qmldir
OTHER_FILES += rpm/*
2 changes: 2 additions & 0 deletions lightweight/calendareventsmodel/calendareventsmodel.pro
Expand Up @@ -26,5 +26,7 @@ HEADERS += \
calendareventsmodel.h \
../common/eventdata.h

OTHER_FILES += qmldir

MOC_DIR = $$PWD/.moc
OBJECTS_DIR = $$PWD/.obj
14 changes: 14 additions & 0 deletions rpm/nemo-qml-plugin-calendar-qt5.spec
Expand Up @@ -35,6 +35,16 @@ BuildRequires: pkgconfig(Qt5DBus)
%description lightweight
%{summary}.

%package tools
Summary: Calendar import/export tool
License: BSD
Group: Applications/System
BuildRequires: pkgconfig(libmkcal-qt5)
BuildRequires: pkgconfig(libkcalcoren-qt5)

%description tools
%{summary}.

%prep
%setup -q -n %{name}-%{version}

Expand Down Expand Up @@ -63,3 +73,7 @@ rm -rf %{buildroot}
%{_datadir}/dbus-1/services/org.nemomobile.calendardataservice.service
%{_libdir}/qt5/qml/org/nemomobile/calendar/lightweight/libnemocalendarwidget.so
%{_libdir}/qt5/qml/org/nemomobile/calendar/lightweight/qmldir

%files tools
%defattr(-,root,root,-)
%{_bindir}/icalconverter
2 changes: 2 additions & 0 deletions src/src.pro
Expand Up @@ -54,5 +54,7 @@ HEADERS += \
$$SRCDIR/calendarimportmodel.h \
$$SRCDIR/calendarimportevent.h

OTHER_FILES += qmldir

MOC_DIR = $$PWD/.moc
OBJECTS_DIR = $$PWD/.obj
10 changes: 10 additions & 0 deletions tools/icalconverter/icalconverter.pro
@@ -0,0 +1,10 @@
TEMPLATE=app
TARGET=icalconverter
QT-=gui
CONFIG += link_pkgconfig
PKGCONFIG += libkcalcoren-qt5 libmkcal-qt5
QMAKE_CXXFLAGS += -fPIE -fvisibility=hidden -fvisibility-inlines-hidden
SOURCES+=main.cpp

target.path = $$INSTALL_ROOT/usr/bin/
INSTALLS+=target
865 changes: 865 additions & 0 deletions tools/icalconverter/main.cpp

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions tools/tools.pro
@@ -0,0 +1,2 @@
TEMPLATE=subdirs
SUBDIRS+=icalconverter

0 comments on commit 2003d22

Please sign in to comment.