Commit 74a1f21a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to create tray icon

parent 655d2086
......@@ -27,11 +27,16 @@ set(pimsettingexporter_job_SRCS
job/fullsynchronizeresourcesjob.cpp
)
set(pimsettingexporter_trayicon_SRCS
trayicon/pimsettingstrayicon.cpp
)
set(pimsettingexporter_SRCS
${pimsettingexporter_kcfg_SRCS}
${pimsettingexporter_widget_SRCS}
${pimsettingexporter_dialog_SRCS}
${pimsettingexporter_job_SRCS}
${pimsettingexporter_trayicon_SRCS}
pimsettingsbackuprestoreui.cpp
importexportprogressindicatorgui.cpp
pimsettingexporterwindow.cpp
......@@ -55,6 +60,7 @@ target_link_libraries(pimsettingexporter
KF5::Archive
KF5::ItemViews
KF5::KIOFileWidgets
KF5::Notifications
)
add_subdirectory(kconf_update)
......
/*
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 "pimsettingstrayicon.h"
#include <KLocalizedString>
PimSettingsTrayIcon::PimSettingsTrayIcon(QObject *parent)
: KStatusNotifierItem(parent)
{
setToolTipTitle(i18n("PimSettingExporter"));
setIconByName(QStringLiteral("kontact"));
}
PimSettingsTrayIcon::~PimSettingsTrayIcon()
{
}
/*
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 PIMSETTINGSTRAYICON_H
#define PIMSETTINGSTRAYICON_H
#include <KStatusNotifierItem>
class PimSettingsTrayIcon : public KStatusNotifierItem
{
Q_OBJECT
public:
explicit PimSettingsTrayIcon(QObject *parent = Q_NULLPTR);
~PimSettingsTrayIcon();
};
#endif // PIMSETTINGSTRAYICON_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