Commit c05563c4 authored by Nate Graham's avatar Nate Graham
Browse files

Delete the File Indexer Monitor page

Monitoring features were added into the Baloo KCM in
plasma-desktop@ce0c3fea,
making this page redundant.
parent c264b921
......@@ -79,6 +79,5 @@ endif()
if (CMAKE_SYSTEM_NAME MATCHES Linux)
add_subdirectory(energy)
add_subdirectory(fileindexermonitor)
endif()
# KI18N Translation Domain for this library
add_definitions(-DTRANSLATION_DOMAIN=\"kcm_fileindexermonitor\")
set(kcm_fileindexer_SRCS
kcm.cpp
)
add_library(kcm_fileindexermonitor MODULE ${kcm_fileindexer_SRCS})
target_link_libraries(kcm_fileindexermonitor
Qt::Widgets
KF5::KIOWidgets
KF5::CoreAddons
KF5::KCMUtils
KF5::I18n
KF5::QuickAddons
)
kcoreaddons_desktop_to_json(kcm_fileindexermonitor "kcm_fileindexermonitor.desktop")
install(FILES kcm_fileindexermonitor.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
install(TARGETS kcm_fileindexermonitor DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms)
kpackage_install_package(package kcm_fileindexermonitor kcms)
#! /usr/bin/env bash
$XGETTEXT `find . -name "*.cpp" -o -name "*.qml"` -o $podir/kcm_fileindexermonitor.pot
rm -f rc.cpp
/***************************************************************************
* Copyright (C) 2015 Pinak Ahuja <pinak.ahuja@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* 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 "kcm.h"
#include <KPluginFactory>
#include <KAboutData>
#include <QDebug>
#include <QtQml>
#include <QQmlEngine>
#include <QQmlContext>
#include <KLocalizedString>
K_PLUGIN_FACTORY_WITH_JSON(KCMLookandFeelFactory, "kcm_fileindexermonitor.json", registerPlugin<KCMFileIndexer>();)
using namespace KQuickAddons;
KCMFileIndexer::KCMFileIndexer(QObject *parent, const QVariantList &args) : ConfigModule(parent, args)
{
KAboutData *about = new KAboutData(QStringLiteral("kcm_fileindexermonitor"), i18n("File Indexer Monitor"),
QStringLiteral("0.1"), QString(), KAboutLicense::GPL);
about->addAuthor(i18n("Pinak Ahuja"), QString(), QStringLiteral("pinak.ahuja@gmail.com"));
setAboutData(about);
}
#include "kcm.moc"
/***************************************************************************
* Copyright (C) 2015 Pinak Ahuja <pinak.ahuja@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* 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 KCM_FILEINDEXER_H
#define KCM_FILEINDEXER_H
#include <KQuickAddons/ConfigModule>
class KCMFileIndexer : public KQuickAddons::ConfigModule
{
Q_OBJECT
public:
explicit KCMFileIndexer(QObject *parent, const QVariantList &args);
virtual ~KCMFileIndexer() = default;
};
Q_DECLARE_METATYPE(QList<QPointF>)
#endif // KCM_FILEINDEXER_H
[Desktop Entry]
Exec=kinfocenter kcm_fileindexermonitor
Icon=baloo
Type=Service
X-KDE-ServiceTypes=KCModule
X-KDE-Library=kcm_fileindexermonitor
X-KDE-ParentApp=kinfocenter
X-KDE-KInfoCenter-Category=basic_information
Name=File Indexer Monitor
Name[ar]=مرقاب مفهرس الملفّات
Name[ast]=Supervisor del indizador de ficheros
Name[az]=Fayl indeksləmə İzləyicisi
Name[ca]=Monitor de l'indexador de fitxers
Name[ca@valencia]=Monitor de l'indexador de fitxers
Name[cs]=Monitor indexování souborů
Name[da]=Overvågning af filindeksering
Name[de]=Datei-Indizierungsüberwachung
Name[el]=Επόπτης εφαρμογής δεικτοδότησης αρχείων
Name[en_GB]=File Indexer Monitor
Name[es]=Monitor del indexador de archivos
Name[et]=Failide indekseerimise jälgimine
Name[eu]=Fitxategi indexatzearen begiralea
Name[fi]=Tiedostoindeksoijan valvonta
Name[fr]=Indicateur de l'indexeur de fichiers
Name[gl]=Vixilante do indexador de ficheiros
Name[he]=מנטר אינדוקס קבצים
Name[hu]=Fájlindexelő-figyelő
Name[ia]=Monitor de indicisator de File
Name[id]=Pemantau Pengindeks File
Name[it]=Monitor indicizzatore di file
Name[ko]=파일 인덱서 모니터
Name[lt]=Failų indeksavimo prižiūryklė
Name[nl]=Monitor voor bestandenindexering
Name[nn]=Overvaking av filindeksering
Name[pl]=Monitor indeksowania plików
Name[pt]=Monitor de Indexação de Ficheiros
Name[pt_BR]=Monitor de indexação de arquivos
Name[ro]=Monitor pentru indexatorul de fișiere
Name[ru]=Индексирование файлов
Name[sk]=Monitor indexera súborov
Name[sl]=Nadzornik izgrajevalnika kazala datotek
Name[sr]=Надзорник индексара фајлова
Name[sr@ijekavian]=Надзорник индексара фајлова
Name[sr@ijekavianlatin]=Nadzornik indeksara fajlova
Name[sr@latin]=Nadzornik indeksara fajlova
Name[sv]=Filindexeringsövervakare
Name[tr]=Dosya Dizinleme İzleyicisi
Name[uk]=Монітор засобу індексування файлів
Name[x-test]=xxFile Indexer Monitorxx
Name[zh_CN]=文件索引器监视器
Name[zh_TW]=檔案索引器監視器
Comment=Monitor State of File Indexer
Comment[ar]=حالة مرقاب مفهرس الملفّات
Comment[ast]=Supervisa l'estáu del indizador de ficheros
Comment[az]=Fayl indeksləmə İzləyicisi vəziyyəti
Comment[ca]=Monitor de l'estat de l'indexador de fitxers
Comment[ca@valencia]=Monitor de l'estat de l'indexador de fitxers
Comment[cs]=Sledovat stav indexování souborů
Comment[da]=Overvåg filindekseringens tilstand
Comment[de]=Überwachungsstatus der Datei-Indizierung
Comment[el]=Παρακολούθηση της κατάστασης της δεικτοδότησης αρχείων
Comment[en_GB]=Monitor State of File Indexer
Comment[es]=Monitoriza el estado del indexador de archivos
Comment[et]=Failide indekseerimise oleku jälgimine
Comment[eu]=Fitxategi indexatzailearen egoera gainbegiratu
Comment[fi]=Tiedostoindeksoijan tilan valvonta
Comment[fr]=Indique l'état de l'indexeur de fichiers
Comment[gl]=Vixía o estado do indexador de ficheiros.
Comment[he]=ניטור את מצבו של מאנדקס הקבצים
Comment[hu]=A fájlindexelő állapotának monitorozása
Comment[ia]=Stato de monitor de indicisator de file
Comment[id]=Keadaan Pemantauan Pengindeks File
Comment[it]=Controlla lo stato dell'indicizzatore di file
Comment[ko]=파일 인덱서 상태 관리
Comment[lt]=Stebėti failų indeksavimo būseną
Comment[nl]=Monitorstatus voor bestandenindexering
Comment[nn]=Overvak statusen til filindeksering
Comment[pl]=Stan monitora indeksowania plików
Comment[pt]=Vigia o estado da indexação dos ficheiros
Comment[pt_BR]=Monitora o estado da indexação dos arquivos
Comment[ro]=Monitorizează starea indexatorului de fișiere
Comment[ru]=Состояние индексирования файлов
Comment[sk]=Monitoring stavu indexera súborov
Comment[sl]=Nadzirajte stanje izgrajevalnika kazala datotek
Comment[sr]=Надзире стање индексара фајлова
Comment[sr@ijekavian]=Надзире стање индексара фајлова
Comment[sr@ijekavianlatin]=Nadzire stanje indeksara fajlova
Comment[sr@latin]=Nadzire stanje indeksara fajlova
Comment[sv]=Övervaka filindexeringens tillstånd
Comment[tr]=Dosya Dizinleyici'nin Durumunu İzle
Comment[uk]=Спостереження за станом засобу індексування файлів
Comment[x-test]=xxMonitor State of File Indexerxx
Comment[zh_CN]=监视文件索引器状态
Comment[zh_TW]=監控檔案索引器的狀態
X-KDE-Keywords=Baloo,File,Index,Monitor
X-KDE-Keywords[ar]=Baloo,File,Index,Monitor,بالو,ملف,ملفات,مهفرس,فهرسة,فهرس,مرقاب,مراقب
X-KDE-Keywords[ast]=Ballo,Ficheru,Índiz,Supervisor,Supervisar
X-KDE-Keywords[az]=Baloo,File,Index,Monitor,monitor,müşahidə,faylların indekslənməsi,faylların indekslənməsi vəziyyəti
X-KDE-Keywords[ca]=Baloo,Fitxer,Índex,Monitor
X-KDE-Keywords[ca@valencia]=Baloo,Fitxer,Índex,Monitor
X-KDE-Keywords[cs]=Baloo,Soubor,Index,Monitor
X-KDE-Keywords[da]=Baloo,Fil,Indeksering,Overvåg
X-KDE-Keywords[de]=Baloo,Datei,Index,Indizierung,Überwachung
X-KDE-Keywords[el]=Baloo,Αρχείο,Ευρετήριο,Επόπτης
X-KDE-Keywords[en_GB]=Baloo,File,Index,Monitor
X-KDE-Keywords[es]=Baloo,Archivo,Índice,Monitor
X-KDE-Keywords[et]=Baloo,failid,indekseerimine,jälgimine
X-KDE-Keywords[eu]=Baloo,Fitxategi,Indize,Begirale
X-KDE-Keywords[fi]=Baloo,File,Index,Monitor,Tiedosto,Indeksi,Indeksointi,Valvonta,Tarkkailu,Aktiviteetti
X-KDE-Keywords[fr]=Baloo,Fichier,Index,Indicateur
X-KDE-Keywords[gl]=Baloo,File,Ficheiro,Ficheiros,Index,Índice,Indexador,Monitor,Vixilante,Vixiante,Vixía,Garda
X-KDE-Keywords[he]=Baloo,File,Index,Monitor,קובץ,אינדקס,מוניטור,מנטר
X-KDE-Keywords[hu]=Baloo,Fájl,Index,Monitor
X-KDE-Keywords[ia]=Baloo,File,Index,Monitor
X-KDE-Keywords[id]=Baloo,File,Indeks,Pemantau
X-KDE-Keywords[it]=Baloo,file,indice,monitor
X-KDE-Keywords[ko]=Baloo,File,Index,Monitor,파일,인덱스,색인,모니터
X-KDE-Keywords[lt]=Baloo,Failai,Indeksavimas,Stebėjimas,Stebejimas,Prižiūryklė,Priziurykle
X-KDE-Keywords[nl]=Baloo,bestand,index,monitor
X-KDE-Keywords[nn]=Baloo,fil,indeks,indeksering,overvaking
X-KDE-Keywords[pl]=Baloo,Plik,Indeks,Monitor
X-KDE-Keywords[pt]=Baloo,Ficheiro,Índice,Monitor
X-KDE-Keywords[pt_BR]=Baloo,Arquivo,Índice,Monitor
X-KDE-Keywords[ro]=baloo,fișier,index,monitor
X-KDE-Keywords[ru]=Baloo,File,Index,Monitor,монитор,наблюдение,индексирование файлов,состояние индексирования файлов
X-KDE-Keywords[sk]=Baloo,Súbor,Index,Monitor
X-KDE-Keywords[sl]=Baloo,datoteka,kazalo,indeks,nadzornik
X-KDE-Keywords[sr]=Baloo,File,Index,Monitor,Балу,фајл,индекс,надзор
X-KDE-Keywords[sr@ijekavian]=Baloo,File,Index,Monitor,Балу,фајл,индекс,надзор
X-KDE-Keywords[sr@ijekavianlatin]=Baloo,File,Index,Monitor,Baloo,fajl,indeks,nadzor
X-KDE-Keywords[sr@latin]=Baloo,File,Index,Monitor,Baloo,fajl,indeks,nadzor
X-KDE-Keywords[sv]=Baloo,Fil,Indexering,Övervaka
X-KDE-Keywords[tr]=Baloo,Dosya,Dizin,Monitörü,İzleyici
X-KDE-Keywords[uk]=Baloo,File,Index,Monitor,балу,файл,індекс,індексування,монітор,спостереження,стеження
X-KDE-Keywords[x-test]=xxBalooxx,xxFilexx,xxIndexxx,xxMonitorxx
X-KDE-Keywords[zh_CN]=Baloo,File,Index,Monitor,文件,索引,监视
X-KDE-Keywords[zh_TW]=Baloo,File,Index,Monitor
X-KDE-Weight=3
Categories=Qt;KDE;X-KDE-information;
/*
* This file is part of the KDE Baloo Project
* Copyright (C) 2015 Pinak Ahuja <pinak.ahuja@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) version 3, or any
* later version accepted by the membership of KDE e.V. (or its
* successor approved by the membership of KDE e.V.), which shall
* act as a proxy defined in Section 6 of version 3 of the license.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
var State = {
Idle: 0,
Suspended: 1,
FirstRun: 2,
NewFiles: 3,
ModifiedFiles: 4,
XAttrFiles: 5,
ContentIndexing: 6
}
/*
* This file is part of the KDE Baloo Project
* Copyright (C) 2015 Pinak Ahuja <pinak.ahuja@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) version 3, or any
* later version accepted by the membership of KDE e.V. (or its
* successor approved by the membership of KDE e.V.), which shall
* act as a proxy defined in Section 6 of version 3 of the license.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
import QtQuick 2.4
import QtQuick.Controls 2.0 as QQC2
import QtQuick.Layouts 1.1
import org.kde.baloo.experimental 0.1 as Baloo
import "constants.js" as Constants
import org.kde.kcm 1.1 as KCM
KCM.SimpleKCM {
id: mainWindow
KCM.ConfigModule.quickHelp: i18n("This module lets you monitor the file indexing")
implicitWidth: units.gridUnit * 25
implicitHeight: units.gridUnit * 10
Baloo.Monitor {
id: monitor
}
ColumnLayout {
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.margins: 20
spacing: 20
visible: monitor.balooRunning
QQC2.Label {
id: indexerState
text: i18n("Indexer State: %1", monitor.stateString)
}
QQC2.Label {
id: filePath
// Required so that text elides instead of expanding the entire layout
Layout.maximumWidth: parent.width
width: parent.width
elide: Text.ElideMiddle
text: {
if (monitor.state == Constants.State.ContentIndexing) {
return i18n("Indexing: %1 ", monitor.filePath)
} else if (monitor.state == Constants.State.Idle && monitor.filesIndexed == monitor.totalFiles) {
return i18n("Done")
} else {
return ""
}
}
}
RowLayout {
id: progressLayout
spacing: 20
QQC2.ProgressBar {
id: progress
Layout.fillWidth: true
to: monitor.totalFiles
value: monitor.filesIndexed
}
QQC2.Button {
id: toggleButton
text: monitor.state == Constants.State.Suspended ? i18n("Resume") : i18n("Suspend")
onClicked: monitor.toggleSuspendState()
}
}
QQC2.Label {
visible: monitor.state == Constants.State.ContentIndexing
id: remainingTime
text: i18n("Remaining Time: %1", monitor.remainingTime)
}
}
ColumnLayout {
visible: !monitor.balooRunning
anchors.centerIn: parent
anchors.margins: 20
spacing: 20
QQC2.Label {
Layout.fillWidth: true
horizontalAlignment: Text.AlignHCenter
text: i18n("File Indexer not running")
}
QQC2.Button {
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
id: startBaloo
text: i18n("Start File Indexer")
onClicked: monitor.startBaloo()
}
}
}
[Desktop Entry]
Name=File Indexer Monitor
Name[ar]=مرقاب مفهرس الملفّات
Name[ast]=Supervisor del indizador de ficheros
Name[az]=Fayl indeksləmə İzləyicisi
Name[ca]=Monitor de l'indexador de fitxers
Name[ca@valencia]=Monitor de l'indexador de fitxers
Name[cs]=Monitor indexování souborů
Name[da]=Overvågning af filindeksering
Name[de]=Datei-Indizierungsüberwachung
Name[el]=Επόπτης εφαρμογής δεικτοδότησης αρχείων
Name[en_GB]=File Indexer Monitor
Name[es]=Monitor del indexador de archivos
Name[et]=Failide indekseerimise jälgimine
Name[eu]=Fitxategi indexatzearen begiralea
Name[fi]=Tiedostoindeksoijan valvonta
Name[fr]=Indicateur de l'indexeur de fichiers
Name[gl]=Vixilante do indexador de ficheiros
Name[he]=מנטר אינדוקס קבצים
Name[hu]=Fájlindexelő-figyelő
Name[ia]=Monitor de indicisator de File
Name[id]=Pemantau Pengindeks File
Name[it]=Monitor indicizzatore di file
Name[ko]=파일 인덱서 모니터
Name[lt]=Failų indeksavimo prižiūryklė
Name[nl]=Monitor voor bestandenindexering
Name[nn]=Overvaking av filindeksering
Name[pl]=Monitor indeksowania plików
Name[pt]=Monitor de Indexação de Ficheiros
Name[pt_BR]=Monitor de indexação de arquivos
Name[ro]=Monitor pentru indexatorul de fișiere
Name[ru]=Индексирование файлов
Name[sk]=Monitor indexera súborov
Name[sl]=Nadzornik izgrajevalnika kazala datotek
Name[sr]=Надзорник индексара фајлова
Name[sr@ijekavian]=Надзорник индексара фајлова
Name[sr@ijekavianlatin]=Nadzornik indeksara fajlova
Name[sr@latin]=Nadzornik indeksara fajlova
Name[sv]=Filindexeringsövervakare
Name[tr]=Dosya Dizinleme İzleyicisi
Name[uk]=Монітор засобу індексування файлів
Name[x-test]=xxFile Indexer Monitorxx
Name[zh_CN]=文件索引器监视器
Name[zh_TW]=檔案索引器監視器
Comment=File Index Monitor
Comment[ar]=مرقاب فهرسة الملفّات
Comment[ast]=Supervisor del indizador de ficheros
Comment[az]=Fayl indekslənmə İzləyicisi
Comment[ca]=Monitor de l'índex de fitxers
Comment[ca@valencia]=Monitor de l'índex de fitxers
Comment[cs]=Sledování indexace souborů
Comment[da]=Overvågning af filindeksering
Comment[de]=Datei-Indizierungsüberwachung
Comment[el]=Επόπτης δεικτοδότησης αρχείων
Comment[en_GB]=File Index Monitor
Comment[es]=Monitor del índice de archivos
Comment[et]=Failide indekseerimise jälgimine
Comment[eu]=Fitxategi indizearen begiralea
Comment[fi]=Tiedostoindeksoijan valvonta
Comment[fr]=Indicateur de l'index de fichier
Comment[gl]=Vixilante do índice de ficheiros
Comment[he]=מידע על מאנדקס קבצים
Comment[hu]=Fájlindex-figyelő
Comment[ia]=Monitor de indice de file
Comment[id]=Pemantau Indeks File
Comment[it]=Controllo indicizzazione file
Comment[ko]=파일 인덱스 모니터
Comment[lt]=Failų indeksavimo prižiūryklė
Comment[nl]=Monitor voor bestandenindex
Comment[nn]=Filindekseringsovervaking
Comment[pl]=Monitor indeksowania plików
Comment[pt]=Monitor da Indexação de Ficheiros
Comment[pt_BR]=Monitor da indexação de arquivos
Comment[ro]=Monitor pentru indexul fișierelor
Comment[ru]=Состояние индексирования файлов
Comment[sk]=Monitor indexácie súborov
Comment[sl]=Nadzornik kazala datotek
Comment[sr]=Надзорник индексирања фајлова
Comment[sr@ijekavian]=Надзорник индексирања фајлова
Comment[sr@ijekavianlatin]=Nadzornik indeksiranja fajlova
Comment[sr@latin]=Nadzornik indeksiranja fajlova
Comment[sv]=Övervakare av filindexering
Comment[tr]=Dosya Dizin İzleyicisi
Comment[uk]=Монітор індексування файлів
Comment[x-test]=xxFile Index Monitorxx
Comment[zh_CN]=文件索引监视器
Comment[zh_TW]=檔案索引器監視器
Icon=baloo
Keywords=
Type=Service
X-KDE-ParentApp=
X-KDE-PluginInfo-Author=Pinak Ahuja
X-KDE-PluginInfo-Email=pinak.ahuja@gmail.com
X-KDE-PluginInfo-License=GPL
X-KDE-PluginInfo-Name=kcm_fileindexermonitor
X-KDE-PluginInfo-Version=
X-KDE-PluginInfo-Website=
X-KDE-ServiceTypes=Plasma/GenericQml
X-KDE-FormFactors=
X-Plasma-API=declarativeappletscript
X-Plasma-MainScript=ui/main.qml
......@@ -291,16 +291,6 @@ over a user defined history and detailed information about the battery.
</para>
</sect1>
<!--****************************************-->
<sect1 id="fileindexermonitor">
<title>File Indexer Monitor Module</title>
<para>This Module shows the state of the file indexer. If the indexer is not running
you can start it and then suspend or resume the indexing.</para>
</sect1>
<!--****************************************-->
......
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