From 8453224119a4c5ff7d47d9cd4924d0b1ccb99b3a Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 25 Nov 2017 18:00:06 +0000 Subject: copy 1.2 branch to trunk git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7772 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/udisks/CMakeLists.txt | 51 ---- src/plugins/General/udisks/settingsdialog.cpp | 58 ----- src/plugins/General/udisks/settingsdialog.h | 46 ---- src/plugins/General/udisks/settingsdialog.ui | 122 ---------- .../General/udisks/translations/translations.qrc | 32 --- .../udisks/translations/udisks_plugin_bg.ts | 83 ------- .../udisks/translations/udisks_plugin_cs.ts | 83 ------- .../udisks/translations/udisks_plugin_de.ts | 83 ------- .../udisks/translations/udisks_plugin_el.ts | 83 ------- .../udisks/translations/udisks_plugin_en.ts | 83 ------- .../udisks/translations/udisks_plugin_es.ts | 83 ------- .../udisks/translations/udisks_plugin_fi.ts | 83 ------- .../udisks/translations/udisks_plugin_fr.ts | 83 ------- .../udisks/translations/udisks_plugin_gl_ES.ts | 83 ------- .../udisks/translations/udisks_plugin_he.ts | 83 ------- .../udisks/translations/udisks_plugin_hu.ts | 83 ------- .../udisks/translations/udisks_plugin_id.ts | 83 ------- .../udisks/translations/udisks_plugin_it.ts | 83 ------- .../udisks/translations/udisks_plugin_ja.ts | 83 ------- .../udisks/translations/udisks_plugin_kk.ts | 83 ------- .../udisks/translations/udisks_plugin_lt.ts | 83 ------- .../udisks/translations/udisks_plugin_nl.ts | 83 ------- .../udisks/translations/udisks_plugin_pl_PL.ts | 83 ------- .../udisks/translations/udisks_plugin_pt.ts | 83 ------- .../udisks/translations/udisks_plugin_pt_BR.ts | 83 ------- .../udisks/translations/udisks_plugin_ru.ts | 83 ------- .../udisks/translations/udisks_plugin_sk.ts | 83 ------- .../udisks/translations/udisks_plugin_sr_BA.ts | 83 ------- .../udisks/translations/udisks_plugin_sr_RS.ts | 83 ------- .../udisks/translations/udisks_plugin_tr.ts | 83 ------- .../udisks/translations/udisks_plugin_uk_UA.ts | 83 ------- .../udisks/translations/udisks_plugin_zh_CN.ts | 83 ------- .../udisks/translations/udisks_plugin_zh_TW.ts | 83 ------- src/plugins/General/udisks/udisks.pro | 26 -- src/plugins/General/udisks/udisksdevice.cpp | 50 ---- src/plugins/General/udisks/udisksdevice.h | 54 ----- src/plugins/General/udisks/udisksfactory.cpp | 66 ----- src/plugins/General/udisks/udisksfactory.h | 45 ---- src/plugins/General/udisks/udisksmanager.cpp | 61 ----- src/plugins/General/udisks/udisksmanager.h | 52 ---- src/plugins/General/udisks/udisksplugin.cpp | 269 --------------------- src/plugins/General/udisks/udisksplugin.h | 65 ----- 42 files changed, 3321 deletions(-) delete mode 100644 src/plugins/General/udisks/CMakeLists.txt delete mode 100644 src/plugins/General/udisks/settingsdialog.cpp delete mode 100644 src/plugins/General/udisks/settingsdialog.h delete mode 100644 src/plugins/General/udisks/settingsdialog.ui delete mode 100644 src/plugins/General/udisks/translations/translations.qrc delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_bg.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_cs.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_de.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_el.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_en.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_es.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_fi.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_fr.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_gl_ES.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_he.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_hu.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_id.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_it.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_ja.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_kk.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_lt.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_nl.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_pl_PL.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_pt.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_pt_BR.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_ru.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_sk.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_sr_BA.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_sr_RS.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_tr.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_uk_UA.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_zh_CN.ts delete mode 100644 src/plugins/General/udisks/translations/udisks_plugin_zh_TW.ts delete mode 100644 src/plugins/General/udisks/udisks.pro delete mode 100644 src/plugins/General/udisks/udisksdevice.cpp delete mode 100644 src/plugins/General/udisks/udisksdevice.h delete mode 100644 src/plugins/General/udisks/udisksfactory.cpp delete mode 100644 src/plugins/General/udisks/udisksfactory.h delete mode 100644 src/plugins/General/udisks/udisksmanager.cpp delete mode 100644 src/plugins/General/udisks/udisksmanager.h delete mode 100644 src/plugins/General/udisks/udisksplugin.cpp delete mode 100644 src/plugins/General/udisks/udisksplugin.h (limited to 'src/plugins/General/udisks') diff --git a/src/plugins/General/udisks/CMakeLists.txt b/src/plugins/General/udisks/CMakeLists.txt deleted file mode 100644 index d1538c184..000000000 --- a/src/plugins/General/udisks/CMakeLists.txt +++ /dev/null @@ -1,51 +0,0 @@ -project(libudisks) - - -SET (QT_USE_QTDBUS TRUE) - -INCLUDE(FindQt4) - -include(${QT_USE_FILE}) - -# qt plugin -ADD_DEFINITIONS( -Wall ) -ADD_DEFINITIONS(${QT_DEFINITIONS}) -ADD_DEFINITIONS(-DQT_PLUGIN) -ADD_DEFINITIONS(-DQT_NO_DEBUG) -ADD_DEFINITIONS(-DQT_SHARED) -ADD_DEFINITIONS(-DQT_THREAD) - -include_directories(${CMAKE_CURRENT_BINARY_DIR}) - -# libqmmpui & libqmmp -include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../) -link_directories(${CMAKE_CURRENT_BINARY_DIR}/../../../qmmpui) -link_directories(${CMAKE_CURRENT_BINARY_DIR}/../../../qmmp) - -SET(libudisks_SRCS - udisksfactory.cpp - udisksmanager.cpp - udisksplugin.cpp - udisksdevice.cpp - settingsdialog.cpp -) - -SET(libudisks_RCCS translations/translations.qrc) - -QT4_ADD_RESOURCES(libudisks_RCC_SRCS ${libudisks_RCCS}) - -# user interface - -SET(libudisks_UIS - settingsdialog.ui -) - -QT4_WRAP_UI(libudisks_UIS_H ${libudisks_UIS}) -# Don't forget to include output directory, otherwise -# the UI file won't be wrapped! -include_directories(${CMAKE_CURRENT_BINARY_DIR}) - -ADD_LIBRARY(udisks MODULE ${libudisks_SRCS} ${libudisks_UIS_H} ${libudisks_RCC_SRCS}) -add_dependencies(udisks qmmpui) -target_link_libraries(udisks ${QT_LIBRARIES} qmmpui libqmmp) -install(TARGETS udisks DESTINATION ${LIB_DIR}/qmmp/General) diff --git a/src/plugins/General/udisks/settingsdialog.cpp b/src/plugins/General/udisks/settingsdialog.cpp deleted file mode 100644 index 1d9b792a8..000000000 --- a/src/plugins/General/udisks/settingsdialog.cpp +++ /dev/null @@ -1,58 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 by Ilya Kotov * - * forkotov02@ya.ru * - * * - * 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 -#include - -#include - -#include "settingsdialog.h" - -SettingsDialog::SettingsDialog(QWidget *parent) - : QDialog(parent) -{ - ui.setupUi(this); - QSettings settings(Qmmp::configFile(), QSettings::IniFormat); - settings.beginGroup("UDisks"); - ui.cdGroupBox->setChecked(settings.value("cda", true).toBool()); - ui.addTracksCheckBox->setChecked(settings.value("add_tracks", false).toBool()); - ui.removeTracksCheckBox->setChecked(settings.value("remove_tracks", false).toBool()); - ui.removableGroupBox->setChecked(settings.value("removable", true).toBool()); - ui.addFilesCheckBox->setChecked(settings.value("add_files", false).toBool()); - ui.removeFilesCheckBox->setChecked(settings.value("remove_files", false).toBool()); - settings.endGroup(); -} - - -SettingsDialog::~SettingsDialog() -{} - -void SettingsDialog::accept() -{ - QSettings settings(Qmmp::configFile(), QSettings::IniFormat); - settings.beginGroup("UDisks"); - settings.setValue("cda", ui.cdGroupBox->isChecked()); - settings.setValue("add_tracks", ui.addTracksCheckBox->isChecked()); - settings.setValue("remove_tracks", ui.removeTracksCheckBox->isChecked()); - settings.setValue("removable", ui.removableGroupBox->isChecked()); - settings.setValue("add_files", ui.addFilesCheckBox->isChecked()); - settings.setValue("remove_files", ui.removeFilesCheckBox->isChecked()); - settings.endGroup(); - QDialog::accept(); -} diff --git a/src/plugins/General/udisks/settingsdialog.h b/src/plugins/General/udisks/settingsdialog.h deleted file mode 100644 index 5e7aa64c2..000000000 --- a/src/plugins/General/udisks/settingsdialog.h +++ /dev/null @@ -1,46 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 by Ilya Kotov * - * forkotov02@ya.ru * - * * - * 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 SETTINGSDIALOG_H -#define SETTINGSDIALOG_H - -#include - -#include "ui_settingsdialog.h" - -/** - @author Ilya Kotov -*/ -class SettingsDialog : public QDialog -{ -Q_OBJECT -public: - SettingsDialog(QWidget *parent = 0); - - ~SettingsDialog(); - - -public slots: - virtual void accept(); - -private: - Ui::SettingsDialog ui; -}; - -#endif diff --git a/src/plugins/General/udisks/settingsdialog.ui b/src/plugins/General/udisks/settingsdialog.ui deleted file mode 100644 index 5b039a88c..000000000 --- a/src/plugins/General/udisks/settingsdialog.ui +++ /dev/null @@ -1,122 +0,0 @@ - - - SettingsDialog - - - - 0 - 0 - 348 - 247 - - - - UDisks Plugin Settings - - - - 6 - - - 6 - - - 6 - - - - - CD Audio Detection - - - true - - - - - - Add tracks to playlist automatically - - - - - - - Remove tracks from playlist automatically - - - - - - - - - - Removable Device Detection - - - true - - - - - - Add files to playlist automatically - - - - - - - Remove files from playlist automatically - - - - - - - - - - QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - - - - - - - - buttonBox - accepted() - SettingsDialog - accept() - - - 199 - 221 - - - 22 - 242 - - - - - buttonBox - rejected() - SettingsDialog - reject() - - - 247 - 225 - - - 273 - 229 - - - - - diff --git a/src/plugins/General/udisks/translations/translations.qrc b/src/plugins/General/udisks/translations/translations.qrc deleted file mode 100644 index 46e648a9a..000000000 --- a/src/plugins/General/udisks/translations/translations.qrc +++ /dev/null @@ -1,32 +0,0 @@ - - - - udisks_plugin_ru.qm - udisks_plugin_uk_UA.qm - udisks_plugin_zh_CN.qm - udisks_plugin_zh_TW.qm - udisks_plugin_tr.qm - udisks_plugin_cs.qm - udisks_plugin_pt_BR.qm - udisks_plugin_pt.qm - udisks_plugin_de.qm - udisks_plugin_pl_PL.qm - udisks_plugin_fr.qm - udisks_plugin_it.qm - udisks_plugin_kk.qm - udisks_plugin_lt.qm - udisks_plugin_hu.qm - udisks_plugin_nl.qm - udisks_plugin_ja.qm - udisks_plugin_sk.qm - udisks_plugin_es.qm - udisks_plugin_he.qm - udisks_plugin_gl_ES.qm - udisks_plugin_sr_BA.qm - udisks_plugin_sr_RS.qm - udisks_plugin_bg.qm - udisks_plugin_el.qm - udisks_plugin_id.qm - udisks_plugin_fi.qm - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_bg.ts b/src/plugins/General/udisks/translations/udisks_plugin_bg.ts deleted file mode 100644 index 8b2eea312..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_bg.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - - - - - CD Audio Detection - - - - - Add tracks to playlist automatically - - - - - Remove tracks from playlist automatically - - - - - Removable Device Detection - - - - - Add files to playlist automatically - - - - - Remove files from playlist automatically - - - - - UDisksFactory - - - UDisks Plugin - - - - - About UDisks Plugin - - - - - Qmmp UDisks Plugin - - - - - This plugin provides removable devices detection using UDisks - - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - - - - - UDisksPlugin - - - Add CD "%1" - - - - - Add Volume "%1" - - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_cs.ts b/src/plugins/General/udisks/translations/udisks_plugin_cs.ts deleted file mode 100644 index 1f96a2cb4..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_cs.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - Nastavení modulu UDisks - - - - CD Audio Detection - Detekce zvukových CD - - - - Add tracks to playlist automatically - Automaticky přidat stopy do seznamu skladeb - - - - Remove tracks from playlist automatically - Automaticky odebrat stopy ze seznamu skladeb - - - - Removable Device Detection - Detekce odpojitelných zařízení - - - - Add files to playlist automatically - Automaticky přidat soubory do seznamu skladeb - - - - Remove files from playlist automatically - Automaticky odebrat stopy ze seznamu skladeb - - - - UDisksFactory - - - UDisks Plugin - Modul UDisks - - - - About UDisks Plugin - O modulu UDisks - - - - Qmmp UDisks Plugin - Modul Qmmp UDisks - - - - This plugin provides removable devices detection using UDisks - Tento modul poskytuje detekci výměnných médií pomocí UDisks - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - - - - - UDisksPlugin - - - Add CD "%1" - Přidat CD „%1“ - - - - Add Volume "%1" - Přidat svazek „%1“ - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_de.ts b/src/plugins/General/udisks/translations/udisks_plugin_de.ts deleted file mode 100644 index eb44b7a38..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_de.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - Einstellungen UDisks-Modul - - - - CD Audio Detection - CD-Audio-Erkennung - - - - Add tracks to playlist automatically - Titel automatisch zur Wiedergabeliste hinzufügen - - - - Remove tracks from playlist automatically - Titel automatisch von der Wiedergabeliste entfernen - - - - Removable Device Detection - Wechsellaufwerkerkennung - - - - Add files to playlist automatically - Dateien automatisch zur Wiedergabeliste hinzufügen - - - - Remove files from playlist automatically - Dateien automatisch von der Wiedergabeliste entfernen - - - - UDisksFactory - - - UDisks Plugin - UDisks-Modul - - - - About UDisks Plugin - Über UDisks-Modul - - - - Qmmp UDisks Plugin - Qmmp UDisks-Modul - - - - This plugin provides removable devices detection using UDisks - Dieses Modul bietet Wechsellaufwerkerkennung unter Verwendung von UDisks - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - Geschrieben von: Ilya Kotov <forkotov02@ya.ru> - - - - UDisksPlugin - - - Add CD "%1" - CD „%1“ hinzufügen - - - - Add Volume "%1" - Datenträger „%1“ hinzufügen - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_el.ts b/src/plugins/General/udisks/translations/udisks_plugin_el.ts deleted file mode 100644 index 1572ba5b2..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_el.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - Ρυθμίσεις πρόσθετου UDisks - - - - CD Audio Detection - Ανίχνευση CD ήχου - - - - Add tracks to playlist automatically - Προσθήκη των κομματιών αυτόματα στη λίστα αναπαραγωγής - - - - Remove tracks from playlist automatically - Αφαίρεση των κομματιών αυτόματα από τη λίστα αναπαραγωγής - - - - Removable Device Detection - Ανίχνευση αφαιρούμενης συσκευής - - - - Add files to playlist automatically - Προσθήκη αρχείων αυτόματα στη λίστα αναπαραγωγής - - - - Remove files from playlist automatically - Αφαίρεση των αρχείων από τη λίστα αναπαραγωγής αυτόματα - - - - UDisksFactory - - - UDisks Plugin - Πρόσθετο UDisks - - - - About UDisks Plugin - Σχετικά με το πρόσθετο UDisks - - - - Qmmp UDisks Plugin - Qmmp πρόσθετο UDisks - - - - This plugin provides removable devices detection using UDisks - Αυτό το πρόσθετο παρέχει την ανίχνευση αφαιρούμενων συσκευών μέσω UDisks - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - Γράφτηκε από τον: Ilya Kotov <forkotov02@hotmail.ru> - - - - UDisksPlugin - - - Add CD "%1" - Προσθήκη CD «%1» - - - - Add Volume "%1" - Προσθήκη Έντασης «%1» - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_en.ts b/src/plugins/General/udisks/translations/udisks_plugin_en.ts deleted file mode 100644 index 49a76540e..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_en.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - - - - - CD Audio Detection - - - - - Add tracks to playlist automatically - - - - - Remove tracks from playlist automatically - - - - - Removable Device Detection - - - - - Add files to playlist automatically - - - - - Remove files from playlist automatically - - - - - UDisksFactory - - - UDisks Plugin - - - - - About UDisks Plugin - - - - - Qmmp UDisks Plugin - - - - - This plugin provides removable devices detection using UDisks - - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - - - - - UDisksPlugin - - - Add CD "%1" - - - - - Add Volume "%1" - - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_es.ts b/src/plugins/General/udisks/translations/udisks_plugin_es.ts deleted file mode 100644 index f77c942b4..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_es.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - Configuración del módulo UDisks - - - - CD Audio Detection - Detección de audio CD - - - - Add tracks to playlist automatically - Añadir pistas a la lista de reproducción automáticamente - - - - Remove tracks from playlist automatically - Eliminar pistas de la lista de reproducción automáticamente - - - - Removable Device Detection - Detectar dispositivos extraibles - - - - Add files to playlist automatically - Añadir archivos a la lista de reproducción automáticamente - - - - Remove files from playlist automatically - Eliminar archivos de la lista de reproducción automáticamente - - - - UDisksFactory - - - UDisks Plugin - Módulo UDisks - - - - About UDisks Plugin - Acerca del módulo UDisks - - - - Qmmp UDisks Plugin - Módulo UDisks para Qmmp - - - - This plugin provides removable devices detection using UDisks - Este módulo detecta los dispositivos extraibles utilizando UDisks - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - Escrito por: Ilya Kotov <forkotov02@ya.ru> - - - - UDisksPlugin - - - Add CD "%1" - Añadir CD "%1" - - - - Add Volume "%1" - Añadir volumen "%1" - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_fi.ts b/src/plugins/General/udisks/translations/udisks_plugin_fi.ts deleted file mode 100644 index 2ccace62b..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_fi.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - UDisks-liitännäisen asetukset - - - - CD Audio Detection - - - - - Add tracks to playlist automatically - - - - - Remove tracks from playlist automatically - - - - - Removable Device Detection - - - - - Add files to playlist automatically - - - - - Remove files from playlist automatically - - - - - UDisksFactory - - - UDisks Plugin - - - - - About UDisks Plugin - - - - - Qmmp UDisks Plugin - - - - - This plugin provides removable devices detection using UDisks - - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - Toteuttanut: Ilya Kotov <forkotov02@ya.ru> - - - - UDisksPlugin - - - Add CD "%1" - Lisää CD "%1" - - - - Add Volume "%1" - - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_fr.ts b/src/plugins/General/udisks/translations/udisks_plugin_fr.ts deleted file mode 100644 index ac958df24..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_fr.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - Configuration du greffon UDisks - - - - CD Audio Detection - Détection de CD audio - - - - Add tracks to playlist automatically - Ajouter automatiquement les pistes à la liste - - - - Remove tracks from playlist automatically - Enlever automatiquement les pistes de la liste - - - - Removable Device Detection - Détection de périphérique amovible - - - - Add files to playlist automatically - Ajouter automatiquement les fichiers à la liste - - - - Remove files from playlist automatically - Enlever automatiquement les fichiers à la liste - - - - UDisksFactory - - - UDisks Plugin - Greffon UDisks - - - - About UDisks Plugin - À propos du greffon UDisks - - - - Qmmp UDisks Plugin - Greffon UDisks pour Qmmp - - - - This plugin provides removable devices detection using UDisks - Ce greffon fournit une détection de périphériques amovibles en utilisant UDisks - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - Écrit par : Ilya Kotov <forkotov02@ya.ru> - - - - UDisksPlugin - - - Add CD "%1" - Ajouter CD « %1 » - - - - Add Volume "%1" - Ajouter volume « %1 » - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_gl_ES.ts b/src/plugins/General/udisks/translations/udisks_plugin_gl_ES.ts deleted file mode 100644 index 1803d53cf..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_gl_ES.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - Preferencias do engadido UDisks - - - - CD Audio Detection - Detección de CD de audio - - - - Add tracks to playlist automatically - Engadir pistas á lista de reprodución automaticamente - - - - Remove tracks from playlist automatically - Eliminar pistas da lista de reprodución automaticamente - - - - Removable Device Detection - Detección de dispositivos extraíbles - - - - Add files to playlist automatically - Engadir ficheiros á lista de reprodución automaticamente - - - - Remove files from playlist automatically - Eliminar ficheiros da lista de reprodución automaticamente - - - - UDisksFactory - - - UDisks Plugin - Engadido UDisks - - - - About UDisks Plugin - Sobre o engadido UDisks - - - - Qmmp UDisks Plugin - Engadido UDisks de Qmmp - - - - This plugin provides removable devices detection using UDisks - Este engadido provén detección de dispositivos extraíbles usando UDisks - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - - - - - UDisksPlugin - - - Add CD "%1" - Engadir CD "%1" - - - - Add Volume "%1" - Engadir volume "%1" - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_he.ts b/src/plugins/General/udisks/translations/udisks_plugin_he.ts deleted file mode 100644 index b5b597e45..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_he.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - הגדרות תוסף UDisks - - - - CD Audio Detection - איתור אוטומטי של תקליטור שמע - - - - Add tracks to playlist automatically - הוסף רצועות אוטומטית לתוך רשימת נגינה - - - - Remove tracks from playlist automatically - הסר רצועות אוטומטית מתוך רשימת נגינה - - - - Removable Device Detection - איתור התקנים נשלפים - - - - Add files to playlist automatically - הוסף קבצים אוטומטית לתוך רשימת נגינה - - - - Remove files from playlist automatically - הסר קבצים אוטומטית מתוך רשימת נגינה - - - - UDisksFactory - - - UDisks Plugin - תוסף UDisks - - - - About UDisks Plugin - אודות תוסף UDisks - - - - Qmmp UDisks Plugin - תוסף UDisks של Qmmp - - - - This plugin provides removable devices detection using UDisks - תוסף זה מספק איתור של התקנים נשלפים באמצעות UDisks - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - - - - - UDisksPlugin - - - Add CD "%1" - הוסף תקליטור "%1" - - - - Add Volume "%1" - הוסף כרך "%1" - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_hu.ts b/src/plugins/General/udisks/translations/udisks_plugin_hu.ts deleted file mode 100644 index 58d107042..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_hu.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - - - - - CD Audio Detection - - - - - Add tracks to playlist automatically - - - - - Remove tracks from playlist automatically - - - - - Removable Device Detection - - - - - Add files to playlist automatically - - - - - Remove files from playlist automatically - - - - - UDisksFactory - - - UDisks Plugin - - - - - About UDisks Plugin - - - - - Qmmp UDisks Plugin - - - - - This plugin provides removable devices detection using UDisks - - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - - - - - UDisksPlugin - - - Add CD "%1" - - - - - Add Volume "%1" - - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_id.ts b/src/plugins/General/udisks/translations/udisks_plugin_id.ts deleted file mode 100644 index 097294b2f..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_id.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - Setelan Plugin UDisks - - - - CD Audio Detection - Deteksi Audio CD - - - - Add tracks to playlist automatically - Tambah track ke daftarmain secara otomatis - - - - Remove tracks from playlist automatically - Buang track dari daftarmain secara otomatis - - - - Removable Device Detection - Deteksi Perangkat Dapat-dilepas - - - - Add files to playlist automatically - Tambah file ke daftarmain secara otomatis - - - - Remove files from playlist automatically - Buang file dari daftarmain secara otomatis - - - - UDisksFactory - - - UDisks Plugin - Plugin UDisks - - - - About UDisks Plugin - Tentang Plugin UDisks - - - - Qmmp UDisks Plugin - Plugin UDisks Qmmp - - - - This plugin provides removable devices detection using UDisks - Plugin ini menyediakan deteksi perangkat dapat-dilepas menggunakan UDisks - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - - - - - UDisksPlugin - - - Add CD "%1" - Tambah CD "%1" - - - - Add Volume "%1" - Tambah Volume %1" - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_it.ts b/src/plugins/General/udisks/translations/udisks_plugin_it.ts deleted file mode 100644 index 529fa0a93..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_it.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - - - - - CD Audio Detection - Rilevamento CD Audio - - - - Add tracks to playlist automatically - Aggiungi automaticamente i titoli alla lista dei brani - - - - Remove tracks from playlist automatically - Rimuovi automaticamente i titoli dalla lista dei brani - - - - Removable Device Detection - Rilevamento dispositivi rimovibili - - - - Add files to playlist automatically - Aggiungi brani automaticamente alla lista - - - - Remove files from playlist automatically - Rimuovi automaticamente i brani dalla lista - - - - UDisksFactory - - - UDisks Plugin - - - - - About UDisks Plugin - - - - - Qmmp UDisks Plugin - - - - - This plugin provides removable devices detection using UDisks - - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - Autore: Ilya Kotov <forkotov02@ya.ru> - - - - UDisksPlugin - - - Add CD "%1" - Aggiungi CD "%1" - - - - Add Volume "%1" - Aggiungi libreria "%1" - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_ja.ts b/src/plugins/General/udisks/translations/udisks_plugin_ja.ts deleted file mode 100644 index 7f39f6d7c..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_ja.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - UDisks プラグイン設定 - - - - CD Audio Detection - 音楽 CD 検知 - - - - Add tracks to playlist automatically - プレイリストにトラックを自動追加 - - - - Remove tracks from playlist automatically - プレイリストからトラックを自動除去 - - - - Removable Device Detection - 着脱可能なデバイスの検知 - - - - Add files to playlist automatically - プレイリストにファイルを自動追加 - - - - Remove files from playlist automatically - プレイリストからファイルを自動除去 - - - - UDisksFactory - - - UDisks Plugin - UDisks プラグイン - - - - About UDisks Plugin - UDisks プラグインについて - - - - Qmmp UDisks Plugin - QMMP UDisks プラグイン - - - - This plugin provides removable devices detection using UDisks - このプラグインは着脱可能なデバイスの検知を UDisks により行ないます - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - 制作: Илья Котов (Ilya Kotov) <forkotov02@ya.ru> - - - - UDisksPlugin - - - Add CD "%1" - CD "%1" を追加 - - - - Add Volume "%1" - 量目 "%1" を追加 - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_kk.ts b/src/plugins/General/udisks/translations/udisks_plugin_kk.ts deleted file mode 100644 index 406d1a997..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_kk.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - - - - - CD Audio Detection - - - - - Add tracks to playlist automatically - - - - - Remove tracks from playlist automatically - - - - - Removable Device Detection - - - - - Add files to playlist automatically - - - - - Remove files from playlist automatically - - - - - UDisksFactory - - - UDisks Plugin - - - - - About UDisks Plugin - - - - - Qmmp UDisks Plugin - - - - - This plugin provides removable devices detection using UDisks - - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - - - - - UDisksPlugin - - - Add CD "%1" - - - - - Add Volume "%1" - - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_lt.ts b/src/plugins/General/udisks/translations/udisks_plugin_lt.ts deleted file mode 100644 index 76611afeb..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_lt.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - Udisks įskiepio nustatymai - - - - CD Audio Detection - Audio CD aptikimas - - - - Add tracks to playlist automatically - Įdėti takelius į grojaraštį automatiškai - - - - Remove tracks from playlist automatically - Pašalinti takelius iš grojaraščio automatiškai - - - - Removable Device Detection - Išorinių įrenginių aptikimas - - - - Add files to playlist automatically - Įdėti takelius į grojaratį automatiškai - - - - Remove files from playlist automatically - Pašalinti takelius iš grojaraščio automatiškai - - - - UDisksFactory - - - UDisks Plugin - UDisks įskiepis - - - - About UDisks Plugin - Apie UDisks įskiepį - - - - Qmmp UDisks Plugin - Qmmp UDisks įskiepis - - - - This plugin provides removable devices detection using UDisks - Šis įskiepis suranda išorinius įrenginius - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - Sukūrė: Ilya Kotov - - - - UDisksPlugin - - - Add CD "%1" - Pridėti CD "%1" - - - - Add Volume "%1" - Pridėti tomą "%1" - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_nl.ts b/src/plugins/General/udisks/translations/udisks_plugin_nl.ts deleted file mode 100644 index 98f393eec..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_nl.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - UDisks Module Instellingen - - - - CD Audio Detection - CD Audio Detectie - - - - Add tracks to playlist automatically - Voeg nummers automatisch toe aan speellijst - - - - Remove tracks from playlist automatically - Verwijder nummers automatisch uit afspeellijst - - - - Removable Device Detection - Detectie van Verwisselbare Stations - - - - Add files to playlist automatically - Voeg bestanden automatisch toe aan afspeellijst - - - - Remove files from playlist automatically - Verwijder bestanden automatisch uit afspeellijst - - - - UDisksFactory - - - UDisks Plugin - UDisks Module - - - - About UDisks Plugin - Over de Udisks Module - - - - Qmmp UDisks Plugin - UDisks Module voor Qmmp - - - - This plugin provides removable devices detection using UDisks - Deze module faciliteert de automatische detectie van verwisselbare media gebruikmakend van UDisks - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - Auteur: Ilya Kotov <forkotov02@ya.ru> - - - - UDisksPlugin - - - Add CD "%1" - Voeg CD "%1" toe - - - - Add Volume "%1" - Voeg Station "%1" toe - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_pl_PL.ts b/src/plugins/General/udisks/translations/udisks_plugin_pl_PL.ts deleted file mode 100644 index c0488228c..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_pl_PL.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - Ustawienia wtyczki UDisks - - - - CD Audio Detection - Detekcja płyt CD Audio - - - - Add tracks to playlist automatically - Automatycznie dodaj utwory do listy - - - - Remove tracks from playlist automatically - Automatycznie usuń utwory z listy - - - - Removable Device Detection - Detekcja urządzeń przenośnych - - - - Add files to playlist automatically - Automatycznie dodaj pliki do listy - - - - Remove files from playlist automatically - Automatycznie usuń pliki z listy - - - - UDisksFactory - - - UDisks Plugin - Wtyczka UDisks - - - - About UDisks Plugin - O wtyczce UDisks - - - - Qmmp UDisks Plugin - Wtyczka UDisks dla Qmmp - - - - This plugin provides removable devices detection using UDisks - Ta wtyczka umożliwia wykrywanie urządzeń przenośnych przy użyciu UDisks - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - - - - - UDisksPlugin - - - Add CD "%1" - Dodaj CD "%1" - - - - Add Volume "%1" - Dodaj urządzenie "%1" - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_pt.ts b/src/plugins/General/udisks/translations/udisks_plugin_pt.ts deleted file mode 100644 index fc4569f79..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_pt.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - Definições - - - - CD Audio Detection - Deteção de CD áudio - - - - Add tracks to playlist automatically - Adicionar faixas à lista de reprodução - - - - Remove tracks from playlist automatically - Remover faixas da lista de reprodução - - - - Removable Device Detection - Deteção de discos amovíveis - - - - Add files to playlist automatically - Adicionar ficheiros à lista de reprodução - - - - Remove files from playlist automatically - Remover ficheiros da lista de reprodução - - - - UDisksFactory - - - UDisks Plugin - Suplemento UDisks - - - - About UDisks Plugin - Sobre o suplemento UDisks - - - - Qmmp UDisks Plugin - Suplemento Qmmp UDisks - - - - This plugin provides removable devices detection using UDisks - Este suplemento permite a deteção de discos amovíveis através do serviço UDisks - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - Desenvolvido por: Ilya Kotov <forkotov02@ya.ru> - - - - UDisksPlugin - - - Add CD "%1" - Adicionar CD %1 - - - - Add Volume "%1" - Adicionar volume %1 - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_pt_BR.ts b/src/plugins/General/udisks/translations/udisks_plugin_pt_BR.ts deleted file mode 100644 index a2dc15d7f..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_pt_BR.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - Preferências do plugin UDisks - - - - CD Audio Detection - Detecção de áudio de CD - - - - Add tracks to playlist automatically - Adicionar faixas à lista de reprodução - - - - Remove tracks from playlist automatically - Remover faixas da lista de reprodução - - - - Removable Device Detection - Detecção de dispositivos removíveis - - - - Add files to playlist automatically - Adicionar arquivos à lista de reprodução - - - - Remove files from playlist automatically - Remover arquivos da lista de reprodução - - - - UDisksFactory - - - UDisks Plugin - Plugin UDisks - - - - About UDisks Plugin - Sobre o plugin UDisks - - - - Qmmp UDisks Plugin - Plugin Qmmp UDisks - - - - This plugin provides removable devices detection using UDisks - Este plugin permite a detecção de dispositivos removíveis através do serviço UDisks - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - - - - - UDisksPlugin - - - Add CD "%1" - Adicionar CD %1 - - - - Add Volume "%1" - Adicionar volume %1 - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_ru.ts b/src/plugins/General/udisks/translations/udisks_plugin_ru.ts deleted file mode 100644 index 4dd0816e2..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_ru.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - Настройки модуля UDisks - - - - CD Audio Detection - Автоопределение аудио-CD - - - - Add tracks to playlist automatically - Автоматически добавлять треки в список - - - - Remove tracks from playlist automatically - Автоматически удалять треки из списка - - - - Removable Device Detection - Автоопределение съёмных устройств - - - - Add files to playlist automatically - Автоматически добавлять треки в список - - - - Remove files from playlist automatically - Автоматически удалять треки из списка - - - - UDisksFactory - - - UDisks Plugin - Модуль UDisks - - - - About UDisks Plugin - О модуле UDisks - - - - Qmmp UDisks Plugin - Модуль UDisks для Qmmp - - - - This plugin provides removable devices detection using UDisks - Этот модуль отслеживает съёмные устройства с помощью UDisks - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - Разработчик: Илья Котов <forkotov02@ya.ru> - - - - UDisksPlugin - - - Add CD "%1" - Добавить CD "%1" - - - - Add Volume "%1" - Добавить том "%1" - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_sk.ts b/src/plugins/General/udisks/translations/udisks_plugin_sk.ts deleted file mode 100644 index 2060957bd..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_sk.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - - - - - CD Audio Detection - - - - - Add tracks to playlist automatically - - - - - Remove tracks from playlist automatically - - - - - Removable Device Detection - - - - - Add files to playlist automatically - - - - - Remove files from playlist automatically - - - - - UDisksFactory - - - UDisks Plugin - - - - - About UDisks Plugin - - - - - Qmmp UDisks Plugin - - - - - This plugin provides removable devices detection using UDisks - - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - - - - - UDisksPlugin - - - Add CD "%1" - - - - - Add Volume "%1" - - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_sr_BA.ts b/src/plugins/General/udisks/translations/udisks_plugin_sr_BA.ts deleted file mode 100644 index eda86012b..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_sr_BA.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - Поставке за Удискс - - - - CD Audio Detection - Откривање музичког диска - - - - Add tracks to playlist automatically - Аутоматски додај нумере на листу - - - - Remove tracks from playlist automatically - Аутоматски уклони нумере са листе - - - - Removable Device Detection - Откривање уклоњивих уређаја - - - - Add files to playlist automatically - Аутоматски додај фајлове на листу - - - - Remove files from playlist automatically - Аутоматски уклони фајлове са листе - - - - UDisksFactory - - - UDisks Plugin - Удискс - - - - About UDisks Plugin - О прикључку за UDisks - - - - Qmmp UDisks Plugin - Кумп прикључак за UDisks - - - - This plugin provides removable devices detection using UDisks - Омогућује откривање уклоњивих уређаја користећи UDisks - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - Аутор: Ilya Kotov <forkotov02@ya.ru> - - - - UDisksPlugin - - - Add CD "%1" - Додај диск „%1“ - - - - Add Volume "%1" - Додај складишни простор „%1“ - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_sr_RS.ts b/src/plugins/General/udisks/translations/udisks_plugin_sr_RS.ts deleted file mode 100644 index 2470efdc6..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_sr_RS.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - Поставке за Удискс - - - - CD Audio Detection - Откривање музичког диска - - - - Add tracks to playlist automatically - Аутоматски додај нумере на листу - - - - Remove tracks from playlist automatically - Аутоматски уклони нумере са листе - - - - Removable Device Detection - Откривање уклоњивих уређаја - - - - Add files to playlist automatically - Аутоматски додај фајлове на листу - - - - Remove files from playlist automatically - Аутоматски уклони фајлове са листе - - - - UDisksFactory - - - UDisks Plugin - Удискс - - - - About UDisks Plugin - О прикључку за UDisks - - - - Qmmp UDisks Plugin - Кумп прикључак за UDisks - - - - This plugin provides removable devices detection using UDisks - Омогућује откривање уклоњивих уређаја користећи UDisks - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - Аутор: Ilya Kotov <forkotov02@ya.ru> - - - - UDisksPlugin - - - Add CD "%1" - Додај диск „%1“ - - - - Add Volume "%1" - Додај складишни простор „%1“ - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_tr.ts b/src/plugins/General/udisks/translations/udisks_plugin_tr.ts deleted file mode 100644 index 3ae7e71ce..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_tr.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - - - - - CD Audio Detection - CD Ses Algılama - - - - Add tracks to playlist automatically - Parçaları listeye otomatik olarka ekle - - - - Remove tracks from playlist automatically - Parçaları listeden otomatik olarak kaldır - - - - Removable Device Detection - Çıkarılabilir Aygıt Algılama - - - - Add files to playlist automatically - Dosyaları listeye otomatik olarak ekle - - - - Remove files from playlist automatically - Dosyaları listeden otomatik olarak kaldır - - - - UDisksFactory - - - UDisks Plugin - - - - - About UDisks Plugin - - - - - Qmmp UDisks Plugin - - - - - This plugin provides removable devices detection using UDisks - - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - Yazan: Ilya Kotov <forkotov02@ya.ru> - - - - UDisksPlugin - - - Add CD "%1" - CD "%1" Ekle - - - - Add Volume "%1" - "%1" Aygıtını Ekle - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_uk_UA.ts b/src/plugins/General/udisks/translations/udisks_plugin_uk_UA.ts deleted file mode 100644 index 6de558536..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_uk_UA.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - Налаштування модуля UDisks - - - - CD Audio Detection - Автовизначення аудіо-CD - - - - Add tracks to playlist automatically - Автоматично додавати треки до списку - - - - Remove tracks from playlist automatically - Автоматично видаляти треки зі списку - - - - Removable Device Detection - Виявлення змінних пристроїв - - - - Add files to playlist automatically - Автоматично додавати файли до списку - - - - Remove files from playlist automatically - Автоматично видаляти файли зі списку - - - - UDisksFactory - - - UDisks Plugin - Модуль UDisks - - - - About UDisks Plugin - Про модуль UDisks - - - - Qmmp UDisks Plugin - Модуль UDisks для Qmmp - - - - This plugin provides removable devices detection using UDisks - Цей модуль забезпечує виявлення знімних пристроїв за допомогою UDisks - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - Розробник: Ілля Котов <forkotov02@ya.ru> - - - - UDisksPlugin - - - Add CD "%1" - Додати CD "%1" - - - - Add Volume "%1" - Додати том "%1" - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_zh_CN.ts b/src/plugins/General/udisks/translations/udisks_plugin_zh_CN.ts deleted file mode 100644 index ff3b12673..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_zh_CN.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - UDisks 插件设置 - - - - CD Audio Detection - CD 音频检测 - - - - Add tracks to playlist automatically - 自动添加音轨到播放列表 - - - - Remove tracks from playlist automatically - 自动从播放列表删除音轨 - - - - Removable Device Detection - 可移动设备检测 - - - - Add files to playlist automatically - 自动添加文件到播放列表 - - - - Remove files from playlist automatically - 自动从播放列表删除文件 - - - - UDisksFactory - - - UDisks Plugin - UDisks 插件 - - - - About UDisks Plugin - 关于 UDisks 插件 - - - - Qmmp UDisks Plugin - Qmmp UDisks 插件 - - - - This plugin provides removable devices detection using UDisks - 此插件依据可移动检测使用 UDisks - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - - - - - UDisksPlugin - - - Add CD "%1" - 添加 CD "%1" - - - - Add Volume "%1" - 添加卷 "%1" - - - diff --git a/src/plugins/General/udisks/translations/udisks_plugin_zh_TW.ts b/src/plugins/General/udisks/translations/udisks_plugin_zh_TW.ts deleted file mode 100644 index be5a34032..000000000 --- a/src/plugins/General/udisks/translations/udisks_plugin_zh_TW.ts +++ /dev/null @@ -1,83 +0,0 @@ - - - - - SettingsDialog - - - UDisks Plugin Settings - UDisks 插件設定 - - - - CD Audio Detection - CD 音頻檢測 - - - - Add tracks to playlist automatically - 自動添加音軌到播放清單 - - - - Remove tracks from playlist automatically - 自動從播放清單刪除音軌 - - - - Removable Device Detection - 可移動設備檢測 - - - - Add files to playlist automatically - 自動添加檔案到播放清單 - - - - Remove files from playlist automatically - 自動從播放清單刪除檔案 - - - - UDisksFactory - - - UDisks Plugin - UDisks 外掛 - - - - About UDisks Plugin - 關於 UDisks 外掛 - - - - Qmmp UDisks Plugin - Qmmp UDisks 外掛 - - - - This plugin provides removable devices detection using UDisks - 此插件基於可移動設備檢測來使用 UDisks - - - - Written by: Ilya Kotov <forkotov02@ya.ru> - 作者:Ilya Kotov <forkotov02@ya.ru> - - - - UDisksPlugin - - - Add CD "%1" - 添加 CD "%1" - - - - Add Volume "%1" - 添加卷 "%1" - - - diff --git a/src/plugins/General/udisks/udisks.pro b/src/plugins/General/udisks/udisks.pro deleted file mode 100644 index e45c95554..000000000 --- a/src/plugins/General/udisks/udisks.pro +++ /dev/null @@ -1,26 +0,0 @@ -include(../../plugins.pri) - -TARGET = $$PLUGINS_PREFIX/General/udisks - -QT += dbus - -HEADERS += udisksfactory.h \ - udisksplugin.h \ - udisksmanager.h \ - udisksdevice.h \ - settingsdialog.h - -SOURCES += udisksfactory.cpp \ - udisksplugin.cpp \ - udisksmanager.cpp \ - udisksdevice.cpp \ - settingsdialog.cpp - -FORMS += settingsdialog.ui - -RESOURCES = translations/translations.qrc - -LIBS += $$QMMPUI_LIB - -target.path = $$LIB_DIR/qmmp/General -INSTALLS += target diff --git a/src/plugins/General/udisks/udisksdevice.cpp b/src/plugins/General/udisks/udisksdevice.cpp deleted file mode 100644 index d6d824e37..000000000 --- a/src/plugins/General/udisks/udisksdevice.cpp +++ /dev/null @@ -1,50 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 by Ilya Kotov * - * forkotov02@ya.ru * - * * - * 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 -#include - -#include "udisksdevice.h" - - -UDisksDevice::UDisksDevice(QDBusObjectPath o, QObject *parent) - : QObject(parent) -{ - m_interface = new QDBusInterface("org.freedesktop.UDisks", o.path(), - "org.freedesktop.UDisks.Device", QDBusConnection::systemBus(), this); - m_interface->connection().connect("org.freedesktop.UDisks", o.path(), - "org.freedesktop.UDisks.Device","Changed", - this, SIGNAL(changed())); - m_path = o; -} - -QVariant UDisksDevice::property (const QString &key) -{ - return m_interface->property(key.toLatin1().data()); -} - -UDisksDevice::~UDisksDevice() -{ -} - -QDBusObjectPath UDisksDevice::objectPath() const -{ - return m_path; -} diff --git a/src/plugins/General/udisks/udisksdevice.h b/src/plugins/General/udisks/udisksdevice.h deleted file mode 100644 index f49b3bcc7..000000000 --- a/src/plugins/General/udisks/udisksdevice.h +++ /dev/null @@ -1,54 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 by Ilya Kotov * - * forkotov02@ya.ru * - * * - * 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 UDISKSDEVICE_H -#define UDISKSDEVICE_H - -#include -#include -#include -#include -#include - -class QDBusInterface; - -/** - @author Ilya Kotov -*/ -class UDisksDevice : public QObject -{ - Q_OBJECT -public: - UDisksDevice(QDBusObjectPath o, QObject *parent = 0); - - ~UDisksDevice(); - - QVariant property (const QString &key); - QDBusObjectPath objectPath() const; - -signals: - void changed(); - - -private: - QDBusInterface *m_interface; - QDBusObjectPath m_path; -}; - -#endif diff --git a/src/plugins/General/udisks/udisksfactory.cpp b/src/plugins/General/udisks/udisksfactory.cpp deleted file mode 100644 index 17684b8dc..000000000 --- a/src/plugins/General/udisks/udisksfactory.cpp +++ /dev/null @@ -1,66 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 by Ilya Kotov * - * forkotov02@ya.ru * - * * - * 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 -#include -#include -#include -#include "settingsdialog.h" -#include "udisksplugin.h" -#include "udisksfactory.h" - -const GeneralProperties UDisksFactory::properties() const -{ - GeneralProperties properties; - properties.name = tr("UDisks Plugin"); - properties.shortName = "udisks"; - properties.hasAbout = true; - properties.hasSettings = true; - properties.visibilityControl = false; - return properties; -} - -QObject *UDisksFactory::create(QObject *parent) -{ - return new UDisksPlugin(parent); -} - -QDialog *UDisksFactory::createConfigDialog(QWidget *parent) -{ - return new SettingsDialog(parent); -} - -void UDisksFactory::showAbout(QWidget *parent) -{ - QMessageBox::about (parent, tr("About UDisks Plugin"), - tr("Qmmp UDisks Plugin") + "\n" + - tr("This plugin provides removable devices detection using UDisks") + "\n" + - tr("Written by: Ilya Kotov ")); -} - -QTranslator *UDisksFactory::createTranslator(QObject *parent) -{ - QTranslator *translator = new QTranslator(parent); - QString locale = Qmmp::systemLanguageID(); - translator->load(QString(":/udisks_plugin_") + locale); - return translator; -} - -Q_EXPORT_PLUGIN2(udisks, UDisksFactory) diff --git a/src/plugins/General/udisks/udisksfactory.h b/src/plugins/General/udisks/udisksfactory.h deleted file mode 100644 index 9a096f794..000000000 --- a/src/plugins/General/udisks/udisksfactory.h +++ /dev/null @@ -1,45 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 by Ilya Kotov * - * forkotov02@ya.ru * - * * - * 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 DEVDETECTFACTORY_H -#define DEVDETECTFACTORY_H - -/** - @author Ilya Kotov -*/ -#include -#include - -#include -#include - -class UDisksFactory : public QObject, public GeneralFactory -{ -Q_OBJECT -Q_INTERFACES(GeneralFactory) -public: - const GeneralProperties properties() const; - QObject *create(QObject *parent); - QDialog *createConfigDialog(QWidget *parent); - void showAbout(QWidget *parent); - QTranslator *createTranslator(QObject *parent); - -}; - -#endif diff --git a/src/plugins/General/udisks/udisksmanager.cpp b/src/plugins/General/udisks/udisksmanager.cpp deleted file mode 100644 index 53025ed50..000000000 --- a/src/plugins/General/udisks/udisksmanager.cpp +++ /dev/null @@ -1,61 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 by Ilya Kotov * - * forkotov02@ya.ru * - * * - * 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 -#include -#include - -#include "udisksmanager.h" - -UDisksManager::UDisksManager(QObject *parent) - : QObject(parent) -{ - m_interface = new QDBusInterface("org.freedesktop.UDisks", "/org/freedesktop/UDisks", - "org.freedesktop.UDisks", QDBusConnection::systemBus(), this); - - m_interface->connection().connect("org.freedesktop.UDisks", "/org/freedesktop/UDisks", - "org.freedesktop.UDisks", "DeviceAdded", - this, SIGNAL(deviceAdded(QDBusObjectPath))); - - m_interface->connection().connect("org.freedesktop.UDisks", "/org/freedesktop/UDisks", - "org.freedesktop.UDisks", "DeviceRemoved", - this, SIGNAL(deviceRemoved(QDBusObjectPath))); - - m_interface->connection().connect("org.freedesktop.UDisks", "/org/freedesktop/UDisks", - "org.freedesktop.UDisks", "DeviceChanged", - this, SIGNAL(deviceChanged(QDBusObjectPath))); - -} - - -UDisksManager::~UDisksManager() -{ -} - -QList UDisksManager::findAllDevices() -{ - QDBusReply > reply = m_interface->call("EnumerateDevices"); - if (!reply.isValid()) - { - qWarning("UDisksManager: error: %s", qPrintable(reply.error().name())); - return QList(); - } - return reply.value(); -} diff --git a/src/plugins/General/udisks/udisksmanager.h b/src/plugins/General/udisks/udisksmanager.h deleted file mode 100644 index c109947a6..000000000 --- a/src/plugins/General/udisks/udisksmanager.h +++ /dev/null @@ -1,52 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 by Ilya Kotov * - * forkotov02@ya.ru * - * * - * 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 UDISKSMANAGER_H -#define UDISKSMANAGER_H - -#include -#include -#include - -class QDBusInterface; - -/** - @author Ilya Kotov -*/ -class UDisksManager : public QObject -{ -Q_OBJECT -public: - UDisksManager(QObject *parent = 0); - - ~UDisksManager(); - - QList findAllDevices(); - -signals: - void deviceAdded(QDBusObjectPath); - void deviceRemoved(QDBusObjectPath); - void deviceChanged(QDBusObjectPath); - -private: - QDBusInterface *m_interface; - -}; - -#endif diff --git a/src/plugins/General/udisks/udisksplugin.cpp b/src/plugins/General/udisks/udisksplugin.cpp deleted file mode 100644 index 22f5b1420..000000000 --- a/src/plugins/General/udisks/udisksplugin.cpp +++ /dev/null @@ -1,269 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010-2014 by Ilya Kotov * - * forkotov02@ya.ru * - * * - * 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 -#include -#include -#include -#include -#include -#include -#include -#include -#include "udisksdevice.h" -#include "udisksmanager.h" -#include "udisksplugin.h" - -UDisksPlugin::UDisksPlugin(QObject *parent) : QObject(parent) -{ - m_manager = new UDisksManager(this); - m_actions = new QActionGroup(this); - connect(m_manager,SIGNAL(deviceAdded(QDBusObjectPath)), SLOT(addDevice(QDBusObjectPath))); - connect(m_manager,SIGNAL(deviceChanged(QDBusObjectPath)), SLOT(addDevice(QDBusObjectPath))); - connect(m_manager,SIGNAL(deviceRemoved(QDBusObjectPath)), SLOT(removeDevice(QDBusObjectPath))); - connect(m_actions,SIGNAL(triggered (QAction *)), SLOT(processAction(QAction *))); - //load settings - QSettings settings(Qmmp::configFile(), QSettings::IniFormat); - settings.beginGroup("UDisks"); - m_detectCDA = settings.value("cda", true).toBool(); - m_detectRemovable = settings.value("removable", true).toBool(); - m_addTracks = false; //do not load tracks on startup - m_addFiles = false; - //find existing devices - QList devs = m_manager->findAllDevices(); - foreach(QDBusObjectPath o, devs) - addDevice(o); - //load remaining settings - m_addTracks = settings.value("add_tracks", false).toBool(); - m_removeTracks = settings.value("remove_tracks", false).toBool(); - m_addFiles = settings.value("add_files", false).toBool(); - m_removeFiles = settings.value("remove_files", false).toBool(); - settings.endGroup(); -} - - -UDisksPlugin::~UDisksPlugin() -{ -} - -void UDisksPlugin::removeDevice(QDBusObjectPath o) -{ - foreach(UDisksDevice *device, m_devices) - { - if (device->objectPath() == o) - { - m_devices.removeAll(device); - delete device; - qDebug("UDisksPlugin: device \"%s\" removed", qPrintable(o.path())); - updateActions(); - break; - } - } -} - -void UDisksPlugin::addDevice(QDBusObjectPath o) -{ - foreach(UDisksDevice *device, m_devices) //is it already exists? - { - if (device->objectPath() == o) - return; - } - UDisksDevice *device = new UDisksDevice(o, this); - - //audio cd - if (device->property("DeviceIsOpticalDisc").toBool() && - device->property("OpticalDiscNumAudioTracks").toInt()) - { - if (m_detectCDA) - { - qDebug("UDisksPlugin: device \"%s\" added (cd audio)", qPrintable(o.path())); - m_devices << device; - connect(device, SIGNAL(changed()), SLOT(updateActions())); - updateActions(); - } - else - delete device; - return; - } - - // filter mounted partitions - if ((!device->property("DeviceIsPartition").toBool() || - device->property("DeviceIsSystemInternal").toBool()) && - !device->property("DeviceIsOpticalDisc").toBool()) - { - delete device; - return; - } - if (device->property("PartitionSize").toLongLong() < 40000000000LL && - (device->property("IdType").toString() == "vfat" || - device->property("IdType").toString() == "iso9660" || - device->property("IdType").toString() == "udf" || - device->property("IdType").toString() == "ext2")) - { - if (m_detectRemovable) - { - qDebug("UDisksPlugin: device \"%s\" added (removable)", qPrintable(o.path())); - m_devices << device; - updateActions(); - connect(device, SIGNAL(changed()), SLOT(updateActions())); - } - else - delete device; - return; - } - delete device; -} - -void UDisksPlugin::updateActions() -{ - // add action for cd audio or mounted volume - foreach(UDisksDevice *device, m_devices) - { - QString dev_path; - if (device->property("DeviceIsOpticalDisc").toBool() && - device->property("OpticalDiscNumAudioTracks").toInt()) //cd audio - dev_path = "cdda://" + device->property("DeviceFile").toString(); - else if (device->property("DeviceIsMounted").toBool()) //mounted volume - dev_path = device->property("DeviceMountPaths").toStringList()[0]; - else - continue; - - if (!findAction(dev_path)) - { - QAction *action = new QAction(this); - QString actionText; - if (device->property("DeviceIsOpticalDisc").toBool() - && device->property("OpticalDiscNumAudioTracks").toInt()) - actionText = QString(tr("Add CD \"%1\"")).arg(device->property("DeviceFile").toString()); - else - { - QString name = device->property("IdLabel").toString(); - if (name.isEmpty()) - name = dev_path; - actionText = QString(tr("Add Volume \"%1\"")).arg(name); - } - - if (device->property("DeviceIsOpticalDisc").toBool()) - { - if(device->property("IdType").toString() == "iso9660") - action->setIcon(qApp->style()->standardIcon(QStyle::SP_DriveDVDIcon)); - else - action->setIcon(qApp->style()->standardIcon(QStyle::SP_DriveCDIcon)); - } - else - action->setIcon(qApp->style()->standardIcon(QStyle::SP_DriveHDIcon)); - - action->setText(actionText); - action->setData(dev_path); - m_actions->addAction(action); - UiHelper::instance()->addAction(action, UiHelper::TOOLS_MENU); - addPath(dev_path); - } - } - // remove action if device is unmounted/removed - foreach(QAction *action, m_actions->actions ()) - { - if (!findDevice(action)) - { - m_actions->removeAction(action); - UiHelper::instance()->removeAction(action); - removePath(action->data().toString()); - action->deleteLater(); - } - } -} - -void UDisksPlugin::processAction(QAction *action) -{ - qDebug("UDisksPlugin: action triggered: %s", qPrintable(action->data().toString())); - QString path = action->data().toString(); - MediaPlayer::instance()->playListManager()->selectedPlayList()->add(path); -} - -QAction *UDisksPlugin::findAction(const QString &dev_path) -{ - foreach(QAction *action, m_actions->actions ()) - { - if (action->data().toString() == dev_path) - return action; - } - return 0; -} - -UDisksDevice *UDisksPlugin::findDevice(QAction *action) -{ - foreach(UDisksDevice *device, m_devices) - { - QString dev_path; - if (device->property("DeviceIsOpticalDisc").toBool() && - device->property("OpticalDiscNumAudioTracks").toInt()) - { - dev_path = "cdda://" + device->property("DeviceFile").toString(); - if (dev_path == action->data().toString()) - return device; - } - if (device->property("DeviceIsMounted").toBool()) - { - dev_path = device->property("DeviceMountPaths").toStringList()[0]; - if (dev_path == action->data().toString()) - return device; - } - } - return 0; -} - -void UDisksPlugin::addPath(const QString &path) -{ - PlayListModel *model = PlayListManager::instance()->selectedPlayList(); - - foreach(PlayListItem *item, model->items()) // Is it already exist? - { - if(item->isGroup()) - continue; - if (dynamic_cast(item)->url().startsWith(path)) - return; - } - - if (path.startsWith("cdda://") && m_addTracks) - { - PlayListManager::instance()->selectedPlayList()->add(path); - return; - } - else if (!path.startsWith("cdda://") && m_addFiles) - PlayListManager::instance()->selectedPlayList()->add(path); -} - -void UDisksPlugin::removePath(const QString &path) -{ - if ((path.startsWith("cdda://") && !m_removeTracks) || - (!path.startsWith("cdda://") && !m_removeFiles)) //process settings - return; - - PlayListModel *model = PlayListManager::instance()->selectedPlayList(); - - int i = 0; - while (model->count() > 0 && i < model->count()) - { - if (model->isTrack(i) && model->track(i)->url().startsWith(path)) - model->removeTrack(i); - else - ++i; - } -} diff --git a/src/plugins/General/udisks/udisksplugin.h b/src/plugins/General/udisks/udisksplugin.h deleted file mode 100644 index c463b33fe..000000000 --- a/src/plugins/General/udisks/udisksplugin.h +++ /dev/null @@ -1,65 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2010 by Ilya Kotov * - * forkotov02@ya.ru * - * * - * 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 UDISKSPLUGIN_H -#define UDISKSPLUGIN_H - -#include -#include - -class UDisksManager; -class UDisksDevice; -class QActionGroup; -class QAction; - -/** - @author Ilya Kotov -*/ - -class UDisksPlugin : public QObject -{ -Q_OBJECT -public: - UDisksPlugin(QObject *parent = 0); - - ~UDisksPlugin(); - -private slots: - void removeDevice(QDBusObjectPath); - void addDevice(QDBusObjectPath); - void processAction(QAction *action); - void updateActions(); - -private: - QAction *findAction(const QString &dev_path); - UDisksDevice *findDevice(QAction *action); - void addPath(const QString &path); - void removePath(const QString &path); - UDisksManager *m_manager; - QList m_devices; - QActionGroup *m_actions; - bool m_detectCDA; - bool m_addTracks; - bool m_removeTracks; - bool m_detectRemovable; - bool m_addFiles; - bool m_removeFiles; -}; - -#endif -- cgit v1.2.3-13-gbd6f