aboutsummaryrefslogtreecommitdiffstats
path: root/x11/kdebase4-runtime
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2007-03-14 03:13:51 +0800
committerlofi <lofi@FreeBSD.org>2007-03-14 03:13:51 +0800
commit87432be6bd25eb3480437ba60a5215c0dd638df1 (patch)
treeab7de9e071d3f9ea98b89e91c1837df514575248 /x11/kdebase4-runtime
parentf2070767435cacee5050d2f4e654719a24f5a4fd (diff)
downloadfreebsd-ports-gnome-87432be6bd25eb3480437ba60a5215c0dd638df1.tar.gz
freebsd-ports-gnome-87432be6bd25eb3480437ba60a5215c0dd638df1.tar.zst
freebsd-ports-gnome-87432be6bd25eb3480437ba60a5215c0dd638df1.zip
Update to KDE 3.5.6 / KOffice 1.6.2
Diffstat (limited to 'x11/kdebase4-runtime')
-rw-r--r--x11/kdebase4-runtime/Makefile10
-rw-r--r--x11/kdebase4-runtime/distinfo6
-rw-r--r--x11/kdebase4-runtime/files/extrapatch-kio_media5814
-rw-r--r--x11/kdebase4-runtime/files/extrapatch-kioslave_media_mediamanager-fstabbackend.cpp10
-rw-r--r--x11/kdebase4-runtime/files/extrapatch-kioslave_media_mediamanager-halbackend.cpp125
-rw-r--r--x11/kdebase4-runtime/files/extrapatch-kioslave_media_mediamanager-halbackend.h12
-rw-r--r--x11/kdebase4-runtime/files/extrapatch-kioslave_media_mounthelper-kio_media_mounthelper.cpp25
-rw-r--r--x11/kdebase4-runtime/files/patch-kdm-kfrontend-genkdmconf.c11
-rw-r--r--x11/kdebase4-runtime/files/patch-kwin-client.cpp39
-rw-r--r--x11/kdebase4-runtime/pkg-plist30
10 files changed, 107 insertions, 5975 deletions
diff --git a/x11/kdebase4-runtime/Makefile b/x11/kdebase4-runtime/Makefile
index 53cec9a18b5f..b4baad2d68d0 100644
--- a/x11/kdebase4-runtime/Makefile
+++ b/x11/kdebase4-runtime/Makefile
@@ -8,7 +8,6 @@
PORTNAME= kdebase
PORTVERSION= ${KDE_VERSION}
-PORTREVISION= 4
CATEGORIES= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src
@@ -42,7 +41,7 @@ PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
USE_AUTOTOOLS= libtool:15
-INSTALLS_SHLIB= yes
+USE_LDCONFIG= yes
LDCONFIG_DIRS+= %%PREFIX%%/lib %%PREFIX%%/lib/kde3
CONFIGURE_ENV+= RUN_KAPPFINDER=no kde_cv_utmp_file=/var/run/utmp
@@ -52,7 +51,7 @@ CONFIGURE_ARGS+=--without-java \
--with-ssl-dir=${OPENSSLBASE}
OPTIONS= ARTSWRAPPER "Suid wrapper for aRts, req'd for realtime prio" on \
- HAL "Use HAL backend for media:/ (FreeBSD 5+ only)" off \
+ HAL "Use HAL backend for media:/ (FreeBSD 5+ only)" on \
HTDIG "Depend on htdig, used to build manual indices" off
.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
@@ -70,7 +69,7 @@ RUN_DEPENDS+= artswrapper:${PORTSDIR}/audio/artswrapper
RUN_DEPENDS+= htdig:${PORTSDIR}/textproc/htdig
.endif
-.if defined(WITH_HAL) && ${OSVERSION} > 500035
+.if !defined(WITHOUT_HAL) && ${OSVERSION} > 500035
EXTRA_PATCHES= ${FILESDIR}/extrapatch-kioslave_media_mediamanager-halbackend.cpp \
${FILESDIR}/extrapatch-kioslave_media_mediamanager-halbackend.h \
${FILESDIR}/extrapatch-kioslave_media_mounthelper-kio_media_mounthelper.cpp
@@ -79,12 +78,9 @@ LIB_DEPENDS+= dbus-qt-1.1:${PORTSDIR}/devel/dbus-qt3 \
PLIST_SUB+= MEDIA=""
.else
CONFIGURE_ARGS+=--without-hal
-EXTRA_PATCHES= ${FILESDIR}/extrapatch-kio_media \
- ${FILESDIR}/extrapatch-kioslave_media_mediamanager-fstabbackend.cpp
PLIST_SUB+= MEDIA="@comment "
.endif
-
post-extract:
@${ECHO} "#!/bin/sh" > ${WRKSRC}/mkpamserv
@${ECHO} "exit 0" >> ${WRKSRC}/mkpamserv
diff --git a/x11/kdebase4-runtime/distinfo b/x11/kdebase4-runtime/distinfo
index 6f53a73368ff..9051c799c5c2 100644
--- a/x11/kdebase4-runtime/distinfo
+++ b/x11/kdebase4-runtime/distinfo
@@ -1,3 +1,3 @@
-MD5 (KDE/kdebase-3.5.5.tar.bz2) = 0c685af1cbca75f9c77b3ed231ba0468
-SHA256 (KDE/kdebase-3.5.5.tar.bz2) = f77632e44214648e2d0adfe1a79dd61a6a738c21fe5abb0baff16b72432baaa0
-SIZE (KDE/kdebase-3.5.5.tar.bz2) = 23851886
+MD5 (KDE/kdebase-3.5.6.tar.bz2) = a53f589f58012e655a52220a6a151019
+SHA256 (KDE/kdebase-3.5.6.tar.bz2) = 245b35f8b2e1533f9ae92b3b07bee5339a716dfb8db363d0126d2e7409b7bd7e
+SIZE (KDE/kdebase-3.5.6.tar.bz2) = 24155599
diff --git a/x11/kdebase4-runtime/files/extrapatch-kio_media b/x11/kdebase4-runtime/files/extrapatch-kio_media
deleted file mode 100644
index ab1a03b094cb..000000000000
--- a/x11/kdebase4-runtime/files/extrapatch-kio_media
+++ /dev/null
@@ -1,5814 +0,0 @@
-diff -urN kioslave/media/Makefile.in kioslave/media/Makefile.in
---- kioslave/media/Makefile.in Sat Oct 7 16:42:32 2006
-+++ kioslave/media/Makefile.in Fri May 26 09:54:31 2006
-@@ -122,8 +122,7 @@
- DATA = $(kde_services_DATA)
- ETAGS = etags
- CTAGS = ctags
--DIST_SUBDIRS = libmediacommon . mediamanager medianotifier mounthelper \
-- kfile-plugin kcmodule mimetypes services propsdlgplugin
-+DIST_SUBDIRS = $(SUBDIRS)
- #>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
- #>+ 1
- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
-@@ -276,6 +275,7 @@
- LIBTOOL = @LIBTOOL@
- LIBUCB = @LIBUCB@
- LIBUSBCONFIG = @LIBUSBCONFIG@
-+LIBUTEMPTER = @LIBUTEMPTER@
- LIBUTIL = @LIBUTIL@
- LIBXDMCP = @LIBXDMCP@
- LIBXFT_LIB = @LIBXFT_LIB@
-@@ -611,9 +611,8 @@
- xdg_appsdir = @xdg_appsdir@
- xdg_directorydir = @xdg_directorydir@
- xdg_menudir = @xdg_menudir@
--@include_media_halbackend_TRUE@PROPSDLGPLUGINDIR = propsdlgplugin
- SUBDIRS = libmediacommon . mediamanager medianotifier mounthelper \
-- kfile-plugin kcmodule mimetypes services $(PROPSDLGPLUGINDIR)
-+ kfile-plugin kcmodule mimetypes services
-
- INCLUDES = -I$(srcdir)/libmediacommon $(all_includes)
- #>- METASOURCES = AUTO
-@@ -1092,8 +1091,7 @@
- ./testmedia
-
- messages: rc.cpp
-- $(EXTRACTRC) propsdlgplugin/propertiespagegui.ui >> rc.cpp
-- $(XGETTEXT) *.cpp *.h kfile-plugin/*.cpp libmediacommon/*.cpp mediamanager/*.cpp mounthelper/*.cpp propsdlgplugin/*.cpp -o $(podir)/kio_media.pot
-+ $(XGETTEXT) *.cpp *.h kfile-plugin/*.cpp libmediacommon/*.cpp mediamanager/*.cpp mounthelper/*.cpp -o $(podir)/kio_media.pot
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
- .NOEXPORT:
-diff -urN kioslave/media/kcmodule/Makefile.in kioslave/media/kcmodule/Makefile.in
---- kioslave/media/kcmodule/Makefile.in Sat Oct 7 16:42:32 2006
-+++ kioslave/media/kcmodule/Makefile.in Fri May 26 09:54:31 2006
-@@ -253,6 +253,7 @@
- LIBTOOL = @LIBTOOL@
- LIBUCB = @LIBUCB@
- LIBUSBCONFIG = @LIBUSBCONFIG@
-+LIBUTEMPTER = @LIBUTEMPTER@
- LIBUTIL = @LIBUTIL@
- LIBXDMCP = @LIBXDMCP@
- LIBXFT_LIB = @LIBXFT_LIB@
-diff -urN kioslave/media/kcmodule/managermodule.cpp kioslave/media/kcmodule/managermodule.cpp
---- kioslave/media/kcmodule/managermodule.cpp Sat Jul 22 10:15:43 2006
-+++ kioslave/media/kcmodule/managermodule.cpp Sun Nov 20 20:14:21 2005
-@@ -39,15 +39,15 @@
- QString hal_text = view->kcfg_HalBackendEnabled->text();
- hal_text += " ("+i18n("No support for HAL on this system")+")";
- view->kcfg_HalBackendEnabled->setText( hal_text );
--#endif
- view->kcfg_HalBackendEnabled->setEnabled( false );
-+#endif
-
- #ifndef COMPILE_LINUXCDPOLLING
- QString poll_text = view->kcfg_CdPollingEnabled->text();
- poll_text += " ("+i18n("No support for CD polling on this system")+")";
- view->kcfg_CdPollingEnabled->setText( poll_text );
--#endif
- view->kcfg_CdPollingEnabled->setEnabled( false );
-+#endif
-
- load();
- }
-diff -urN kioslave/media/kcmodule/media.desktop kioslave/media/kcmodule/media.desktop
---- kioslave/media/kcmodule/media.desktop Sun Oct 1 19:31:53 2006
-+++ kioslave/media/kcmodule/media.desktop Mon May 22 20:12:42 2006
-@@ -24,7 +24,6 @@
- Name[es]=Dispositivos de almacenamiento
- Name[et]=Andmekandjad
- Name[eu]=Biltegiratze-euskarria
--Name[fa]=رسانه ذخیره‌گاه
- Name[fi]=Tallennusmedia
- Name[fr]=Support de stockage
- Name[fy]=Opslachapparaten
-@@ -33,7 +32,7 @@
- Name[he]=התקנים
- Name[hi]=भंडार मीडिया
- Name[hr]=Mediji za pohranjivanje
--Name[hu]=Tárolóeszközök
-+Name[hu]=Tárolóeszköz
- Name[is]=Geymslumiðlar
- Name[it]=Dispositivi di archiviazione
- Name[ja]=記憶メディア
-@@ -43,7 +42,7 @@
- Name[mk]=Медиуми за податоци
- Name[ms]=Media Storan
- Name[nb]=Lagringsenheter
--Name[nds]=Spiekermedien
-+Name[nds]=Spiekerreedschappen
- Name[nl]=Opslagapparaten
- Name[nn]=Lagringsmedium
- Name[pa]=ਸਟੋਰੇਜ਼ ਮੀਡਿਆ
-@@ -54,7 +53,6 @@
- Name[ru]=Устройства хранения данных
- Name[rw]=Uburyo bwo Kubika
- Name[se]=Vurkenmedia
--Name[sk]=Zálohovacie médiá
- Name[sl]=Nosilci za shranjevanje
- Name[sr]=Складишни медијуми
- Name[sr@Latn]=Skladišni medijumi
-@@ -82,13 +80,11 @@
- Comment[es]=Configuración de las medios de almacenamiento
- Comment[et]=Salvestusandmekandjate seadistused
- Comment[eu]=Konfiguratu biltegiratze-euskarria
--Comment[fa]=پیکربندی رسانه ذخیره‌گاه
- Comment[fi]=Aseta tallennusmedia
- Comment[fr]=Configurer le média de stockage
- Comment[fy]=Opslachmedia ynstelle
- Comment[ga]=Cumraigh Meáin Stórála
- Comment[gl]=Configurar Medios de Armacenaxe
--Comment[he]=שינוי הגדרות מדיות אחסון
- Comment[hr]=Konfiguriranje medija za pohranu
- Comment[hu]=A tárolóeszközök beállítása
- Comment[is]=Stillingar geymslumiðla
-@@ -98,16 +94,15 @@
- Comment[lt]=Konfigūruoti saugojimo įrenginius
- Comment[mk]=Конфигурирајте ги медиумите за податоци
- Comment[nb]=Sett opp lagringsmedier
--Comment[nds]=Spiekermedien instellen
-+Comment[nds]=Spiekerreedschappen instellen
- Comment[nl]=Opslagmedia instellen
- Comment[nn]=Set opp lagringsmedium
- Comment[pa]=ਸਟੋਰੇਜ਼ ਮੀਡਿਆ ਸੰਰਚਨਾ
- Comment[pl]=Konfiguracja nośników danych
--Comment[pt]=Configurar os Suportes de Armazenamento
-+Comment[pt]=Configurar os Meios de Armazenamento
- Comment[pt_BR]=Configura as mídias de armazenamento
- Comment[ru]=Настройка подключаемых устройств хранения
- Comment[se]=Heivet vurkenmediaid
--Comment[sk]=Nastavenie zálohovacích médií
- Comment[sl]=Nastavitve nosilcev za shranjevanje
- Comment[sr]=Подешавање медијума за складиштење
- Comment[sr@Latn]=Podešavanje medijuma za skladištenje
-@@ -132,13 +127,11 @@
- Keywords[es]=almacenamiento,medios,usb,cdrom,dispositivo
- Keywords[et]=salvestamine,andmekandja,usb,cd,seade
- Keywords[eu]=biltegiratzea,euskarriak,usb,cdrom,gailua
--Keywords[fa]=ذخیره گاه، رسانه، گذرگاه سریال جهانی، دیسک فشرده، دستگاه
- Keywords[fi]=varasto,media,usb,cdrom,laite
- Keywords[fr]=stockage,media,medium,usb,cdrom,périphérique
- Keywords[fy]=storage,opslach,media,usb,cd-rom,kompakt-skiif,device,apparaat,mp3-speler,usb-stick,geheugenkaart
- Keywords[ga]=stóráil,stóras,meáin,meán,usb,cdrom,dlúthdhiosca,gléas
- Keywords[gl]=armacenaxe,medios,usb,cdrom,dispositivo
--Keywords[he]=storage,media,usb,cdrom,device,מדיה,התקן,סידירום,תקליטור
- Keywords[hr]=storage,media,usb,cdrom,device,pohrana,snimanje,mediji,uređaj
- Keywords[hu]=tároló,adathordozó,USB,CD-ROM,eszköz
- Keywords[is]=geymsla,miðill,usb,cdrom,tæki
-@@ -153,7 +146,7 @@
- Keywords[nn]=lagring,media,usb,CD-spiller,CD-ROM,einingar,minnepinnar,harddiskar,HD,eksterne harddiskar,zip-diskar
- Keywords[pa]=ਸਟੋਰੇਜ਼,ਮੀਡਿਆ,ਜੰਤਰ,usb,cdrom
- Keywords[pl]=dane,przechowywanie danych,nośnik danych,nośniki danych,usb,cdrom,urządzenie
--Keywords[pt]=armazenamento,meio,suporte,usb,cdrom,dispositivo
-+Keywords[pt]=armazenamento,meio,usb,cdrom,dispositivo
- Keywords[pt_BR]=armazenamento,mídia,usb,cd-rom,device,dispositivo
- Keywords[ru]=storage,media,usb,cdrom,device,устройство хранения
- Keywords[sl]=shranjevanje,nosilec,usb,cdrom,naprava
-diff -urN kioslave/media/kcmodule/notifiermodule.cpp kioslave/media/kcmodule/notifiermodule.cpp
---- kioslave/media/kcmodule/notifiermodule.cpp Sat Jul 22 10:15:43 2006
-+++ kioslave/media/kcmodule/notifiermodule.cpp Mon May 22 20:12:42 2006
-@@ -174,8 +174,8 @@
- ActionListBoxItem *action_item
- = static_cast<ActionListBoxItem*>(m_view->actionsList->selectedItem());
-
-- NotifierServiceAction * action = dynamic_cast<NotifierServiceAction*>( action_item->action() );
-- if ( action )
-+ NotifierServiceAction * action;
-+ if ( (action = dynamic_cast<NotifierServiceAction*>( action_item->action() ) ) )
- {
- ServiceConfigDialog dialog(action, m_settings.supportedMimetypes(), this);
-
-@@ -195,8 +195,7 @@
- = static_cast<ActionListBoxItem*>(m_view->actionsList->selectedItem());
-
- NotifierServiceAction *action;
-- action = dynamic_cast<NotifierServiceAction*>( action_item->action() );
-- if ( action )
-+ if ( (action = dynamic_cast<NotifierServiceAction*>( action_item->action() )) )
- {
- m_settings.deleteAction( action );
- updateListBox();
-diff -urN kioslave/media/kfile-plugin/Makefile.in kioslave/media/kfile-plugin/Makefile.in
---- kioslave/media/kfile-plugin/Makefile.in Sat Oct 7 16:42:32 2006
-+++ kioslave/media/kfile-plugin/Makefile.in Fri May 26 09:54:31 2006
-@@ -248,6 +248,7 @@
- LIBTOOL = @LIBTOOL@
- LIBUCB = @LIBUCB@
- LIBUSBCONFIG = @LIBUSBCONFIG@
-+LIBUTEMPTER = @LIBUTEMPTER@
- LIBUTIL = @LIBUTIL@
- LIBXDMCP = @LIBXDMCP@
- LIBXFT_LIB = @LIBXFT_LIB@
-diff -urN kioslave/media/kfile-plugin/kfile_media.desktop kioslave/media/kfile-plugin/kfile_media.desktop
---- kioslave/media/kfile-plugin/kfile_media.desktop Sun Oct 1 19:31:53 2006
-+++ kioslave/media/kfile-plugin/kfile_media.desktop Mon May 22 20:12:42 2006
-@@ -16,7 +16,6 @@
- Name[es]=Información de recursos
- Name[et]=Andmekandja info
- Name[eu]=Media informazioa
--Name[fa]=اطلاعات رسانه
- Name[fi]=Tallenteiden tiedot
- Name[fr]=Informations sur le média
- Name[fy]=Mediumynformaasje
-@@ -47,7 +46,6 @@
- Name[ru]=Сведения о носителе
- Name[rw]=Amakuru y'igitangazamakuru
- Name[se]=Mediumdieđut
--Name[sk]=Informácie o médiu
- Name[sl]=Informacije o mediju
- Name[sr]=Информације о медијуму
- Name[sr@Latn]=Informacije o medijumu
-@@ -63,4 +61,4 @@
- Name[zh_TW]=媒體資訊
- ServiceTypes=KFilePlugin
- X-KDE-Library=kfile_media
--MimeType=media/audiocd;media/hdd_mounted;media/blankcd;media/hdd_unmounted;media/blankdvd;media/cdrom_mounted;media/cdrom_unmounted;media/cdwriter_mounted;media/nfs_mounted;media/cdwriter_unmounted;media/nfs_unmounted;media/removable_mounted;media/dvd_mounted;media/removable_unmounted;media/dvd_unmounted;media/smb_mounted;media/dvdvideo;media/smb_unmounted;media/floppy5_mounted;media/svcd;media/floppy5_unmounted;media/vcd;media/floppy_mounted;media/zip_mounted;media/floppy_unmounted;media/zip_unmounted;media/gphoto2camera;media/camera_mounted;media/camera_unmounted
-+MimeType=media/audiocd;media/hdd_mounted;media/blankcd;media/hdd_unmounted;media/blankdvd;media/cdrom_mounted;media/cdrom_unmounted;media/cdwriter_mounted;media/nfs_mounted;media/cdwriter_unmounted;media/nfs_unmounted;media/removable_mounted;media/dvd_mounted;media/removable_unmounted;media/dvd_unmounted;media/smb_mounted;media/dvdvideo;media/smb_unmounted;media/floppy5_mounted;media/svcd;media/floppy5_unmounted;media/vcd;media/floppy_mounted;media/zip_mounted;media/floppy_unmounted;media/zip_unmounted;media/gphoto2camera
-diff -urN kioslave/media/kfile-plugin/kfilemediaplugin.cpp kioslave/media/kfile-plugin/kfilemediaplugin.cpp
---- kioslave/media/kfile-plugin/kfilemediaplugin.cpp Sat Jul 22 10:15:42 2006
-+++ kioslave/media/kfile-plugin/kfilemediaplugin.cpp Tue Nov 8 23:36:07 2005
-@@ -64,16 +64,12 @@
- addMimeType( "media/floppy_unmounted" );
- addMimeType( "media/zip_unmounted" );
- addMimeType( "media/gphoto2camera" );
-- addMimeType( "media/camera_mounted" );
-- addMimeType( "media/camera_unmounted" );
- }
-
- bool KFileMediaPlugin::readInfo(KFileMetaInfo &info, uint /*what*/)
- {
-- const Medium medium = askMedium(info);
-+ const Medium medium = askMedium(info);
-
-- kdDebug() << "KFileMediaPlugin::readInfo " << medium.id() << endl;
--
- if (medium.id().isNull()) return false;
-
- QString mount_point = medium.mountPoint();
-@@ -165,8 +161,7 @@
- const Medium KFileMediaPlugin::askMedium(KFileMetaInfo &info)
- {
- DCOPRef mediamanager("kded", "mediamanager");
-- kdDebug() << "properties " << info.url() << endl;
-- DCOPReply reply = mediamanager.call( "properties", info.url().url() );
-+ DCOPReply reply = mediamanager.call( "properties", info.url().fileName() );
-
- if ( !reply.isValid() )
- {
-diff -urN kioslave/media/libmediacommon/Makefile.in kioslave/media/libmediacommon/Makefile.in
---- kioslave/media/libmediacommon/Makefile.in Sat Oct 7 16:42:32 2006
-+++ kioslave/media/libmediacommon/Makefile.in Fri May 26 09:54:31 2006
-@@ -250,6 +250,7 @@
- LIBTOOL = @LIBTOOL@
- LIBUCB = @LIBUCB@
- LIBUSBCONFIG = @LIBUSBCONFIG@
-+LIBUTEMPTER = @LIBUTEMPTER@
- LIBUTIL = @LIBUTIL@
- LIBXDMCP = @LIBXDMCP@
- LIBXFT_LIB = @LIBXFT_LIB@
-diff -urN kioslave/media/libmediacommon/medium.cpp kioslave/media/libmediacommon/medium.cpp
---- kioslave/media/libmediacommon/medium.cpp Sat Jul 22 10:15:42 2006
-+++ kioslave/media/libmediacommon/medium.cpp Mon Oct 10 17:04:00 2005
-@@ -40,8 +40,6 @@
- m_properties+= QString::null; /* ICON_NAME */
-
- loadUserLabel();
--
-- m_halmounted = false;
- }
-
- Medium::Medium()
-@@ -59,8 +57,6 @@
- m_properties+= QString::null; /* BASE_URL */
- m_properties+= QString::null; /* MIME_TYPE */
- m_properties+= QString::null; /* ICON_NAME */
--
-- m_halmounted = false;
- }
-
- const Medium Medium::create(const QStringList &properties)
-@@ -163,7 +159,7 @@
- bool Medium::mountableState(bool mounted)
- {
- if ( m_properties[DEVICE_NODE].isEmpty()
-- || ( mounted && m_properties[MOUNT_POINT].isEmpty() ) )
-+ || m_properties[MOUNT_POINT].isEmpty() )
- {
- return false;
- }
-@@ -208,10 +204,14 @@
-
- KURL Medium::prettyBaseURL() const
- {
-- if ( !baseURL().isEmpty() )
-- return baseURL();
--
-+ if ( isMountable() )
-+ {
- return KURL( mountPoint() );
-+ }
-+ else
-+ {
-+ return KURL( baseURL() );
-+ }
- }
-
- QString Medium::prettyLabel() const
-diff -urN kioslave/media/libmediacommon/medium.h kioslave/media/libmediacommon/medium.h
---- kioslave/media/libmediacommon/medium.h Sat Jul 22 10:15:42 2006
-+++ kioslave/media/libmediacommon/medium.h Mon Oct 10 17:04:00 2005
-@@ -22,7 +22,6 @@
- #include <qstring.h>
- #include <qstringlist.h>
- #include <kurl.h>
--#include <qmap.h>
-
- class Medium
- {
-@@ -79,32 +78,14 @@
-
- void setMimeType(const QString &mimeType);
- void setIconName(const QString &iconName);
-- void setHalMounted(bool flag) const { m_halmounted = flag; }
-- bool halMounted() const { return m_halmounted; }
-
- private:
- Medium();
- void loadUserLabel();
-
- QStringList m_properties;
-- mutable bool m_halmounted;
--
-+
- friend class QValueListNode<const Medium>;
- };
--
--namespace MediaManagerUtils {
-- static inline QMap<QString,QString> splitOptions(const QStringList & options)
-- {
-- QMap<QString,QString> valids;
--
-- for (QStringList::ConstIterator it = options.begin(); it != options.end(); ++it)
-- {
-- QString key = (*it).left((*it).find('='));
-- QString value = (*it).mid((*it).find('=') + 1);
-- valids[key] = value;
-- }
-- return valids;
-- }
--}
-
- #endif
-diff -urN kioslave/media/mediaimpl.cpp kioslave/media/mediaimpl.cpp
---- kioslave/media/mediaimpl.cpp Sat Jul 22 10:15:45 2006
-+++ kioslave/media/mediaimpl.cpp Mon Oct 10 17:04:01 2005
-@@ -226,8 +226,6 @@
-
- mp_mounting = &medium;
-
--
-- /*
- KIO::Job* job = KIO::mount(false, 0,
- medium.deviceNode(),
- medium.mountPoint());
-@@ -236,7 +234,6 @@
- this, SLOT( slotMountResult( KIO::Job * ) ) );
- connect( job, SIGNAL( warning( KIO::Job *, const QString & ) ),
- this, SLOT( slotWarning( KIO::Job *, const QString & ) ) );
-- */
- kapp->dcopClient()
- ->connectDCOPSignal("kded", "mediamanager",
- "mediumChanged(QString, bool)",
-@@ -244,17 +241,7 @@
- "slotMediumChanged(QString)",
- false);
-
-- DCOPRef mediamanager("kded", "mediamanager");
-- DCOPReply reply = mediamanager.call( "mount", medium.id());
-- if (reply.isValid())
-- reply.get(m_lastErrorMessage);
-- else
-- m_lastErrorMessage = i18n("Internal Error");
-- if (!m_lastErrorMessage.isEmpty())
-- m_lastErrorCode = KIO::ERR_SLAVE_DEFINED;
-- else {
-- qApp->eventLoop()->enterLoop();
-- }
-+ qApp->eventLoop()->enterLoop();
-
- mp_mounting = 0L;
-
-diff -urN kioslave/media/mediamanager/Makefile.in kioslave/media/mediamanager/Makefile.in
---- kioslave/media/mediamanager/Makefile.in Sat Oct 7 16:42:32 2006
-+++ kioslave/media/mediamanager/Makefile.in Fri May 26 09:54:31 2006
-@@ -284,6 +284,7 @@
- LIBTOOL = @LIBTOOL@
- LIBUCB = @LIBUCB@
- LIBUSBCONFIG = @LIBUSBCONFIG@
-+LIBUTEMPTER = @LIBUTEMPTER@
- LIBUTIL = @LIBUTIL@
- LIBXDMCP = @LIBXDMCP@
- LIBXFT_LIB = @LIBXFT_LIB@
-diff -urN kioslave/media/mediamanager/fstabbackend.cpp kioslave/media/mediamanager/fstabbackend.cpp
---- kioslave/media/mediamanager/fstabbackend.cpp Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mediamanager/fstabbackend.cpp Mon May 22 20:12:42 2006
-@@ -37,9 +37,6 @@
- #endif
-
- #include <klocale.h>
--#include <kio/job.h>
--#include <kio/netaccess.h>
--#include <kdebug.h>
- #include <kdirwatch.h>
- #include <kurl.h>
- #include <kmountpoint.h>
-@@ -97,26 +94,6 @@
- KDirWatch::self()->removeFile(MTAB);
- }
-
--QString FstabBackend::mount( const QString &_udi )
--{
-- const Medium* medium = m_mediaList.findById(_udi);
-- if (!medium)
-- return i18n("No such medium: %1").arg(_udi);
-- KIO::Job* job = KIO::mount( false, 0, medium->deviceNode(), medium->mountPoint());
-- KIO::NetAccess::synchronousRun( job, 0 );
-- return QString::null;
--}
--
--QString FstabBackend::unmount( const QString &_udi )
--{
-- const Medium* medium = m_mediaList.findById(_udi);
-- if (!medium)
-- return i18n("No such medium: %1").arg(_udi);
-- KIO::Job* job = KIO::unmount( medium->mountPoint(), false);
-- KIO::NetAccess::synchronousRun( job, 0 );
-- return QString::null;
--}
--
- void FstabBackend::slotDirty(const QString &path)
- {
- if (path==MTAB)
-@@ -134,7 +111,6 @@
- if ( mount->mountType() == "swap"
- || mount->mountType() == "tmpfs"
- || mount->mountType() == "sysfs"
-- || mount->mountType() == "fdescfs"
- || mount->mountType() == "kernfs"
- || mount->mountType() == "usbfs"
- || mount->mountType().contains( "proc" )
-@@ -147,7 +123,6 @@
- || mount->mountPoint() == "/dev/swap"
- || mount->mountPoint() == "/dev/pts"
- || mount->mountPoint().find("/proc") == 0
-- || mount->mountPoint().find("/sys") == 0
-
- // We might want to display only network shares
- // since HAL doesn't handle them
-@@ -169,7 +144,7 @@
-
- void FstabBackend::handleMtabChange(bool allowNotification)
- {
-- QStringList new_mtabIds;
-+ QStringList new_mtabIds, new_mtabEntries;
- KMountPoint::List mtab = KMountPoint::currentMountPoints();
-
- KMountPoint::List::iterator it = mtab.begin();
-@@ -187,19 +162,18 @@
- nothing has changed, do not stat the mount point. Avoids
- hang if network shares are stalling */
- QString mtabEntry = dev + "*" + mp + "*" + fs;
-- if(m_mtabEntries.contains(mtabEntry)) {
-- new_mtabIds += m_mtabEntries[mtabEntry];
-- continue;
-- }
-+ bool isOldEntry = m_mtabEntries.contains(mtabEntry);
-+ new_mtabEntries+=mtabEntry;
-+ if (isOldEntry) continue;
-
- QString id = generateId(dev, mp);
- new_mtabIds+=id;
-- m_mtabEntries[mtabEntry] = id;
-
- if ( !m_mtabIds.contains(id) && m_fstabIds.contains(id) )
- {
- QString mime, icon, label;
- guess(dev, mp, fs, true, mime, icon, label);
-+
- m_mediaList.changeMediumState(id, true, false,
- mime, icon, label);
- }
-@@ -237,10 +211,6 @@
- QString mp = medium->mountPoint();
- QString fs = medium->fsType();
-
--
-- QString mtabEntry = dev + "*" + mp + "*" + fs;
-- m_mtabEntries.remove(mtabEntry);
--
- QString mime, icon, label;
- guess(dev, mp, fs, false, mime, icon, label);
-
-@@ -256,6 +226,7 @@
- }
-
- m_mtabIds = new_mtabIds;
-+ m_mtabEntries = new_mtabEntries;
- }
-
- void FstabBackend::handleFstabChange(bool allowNotification)
-diff -urN kioslave/media/mediamanager/fstabbackend.h kioslave/media/mediamanager/fstabbackend.h
---- kioslave/media/mediamanager/fstabbackend.h Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mediamanager/fstabbackend.h Mon May 22 20:12:42 2006
-@@ -23,7 +23,6 @@
-
- #include <qobject.h>
- #include <qstringlist.h>
--#include <qmap.h>
-
- #ifdef Q_OS_FREEBSD
- #include <qtimer.h>
-@@ -41,10 +40,6 @@
- const QString &fsType, bool mounted,
- QString &mimeType, QString &iconName,
- QString &label);
--
-- QString mount(const QString &id);
-- QString unmount(const QString &id);
--
- private slots:
- void slotDirty(const QString &path);
- void handleFstabChange(bool allowNotification = true);
-@@ -58,7 +53,7 @@
-
- bool m_networkSharesOnly;
- QStringList m_mtabIds;
-- QMap<QString, QString> m_mtabEntries;
-+ QStringList m_mtabEntries;
- QStringList m_fstabIds;
- #ifdef Q_OS_FREEBSD
- QTimer m_mtabTimer;
-diff -urN kioslave/media/mediamanager/halbackend.cpp kioslave/media/mediamanager/halbackend.cpp
---- kioslave/media/mediamanager/halbackend.cpp Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mediamanager/halbackend.cpp Thu Jan 19 18:00:58 2006
-@@ -21,16 +21,9 @@
-
- #include <stdlib.h>
-
--#include <qfile.h>
- #include <klocale.h>
- #include <kurl.h>
- #include <kdebug.h>
--#include <kprocess.h>
--#include <kconfig.h>
--#include <qstylesheet.h>
--#include <kmountpoint.h>
--#include <kmessagebox.h>
--#include <kio/job.h>
-
- #define MOUNT_SUFFIX (libhal_volume_is_mounted(halVolume) ? QString("_mounted") : QString("_unmounted"))
- #define MOUNT_ICON_SUFFIX (libhal_volume_is_mounted(halVolume) ? QString("_mount") : QString("_unmount"))
-@@ -39,1177 +32,615 @@
- static HALBackend* s_HALBackend;
-
- /* A macro function to convert HAL string properties to QString */
--QString libhal_device_get_property_QString(LibHalContext *ctx, const char* udi, const char *key)
-+QString hal_device_get_property_QString(LibHalContext *ctx, const char* udi, const char *key)
- {
-- char* _ppt_string;
-- QString _ppt_QString;
-- _ppt_string = libhal_device_get_property_string(ctx, udi, key, NULL);
-- _ppt_QString = QString(_ppt_string ? _ppt_string : "");
-- libhal_free_string(_ppt_string);
-- return _ppt_QString;
-+ char* _ppt_string;
-+ QString _ppt_QString;
-+ _ppt_string = libhal_device_get_property_string(ctx, udi, key, NULL);
-+ _ppt_QString = QString(_ppt_string ? _ppt_string : "");
-+ libhal_free_string(_ppt_string);
-+ return _ppt_QString;
- }
-
- /* Constructor */
- HALBackend::HALBackend(MediaList &list, QObject* parent)
-- : QObject()
-- , BackendBase(list)
-- , m_halContext(NULL)
-- , m_halStoragePolicy(NULL)
-- , m_parent(parent)
-+ : QObject()
-+ , BackendBase(list)
-+ , m_halContext(NULL)
-+ , m_halStoragePolicy(NULL)
-+ , m_parent(parent)
- {
-- s_HALBackend = this;
-+ s_HALBackend = this;
- }
-
- /* Destructor */
- HALBackend::~HALBackend()
- {
-- /* Close HAL connection */
-- if (m_halContext)
-- {
-- const QPtrList<Medium> medlist = m_mediaList.list();
-- QPtrListIterator<Medium> it (medlist);
-- for ( const Medium *current_medium = it.current(); current_medium; current_medium = ++it)
-- unmount(current_medium->id());
--
--
-- /* Remove all the registered media first */
-- int numDevices;
-- char** halDeviceList = libhal_get_all_devices( m_halContext, &numDevices, NULL );
--
-- if ( halDeviceList )
-- {
-- for ( int i = 0; i < numDevices; i++ )
-- {
-- m_mediaList.removeMedium( halDeviceList[i], false );
-- }
-- }
--
-- libhal_free_string_array( halDeviceList );
--
-- DBusError error;
-- dbus_error_init(&error);
-- libhal_ctx_shutdown(m_halContext, &error);
-- libhal_ctx_free(m_halContext);
-- }
--
-- if (m_halStoragePolicy)
-- libhal_storage_policy_free(m_halStoragePolicy);
-+ /* Close HAL connection */
-+ if (m_halContext)
-+ {
-+ /* Remove all the registered media first */
-+ int numDevices;
-+ char** halDeviceList = libhal_get_all_devices( m_halContext, &numDevices, NULL );
-+
-+ if ( halDeviceList )
-+ {
-+ for ( int i = 0; i < numDevices; i++ )
-+ {
-+ m_mediaList.removeMedium( halDeviceList[i], false );
-+ }
-+ }
-+
-+ #ifdef HAL_0_4
-+ hal_shutdown(m_halContext);
-+ #else
-+ libhal_ctx_shutdown(m_halContext, NULL);
-+ libhal_ctx_free(m_halContext);
-+ #endif
-+ }
-+
-+ if (m_halStoragePolicy)
-+ libhal_storage_policy_free(m_halStoragePolicy);
- }
-
- /* Connect to the HAL */
- bool HALBackend::InitHal()
- {
-- kdDebug(1219) << "Context new" << endl;
-- m_halContext = libhal_ctx_new();
-- if (!m_halContext)
-- {
-- kdDebug(1219) << "Failed to initialize HAL!" << endl;
-- return false;
-- }
--
-- // Main loop integration
-- kdDebug(1219) << "Main loop integration" << endl;
-- DBusError error;
-- dbus_error_init(&error);
-- dbus_connection = dbus_connection_open_private(DBUS_SYSTEM_BUS, &error);
--
-- if (!dbus_connection || dbus_error_is_set(&error)) {
-- dbus_error_free(&error);
-- libhal_ctx_free(m_halContext);
-- m_halContext = NULL;
-- return false;
-- }
--
-- dbus_bus_register(dbus_connection, &error);
--
-- if (dbus_error_is_set(&error)) {
-- dbus_error_free(&error);
-- libhal_ctx_free(m_halContext);
-- m_halContext = NULL;
-- return false;
-- }
-- MainLoopIntegration(dbus_connection);
-- libhal_ctx_set_dbus_connection(m_halContext, dbus_connection);
--
-- // HAL callback functions
-- kdDebug(1219) << "Callback functions" << endl;
-- libhal_ctx_set_device_added(m_halContext, HALBackend::hal_device_added);
-- libhal_ctx_set_device_removed(m_halContext, HALBackend::hal_device_removed);
-- libhal_ctx_set_device_new_capability (m_halContext, NULL);
-- libhal_ctx_set_device_lost_capability (m_halContext, NULL);
-- libhal_ctx_set_device_property_modified (m_halContext, HALBackend::hal_device_property_modified);
-- libhal_ctx_set_device_condition(m_halContext, HALBackend::hal_device_condition);
--
-- kdDebug(1219) << "Context Init" << endl;
-- if (!libhal_ctx_init(m_halContext, &error))
-- {
-- if (dbus_error_is_set(&error))
-- dbus_error_free(&error);
-- libhal_ctx_free(m_halContext);
-- m_halContext = NULL;
-- kdDebug(1219) << "Failed to init HAL context!" << endl;
-- return false;
-- }
--
-- /** @todo customize watch policy */
-- kdDebug(1219) << "Watch properties" << endl;
-- if (!libhal_device_property_watch_all(m_halContext, &error))
-- {
-- kdDebug(1219) << "Failed to watch HAL properties!" << endl;
-- return false;
-- }
--
-- /* libhal-storage initialization */
-- kdDebug(1219) << "Storage Policy" << endl;
-- m_halStoragePolicy = libhal_storage_policy_new();
-- /** @todo define libhal-storage icon policy */
-+#ifdef HAL_0_4 /* HAL API 0.4 */
-+ /* libhal initialization */
-+ m_halFunctions.main_loop_integration = HALBackend::hal_main_loop_integration;
-+ m_halFunctions.device_added = HALBackend::hal_device_added;
-+ m_halFunctions.device_removed = HALBackend::hal_device_removed;
-+ m_halFunctions.device_new_capability = NULL;
-+ m_halFunctions.device_lost_capability = NULL;
-+ m_halFunctions.device_property_modified = HALBackend::hal_device_property_modified;
-+ m_halFunctions.device_condition = HALBackend::hal_device_condition;
-+
-+ m_halContext = hal_initialize(&m_halFunctions, false);
-+ if (!m_halContext)
-+ {
-+ kdDebug(1219) << "Failed to initialize HAL!" << endl;
-+ return false;
-+ }
-+
-+ /** @todo customize watch policy */
-+ kdDebug(1219) << "Watch properties" << endl;
-+ if (libhal_device_property_watch_all(m_halContext, NULL))
-+ {
-+ kdDebug(1219) << "Failed to watch HAL properties!" << endl;
-+ return false;
-+ }
-+#else /* HAL API >= 0.5 */
-+ kdDebug(1219) << "Context new" << endl;
-+ m_halContext = libhal_ctx_new();
-+ if (!m_halContext)
-+ {
-+ kdDebug(1219) << "Failed to initialize HAL!" << endl;
-+ return false;
-+ }
-+
-+ // Main loop integration
-+ kdDebug(1219) << "Main loop integration" << endl;
-+ DBusError error;
-+ dbus_error_init(&error);
-+ DBusConnection *dbus_connection = dbus_bus_get(DBUS_BUS_SYSTEM, &error);
-+ if (dbus_error_is_set(&error)) {
-+ dbus_error_free(&error);
-+ libhal_ctx_free(m_halContext);
-+ m_halContext = NULL;
-+ return false;
-+ }
-+ MainLoopIntegration(dbus_connection);
-+ libhal_ctx_set_dbus_connection(m_halContext, dbus_connection);
-+
-+ // HAL callback functions
-+ kdDebug(1219) << "Callback functions" << endl;
-+ libhal_ctx_set_device_added(m_halContext, HALBackend::hal_device_added);
-+ libhal_ctx_set_device_removed(m_halContext, HALBackend::hal_device_removed);
-+ libhal_ctx_set_device_new_capability (m_halContext, NULL);
-+ libhal_ctx_set_device_lost_capability (m_halContext, NULL);
-+ libhal_ctx_set_device_property_modified (m_halContext, HALBackend::hal_device_property_modified);
-+ libhal_ctx_set_device_condition(m_halContext, HALBackend::hal_device_condition);
-
-- /* List devices at startup */
-- return ListDevices();
-+ kdDebug(1219) << "Context Init" << endl;
-+ if (!libhal_ctx_init(m_halContext, &error))
-+ {
-+ if (dbus_error_is_set(&error))
-+ dbus_error_free(&error);
-+ libhal_ctx_free(m_halContext);
-+ m_halContext = NULL;
-+ kdDebug(1219) << "Failed to init HAL context!" << endl;
-+ return false;
-+ }
-+
-+ /** @todo customize watch policy */
-+ kdDebug(1219) << "Watch properties" << endl;
-+ if (!libhal_device_property_watch_all(m_halContext, &error))
-+ {
-+ kdDebug(1219) << "Failed to watch HAL properties!" << endl;
-+ return false;
-+ }
-+#endif
-+
-+ /* libhal-storage initialization */
-+ kdDebug(1219) << "Storage Policy" << endl;
-+ m_halStoragePolicy = libhal_storage_policy_new();
-+ /** @todo define libhal-storage icon policy */
-+
-+ /* List devices at startup */
-+ return ListDevices();
- }
-
- /* List devices (at startup)*/
- bool HALBackend::ListDevices()
- {
-- kdDebug(1219) << "ListDevices" << endl;
-+ kdDebug(1219) << "ListDevices" << endl;
-
-- int numDevices;
-- char** halDeviceList = libhal_get_all_devices(m_halContext, &numDevices, NULL);
-+ int numDevices;
-+ char** halDeviceList = libhal_get_all_devices(m_halContext, &numDevices, NULL);
-
-- if (!halDeviceList)
-- return false;
-+ if (!halDeviceList)
-+ return false;
-
-- kdDebug(1219) << "HALBackend::ListDevices : " << numDevices << " devices found" << endl;
-- for (int i = 0; i < numDevices; i++)
-- AddDevice(halDeviceList[i], false);
-+ kdDebug(1219) << "HALBackend::ListDevices : " << numDevices << " devices found" << endl;
-+ for (int i = 0; i < numDevices; i++)
-+ AddDevice(halDeviceList[i], false);
-
-- libhal_free_string_array( halDeviceList );
--
-- return true;
-+ return true;
- }
-
- /* Create a media instance for the HAL device "udi".
-- This functions checks whether the device is worth listing */
-+This functions checks whether the device is worth listing */
- void HALBackend::AddDevice(const char *udi, bool allowNotification)
- {
-- /* We don't deal with devices that do not expose their capabilities.
-- If we don't check this, we will get a lot of warning messages from libhal */
-- if (!libhal_device_property_exists(m_halContext, udi, "info.capabilities", NULL))
-- return;
--
-- /* If the device is already listed, do not process.
-- This should not happen, but who knows... */
-- /** @todo : refresh properties instead ? */
-- if (m_mediaList.findById(udi))
-- return;
--
-- if (libhal_device_get_property_bool(m_halContext, "/org/freedesktop/Hal/devices/computer", "storage.disable_volume_handling", NULL))
-- allowNotification=false;
--
-- /* Add volume block devices */
-- if (libhal_device_query_capability(m_halContext, udi, "volume", NULL))
-- {
-- /* We only list volume that have a filesystem or volume that have an audio track*/
-- if ( libhal_device_get_property_QString(m_halContext, udi, "volume.fsusage") != "filesystem" &&
-- !libhal_device_get_property_bool(m_halContext, udi, "volume.disc.has_audio", NULL) &&
-- !libhal_device_get_property_bool(m_halContext, udi, "volume.disc.is_blank", NULL) )
-- return;
--
-- if ( ( libhal_device_get_property_QString(m_halContext, udi, "volume.fsusage") == "filesystem" &&
-- !libhal_device_get_property_bool(m_halContext, udi, "volume.is_mounted", NULL ) ) &&
-- ( libhal_device_get_property_bool(m_halContext, udi, "volume.ignore", NULL ) ) )
-- return;
--
-- /* Query drive udi */
-- QString driveUdi = libhal_device_get_property_QString(m_halContext, udi, "block.storage_device");
-- /* We don't list floppy volumes because we list floppy drives */
-- if ((libhal_device_get_property_QString(m_halContext, driveUdi.ascii(), "storage.drive_type") == "floppy") ||
-- (libhal_device_get_property_QString(m_halContext, driveUdi.ascii(), "storage.drive_type") == "zip") ||
-- (libhal_device_get_property_QString(m_halContext, driveUdi.ascii(), "storage.drive_type") == "jaz"))
-- return;
--
-- // if the device is locked do not act upon it
-- if (libhal_device_get_property_bool(m_halContext, driveUdi.ascii(), "info.locked", NULL))
-- allowNotification=false;
--
-- // if the device is locked do not act upon it
-- if (libhal_device_get_property_bool(m_halContext, driveUdi.ascii(), "storage.partition_table_changed", NULL))
-- allowNotification=false;
--
-- /** @todo check exclusion list **/
--
-- /* Create medium */
-- Medium* medium = new Medium(udi, "");
--
-- QMap<QString,QString> options = MediaManagerUtils::splitOptions(mountoptions(udi));
-- kdDebug() << "automount " << options["automount"] << endl;
-- if (options["automount"] == "true" && allowNotification ) {
-- QString error = mount(medium);
-- if (!error.isEmpty())
-- kdDebug() << "error " << error << endl;
-- }
-- setVolumeProperties(medium);
-- m_mediaList.addMedium(medium, allowNotification);
--
-- return;
-- }
--
-- /* Floppy & zip drives */
-- if (libhal_device_query_capability(m_halContext, udi, "storage", NULL))
-- if ((libhal_device_get_property_QString(m_halContext, udi, "storage.drive_type") == "floppy") ||
-- (libhal_device_get_property_QString(m_halContext, udi, "storage.drive_type") == "zip") ||
-- (libhal_device_get_property_QString(m_halContext, udi, "storage.drive_type") == "jaz"))
-- {
-- /* Create medium */
-- Medium* medium = new Medium(udi, "");
-- setFloppyProperties(medium);
-- m_mediaList.addMedium(medium, allowNotification);
-- return;
-- }
--
-- /* Camera handled by gphoto2*/
-- if (libhal_device_query_capability(m_halContext, udi, "camera", NULL) &&
-- ((libhal_device_get_property_QString(m_halContext, udi, "camera.access_method")=="ptp") ||
--
-- (libhal_device_property_exists(m_halContext, udi, "camera.libgphoto2.support", NULL) &&
-- libhal_device_get_property_bool(m_halContext, udi, "camera.libgphoto2.support", NULL)))
-- )
-- {
-- /* Create medium */
-- Medium* medium = new Medium(udi, "");
-- setCameraProperties(medium);
-- m_mediaList.addMedium(medium, allowNotification);
-- return;
-- }
-+ /* We don't deal with devices that do not expose their capabilities.
-+ If we don't check this, we will get a lot of warning messages from libhal */
-+ if (!libhal_device_property_exists(m_halContext, udi, "info.capabilities", NULL))
-+ return;
-+
-+ /* If the device is already listed, do not process.
-+ This should not happen, but who knows... */
-+ /** @todo : refresh properties instead ? */
-+ if (m_mediaList.findById(udi))
-+ return;
-+
-+ /* Add volume block devices */
-+ if (libhal_device_query_capability(m_halContext, udi, "volume", NULL))
-+ {
-+ /* We only list volume that have a filesystem or volume that have an audio track*/
-+ if ( (hal_device_get_property_QString(m_halContext, udi, "volume.fsusage") != "filesystem") &&
-+ (!libhal_device_get_property_bool(m_halContext, udi, "volume.disc.has_audio", NULL)) &&
-+ (!libhal_device_get_property_bool(m_halContext, udi, "volume.disc.is_blank", NULL)) )
-+ return;
-+ /* Query drive udi */
-+ QString driveUdi = hal_device_get_property_QString(m_halContext, udi, "block.storage_device");
-+ /* We don't list floppy volumes because we list floppy drives */
-+ if ((hal_device_get_property_QString(m_halContext, driveUdi.ascii(), "storage.drive_type") == "floppy") ||
-+ (hal_device_get_property_QString(m_halContext, driveUdi.ascii(), "storage.drive_type") == "zip") ||
-+ (hal_device_get_property_QString(m_halContext, driveUdi.ascii(), "storage.drive_type") == "jaz"))
-+ return;
-+
-+ /** @todo check exclusion list **/
-+
-+ /* Create medium */
-+ Medium* medium = new Medium(udi, "");
-+ setVolumeProperties(medium);
-+ m_mediaList.addMedium(medium, allowNotification);
-+
-+ return;
-+ }
-+
-+ /* Floppy & zip drives */
-+ if (libhal_device_query_capability(m_halContext, udi, "storage", NULL))
-+ if ((hal_device_get_property_QString(m_halContext, udi, "storage.drive_type") == "floppy") ||
-+ (hal_device_get_property_QString(m_halContext, udi, "storage.drive_type") == "zip") ||
-+ (hal_device_get_property_QString(m_halContext, udi, "storage.drive_type") == "jaz"))
-+ {
-+ /* Create medium */
-+ Medium* medium = new Medium(udi, "");
-+ setFloppyProperties(medium);
-+ m_mediaList.addMedium(medium, allowNotification);
-+ return;
-+ }
-+
-+ /* Camera handled by gphoto2*/
-+ if (libhal_device_query_capability(m_halContext, udi, "camera", NULL) &&
-+#ifdef HAL_0_4
-+ libhal_device_property_exists(m_halContext, udi, "camera.libgphoto2_support", NULL) &&
-+ libhal_device_get_property_bool(m_halContext, udi, "camera.libgphoto2_support", NULL)
-+#else
-+ ((hal_device_get_property_QString(m_halContext, udi, "camera.access_method")=="ptp") ||
-+
-+ (libhal_device_property_exists(m_halContext, udi, "camera.libgphoto2.support", NULL) &&
-+ libhal_device_get_property_bool(m_halContext, udi, "camera.libgphoto2.support", NULL)))
-+#endif
-+ )
-+ {
-+ /* Create medium */
-+ Medium* medium = new Medium(udi, "");
-+ setCameraProperties(medium);
-+ m_mediaList.addMedium(medium, allowNotification);
-+ return;
-+ }
- }
-
- void HALBackend::RemoveDevice(const char *udi)
- {
-- m_mediaList.removeMedium(udi, true);
-+ m_mediaList.removeMedium(udi, true);
- }
-
- void HALBackend::ModifyDevice(const char *udi, const char* key)
- {
-- Q_UNUSED(key);
-- const char* mediumUdi = findMediumUdiFromUdi(udi);
-- if (!mediumUdi)
-- return;
-- ResetProperties(mediumUdi);
-+ Q_UNUSED(key);
-+ const char* mediumUdi = findMediumUdiFromUdi(udi);
-+ if (!mediumUdi)
-+ return;
-+ ResetProperties(mediumUdi);
- }
-
- void HALBackend::DeviceCondition(const char* udi, const char* condition)
- {
-- QString conditionName = QString(condition);
-- kdDebug(1219) << "Processing device condition " << conditionName << " for " << udi << endl;
--
-- if (conditionName == "EjectPressed") {
-- const Medium* medium = m_mediaList.findById(udi);
-- if (!medium) {
-- /* the ejectpressed appears on the drive and we need to find the volume */
-- const QPtrList<Medium> medlist = m_mediaList.list();
-- QPtrListIterator<Medium> it (medlist);
-- for ( const Medium *current_medium = it.current(); current_medium; current_medium = ++it)
-- {
-- QString driveUdi = libhal_device_get_property_QString(m_halContext, current_medium->id().latin1(), "block.storage_device");
-- if (driveUdi == udi)
-- {
-- medium = current_medium;
-- break;
-- }
-- }
-- }
-- if (medium) {
-- KProcess p;
-- p << "kio_media_mounthelper" << "-e" << medium->name();
-- p.start(KProcess::DontCare);
-- }
-- }
--
-- const char* mediumUdi = findMediumUdiFromUdi(udi);
-- kdDebug() << "findMedumUdiFromUdi " << udi << " returned " << mediumUdi << endl;
-- if (!mediumUdi)
-- return;
--
-- /* TODO: Warn the user that (s)he should unmount devices before unplugging */
-- if (conditionName == "VolumeUnmountForced")
-- ResetProperties(mediumUdi);
--
-- /* Reset properties after mounting */
-- if (conditionName == "VolumeMount")
-- ResetProperties(mediumUdi);
--
-- /* Reset properties after unmounting */
-- if (conditionName == "VolumeUnmount")
-- ResetProperties(mediumUdi);
--
-+ const char* mediumUdi = findMediumUdiFromUdi(udi);
-+ if (!mediumUdi)
-+ return;
-+
-+ QString conditionName = QString(condition);
-+ kdDebug(1219) << "Processing device condition " << conditionName << " for " << udi << endl;
-+
-+ /* TODO: Warn the user that (s)he should unmount devices before unplugging */
-+ if (conditionName == "VolumeUnmountForced")
-+ ResetProperties(mediumUdi);
-+
-+ /* Reset properties after mounting */
-+ if (conditionName == "VolumeMount")
-+ ResetProperties(mediumUdi);
-+
-+ /* Reset properties after unmounting */
-+ if (conditionName == "VolumeUnmount")
-+ ResetProperties(mediumUdi);
- }
-
- void HALBackend::MainLoopIntegration(DBusConnection *dbusConnection)
- {
-- m_dBusQtConnection = new DBusQt::Connection(m_parent);
-- m_dBusQtConnection->dbus_connection_setup_with_qt_main(dbusConnection);
-+ m_dBusQtConnection = new DBusQt::Connection(m_parent);
-+ m_dBusQtConnection->dbus_connection_setup_with_qt_main(dbusConnection);
- }
-
- /******************************************
-- ** Properties attribution **
-- ******************************************/
-+** Properties attribution **
-+******************************************/
-
- /* Return the medium udi that should be updated when recieving a call for
-- device udi */
-+device udi */
- const char* HALBackend::findMediumUdiFromUdi(const char* udi)
- {
-- /* Easy part : this Udi is already registered as a device */
-- const Medium* medium = m_mediaList.findById(udi);
-- if (medium)
-- return medium->id().ascii();
--
-- /* Hard part : this is a volume whose drive is registered */
-- if (libhal_device_property_exists(m_halContext, udi, "info.capabilities", NULL))
-- if (libhal_device_query_capability(m_halContext, udi, "volume", NULL))
-- {
-- QString driveUdi = libhal_device_get_property_QString(m_halContext, udi, "block.storage_device");
-- return findMediumUdiFromUdi(driveUdi.ascii());
-- }
-+ /* Easy part : this Udi is already registered as a device */
-+ const Medium* medium = m_mediaList.findById(udi);
-+ if (medium)
-+ return medium->id().ascii();
-+
-+ /* Hard part : this is a volume whose drive is registered */
-+ if (libhal_device_property_exists(m_halContext, udi, "info.capabilities", NULL))
-+ if (libhal_device_query_capability(m_halContext, udi, "volume", NULL))
-+ {
-+ QString driveUdi = hal_device_get_property_QString(m_halContext, udi, "block.storage_device");
-+ return findMediumUdiFromUdi(driveUdi.ascii());
-+ }
-
-- return NULL;
-+ return NULL;
- }
-
- void HALBackend::ResetProperties(const char* mediumUdi)
- {
-- kdDebug(1219) << "HALBackend::setProperties" << endl;
-- if ( QString::fromLatin1( mediumUdi ).startsWith( "/org/kde/" ) )
-- {
-- const Medium *cmedium = m_mediaList.findById(mediumUdi);
-- if ( cmedium )
-- {
-- Medium m( *cmedium );
-- if ( setFstabProperties( &m ) ) {
-- kdDebug() << "setFstabProperties worked" << endl;
-- m_mediaList.changeMediumState(m, false);
-- }
-- return;
-- }
-- }
--
-- Medium* m = new Medium(mediumUdi, "");
--
-- if (libhal_device_query_capability(m_halContext, mediumUdi, "volume", NULL))
-- setVolumeProperties(m);
-- if (libhal_device_query_capability(m_halContext, mediumUdi, "storage", NULL))
-- setFloppyProperties(m);
-- if (libhal_device_query_capability(m_halContext, mediumUdi, "camera", NULL))
-- setCameraProperties(m);
-+ kdDebug(1219) << "HALBackend::setProperties" << endl;
-
-- m_mediaList.changeMediumState(*m, false);
-+ Medium* m = new Medium(mediumUdi, "");
-+
-+ if (libhal_device_query_capability(m_halContext, mediumUdi, "volume", NULL))
-+ setVolumeProperties(m);
-+ if (libhal_device_query_capability(m_halContext, mediumUdi, "storage", NULL))
-+ setFloppyProperties(m);
-+ if (libhal_device_query_capability(m_halContext, mediumUdi, "camera", NULL))
-+ setCameraProperties(m);
-
-- delete m;
--}
-+ m_mediaList.changeMediumState(*m, false);
-
--void HALBackend::setVolumeProperties(Medium* medium)
--{
-- kdDebug(1219) << "HALBackend::setVolumeProperties for " << medium->id() << endl;
--
-- const char* udi = medium->id().ascii();
-- /* Check if the device still exists */
-- if (!libhal_device_exists(m_halContext, udi, NULL))
-- return;
--
-- /* Get device information from libhal-storage */
-- LibHalVolume* halVolume = libhal_volume_from_udi(m_halContext, udi);
-- if (!halVolume)
-- return;
-- QString driveUdi = libhal_volume_get_storage_device_udi(halVolume);
-- LibHalDrive* halDrive = libhal_drive_from_udi(m_halContext, driveUdi.ascii());
-- if (!halDrive) {
-- // at times HAL sends an UnmountForced event before the device is removed
-- libhal_volume_free(halVolume);
-- return;
-- }
--
-- medium->setName(
-- generateName(libhal_volume_get_device_file(halVolume)) );
--
-- medium->mountableState(
-- libhal_volume_get_device_file(halVolume), /* Device node */
-- libhal_volume_get_mount_point(halVolume), /* Mount point */
-- libhal_volume_get_fstype(halVolume), /* Filesystem type */
-- libhal_volume_is_mounted(halVolume) ); /* Mounted ? */
--
-- char* name = libhal_volume_policy_compute_display_name(halDrive, halVolume, m_halStoragePolicy);
-- QString volume_name = QString::fromUtf8(name);
-- QString media_name = volume_name;
-- medium->setLabel(media_name);
-- free(name);
--
-- QString mimeType;
-- if (libhal_volume_is_disc(halVolume))
-- {
-- mimeType = "media/cdrom" + MOUNT_SUFFIX;
--
-- LibHalVolumeDiscType discType = libhal_volume_get_disc_type(halVolume);
-- if ((discType == LIBHAL_VOLUME_DISC_TYPE_CDROM) ||
-- (discType == LIBHAL_VOLUME_DISC_TYPE_CDR) ||
-- (discType == LIBHAL_VOLUME_DISC_TYPE_CDRW))
-- if (libhal_volume_disc_is_blank(halVolume))
-- {
-- mimeType = "media/blankcd";
-- medium->unmountableState("");
-- }
-- else
-- mimeType = "media/cdwriter" + MOUNT_SUFFIX;
--
-- if ((discType == LIBHAL_VOLUME_DISC_TYPE_DVDROM) || (discType == LIBHAL_VOLUME_DISC_TYPE_DVDRAM) ||
-- (discType == LIBHAL_VOLUME_DISC_TYPE_DVDR) || (discType == LIBHAL_VOLUME_DISC_TYPE_DVDRW) ||
-- (discType == LIBHAL_VOLUME_DISC_TYPE_DVDPLUSR) || (discType == LIBHAL_VOLUME_DISC_TYPE_DVDPLUSRW) )
-- if (libhal_volume_disc_is_blank(halVolume))
-- {
-- mimeType = "media/blankdvd";
-- medium->unmountableState("");
-- }
-- else
-- mimeType = "media/dvd" + MOUNT_SUFFIX;
--
-- if (libhal_volume_disc_has_audio(halVolume) && !libhal_volume_disc_has_data(halVolume))
-- {
-- mimeType = "media/audiocd";
-- medium->unmountableState( "audiocd:/?device=" + QString(libhal_volume_get_device_file(halVolume)) );
-- }
--
-- medium->setIconName(QString::null);
--
-- /* check if the disc id a vcd or a video dvd */
-- DiscType type = LinuxCDPolling::identifyDiscType(libhal_volume_get_device_file(halVolume));
-- switch (type)
-- {
-- case DiscType::VCD:
-- mimeType = "media/vcd";
-- break;
-- case DiscType::SVCD:
-- mimeType = "media/svcd";
-- break;
-- case DiscType::DVD:
-- mimeType = "media/dvdvideo";
-- break;
-- }
-- }
-- else
-- {
-- mimeType = "media/hdd" + MOUNT_SUFFIX;
-- if (libhal_drive_is_hotpluggable(halDrive))
-- {
-- mimeType = "media/removable" + MOUNT_SUFFIX;
-- medium->needMounting();
-- switch (libhal_drive_get_type(halDrive)) {
-- case LIBHAL_DRIVE_TYPE_COMPACT_FLASH:
-- medium->setIconName("compact_flash" + MOUNT_ICON_SUFFIX);
-- break;
-- case LIBHAL_DRIVE_TYPE_MEMORY_STICK:
-- medium->setIconName("memory_stick" + MOUNT_ICON_SUFFIX);
-- break;
-- case LIBHAL_DRIVE_TYPE_SMART_MEDIA:
-- medium->setIconName("smart_media" + MOUNT_ICON_SUFFIX);
-- break;
-- case LIBHAL_DRIVE_TYPE_SD_MMC:
-- medium->setIconName("sd_mmc" + MOUNT_ICON_SUFFIX);
-- break;
-- case LIBHAL_DRIVE_TYPE_PORTABLE_AUDIO_PLAYER:
-- {
-- medium->setIconName("ipod" + MOUNT_ICON_SUFFIX);
-- break;
-- }
-- case LIBHAL_DRIVE_TYPE_CAMERA:
-- {
-- mimeType = "media/camera" + MOUNT_SUFFIX;
-- medium->setIconName("camera" + MOUNT_ICON_SUFFIX);
-- const char *physdev = libhal_drive_get_physical_device_udi(halDrive);
-- // get model from camera
-- if (physdev && libhal_device_query_capability(m_halContext, physdev, "camera", NULL))
-- {
-- if (libhal_device_property_exists(m_halContext, physdev, "usb_device.product", NULL))
-- medium->setLabel(libhal_device_get_property_QString(m_halContext, physdev, "usb_device.product"));
-- else if (libhal_device_property_exists(m_halContext, physdev, "usb.product", NULL))
-- medium->setLabel(libhal_device_get_property_QString(m_halContext, physdev, "usb.product"));
-- }
-- break;
-- }
-- case LIBHAL_DRIVE_TYPE_TAPE:
-- medium->setIconName(QString::null); //FIXME need icon
-- break;
-- default:
-- medium->setIconName(QString::null);
-- }
--
-- if (medium->isMounted() && QFile::exists(medium->mountPoint() + "/dcim"))
-- {
-- mimeType = "media/camera" + MOUNT_SUFFIX;
-- medium->setIconName("camera" + MOUNT_ICON_SUFFIX);
-- }
-- }
-- }
-- medium->setMimeType(mimeType);
--
-- libhal_drive_free(halDrive);
-- libhal_volume_free(halVolume);
-+ delete m;
- }
-
--bool HALBackend::setFstabProperties( Medium *medium )
-+void HALBackend::setVolumeProperties(Medium* medium)
- {
-- QString mp = isInFstab(medium);
-+ kdDebug(1219) << "HALBackend::setVolumeProperties for " << medium->id() << endl;
-
-- if (!mp.isNull() && !medium->id().startsWith( "/org/kde" ) )
-- {
-- // now that we know it's in fstab, we have to find out if it's mounted
-- KMountPoint::List mtab = KMountPoint::currentMountPoints();
--
-- KMountPoint::List::iterator it = mtab.begin();
-- KMountPoint::List::iterator end = mtab.end();
--
-- bool mounted = false;
--
-- for (; it!=end; ++it)
-- {
-- if ((*it)->mountedFrom() == medium->deviceNode() && (*it)->mountPoint() == mp )
-- {
-- mounted = true;
-- break;
-- }
-- }
--
-- kdDebug() << mp << " " << mounted << " " << medium->deviceNode() << " " << endl;
-- QString fstype = medium->fsType();
-- if ( fstype.isNull() )
-- fstype = "auto";
--
-- medium->mountableState(
-- medium->deviceNode(),
-- mp, /* Mount point */
-- fstype, /* Filesystem type */
-- mounted ); /* Mounted ? */
-+ const char* udi = medium->id().ascii();
-+ /* Check if the device still exists */
-+ if (!libhal_device_exists(m_halContext, udi, NULL))
-+ return;
-+
-+ /* Get device information from libhal-storage */
-+ LibHalVolume* halVolume = libhal_volume_from_udi(m_halContext, udi);
-+ if (!halVolume)
-+ return;
-+ QString driveUdi = libhal_volume_get_storage_device_udi(halVolume);
-+ LibHalDrive* halDrive = libhal_drive_from_udi(m_halContext, driveUdi.ascii());
-+
-+ medium->setName(
-+ generateName(libhal_volume_get_device_file(halVolume)) );
-+
-+ medium->mountableState(
-+ libhal_volume_get_device_file(halVolume), /* Device node */
-+ libhal_volume_get_mount_point(halVolume), /* Mount point */
-+ libhal_volume_get_fstype(halVolume), /* Filesystem type */
-+ libhal_volume_is_mounted(halVolume) ); /* Mounted ? */
-+
-+ char* name = libhal_volume_policy_compute_display_name(halDrive, halVolume, m_halStoragePolicy);
-+ QString volume_name = QString::fromUtf8(name);
-+ QString media_name = volume_name;
-+ medium->setLabel(media_name);
-+ free(name);
-
-- return true;
-- }
-+ QString mimeType;
-+ if (libhal_volume_is_disc(halVolume))
-+ {
-+ mimeType = "media/cdrom" + MOUNT_SUFFIX;
-
-- return false;
-+ LibHalVolumeDiscType discType = libhal_volume_get_disc_type(halVolume);
-+ if ((discType == LIBHAL_VOLUME_DISC_TYPE_CDROM) ||
-+ (discType == LIBHAL_VOLUME_DISC_TYPE_CDR) ||
-+ (discType == LIBHAL_VOLUME_DISC_TYPE_CDRW))
-+ if (libhal_volume_disc_is_blank(halVolume))
-+ {
-+ mimeType = "media/blankcd";
-+ medium->unmountableState("");
-+ }
-+ else
-+ mimeType = "media/cdwriter" + MOUNT_SUFFIX;
-+
-+ if ((discType == LIBHAL_VOLUME_DISC_TYPE_DVDROM) || (discType == LIBHAL_VOLUME_DISC_TYPE_DVDRAM) ||
-+ (discType == LIBHAL_VOLUME_DISC_TYPE_DVDR) || (discType == LIBHAL_VOLUME_DISC_TYPE_DVDRW) ||
-+ (discType == LIBHAL_VOLUME_DISC_TYPE_DVDPLUSR) || (discType == LIBHAL_VOLUME_DISC_TYPE_DVDPLUSRW) )
-+ if (libhal_volume_disc_is_blank(halVolume))
-+ {
-+ mimeType = "media/blankdvd";
-+ medium->unmountableState("");
-+ }
-+ else
-+ mimeType = "media/dvd" + MOUNT_SUFFIX;
-+
-+ if (libhal_volume_disc_has_audio(halVolume) && !libhal_volume_disc_has_data(halVolume))
-+ {
-+ mimeType = "media/audiocd";
-+ medium->unmountableState( "audiocd:/?device=" + QString(libhal_volume_get_device_file(halVolume)) );
-+ }
-+
-+ medium->setIconName(QString::null);
-+
-+ /* check if the disc id a vcd or a video dvd */
-+ DiscType type = LinuxCDPolling::identifyDiscType(libhal_volume_get_device_file(halVolume));
-+ switch (type)
-+ {
-+ case DiscType::VCD:
-+ mimeType = "media/vcd";
-+ break;
-+ case DiscType::SVCD:
-+ mimeType = "media/svcd";
-+ break;
-+ case DiscType::DVD:
-+ mimeType = "media/dvdvideo";
-+ break;
-+ }
-+ }
-+ else
-+ {
-+ mimeType = "media/hdd" + MOUNT_SUFFIX;
-+ const char *physdev = libhal_drive_get_physical_device_udi(halDrive);
-+ if (libhal_drive_is_hotpluggable(halDrive))
-+ {
-+ mimeType = "media/removable" + MOUNT_SUFFIX;
-+ medium->needMounting();
-+ switch (libhal_drive_get_type(halDrive)) {
-+ case LIBHAL_DRIVE_TYPE_COMPACT_FLASH:
-+ medium->setIconName("compact_flash" + MOUNT_ICON_SUFFIX);
-+ break;
-+ case LIBHAL_DRIVE_TYPE_MEMORY_STICK:
-+ medium->setIconName("memory_stick" + MOUNT_ICON_SUFFIX);
-+ break;
-+ case LIBHAL_DRIVE_TYPE_SMART_MEDIA:
-+ medium->setIconName("smart_media" + MOUNT_ICON_SUFFIX);
-+ break;
-+ case LIBHAL_DRIVE_TYPE_SD_MMC:
-+ medium->setIconName("sd_mmc" + MOUNT_ICON_SUFFIX);
-+ break;
-+ case LIBHAL_DRIVE_TYPE_PORTABLE_AUDIO_PLAYER:
-+ medium->setIconName("ipod" + MOUNT_ICON_SUFFIX);
-+ break;
-+ case LIBHAL_DRIVE_TYPE_CAMERA:
-+ mimeType = "media/camera" + MOUNT_SUFFIX;
-+ medium->setIconName("camera" + MOUNT_ICON_SUFFIX);
-+ // get model from camera
-+ if (physdev && libhal_device_query_capability(m_halContext, physdev, "camera", NULL))
-+ {
-+ if (libhal_device_property_exists(m_halContext, physdev, "usb_device.product", NULL))
-+ medium->setLabel(hal_device_get_property_QString(m_halContext, physdev, "usb_device.product"));
-+ else if (libhal_device_property_exists(m_halContext, physdev, "usb.product", NULL))
-+ medium->setLabel(hal_device_get_property_QString(m_halContext, physdev, "usb.product"));
-+ }
-+ break;
-+ case LIBHAL_DRIVE_TYPE_TAPE:
-+ medium->setIconName(QString::null); //FIXME need icon
-+ break;
-+ default:
-+ medium->setIconName(QString::null);
-+ };
-+ };
-+ }
-+ medium->setMimeType(mimeType);
-
-+ libhal_drive_free(halDrive);
-+ libhal_volume_free(halVolume);
- }
-
- // Handle floppies and zip drives
- void HALBackend::setFloppyProperties(Medium* medium)
- {
-- kdDebug(1219) << "HALBackend::setFloppyProperties for " << medium->id() << endl;
-+ kdDebug(1219) << "HALBackend::setFloppyProperties for " << medium->id() << endl;
-
-- const char* udi = medium->id().ascii();
-- /* Check if the device still exists */
-- if (!libhal_device_exists(m_halContext, udi, NULL))
-- return;
--
-- LibHalDrive* halDrive = libhal_drive_from_udi(m_halContext, udi);
-- if (!halDrive)
-- return;
-- int numVolumes;
-- char** volumes = libhal_drive_find_all_volumes(m_halContext, halDrive, &numVolumes);
-- LibHalVolume* halVolume = NULL;
-- kdDebug(1219) << " found " << numVolumes << " volumes" << endl;
-- if (numVolumes)
-- halVolume = libhal_volume_from_udi(m_halContext, volumes[0]);
--
-- medium->setName(
-- generateName(libhal_drive_get_device_file(halDrive)) );
--
-- if (halVolume)
-- {
-- medium->mountableState(
-- libhal_volume_get_device_file(halVolume), /* Device node */
-- libhal_volume_get_mount_point(halVolume), /* Mount point */
-- libhal_volume_get_fstype(halVolume), /* Filesystem type */
-- libhal_volume_is_mounted(halVolume) ); /* Mounted ? */
-- }
-- else
-- {
-- // HAL hates floppies - so we have to do it twice ;(
-- medium->mountableState(libhal_drive_get_device_file(halDrive), QString::null, QString::null, false);
-- setFstabProperties( medium );
-- }
--
-- if (libhal_device_get_property_QString(m_halContext, udi, "storage.drive_type") == "floppy")
-- {
-- if (medium->isMounted()) // don't use _SUFFIX here as it accesses the volume
-- medium->setMimeType("media/floppy_mounted" );
-- else
-- medium->setMimeType("media/floppy_unmounted");
-- }
--
-- if (libhal_device_get_property_QString(m_halContext, udi, "storage.drive_type") == "zip")
-- {
-- if (medium->isMounted())
-- medium->setMimeType("media/zip_mounted" );
-- else
-- medium->setMimeType("media/zip_unmounted");
-- }
--
-- /** @todo And mimtype for JAZ drives ? */
--
-- medium->setIconName(QString::null);
--
-- char *name = libhal_drive_policy_compute_display_name(halDrive, halVolume, m_halStoragePolicy);
--
-- if (name) {
-- medium->setLabel( QString::fromUtf8(name) );
-- free(name);
-- }
--
-- free(volumes);
-- libhal_drive_free(halDrive);
-- libhal_volume_free(halVolume);
--}
-+ const char* udi = medium->id().ascii();
-+ /* Check if the device still exists */
-+ if (!libhal_device_exists(m_halContext, udi, NULL))
-+ return;
-+
-+ LibHalDrive* halDrive = libhal_drive_from_udi(m_halContext, udi);
-+ if (!halDrive)
-+ return;
-+ int numVolumes;
-+ char** volumes = libhal_drive_find_all_volumes(m_halContext, halDrive, &numVolumes);
-+ LibHalVolume* halVolume = NULL;
-+ kdDebug(1219) << " found " << numVolumes << " volumes" << endl;
-+ if (numVolumes)
-+ halVolume = libhal_volume_from_udi(m_halContext, volumes[0]);
-
--void HALBackend::setCameraProperties(Medium* medium)
--{
-- kdDebug(1219) << "HALBackend::setCameraProperties for " << medium->id() << endl;
--
-- const char* udi = medium->id().ascii();
-- /* Check if the device still exists */
-- if (!libhal_device_exists(m_halContext, udi, NULL))
-- return;
--
-- /** @todo find name */
-- medium->setName("camera");
--
-- QString device = "camera:/";
--
-- char *cam = libhal_device_get_property_string(m_halContext, udi, "camera.libgphoto2.name", NULL);
-- DBusError error;
-- dbus_error_init(&error);
-- if (cam &&
-- libhal_device_property_exists(m_halContext, udi, "usb.linux.device_number", NULL) &&
-- libhal_device_property_exists(m_halContext, udi, "usb.bus_number", NULL))
-- device.sprintf("camera://%s@[usb:%03d,%03d]/", cam,
-- libhal_device_get_property_int(m_halContext, udi, "usb.bus_number", &error),
-- libhal_device_get_property_int(m_halContext, udi, "usb.linux.device_number", &error));
--
-- libhal_free_string(cam);
--
-- /** @todo find the rest of this URL */
-- medium->unmountableState(device);
-- medium->setMimeType("media/gphoto2camera");
-- medium->setIconName(QString::null);
-- if (libhal_device_property_exists(m_halContext, udi, "usb_device.product", NULL))
-- medium->setLabel(libhal_device_get_property_QString(m_halContext, udi, "usb_device.product"));
-- else if (libhal_device_property_exists(m_halContext, udi, "usb.product", NULL))
-- medium->setLabel(libhal_device_get_property_QString(m_halContext, udi, "usb.product"));
-- else
-- medium->setLabel(i18n("Camera"));
--}
-+ medium->setName(
-+ generateName(libhal_drive_get_device_file(halDrive)) );
-
--QString HALBackend::generateName(const QString &devNode)
--{
-- return KURL(devNode).fileName();
--}
-+ if (halVolume)
-+ {
-+ medium->mountableState(
-+ libhal_volume_get_device_file(halVolume), /* Device node */
-+ libhal_volume_get_mount_point(halVolume), /* Mount point */
-+ libhal_volume_get_fstype(halVolume), /* Filesystem type */
-+ libhal_volume_is_mounted(halVolume) ); /* Mounted ? */
-+ }
-+ else
-+ {
-+ medium->mountableState(
-+ libhal_drive_get_device_file(halDrive), /* Device node */
-+ "", /* Mount point */
-+ "", /* Filesystem type */
-+ false ); /* Mounted ? */
-+ }
-
--/******************************************
-- ** HAL CALL-BACKS **
-- ******************************************/
-+ if (hal_device_get_property_QString(m_halContext, udi, "storage.drive_type") == "floppy")
-+ {
-+ if (halVolume)
-+ medium->setMimeType("media/floppy" + MOUNT_SUFFIX);
-+ else
-+ medium->setMimeType("media/floppy_unmounted");
-+ }
-
--void HALBackend::hal_device_added(LibHalContext *ctx, const char *udi)
--{
-- kdDebug(1219) << "HALBackend::hal_device_added " << udi << endl;
-- Q_UNUSED(ctx);
-- s_HALBackend->AddDevice(udi);
--}
-+ if (hal_device_get_property_QString(m_halContext, udi, "storage.drive_type") == "zip")
-+ {
-+ if (halVolume)
-+ medium->setMimeType("media/zip" + MOUNT_SUFFIX);
-+ else
-+ medium->setMimeType("media/zip_unmounted");
-+ }
-
--void HALBackend::hal_device_removed(LibHalContext *ctx, const char *udi)
--{
-- kdDebug(1219) << "HALBackend::hal_device_removed " << udi << endl;
-- Q_UNUSED(ctx);
-- s_HALBackend->RemoveDevice(udi);
--}
-+ /** @todo And mimtype for JAZ drives ? */
-
--void HALBackend::hal_device_property_modified(LibHalContext *ctx, const char *udi,
-- const char *key, dbus_bool_t is_removed, dbus_bool_t is_added)
--{
-- kdDebug(1219) << "HALBackend::hal_property_modified " << udi << " -- " << key << endl;
-- Q_UNUSED(ctx);
-- Q_UNUSED(is_removed);
-- Q_UNUSED(is_added);
-- s_HALBackend->ModifyDevice(udi, key);
--}
-+ medium->setIconName(QString::null);
-
--void HALBackend::hal_device_condition(LibHalContext *ctx, const char *udi,
-- const char *condition_name,
-- const char* message
-- )
--{
-- kdDebug(1219) << "HALBackend::hal_device_condition " << udi << " -- " << condition_name << endl;
-- Q_UNUSED(ctx);
-- Q_UNUSED(message);
-- s_HALBackend->DeviceCondition(udi, condition_name);
-+ QString media_name;
-+ if (halVolume)
-+ {
-+ char* name = libhal_drive_policy_compute_display_name(halDrive, halVolume, m_halStoragePolicy);
-+ QString volume_name = QString::fromUtf8(name);
-+ media_name = volume_name;
-+ free(name);
-+ }
-+ else
-+ {
-+ char* name = libhal_drive_policy_compute_display_name(halDrive, halVolume, m_halStoragePolicy);
-+ QString drive_name = QString::fromUtf8(name);
-+ media_name = drive_name;
-+ free(name);
-+ }
-+ medium->setLabel(media_name);
-+
-+ free(volumes);
-+ libhal_drive_free(halDrive);
-+ libhal_volume_free(halVolume);
- }
-
--QStringList HALBackend::mountoptions(const QString &name)
-+void HALBackend::setCameraProperties(Medium* medium)
- {
-- const Medium* medium = m_mediaList.findById(name);
-- if (medium && !isInFstab(medium).isNull())
-- return QStringList(); // not handled by HAL - fstab entry
--
-- KConfig config("mediamanagerrc");
-- config.setGroup(name);
--
-- char ** array = libhal_device_get_property_strlist(m_halContext, name.latin1(), "volume.mount.valid_options", NULL);
-- QMap<QString,bool> valids;
--
-- for (int index = 0; array && array[index]; ++index) {
-- QString t = array[index];
-- if (t.endsWith("="))
-- t = t.left(t.length() - 1);
-- valids[t] = true;
-- kdDebug() << "valid " << t << endl;
-- }
-- libhal_free_string_array(array);
-- QStringList result;
-- QString tmp;
--
-- QString fstype = libhal_device_get_property_QString(m_halContext, name.latin1(), "volume.fstype");
-- if (fstype.isNull())
-- fstype = libhal_device_get_property_QString(m_halContext, name.latin1(), "volume.policy.mount_filesystem");
--
--
-- QString drive_udi = libhal_device_get_property_QString(m_halContext, name.latin1(), "block.storage_device");
--
-- bool removable = libhal_device_get_property_bool(m_halContext, drive_udi.latin1(), "storage.removable", NULL)
-- || libhal_device_get_property_bool(m_halContext, drive_udi.latin1(), "storage.hotpluggable", NULL);
--
-- config.setGroup(drive_udi);
-- bool value = config.readBoolEntry("automount", false);
-- config.setGroup(name);
--
-- if (libhal_device_get_property_bool(m_halContext, name.latin1(), "volume.disc.is_blank", NULL)
-- || libhal_device_get_property_bool(m_halContext, name.latin1(), "volume.disc.is_vcd", NULL)
-- || libhal_device_get_property_bool(m_halContext, name.latin1(), "volume.disc.is_svcd", NULL)
-- || libhal_device_get_property_bool(m_halContext, name.latin1(), "volume.disc.is_videodvd", NULL)
-- || libhal_device_get_property_bool(m_halContext, name.latin1(), "volume.disc.has_audio", NULL))
-- value = false;
--
-- result << QString("automount=%1").arg(value ? "true" : "false");
--
-- if (valids.contains("ro"))
-- {
-- value = config.readBoolEntry("ro", false);
-- tmp = QString("ro=%1").arg(value ? "true" : "false");
-- if (fstype != "iso9660") // makes no sense
-- result << tmp;
-- }
--
-- if (valids.contains("quiet"))
-- {
-- value = config.readBoolEntry("quiet", false);
-- tmp = QString("quiet=%1").arg(value ? "true" : "false");
-- if (fstype != "iso9660") // makes no sense
-- result << tmp;
-- }
--
-- if (valids.contains("flush"))
-- {
-- value = config.readBoolEntry("flush", fstype.endsWith("fat"));
-- tmp = QString("flush=%1").arg(value ? "true" : "false");
-- result << tmp;
-- }
--
-- if (valids.contains("uid"))
-- {
-- value = config.readBoolEntry("uid", true);
-- tmp = QString("uid=%1").arg(value ? "true" : "false");
-- result << tmp;
-- }
--
-- if (valids.contains("utf8"))
-- {
-- value = config.readBoolEntry("utf8", true);
-- tmp = QString("utf8=%1").arg(value ? "true" : "false");
-- result << tmp;
-- }
--
-- if (valids.contains("shortname"))
-- {
-- QString svalue = config.readEntry("shortname", "lower").lower();
-- if (svalue == "winnt")
-- result << "shortname=winnt";
-- else if (svalue == "win95")
-- result << "shortname=win95";
-- else if (svalue == "mixed")
-- result << "shortname=mixed";
-- else
-- result << "shortname=lower";
-- }
--
-- if (valids.contains("sync"))
-- {
-- value = config.readBoolEntry("sync", !fstype.endsWith("fat") && removable);
-- tmp = QString("sync=%1").arg(value ? "true" : "false");
-- if (fstype != "iso9660") // makes no sense
-- result << tmp;
-- }
--
-- if (valids.contains("noatime"))
-- {
-- value = config.readBoolEntry("atime", !fstype.endsWith("fat"));
-- tmp = QString("atime=%1").arg(value ? "true" : "false");
-- if (fstype != "iso9660") // makes no sense
-- result << tmp;
-- }
--
-- QString mount_point = libhal_device_get_property_QString(m_halContext, name.latin1(), "volume.mount_point");
-- if (mount_point.isEmpty())
-- mount_point = libhal_device_get_property_QString(m_halContext, name.latin1(), "volume.policy.desired_mount_point");
--
-- mount_point = config.readEntry("mountpoint", mount_point);
--
-- if (!mount_point.startsWith("/"))
-- mount_point = "/media/" + mount_point;
--
-- result << QString("mountpoint=%1").arg(mount_point);
-- result << QString("filesystem=%1").arg(fstype);
--
-- if (valids.contains("data"))
-- {
-- QString svalue = config.readEntry("journaling").lower();
-- if (svalue == "ordered")
-- result << "journaling=ordered";
-- else if (svalue == "writeback")
-- result << "journaling=writeback";
-- else if (svalue == "data")
-- result << "journaling=data";
-- else
-- result << "journaling=ordered";
-- }
-+ kdDebug(1219) << "HALBackend::setCameraProperties for " << medium->id() << endl;
-
-- return result;
-+ const char* udi = medium->id().ascii();
-+ /* Check if the device still exists */
-+ if (!libhal_device_exists(m_halContext, udi, NULL))
-+ return;
-+
-+ /** @todo find name */
-+ medium->setName("camera");
-+ /** @todo find the rest of this URL */
-+ medium->unmountableState("camera:/");
-+ medium->setMimeType("media/gphoto2camera");
-+ medium->setIconName(QString::null);
-+ if (libhal_device_property_exists(m_halContext, udi, "usb_device.product", NULL))
-+ medium->setLabel(hal_device_get_property_QString(m_halContext, udi, "usb_device.product"));
-+ else if (libhal_device_property_exists(m_halContext, udi, "usb.product", NULL))
-+ medium->setLabel(hal_device_get_property_QString(m_halContext, udi, "usb.product"));
-+ else
-+ medium->setLabel(i18n("Camera"));
- }
-
--bool HALBackend::setMountoptions(const QString &name, const QStringList &options )
-+QString HALBackend::generateName(const QString &devNode)
- {
-- kdDebug() << "setMountoptions " << name << " " << options << endl;
--
-- KConfig config("mediamanagerrc");
-- config.setGroup(name);
--
-- QMap<QString,QString> valids = MediaManagerUtils::splitOptions(options);
--
-- const char *names[] = { "ro", "quiet", "atime", "uid", "utf8", "flush", "sync", 0 };
-- for (int index = 0; names[index]; ++index)
-- if (valids.contains(names[index]))
-- config.writeEntry(names[index], valids[names[index]] == "true");
--
-- if (valids.contains("shortname"))
-- config.writeEntry("shortname", valids["shortname"]);
--
-- if (valids.contains("journaling"))
-- config.writeEntry("journaling", valids["journaling"]);
--
-- if (!mountoptions(name).contains(QString("mountpoint=%1").arg(valids["mountpoint"])))
-- config.writeEntry("mountpoint", valids["mountpoint"]);
--
-- if (valids.contains("automount")) {
-- QString drive_udi = libhal_device_get_property_QString(m_halContext, name.latin1(), "block.storage_device");
-- config.setGroup(drive_udi);
-- config.writeEntry("automount", valids["automount"]);
-- }
--
-- return true;
-+ return KURL(devNode).fileName();
- }
-
--static QString mount_priv(const char *udi, const char *mount_point, const char **poptions, int noptions,
-- DBusConnection *dbus_connection)
--{
-- DBusMessage *dmesg, *reply;
-- DBusError error;
--
-- const char *fstype = "";
-- if (!(dmesg = dbus_message_new_method_call ("org.freedesktop.Hal", udi,
-- "org.freedesktop.Hal.Device.Volume",
-- "Mount"))) {
-- kdDebug() << "mount failed for " << udi << ": could not create dbus message\n";
-- return i18n("Internal Error");
-- }
--
-- if (!dbus_message_append_args (dmesg, DBUS_TYPE_STRING, &mount_point, DBUS_TYPE_STRING, &fstype,
-- DBUS_TYPE_ARRAY, DBUS_TYPE_STRING, &poptions, noptions,
-- DBUS_TYPE_INVALID))
-- {
-- kdDebug() << "mount failed for " << udi << ": could not append args to dbus message\n";
-- dbus_message_unref (dmesg);
-- return i18n("Internal Error");
-- }
--
-- QString qerror;
--
-- dbus_error_init (&error);
-- if (!(reply = dbus_connection_send_with_reply_and_block (dbus_connection, dmesg, -1, &error)))
-- {
-- QString qerror = error.message;
-- kdError() << "mount failed for " << udi << ": " << error.name << " - " << qerror << endl;
-- if ( !strcmp(error.name, "org.freedesktop.Hal.Device.Volume.UnknownFilesystemType"))
-- qerror = i18n("Invalid filesystem type");
-- else if ( !strcmp(error.name, "org.freedesktop.Hal.Device.Volume.PermissionDenied"))
-- qerror = i18n("Permissions denied");
-- else if ( !strcmp(error.name, "org.freedesktop.Hal.Device.Volume.AlreadyMounted"))
-- qerror = i18n("Device is already mounted.");
-- else if ( !strcmp(error.name, "org.freedesktop.Hal.Device.Volume.InvalidMountpoint") && strlen(mount_point)) {
-- dbus_message_unref (dmesg);
-- dbus_error_free (&error);
-- return mount_priv(udi, "", poptions, noptions, dbus_connection);
-- }
-- dbus_message_unref (dmesg);
-- dbus_error_free (&error);
-- return qerror;
-- }
--
-- kdDebug() << "mount queued for " << udi << endl;
--
-- dbus_message_unref (dmesg);
-- dbus_message_unref (reply);
--
-- return qerror;
-+/******************************************
-+** HAL CALL-BACKS **
-+******************************************/
-
-+#ifdef HAL_0_4
-+void HALBackend::hal_main_loop_integration(LibHalContext *ctx,
-+ DBusConnection *dbus_connection)
-+{
-+ kdDebug(1219) << "HALBackend::hal_main_loop_integration" << endl;
-+ Q_UNUSED(ctx);
-+ s_HALBackend->MainLoopIntegration(dbus_connection);
- }
-+#endif
-
--void HALBackend::slotResult(KIO::Job *job)
-+void HALBackend::hal_device_added(LibHalContext *ctx, const char *udi)
- {
-- kdDebug() << "slotResult " << mount_jobs[job] << endl;
-- if (job->error())
-- {
-- KMessageBox::error(0, job->errorText());
-- }
-- ResetProperties( mount_jobs[job].latin1() );
-- mount_jobs.remove(job);
-+ kdDebug(1219) << "HALBackend::hal_device_added " << udi << endl;
-+ Q_UNUSED(ctx);
-+ s_HALBackend->AddDevice(udi);
- }
-
--QString HALBackend::isInFstab(const Medium *medium)
-+void HALBackend::hal_device_removed(LibHalContext *ctx, const char *udi)
- {
-- KMountPoint::List fstab = KMountPoint::possibleMountPoints(KMountPoint::NeedMountOptions|KMountPoint::NeedRealDeviceName);
--
-- KMountPoint::List::iterator it = fstab.begin();
-- KMountPoint::List::iterator end = fstab.end();
--
-- for (; it!=end; ++it)
-- {
-- kdDebug() << "isInFstab -" << medium->deviceNode() << "- -" << (*it)->realDeviceName() << "- -" << (*it)->mountedFrom() << endl;
-- if ((*it)->mountedFrom() == medium->deviceNode() || ( !medium->deviceNode().isEmpty() && (*it)->realDeviceName() == medium->deviceNode() ) )
-- {
-- QStringList opts = (*it)->mountOptions();
-- if (opts.contains("user") || opts.contains("users"))
-- return (*it)->mountPoint();
-- }
-- }
--
-- return QString::null;
-+ kdDebug(1219) << "HALBackend::hal_device_removed " << udi << endl;
-+ Q_UNUSED(ctx);
-+ s_HALBackend->RemoveDevice(udi);
- }
-
--QString HALBackend::mount(const Medium *medium)
--{
-- if (medium->isMounted())
-- return QString(); // that was easy
--
-- QString mountPoint = isInFstab(medium);
-- if (!mountPoint.isNull())
-- {
-- kdDebug() << "triggering user mount " << medium->deviceNode() << " " << mountPoint << " " << medium->id() << endl;
-- KIO::Job *job = KIO::mount( false, 0, medium->deviceNode(), mountPoint );
-- connect(job, SIGNAL( result (KIO::Job *)),
-- SLOT( slotResult( KIO::Job *)));
-- mount_jobs[job] = medium->id();
-- return QString(); // we won't report an error here
-- } else if (medium->id().startsWith("/org/kde/") )
-- return i18n("Permissions denied");
--
-- QStringList soptions;
--
-- kdDebug() << "mounting " << medium->id() << "..." << endl;
--
-- QMap<QString,QString> valids = MediaManagerUtils::splitOptions(mountoptions(medium->id()));
-- if (valids["flush"] == "true")
-- soptions << "flush";
--
-- if (valids["uid"] == "true")
-- {
-- soptions << QString("uid=%1").arg(getuid());
-- }
--
-- if (valids["ro"] == "true")
-- soptions << "ro";
--
-- if (valids["atime"] != "true")
-- soptions << "noatime";
--
-- if (valids["quiet"] == "true")
-- soptions << "quiet";
--
-- if (valids["utf8"] == "true")
-- soptions << "utf8";
--
-- if (valids["sync"] == "true")
-- soptions << "sync";
--
-- QString mount_point = valids["mountpoint"];
-- if (mount_point.startsWith("/media/"))
-- mount_point = mount_point.mid(7);
--
-- if (valids.contains("shortname"))
-- {
-- soptions << QString("shortname=%1").arg(valids["shortname"]);
-- }
--
-- if (valids.contains("journaling"))
-- {
-- QString option = valids["journaling"];
-- if (option == "data")
-- soptions << QString("data=journal");
-- else if (option == "writeback")
-- soptions << QString("data=writeback");
-- else
-- soptions << QString("data=ordered");
-- }
--
-- const char **options = new const char*[soptions.size() + 1];
-- uint noptions = 0;
-- for (QStringList::ConstIterator it = soptions.begin(); it != soptions.end(); ++it, ++noptions)
-- options[noptions] = (*it).latin1();
-- options[noptions] = NULL;
--
-- QString qerror = mount_priv(medium->id().latin1(), mount_point.utf8(), options, noptions, dbus_connection);
-- if (!qerror.isEmpty()) {
-- kdError() << "mounting " << medium->id() << " returned " << qerror << endl;
-- return qerror;
-- }
--
-- medium->setHalMounted(true);
-- ResetProperties(medium->id().latin1());
--
-- return QString();
--}
--
--QString HALBackend::mount(const QString &_udi)
-+void HALBackend::hal_device_property_modified(LibHalContext *ctx, const char *udi,
-+ const char *key, dbus_bool_t is_removed, dbus_bool_t is_added)
- {
-- const Medium* medium = m_mediaList.findById(_udi);
-- if (!medium)
-- return i18n("No such medium: %1").arg(_udi);
--
-- return mount(medium);
-+ kdDebug(1219) << "HALBackend::hal_property_modified " << udi << " -- " << key << endl;
-+ Q_UNUSED(ctx);
-+ Q_UNUSED(is_removed);
-+ Q_UNUSED(is_added);
-+ s_HALBackend->ModifyDevice(udi, key);
- }
-
--QString HALBackend::unmount(const QString &_udi)
--{
-- const Medium* medium = m_mediaList.findById(_udi);
-- if (!medium)
-- { // now we get fancy: if the udi is no volume, it _might_ be a device with only one
-- // volume on it (think CDs) - so we're so nice to the caller to unmount that volume
-- LibHalDrive* halDrive = libhal_drive_from_udi(m_halContext, _udi.latin1());
-- if (halDrive)
-- {
-- int numVolumes;
-- char** volumes = libhal_drive_find_all_volumes(m_halContext, halDrive, &numVolumes);
-- if (numVolumes == 1)
-- medium = m_mediaList.findById( volumes[0] );
-- }
-- }
--
-- if ( !medium )
-- return i18n("No such medium: %1").arg(_udi);
--
-- if (!medium->isMounted())
-- return QString(); // that was easy
--
-- QString mountPoint = isInFstab(medium);
-- if (!mountPoint.isNull())
-- {
-- kdDebug() << "triggering user unmount " << medium->deviceNode() << " " << mountPoint << endl;
-- KIO::Job *job = KIO::unmount( medium->mountPoint(), false );
-- connect(job, SIGNAL( result (KIO::Job *)),
-- SLOT( slotResult( KIO::Job *)));
-- mount_jobs[job] = medium->id();
-- return QString(); // we won't report an error here
-- }
--
-- DBusMessage *dmesg, *reply;
-- DBusError error;
-- const char *options[2];
--
-- const char *udi = medium->id().latin1();
-- kdDebug() << "unmounting " << udi << "..." << endl;
--
-- dbus_error_init(&error);
-- DBusConnection *dbus_connection = dbus_bus_get(DBUS_BUS_SYSTEM, &error);
-- if (dbus_error_is_set(&error))
-- {
-- dbus_error_free(&error);
-- return false;
-- }
--
-- if (!(dmesg = dbus_message_new_method_call ("org.freedesktop.Hal", udi,
-- "org.freedesktop.Hal.Device.Volume",
-- "Unmount"))) {
-- kdDebug() << "unmount failed for " << udi << ": could not create dbus message\n";
-- return i18n("Internal Error");
-- }
--
-- options[0] = "force";
-- options[1] = 0;
--
-- if (!dbus_message_append_args (dmesg, DBUS_TYPE_ARRAY, DBUS_TYPE_STRING, &options, 0,
-- DBUS_TYPE_INVALID))
-- {
-- kdDebug() << "unmount failed for " << udi << ": could not append args to dbus message\n";
-- dbus_message_unref (dmesg);
-- return i18n("Internal Error");
-- }
--
-- dbus_error_init (&error);
-- if (!(reply = dbus_connection_send_with_reply_and_block (dbus_connection, dmesg, -1, &error)))
-- {
-- kdDebug() << "unmount failed for " << udi << ": " << error.name << " " << error.message << endl;
-- QString qerror = error.message;
-- if (!strcmp(error.name, "org.freedesktop.Hal.Device.Volume.Busy")) {
-- qerror = QString("<qt>") + i18n("Device is Busy:");
-- QString cmdline = QString("/usr/bin/env fuser -vm %1 2>&1").arg(KProcess::quote(medium->mountPoint()));
-- FILE *fuser = popen(cmdline.latin1(), "r");
-- uint counter = 0;
-- if (fuser) {
-- qerror += "<pre>";
-- QTextIStream is(fuser);
-- QString tmp;
-- while (!is.atEnd()) {
-- tmp = is.readLine();
-- tmp = QStyleSheet::escape(tmp) + "\n";
--
-- qerror += tmp;
-- if (counter++ > 20)
-- {
-- qerror += "...";
-- break;
-- }
-- }
-- qerror += "</pre>";
-- (void)pclose( fuser );
-- }
-- qerror += "</qt>";
-- } else if (!strcmp(error.name, "org.freedesktop.Hal.Device.Volume.NotMounted")) {
-- // this is faking. The error is that the device wasn't mounted by hal (but by the system)
-- qerror = i18n("Permissions denied");
-- }
--
-- dbus_message_unref (dmesg);
-- dbus_error_free (&error);
-- return qerror;
-- }
--
-- kdDebug() << "unmount queued for " << udi << endl;
--
-- dbus_message_unref (dmesg);
-- dbus_message_unref (reply);
--
-- medium->setHalMounted(false);
-- ResetProperties(udi);
--
-- return QString();
-+void HALBackend::hal_device_condition(LibHalContext *ctx, const char *udi,
-+ const char *condition_name,
-+ #ifdef HAL_0_4
-+ DBusMessage *message
-+ #else
-+ const char* message
-+ #endif
-+ )
-+{
-+ kdDebug(1219) << "HALBackend::hal_device_condition " << udi << " -- " << condition_name << endl;
-+ Q_UNUSED(ctx);
-+ Q_UNUSED(message);
-+ s_HALBackend->DeviceCondition(udi, condition_name);
- }
-
- #include "halbackend.moc"
-diff -urN kioslave/media/mediamanager/halbackend.h kioslave/media/mediamanager/halbackend.h
---- kioslave/media/mediamanager/halbackend.h Sat Jul 22 10:15:45 2006
-+++ kioslave/media/mediamanager/halbackend.h Mon Oct 10 17:04:01 2005
-@@ -45,9 +45,65 @@
- #include <libhal.h>
- #include <libhal-storage.h>
-
--namespace KIO {
-- class Job;
--}
-+/* The HAL API changed between 0.4 and 0.5 series.
-+These defines enable backward compatibility */
-+#ifdef HAL_0_4
-+ // libhal-storage 0.4 API
-+ #define LibHalStoragePolicy HalStoragePolicy
-+ #define LibHalDrive HalDrive
-+ #define LibHalVolume HalVolume
-+ #define LibHalVolumeDiscType HalVolumeDiscType
-+ #define libhal_storage_policy_free hal_storage_policy_free
-+ #define libhal_storage_policy_new hal_storage_policy_new
-+ #define libhal_drive_from_udi hal_drive_from_udi
-+ #define libhal_drive_find_all_volumes hal_drive_find_all_volumes
-+ #define libhal_drive_get_type hal_drive_get_type
-+ #define libhal_drive_get_device_file hal_drive_get_device_file
-+ #define libhal_drive_free hal_drive_free
-+ #define libhal_drive_policy_compute_display_name hal_drive_policy_compute_display_name
-+ #define libhal_drive_is_hotpluggable hal_drive_is_hotpluggable
-+ #define libhal_drive_get_physical_device_udi hal_drive_get_physical_device_udi
-+ #define libhal_volume_from_udi hal_volume_from_udi
-+ #define libhal_volume_get_device_file hal_volume_get_device_file
-+ #define libhal_volume_get_mount_point hal_volume_get_mount_point
-+ #define libhal_volume_get_fstype hal_volume_get_fstype
-+ #define libhal_volume_is_mounted hal_volume_is_mounted
-+ #define libhal_volume_get_disc_type hal_volume_get_disc_type
-+ #define libhal_volume_free hal_volume_free
-+ #define libhal_volume_policy_compute_display_name hal_volume_policy_compute_display_name
-+ #define libhal_volume_disc_has_data hal_volume_disc_has_data
-+ #define libhal_volume_disc_has_audio hal_volume_disc_has_audio
-+ #define libhal_volume_disc_is_blank hal_volume_disc_is_blank
-+ #define libhal_volume_is_disc hal_volume_is_disc
-+ #define libhal_volume_get_storage_device_udi hal_volume_get_storage_device_udi
-+ #define LIBHAL_VOLUME_DISC_TYPE_CDROM HAL_VOLUME_DISC_TYPE_CDROM
-+ #define LIBHAL_VOLUME_DISC_TYPE_CDR HAL_VOLUME_DISC_TYPE_CDR
-+ #define LIBHAL_VOLUME_DISC_TYPE_CDRW HAL_VOLUME_DISC_TYPE_CDRW
-+ #define LIBHAL_VOLUME_DISC_TYPE_DVDROM HAL_VOLUME_DISC_TYPE_DVDROM
-+ #define LIBHAL_VOLUME_DISC_TYPE_DVDRAM HAL_VOLUME_DISC_TYPE_DVDRAM
-+ #define LIBHAL_VOLUME_DISC_TYPE_DVDR HAL_VOLUME_DISC_TYPE_DVDR
-+ #define LIBHAL_VOLUME_DISC_TYPE_DVDRW HAL_VOLUME_DISC_TYPE_DVDRW
-+ #define LIBHAL_VOLUME_DISC_TYPE_DVDPLUSR HAL_VOLUME_DISC_TYPE_DVDPLUSR
-+ #define LIBHAL_VOLUME_DISC_TYPE_DVDPLUSRW HAL_VOLUME_DISC_TYPE_DVDPLUSRW
-+ #define LIBHAL_DRIVE_TYPE_COMPACT_FLASH HAL_DRIVE_TYPE_COMPACT_FLASH
-+ #define LIBHAL_DRIVE_TYPE_MEMORY_STICK HAL_DRIVE_TYPE_MEMORY_STICK
-+ #define LIBHAL_DRIVE_TYPE_SMART_MEDIA HAL_DRIVE_TYPE_SMART_MEDIA
-+ #define LIBHAL_DRIVE_TYPE_SD_MMC HAL_DRIVE_TYPE_SD_MMC
-+ #define LIBHAL_DRIVE_TYPE_PORTABLE_AUDIO_PLAYER HAL_DRIVE_TYPE_PORTABLE_AUDIO_PLAYER
-+ #define LIBHAL_DRIVE_TYPE_CAMERA HAL_DRIVE_TYPE_CAMERA
-+ #define LIBHAL_DRIVE_TYPE_TAPE HAL_DRIVE_TYPE_TAPE
-+
-+ // libhal 0.4 API
-+ #define libhal_free_string hal_free_string
-+ #define libhal_device_exists(ctx, udi, error) hal_device_exists(ctx, udi)
-+ #define libhal_device_property_watch_all(ctx, error) hal_device_property_watch_all(ctx)
-+ #define libhal_get_all_devices(ctx, num_devices, error) hal_get_all_devices(ctx, num_devices)
-+ #define libhal_device_property_exists(ctx, udi, key, error) hal_device_property_exists(ctx, udi, key)
-+ #define libhal_device_get_property_bool(ctx, udi, key, error) hal_device_get_property_bool(ctx, udi, key)
-+ #define libhal_device_get_property_string(ctx, udi, key, error) hal_device_get_property_string(ctx, udi, key)
-+ #define libhal_device_query_capability(ctx, udi, capability, error) hal_device_query_capability(ctx, udi, capability)
-+#endif
-+
-
- /**
- * A handy function to query a hal string
-@@ -88,14 +144,6 @@
- */
- bool ListDevices();
-
-- QStringList mountoptions(const QString &id);
--
-- bool setMountoptions(const QString &id, const QStringList &options);
--
-- QString mount(const QString &id);
-- QString mount(const Medium *medium);
-- QString unmount(const QString &id);
--
- private:
- /**
- * Append a device in the media list. This function will check if the device
-@@ -147,16 +195,20 @@
-
- void setVolumeProperties(Medium* medium);
- void setFloppyProperties(Medium* medium);
-- bool setFstabProperties(Medium* medium);
- void setCameraProperties(Medium* medium);
- QString generateName(const QString &devNode);
-- static QString isInFstab(const Medium *medium);
--
--private slots:
-- void slotResult(KIO::Job *job);
-
- /* Hal call-backs -- from gvm*/
- public:
-+#ifdef HAL_0_4
-+ /** Invoked by libhal for integration with our mainloop.
-+ *
-+ * @param ctx LibHal context
-+ * @param dbus_connection D-BUS connection to integrate
-+ */
-+ static void hal_main_loop_integration(LibHalContext *ctx, DBusConnection *dbus_connection);
-+#endif
-+
- /** Invoked when a device is added to the Global Device List.
- *
- * @param ctx LibHal context
-@@ -189,7 +241,11 @@
- */
- static void hal_device_condition(LibHalContext *ctx, const char *udi,
- const char *condition_name,
-+ #ifdef HAL_0_4
-+ DBusMessage *message
-+ #else
- const char* message
-+ #endif
- );
-
- /* HAL and DBus structures */
-@@ -199,6 +255,13 @@
- */
- LibHalContext* m_halContext;
-
-+#ifdef HAL_0_4
-+ /**
-+ * Structure defining the hal callback function for devices events
-+ */
-+ LibHalFunctions m_halFunctions;
-+#endif
-+
- /**
- * libhal-storage HAL policy, e.g. for icon names
- */
-@@ -213,10 +276,6 @@
- * Object for the kded module
- */
- QObject* m_parent;
--
-- DBusConnection *dbus_connection;
--
-- QMap<KIO::Job *, QString> mount_jobs;
- };
-
- #endif /* _HALBACKEND_H_ */
-diff -urN kioslave/media/mediamanager/linuxcdpolling.cpp kioslave/media/mediamanager/linuxcdpolling.cpp
---- kioslave/media/mediamanager/linuxcdpolling.cpp Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mediamanager/linuxcdpolling.cpp Mon Oct 10 17:04:01 2005
-@@ -23,6 +23,7 @@
-
- #include <qthread.h>
- #include <qmutex.h>
-+#include <qtimer.h>
- #include <qfile.h>
-
- #include <kdebug.h>
-@@ -188,7 +189,9 @@
- const QString &, bool, bool)),
- this, SLOT(slotMediumStateChanged(const QString &)) );
-
-- connect(&m_timer, SIGNAL(timeout()), this, SLOT(slotTimeout()));
-+ QTimer *timer = new QTimer(this);
-+ connect(timer, SIGNAL(timeout()), this, SLOT(slotTimeout()));
-+ timer->start(500);
- }
-
- LinuxCDPolling::~LinuxCDPolling()
-@@ -226,7 +229,6 @@
- PollingThread *thread = new PollingThread(dev);
- m_threads[id] = thread;
- thread->start();
-- m_timer.start(500);
- }
- }
-
-@@ -266,7 +268,6 @@
- PollingThread *thread = new PollingThread(dev);
- m_threads[id] = thread;
- thread->start();
-- m_timer.start(500);
- }
- else if (m_threads.contains(id) && medium->isMounted())
- {
-@@ -281,12 +282,6 @@
- void LinuxCDPolling::slotTimeout()
- {
- //kdDebug(1219) << "LinuxCDPolling::slotTimeout()" << endl;
--
-- if (m_threads.isEmpty())
-- {
-- m_timer.stop();
-- return;
-- }
-
- QMap<QString, PollingThread*>::iterator it = m_threads.begin();
- QMap<QString, PollingThread*>::iterator end = m_threads.end();
-diff -urN kioslave/media/mediamanager/linuxcdpolling.h kioslave/media/mediamanager/linuxcdpolling.h
---- kioslave/media/mediamanager/linuxcdpolling.h Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mediamanager/linuxcdpolling.h Mon Oct 10 17:04:01 2005
-@@ -24,7 +24,6 @@
- #include <qobject.h>
- #include <qcstring.h>
- #include <qmap.h>
--#include <qtimer.h>
-
- class DiscType
- {
-@@ -80,7 +79,6 @@
-
- QMap<QString, PollingThread*> m_threads;
- QStringList m_excludeNotification;
-- QTimer m_timer;
- };
-
- #endif
-diff -urN kioslave/media/mediamanager/mediamanager.cpp kioslave/media/mediamanager/mediamanager.cpp
---- kioslave/media/mediamanager/mediamanager.cpp Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mediamanager/mediamanager.cpp Mon Oct 10 17:04:01 2005
-@@ -43,287 +43,201 @@
- MediaManager::MediaManager(const QCString &obj)
- : KDEDModule(obj), m_dirNotify(m_mediaList)
- {
-- connect( &m_mediaList, SIGNAL(mediumAdded(const QString&, const QString&, bool)),
-- SLOT(slotMediumAdded(const QString&, const QString&, bool)) );
-- connect( &m_mediaList, SIGNAL(mediumRemoved(const QString&, const QString&, bool)),
-- SLOT(slotMediumRemoved(const QString&, const QString&, bool)) );
-- connect( &m_mediaList,
-- SIGNAL(mediumStateChanged(const QString&, const QString&, bool, bool)),
-- SLOT(slotMediumChanged(const QString&, const QString&, bool, bool)) );
-+ connect( &m_mediaList, SIGNAL(mediumAdded(const QString&, const QString&, bool)),
-+ SLOT(slotMediumAdded(const QString&, const QString&, bool)) );
-+ connect( &m_mediaList, SIGNAL(mediumRemoved(const QString&, const QString&, bool)),
-+ SLOT(slotMediumRemoved(const QString&, const QString&, bool)) );
-+ connect( &m_mediaList,
-+ SIGNAL(mediumStateChanged(const QString&, const QString&, bool, bool)),
-+ SLOT(slotMediumChanged(const QString&, const QString&, bool, bool)) );
-
-- QTimer::singleShot( 10, this, SLOT( loadBackends() ) );
-+ QTimer::singleShot( 10, this, SLOT( loadBackends() ) );
- }
-
- MediaManager::~MediaManager()
- {
-- while ( !m_backends.isEmpty() )
-- {
-- BackendBase *b = m_backends.first();
-- m_backends.remove( b );
-- delete b;
-- }
-+ while ( !m_backends.isEmpty() )
-+ {
-+ BackendBase *b = m_backends.first();
-+ m_backends.remove( b );
-+ delete b;
-+ }
- }
-
- void MediaManager::loadBackends()
- {
- m_mediaList.blockSignals(true);
-
-- while ( !m_backends.isEmpty() )
-- {
-- BackendBase *b = m_backends.first();
-- m_backends.remove( b );
-- delete b;
-- }
--
-- mp_removableBackend = 0L;
-- m_halbackend = 0L;
-- m_fstabbackend = 0L;
-+ while ( !m_backends.isEmpty() )
-+ {
-+ BackendBase *b = m_backends.first();
-+ m_backends.remove( b );
-+ delete b;
-+ }
-+
-+ mp_removableBackend = 0L;
-
- #ifdef COMPILE_HALBACKEND
-- if ( MediaManagerSettings::self()->halBackendEnabled() )
-- {
-- m_halbackend = new HALBackend(m_mediaList, this);
-- if (m_halbackend->InitHal())
-- {
-- m_backends.append( m_halbackend );
-- m_fstabbackend = new FstabBackend(m_mediaList, true);
-- m_backends.append( m_fstabbackend );
-- // No need to load something else...
-- m_mediaList.blockSignals(false);
-- return;
-- }
-- else
-- {
-- delete m_halbackend;
-- m_halbackend = 0;
-- }
-- }
-+ if ( MediaManagerSettings::self()->halBackendEnabled() )
-+ {
-+ HALBackend* hal_backend = new HALBackend(m_mediaList, this);
-+ if (hal_backend->InitHal())
-+ {
-+ m_backends.append( hal_backend );
-+ m_backends.append( new FstabBackend(m_mediaList, true) );
-+ // No need to load something else...
-+ m_mediaList.blockSignals(false);
-+ return;
-+ }
-+ else
-+ {
-+ delete hal_backend;
-+ }
-+ }
- #endif // COMPILE_HALBACKEND
-
-- mp_removableBackend = new RemovableBackend(m_mediaList);
-- m_backends.append( mp_removableBackend );
-+ mp_removableBackend = new RemovableBackend(m_mediaList);
-+ m_backends.append( mp_removableBackend );
-
- #ifdef COMPILE_LINUXCDPOLLING
-- if ( MediaManagerSettings::self()->cdPollingEnabled() )
-- {
-- m_backends.append( new LinuxCDPolling(m_mediaList) );
-- }
-+ if ( MediaManagerSettings::self()->cdPollingEnabled() )
-+ {
-+ m_backends.append( new LinuxCDPolling(m_mediaList) );
-+ }
- #endif //COMPILE_LINUXCDPOLLING
-
-- m_fstabbackend = new FstabBackend(m_mediaList);
-- m_backends.append( m_fstabbackend );
-- m_mediaList.blockSignals(false);
-+ m_backends.append( new FstabBackend(m_mediaList) );
-+ m_mediaList.blockSignals(false);
- }
-
-
- QStringList MediaManager::fullList()
- {
-- QPtrList<Medium> list = m_mediaList.list();
-+ QPtrList<Medium> list = m_mediaList.list();
-
-- QStringList result;
-+ QStringList result;
-
-- QPtrList<Medium>::const_iterator it = list.begin();
-- QPtrList<Medium>::const_iterator end = list.end();
-- for (; it!=end; ++it)
-- {
-- result+= (*it)->properties();
-- result+= Medium::SEPARATOR;
-- }
-+ QPtrList<Medium>::const_iterator it = list.begin();
-+ QPtrList<Medium>::const_iterator end = list.end();
-+ for (; it!=end; ++it)
-+ {
-+ result+= (*it)->properties();
-+ result+= Medium::SEPARATOR;
-+ }
-
-- return result;
-+ return result;
- }
-
- QStringList MediaManager::properties(const QString &name)
- {
-- const Medium *m = m_mediaList.findByName(name);
--
-- if (!m)
-- {
-- KURL u(name);
-- kdDebug() << "Media::prop " << name << " " << u.isValid() << endl;
-- if (u.isValid())
-- {
-- if (u.protocol() == "system")
-- {
-- QString path = u.path();
-- if (path.startsWith("/media/"))
-- path = path.mid(strlen("/media/"));
-- m = m_mediaList.findByName(path);
-- kdDebug() << "findByName " << path << m << endl;
-- }
-- else if (u.protocol() == "media")
-- {
-- m = m_mediaList.findByName(u.filename());
-- kdDebug() << "findByName " << u.filename() << m << endl;
-- }
-- else if (u.protocol() == "file")
-- {
-- // look for the mount point
-- QPtrList<Medium> list = m_mediaList.list();
-- QPtrList<Medium>::const_iterator it = list.begin();
-- QPtrList<Medium>::const_iterator end = list.end();
-- for (; it!=end; ++it)
-- {
-- kdDebug() << "comparing " << (*it)->mountPoint() << " " << u.path() << " " << (*it)->deviceNode() << endl;
-- if ((*it)->mountPoint() == u.path() || (*it)->deviceNode() == u.path()) {
-- m = *it;
-- break;
-- }
-- }
-- }
-- }
-- }
--
-- if (m)
-- return m->properties();
-- else
-- return QStringList();
--}
-+ const Medium *m = m_mediaList.findByName(name);
-
--QStringList MediaManager::mountoptions(const QString &name)
--{
--#ifdef COMPILE_HALBACKEND
-- if (!m_halbackend)
-- return QStringList();
-- return m_halbackend->mountoptions(name);
--#else
-- return QStringList();
--#endif
--}
--
--bool MediaManager::setMountoptions(const QString &name, const QStringList &options)
--{
--#ifdef COMPILE_HALBACKEND
-- if (!m_halbackend)
-- return false;
-- return m_halbackend->setMountoptions(name, options);
--#else
-- return false;
--#endif
--}
--
--QString MediaManager::mount(const QString &name)
--{
--#ifdef COMPILE_HALBACKEND
-- if (!m_halbackend)
-- return i18n("Feature only available with HAL");
-- return m_halbackend->mount(name);
--#else
-- if ( !m_fstabbackend ) // lying :)
-- return i18n("Feature only available with HAL");
-- return m_fstabbackend->mount( name );
--#endif
--}
--
--QString MediaManager::unmount(const QString &name)
--{
--#ifdef COMPILE_HALBACKEND
-- if (!m_halbackend)
-- return i18n("Feature only available with HAL");
-- return m_halbackend->unmount(name);
--#else
-- if ( !m_fstabbackend ) // lying :)
-- return i18n("Feature only available with HAL");
-- return m_fstabbackend->unmount( name );
--#endif
-+ if (m!=0L)
-+ {
-+ return m->properties();
-+ }
-+ else
-+ {
-+ return QStringList();
-+ }
- }
-
- QString MediaManager::nameForLabel(const QString &label)
- {
-- const QPtrList<Medium> media = m_mediaList.list();
-+ const QPtrList<Medium> media = m_mediaList.list();
-
-- QPtrList<Medium>::const_iterator it = media.begin();
-- QPtrList<Medium>::const_iterator end = media.end();
-- for (; it!=end; ++it)
-- {
-- const Medium *m = *it;
--
-- if (m->prettyLabel()==label)
-- {
-- return m->name();
-- }
-- }
-+ QPtrList<Medium>::const_iterator it = media.begin();
-+ QPtrList<Medium>::const_iterator end = media.end();
-+ for (; it!=end; ++it)
-+ {
-+ const Medium *m = *it;
-+
-+ if (m->prettyLabel()==label)
-+ {
-+ return m->name();
-+ }
-+ }
-
-- return QString::null;
-+ return QString::null;
- }
-
- ASYNC MediaManager::setUserLabel(const QString &name, const QString &label)
- {
-- m_mediaList.setUserLabel(name, label);
-+ m_mediaList.setUserLabel(name, label);
- }
-
- ASYNC MediaManager::reloadBackends()
- {
-- MediaManagerSettings::self()->readConfig();
-- loadBackends();
-+ MediaManagerSettings::self()->readConfig();
-+ loadBackends();
- }
-
- bool MediaManager::removablePlug(const QString &devNode, const QString &label)
- {
-- if (mp_removableBackend)
-- {
-- return mp_removableBackend->plug(devNode, label);
-- }
-- return false;
-+ if (mp_removableBackend)
-+ {
-+ return mp_removableBackend->plug(devNode, label);
-+ }
-+ return false;
- }
-
- bool MediaManager::removableUnplug(const QString &devNode)
- {
-- if (mp_removableBackend)
-- {
-- return mp_removableBackend->unplug(devNode);
-- }
-- return false;
-+ if (mp_removableBackend)
-+ {
-+ return mp_removableBackend->unplug(devNode);
-+ }
-+ return false;
- }
-
- bool MediaManager::removableCamera(const QString &devNode)
- {
-- if (mp_removableBackend)
-- {
-- return mp_removableBackend->camera(devNode);
-- }
-- return false;
-+ if (mp_removableBackend)
-+ {
-+ return mp_removableBackend->camera(devNode);
-+ }
-+ return false;
- }
-
-
- void MediaManager::slotMediumAdded(const QString &/*id*/, const QString &name,
- bool allowNotification)
- {
-- kdDebug(1219) << "MediaManager::slotMediumAdded: " << name << endl;
-+ kdDebug(1219) << "MediaManager::slotMediumAdded: " << name << endl;
-
-- KDirNotify_stub notifier("*", "*");
-- notifier.FilesAdded( KURL("media:/") );
-+ KDirNotify_stub notifier("*", "*");
-+ notifier.FilesAdded( KURL("media:/") );
-
-- emit mediumAdded(name, allowNotification);
-- emit mediumAdded(name);
-+ emit mediumAdded(name, allowNotification);
-+ emit mediumAdded(name);
- }
-
- void MediaManager::slotMediumRemoved(const QString &/*id*/, const QString &name,
- bool allowNotification)
- {
-- kdDebug(1219) << "MediaManager::slotMediumRemoved: " << name << endl;
-+ kdDebug(1219) << "MediaManager::slotMediumRemoved: " << name << endl;
-
-- KDirNotify_stub notifier("*", "*");
-- notifier.FilesRemoved( KURL("media:/"+name) );
-+ KDirNotify_stub notifier("*", "*");
-+ notifier.FilesRemoved( KURL("media:/"+name) );
-
-- emit mediumRemoved(name, allowNotification);
-- emit mediumRemoved(name);
-+ emit mediumRemoved(name, allowNotification);
-+ emit mediumRemoved(name);
- }
-
- void MediaManager::slotMediumChanged(const QString &/*id*/, const QString &name,
- bool mounted, bool allowNotification)
- {
-- kdDebug(1219) << "MediaManager::slotMediumChanged: " << name << endl;
-+ kdDebug(1219) << "MediaManager::slotMediumChanged: " << name << endl;
-
-- KDirNotify_stub notifier("*", "*");
-- if (!mounted)
-- {
-- notifier.FilesRemoved( KURL("media:/"+name) );
-- }
-- notifier.FilesChanged( KURL("media:/"+name) );
-+ KDirNotify_stub notifier("*", "*");
-+ if (!mounted)
-+ {
-+ notifier.FilesRemoved( KURL("media:/"+name) );
-+ }
-+ notifier.FilesChanged( KURL("media:/"+name) );
-
-- emit mediumChanged(name, allowNotification);
-- emit mediumChanged(name);
-+ emit mediumChanged(name, allowNotification);
-+ emit mediumChanged(name);
- }
-
-
-diff -urN kioslave/media/mediamanager/mediamanager.desktop kioslave/media/mediamanager/mediamanager.desktop
---- kioslave/media/mediamanager/mediamanager.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mediamanager/mediamanager.desktop Tue May 23 13:33:34 2006
-@@ -16,13 +16,11 @@
- Name[es]=Administrador de recursos KDED
- Name[et]=KDED andmekandjate haldur
- Name[eu]=KDED media kudeatzailea
--Name[fa]=مدیر رسانه KDED
- Name[fi]=KDED-tallennusmedianhallinta
- Name[fr]=Gestionnaire de médias KDED
- Name[fy]=KDEDED-mediabehearder
- Name[ga]=Bainisteoir Meán KDED
- Name[gl]=Xestor de Meios de KDED
--Name[he]=מנהל המדיה של KDED
- Name[hi]=केडीईडी मीडिया प्रबंधक
- Name[hr]=KDED upravitelj medija
- Name[hu]=KDED médiakezelő
-@@ -45,7 +43,6 @@
- Name[ru]=Управление подключаемыми устройствами
- Name[rw]=Mugenga Igihuza KDED
- Name[se]=KDED-mediagieđahalli
--Name[sk]=KDED správca médií
- Name[sl]=Upravitelj medijev KDED
- Name[sr]=Менаџер медијума, KDED
- Name[sr@Latn]=Menadžer medijuma, KDED
-@@ -73,18 +70,16 @@
- Comment[es]=Monitoriza las actividades de los recursos y permite (des)montarlos (media:/)
- Comment[et]=Hoiab silma peal andmekandjate aktiivsusel ja võimaldab neid ühendada/lahutada (media:/)
- Comment[eu]=Montatzeak begiztatzen ditu (media:/) eta desmontatzen uzten du
--Comment[fa]=حفظ رد فعالیتهای رسانه و اجازه سو ار(پیاده) کردن (media:/)
- Comment[fi]=Pidä kirjaa tallennustapahtumista ja salli tallennusvälineen liittäminen/irrotus (devices:/)
- Comment[fr]=Gardez une trace des montages et permettre le (dé)montage (media:/)
- Comment[fy]=Hâld de media-aktiviteiten by en stien ta om media oan- en ôf te keppelje (media:/)
- Comment[gl]=Seguimento das actividades dos meios e permite-lle (des)montar (media:/)
--Comment[he]=מנטר אחר פעילויות מדיה, ומאפשר לחבר או לנתק התקנים (media:/)
- Comment[hi]=मीडिया क्रियाओं की जानकारी रखे तथा (अन)माउन्ट करने दे (मीडिया:/)
- Comment[hr]=Praćenje aktivnosti medija i omogućavanje pristupanja i napuštanja
- Comment[hu]=Az adathordozók követése, csatlakoztatása és leválasztása (media:/)
- Comment[is]=Fylgjast með breytingum á tækjum og bjóða upp á (af)tengingu (media:/)
- Comment[it]=Tiene traccia delle attività dei supporti e permette di montarli o smontarli (device:/)
--Comment[ja]=メディアの活動を追跡し、(media:/) をマウントしたりアンマウントします
-+Comment[ja]=メディアの活動を捕捉し、マウントしたりアンマウントします。(media:/)
- Comment[km]=តាមដាន​សកម្មភាព​ព័ត៌មាន និង​អនុញ្ញាត​ឲ្យ​រៀបចំ (មិន​រៀបចំ) (media:/)
- Comment[lt]=Stebi laikmenose vykdomus veiksmus ir leidžia (iš)montuoti (media:/)
- Comment[lv]=Seko datu nesēju aktivitātēm un ļauj montēt/nomontēt tos (media:/)
-@@ -103,7 +98,6 @@
- Comment[ru]=Автоматическое подключение устройств (media:/)
- Comment[rw]=Kugumana inzira y'ibikorwa by'ibitangazamakuru no kwemerera gushyiramo(gukuramo) (ibitangazamakuru:/)
- Comment[se]=Gozit mii dáhpáhuvvá median ja diktá du gálgat ja čadnat daid (media:/)
--Comment[sk]=Sledovanie pripojenia/odpojenia medií (media:/)
- Comment[sl]=Nadzoruj dejanja medija in dovilo priklop/odklop (media:/)
- Comment[sr]=Прати активност медијума и омогућава (де)монтирање (media:/)
- Comment[sr@Latn]=Prati aktivnost medijuma i omogućava (de)montiranje (media:/)
-@@ -122,4 +116,3 @@
- X-KDE-FactoryName=mediamanager
- X-KDE-Kded-autoload=true
- X-KDE-Kded-load-on-demand=true
--X-KDE-Kded-phase=1
-diff -urN kioslave/media/mediamanager/mediamanager.h kioslave/media/mediamanager/mediamanager.h
---- kioslave/media/mediamanager/mediamanager.h Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mediamanager/mediamanager.h Mon Oct 10 17:04:01 2005
-@@ -28,8 +28,6 @@
- #include "removablebackend.h"
- #include "mediadirnotify.h"
-
--class HALBackend;
--class FstabBackend;
-
- class MediaManager : public KDEDModule
- {
-@@ -42,12 +40,6 @@
- k_dcop:
- QStringList fullList();
- QStringList properties(const QString &name);
-- QStringList mountoptions(const QString &name);
-- bool setMountoptions(const QString &name, const QStringList &options);
--
-- QString mount(const QString &uid);
-- QString unmount(const QString &uid);
--
- QString nameForLabel(const QString &label);
- ASYNC setUserLabel(const QString &name, const QString &label);
-
-@@ -82,9 +74,7 @@
- MediaList m_mediaList;
- QValueList<BackendBase*> m_backends;
- RemovableBackend *mp_removableBackend;
-- HALBackend *m_halbackend;
- MediaDirNotify m_dirNotify;
-- FstabBackend *m_fstabbackend;
- };
-
- #endif
-diff -urN kioslave/media/medianotifier/Makefile.in kioslave/media/medianotifier/Makefile.in
---- kioslave/media/medianotifier/Makefile.in Sat Oct 7 16:42:32 2006
-+++ kioslave/media/medianotifier/Makefile.in Fri May 26 09:54:31 2006
-@@ -254,6 +254,7 @@
- LIBTOOL = @LIBTOOL@
- LIBUCB = @LIBUCB@
- LIBUSBCONFIG = @LIBUSBCONFIG@
-+LIBUTEMPTER = @LIBUTEMPTER@
- LIBUTIL = @LIBUTIL@
- LIBXDMCP = @LIBXDMCP@
- LIBXFT_LIB = @LIBXFT_LIB@
-diff -urN kioslave/media/medianotifier/medianotifier.cpp kioslave/media/medianotifier/medianotifier.cpp
---- kioslave/media/medianotifier/medianotifier.cpp Sun Oct 1 19:31:53 2006
-+++ kioslave/media/medianotifier/medianotifier.cpp Fri Mar 17 11:17:33 2006
-@@ -48,21 +48,13 @@
-
- MediaNotifier::~MediaNotifier()
- {
-- disconnectDCOPSignal( "kded", "mediamanager", "mediumAdded(QString, bool)",
-- "onMediumChange(QString, bool)" );
--
-- disconnectDCOPSignal( "kded", "mediamanager", "mediumChanged(QString, bool)",
-- "onMediumChange(QString, bool)" );
- }
-
- void MediaNotifier::onMediumChange( const QString &name, bool allowNotification )
- {
- kdDebug() << "MediaNotifier::onMediumChange( " << name << ", "
- << allowNotification << ")" << endl;
--
-- if ( !allowNotification )
-- return;
--
-+
- // Update user activity timestamp, otherwise the notification dialog will be shown
- // in the background due to focus stealing prevention. Entering a new media can
- // be seen as a kind of user activity after all. It'd be better to update the timestamp
-@@ -103,11 +95,11 @@
- {
- QString mimetype = medium.mimetype();
-
-- bool is_cdrom = mimetype.startsWith( "cd" ) || mimetype.startsWith( "dvd" );
-+ bool is_cdrom = mimetype.contains( "cd" ) || mimetype.contains( "dvd" );
- bool is_mounted = mimetype.endsWith( "_mounted" );
-
- // We autorun only on CD/DVD or removable disks (USB, Firewire)
-- if ( !( is_cdrom || is_mounted )
-+ if ( !( is_cdrom && is_mounted )
- && mimetype!="media/removable_mounted" )
- {
- return false;
-diff -urN kioslave/media/medianotifier/medianotifier.desktop kioslave/media/medianotifier/medianotifier.desktop
---- kioslave/media/medianotifier/medianotifier.desktop Sun Oct 1 19:31:53 2006
-+++ kioslave/media/medianotifier/medianotifier.desktop Mon May 22 20:12:42 2006
-@@ -18,12 +18,10 @@
- Name[es]=Demonio de notificaciones de medios
- Name[et]=Andmekandjate märguannete deemon
- Name[eu]=Euskarrien jakinarazpen daemon-a
--Name[fa]=شبح اخطاردهنده رسانه
- Name[fi]=Mediahuomautin
- Name[fr]=Démon de notifications des média
- Name[fy]=Medianotifikaasje-daemon
- Name[gl]=Daemon Notificador de Medios
--Name[he]=שירות הודעות מערכת
- Name[hr]=Demon obavijesti o medijima
- Name[hu]=Lemezfigyelő szolgáltatás
- Name[is]=Miðils tilkynningarpúki
-@@ -34,12 +32,10 @@
- Name[nb]=Medievarslingsnisse
- Name[nds]=Medien-Narichtendämoon
- Name[nl]=Medianotificatie-daemon
--Name[nn]=Mediepåminningsnisse
- Name[pl]=Usługa powiadamiania o nośnikach
- Name[pt]=Servidor de Notificação de Dispositivos
- Name[pt_BR]=Servidor de Notificação de Dispositivos
- Name[ru]=Демон уведомлений от подключаемых устройств
--Name[sk]=Notifikátor medií
- Name[sl]=Demon za obveščanje o nosilcih
- Name[sr]=Демон за обавештења о медијумима
- Name[sr@Latn]=Demon za obaveštenja o medijumima
-@@ -47,7 +43,6 @@
- Name[uk]=Даемон сповіщення про носії інформації
- Name[vi]=Trình nền Thông báo Ổ lưu trữ
- Name[zh_CN]=介质通知守护程序
--Name[zh_TW]=媒體通知伺服程式
- Comment=A media plugged notifier
- Comment[af]='n Inpropbare media inkennissteller
- Comment[bg]=Мултимедиен демон за уведомяване при поставяне/включване на ново мултимедийно устройство
-@@ -61,7 +56,6 @@
- Comment[es]=Un notificador de medios empotrable
- Comment[et]=Andmekandja ühendamisest märkuandev deemon
- Comment[eu]=Euskarri konektatze jakinarazlea
--Comment[fa]=یک اخطاردهنده وصل‌شده رسانه
- Comment[fi]=Liitetyn median huomautin
- Comment[fr]=Notification de connexion de média
- Comment[fy]=Meidieling fan oankeppele media
-@@ -70,7 +64,7 @@
- Comment[hu]=Lemezérzékelő
- Comment[is]=Tilkynnari um tengda miðla
- Comment[it]=Notifiche dei dispositivi attaccati
--Comment[ja]=メディアの接続を通知します
-+Comment[ja]=メディアの接続を通知する
- Comment[lt]=Perspėjimo apie media prijungimą priedas
- Comment[mk]=Известување за приклучен медиум
- Comment[nb]=En medievarsler som programtillegg
-@@ -82,7 +76,6 @@
- Comment[pt]=Um notificador ligado aos dispositivos
- Comment[pt_BR]=um notificador para mídia que é espetada (plug)
- Comment[ru]=Система обработки уведомлений от подключаемых устройств
--Comment[sk]=Notifikátor pripojených médií
- Comment[sl]=Obveščanje o vstavljenih/priklopljenih nosilcih
- Comment[sr]=Обавештавач о укљученим медијима
- Comment[sr@Latn]=Obaveštavač o uključenim medijima
-diff -urN kioslave/media/medianotifier/notificationdialog.cpp kioslave/media/medianotifier/notificationdialog.cpp
---- kioslave/media/medianotifier/notificationdialog.cpp Sat Oct 7 16:23:12 2006
-+++ kioslave/media/medianotifier/notificationdialog.cpp Mon Oct 10 17:04:00 2005
-@@ -26,7 +26,6 @@
- #include <klistbox.h>
- #include <qlabel.h>
- #include <qcheckbox.h>
--#include <qpushbutton.h>
-
- #include "actionlistboxitem.h"
- #include "notificationdialogview.h"
-@@ -71,8 +70,6 @@
- this, SLOT( delayedDestruct() ) );
-
- m_actionWatcher->startScan();
-- QPushButton * btn = actionButton( Ok );
-- btn->setFocus();
- }
-
- NotificationDialog::~NotificationDialog()
-diff -urN kioslave/media/mimetypes/Makefile.in kioslave/media/mimetypes/Makefile.in
---- kioslave/media/mimetypes/Makefile.in Sat Oct 7 16:42:32 2006
-+++ kioslave/media/mimetypes/Makefile.in Fri May 26 09:54:31 2006
-@@ -211,6 +211,7 @@
- LIBTOOL = @LIBTOOL@
- LIBUCB = @LIBUCB@
- LIBUSBCONFIG = @LIBUSBCONFIG@
-+LIBUTEMPTER = @LIBUTEMPTER@
- LIBUTIL = @LIBUTIL@
- LIBXDMCP = @LIBXDMCP@
- LIBXFT_LIB = @LIBXFT_LIB@
-diff -urN kioslave/media/mimetypes/audiocd.desktop kioslave/media/mimetypes/audiocd.desktop
---- kioslave/media/mimetypes/audiocd.desktop Mon Oct 2 12:44:33 2006
-+++ kioslave/media/mimetypes/audiocd.desktop Mon May 22 20:12:42 2006
-@@ -11,7 +11,6 @@
- Comment[cs]=Zvukové CD
- Comment[da]=Lyd-cd
- Comment[el]=CD ήχου
--Comment[fa]=دیسک فشرده صوتی
- Comment[fi]=CD-äänilevy
- Comment[fr]=CD audio
- Comment[fy]=Audio-Kompaktskiif
-@@ -25,7 +24,6 @@
- Comment[it]=CD audio
- Comment[ja]=オーディオ CD
- Comment[km]=ស៊ីឌី​អូឌីយ៉ូ
--Comment[mk]=Аудио ЦД
- Comment[ms]=CD Audio
- Comment[nb]=Lyd-CD
- Comment[nds]=Audio-CD
-@@ -33,7 +31,7 @@
- Comment[nn]=Lyd-CD
- Comment[pa]=ਆਡੀਓ CD
- Comment[pl]=Płyta CD Audio
--Comment[pt]=CD de áudio
-+Comment[pt]=CD áudio
- Comment[pt_BR]=CD de Áudio
- Comment[ro]=CD Audio
- Comment[ru]=Аудио CD
-diff -urN kioslave/media/mimetypes/blankcd.desktop kioslave/media/mimetypes/blankcd.desktop
---- kioslave/media/mimetypes/blankcd.desktop Mon Oct 2 12:44:33 2006
-+++ kioslave/media/mimetypes/blankcd.desktop Mon May 22 20:12:43 2006
-@@ -16,7 +16,6 @@
- Comment[es]=CD vacío
- Comment[et]=Tühi CD
- Comment[eu]=CD hutsik
--Comment[fa]=دیسک فشرده خام
- Comment[fi]=Tyhjä CD
- Comment[fr]=CD vierge
- Comment[fy]=Blanke Kompaktskiif
-@@ -32,7 +31,6 @@
- Comment[km]=ស៊ីឌី​ទទេ
- Comment[lt]=Tuščias CD
- Comment[lv]=Tukšs CD
--Comment[mk]=Празно ЦД
- Comment[ms]=CD Kosong
- Comment[nb]=Tom CD
- Comment[nds]=Leddige CD
-@@ -46,7 +44,6 @@
- Comment[ru]=Чистый CD
- Comment[rw]=CD Itanditseho
- Comment[se]=Guorus CD
--Comment[sk]=Čisté CD
- Comment[sl]=Prazen CD
- Comment[sr]=Празан CD
- Comment[sr@Latn]=Prazan CD
-diff -urN kioslave/media/mimetypes/blankdvd.desktop kioslave/media/mimetypes/blankdvd.desktop
---- kioslave/media/mimetypes/blankdvd.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/blankdvd.desktop Mon May 22 20:12:42 2006
-@@ -16,7 +16,6 @@
- Comment[es]=DVD vacío
- Comment[et]=Tühi DVD
- Comment[eu]=DVD hutsik
--Comment[fa]=DVD خام
- Comment[fi]=Tyhjä DVD-levy
- Comment[fr]=DVD vierge
- Comment[fy]=Blanke Dûbelskiif
-@@ -32,7 +31,6 @@
- Comment[km]=ឌីវីឌី​ទទេ
- Comment[lt]=Tuščias DVD
- Comment[lv]=Tukšs DVD
--Comment[mk]=Празно DVD
- Comment[ms]=DVD Kosong
- Comment[nb]=Tom DVD
- Comment[nds]=Leddige DVD
-@@ -46,7 +44,6 @@
- Comment[ru]=Чистый DVD
- Comment[rw]=DVD Itanditseho
- Comment[se]=Guorus DVD
--Comment[sk]=Čisté DVD
- Comment[sl]=Prazen DVD
- Comment[sr]=Празан DVD
- Comment[sr@Latn]=Prazan DVD
-diff -urN kioslave/media/mimetypes/camera_mounted.desktop kioslave/media/mimetypes/camera_mounted.desktop
---- kioslave/media/mimetypes/camera_mounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/camera_mounted.desktop Mon May 22 20:12:42 2006
-@@ -16,7 +16,6 @@
- Comment[es]=Cámara montada
- Comment[et]=Ühendatud kaamera
- Comment[eu]=Kamara muntatuta
--Comment[fa]=دوربین سوارشده
- Comment[fi]=Liitetty kamera
- Comment[fr]=Appareil photo monté
- Comment[fy]=Oankeppele kamera
-@@ -41,7 +40,6 @@
- Comment[pt_BR]=Câmera montada
- Comment[ru]=Подключённая камера
- Comment[se]=Čatnon govvenapperáhtta
--Comment[sk]=Pripojený digitálny fotoaparát
- Comment[sl]=Priklopljen fotoaparat
- Comment[sr]=Монтирана камера
- Comment[sr@Latn]=Montirana kamera
-diff -urN kioslave/media/mimetypes/camera_unmounted.desktop kioslave/media/mimetypes/camera_unmounted.desktop
---- kioslave/media/mimetypes/camera_unmounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/camera_unmounted.desktop Mon May 22 20:12:42 2006
-@@ -16,7 +16,6 @@
- Comment[es]=Cámara desmontada
- Comment[et]=Lahutatud kaamera
- Comment[eu]=Kamara desmuntatua
--Comment[fa]=دوربین پیاده‌شده
- Comment[fi]=Irrotettu kamera
- Comment[fr]=Appareil photo non monté
- Comment[fy]=Ofkeppele kamera
-@@ -41,7 +40,6 @@
- Comment[pt_BR]=Câmera desmontada
- Comment[ru]=Неподключённая камера
- Comment[se]=Gálgajuvvon govvenapperáhtta
--Comment[sk]=Odpojený digitálny fotoaparát
- Comment[sl]=Odklopljen fotoaparat
- Comment[sr]=Демонтирана камера
- Comment[sr@Latn]=Demontirana kamera
-diff -urN kioslave/media/mimetypes/cdrom_mounted.desktop kioslave/media/mimetypes/cdrom_mounted.desktop
---- kioslave/media/mimetypes/cdrom_mounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/cdrom_mounted.desktop Mon May 22 20:12:43 2006
-@@ -21,7 +21,7 @@
- Comment[es]=CD-ROM montado
- Comment[et]=Ühendatud CD-ROM
- Comment[eu]=CD-ROM muntatua
--Comment[fa]=CD-ROM سوارشده
-+Comment[fa]=CD سوار شده
- Comment[fi]=Liitetty CD-ROM
- Comment[fr]=CD-ROM monté
- Comment[fy]=Oankeppele Kompaktskiif
-diff -urN kioslave/media/mimetypes/cdrom_unmounted.desktop kioslave/media/mimetypes/cdrom_unmounted.desktop
---- kioslave/media/mimetypes/cdrom_unmounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/cdrom_unmounted.desktop Mon May 22 20:12:43 2006
-@@ -21,7 +21,7 @@
- Comment[es]=CD-ROM desmontado
- Comment[et]=Lahutatud CD-ROM
- Comment[eu]=CD-ROM desmuntatua
--Comment[fa]=CD-ROM پیاده‌شده
-+Comment[fa]= CD پیاده شده
- Comment[fi]=Irrotettu CD-ROM
- Comment[fr]=CD-ROM non monté
- Comment[fy]=Ofkeppele Kompaktskiif
-diff -urN kioslave/media/mimetypes/cdwriter_mounted.desktop kioslave/media/mimetypes/cdwriter_mounted.desktop
---- kioslave/media/mimetypes/cdwriter_mounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/cdwriter_mounted.desktop Mon May 22 20:12:42 2006
-@@ -21,7 +21,7 @@
- Comment[es]=Escritor de CDs montado
- Comment[et]=Ühendatud CD kirjutaja
- Comment[eu]=CD erretzaile muntatua
--Comment[fa]=CD Writer سوارشده
-+Comment[fa]=CD Writer سوار شده
- Comment[fi]=Liitetty CD-kirjoitin
- Comment[fr]=Graveur de CD monté
- Comment[fy]=Oankeppele Kompaktskiif
-diff -urN kioslave/media/mimetypes/cdwriter_unmounted.desktop kioslave/media/mimetypes/cdwriter_unmounted.desktop
---- kioslave/media/mimetypes/cdwriter_unmounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/cdwriter_unmounted.desktop Mon May 22 20:12:42 2006
-@@ -21,7 +21,7 @@
- Comment[es]=Escritor de CDs desmontado
- Comment[et]=Lahutatud CD kirjutaja
- Comment[eu]=CD erretzaile desmuntatua
--Comment[fa]=CD Writer پیاده‌شده
-+Comment[fa]=CD Writer پیاده شده
- Comment[fi]=Irrotettu CD-kirjoitin
- Comment[fr]=Graveur de CD non monté
- Comment[fy]=Ofkeppele Kompaktskiif
-diff -urN kioslave/media/mimetypes/dvd_mounted.desktop kioslave/media/mimetypes/dvd_mounted.desktop
---- kioslave/media/mimetypes/dvd_mounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/dvd_mounted.desktop Mon May 22 20:12:42 2006
-@@ -21,7 +21,7 @@
- Comment[es]=DVD montado
- Comment[et]=Ühendatud DVD
- Comment[eu]=DVD muntatua
--Comment[fa]=DVD سوارشده
-+Comment[fa]=DVD سوار شده
- Comment[fi]=Liitetty DVD-levy
- Comment[fr]=DVD-ROM monté(s)
- Comment[fy]=Oankeppele Dûbelskiif
-diff -urN kioslave/media/mimetypes/dvd_unmounted.desktop kioslave/media/mimetypes/dvd_unmounted.desktop
---- kioslave/media/mimetypes/dvd_unmounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/dvd_unmounted.desktop Tue May 23 13:33:34 2006
-@@ -21,7 +21,7 @@
- Comment[es]=DVD desmontado
- Comment[et]=Lahutatud DVD
- Comment[eu]=DVD desmuntatua
--Comment[fa]=DVD پیاده‌شده
-+Comment[fa]=DVD پیاده شده
- Comment[fi]=Irrotettu DVD-levy
- Comment[fr]=DVD-ROM non monté(s)
- Comment[fy]=Ofkeppele Dûbelskiif
-diff -urN kioslave/media/mimetypes/dvdvideo.desktop kioslave/media/mimetypes/dvdvideo.desktop
---- kioslave/media/mimetypes/dvdvideo.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/dvdvideo.desktop Mon May 22 20:12:43 2006
-@@ -16,7 +16,6 @@
- Comment[es]=Disco de video DVD
- Comment[et]=DVD videoplaat
- Comment[eu]=DVD bideo diska
--Comment[fa]=دیسک ویدئویی DVD
- Comment[fi]=DVD-videolevy
- Comment[fr]=DVD vidéo
- Comment[fy]=Dûbelskiif Fideoskiif
-@@ -32,7 +31,6 @@
- Comment[km]=ថាស​វីដេអូ ឌីវីឌី
- Comment[lt]=DVD video diskas
- Comment[lv]=DVD Video Disks
--Comment[mk]=DVD Видеодиск
- Comment[ms]=Cakera Video DVD
- Comment[nb]=DVD-videoplate
- Comment[nds]=DVD-Videodisk
-@@ -40,13 +38,12 @@
- Comment[nn]=DVD-videoplate
- Comment[pa]=DVD ਵੀਡਿਓ ਡਿਸਕ
- Comment[pl]=Płyta DVD Video
--Comment[pt]=Disco DVD de Vídeo
-+Comment[pt]=Disco DVD Vídeo
- Comment[pt_BR]=DVD de vídeo
- Comment[ro]=Disc video DVD
- Comment[ru]=DVD с видео
- Comment[rw]=Disiki Videwo DVD
- Comment[se]=DVD-videoskearru
--Comment[sk]=DVD Video disk
- Comment[sl]=DVD Video disk
- Comment[sr]=DVD видео диск
- Comment[sr@Latn]=DVD video disk
-diff -urN kioslave/media/mimetypes/floppy5_mounted.desktop kioslave/media/mimetypes/floppy5_mounted.desktop
---- kioslave/media/mimetypes/floppy5_mounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/floppy5_mounted.desktop Mon May 22 20:12:42 2006
-@@ -21,7 +21,7 @@
- Comment[es]=Disquete 5¼" montado
- Comment[et]=Ühendatud 5¼" flopi
- Comment[eu]=5¼"ko diskete muntatua
--Comment[fa]=فلاپی 5¼" سوارشده
-+Comment[fa]=فلاپی 5¼"سوار شده
- Comment[fi]=Liitetty 5¼"-levyke
- Comment[fr]=Disquette 5¼" montée
- Comment[fy]=Oankeppele 5¼" Skiif
-diff -urN kioslave/media/mimetypes/floppy5_unmounted.desktop kioslave/media/mimetypes/floppy5_unmounted.desktop
---- kioslave/media/mimetypes/floppy5_unmounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/floppy5_unmounted.desktop Tue May 23 13:33:35 2006
-@@ -21,7 +21,7 @@
- Comment[es]=Disquete 5¼" desmontado
- Comment[et]=Lahutatud 5¼" flopi
- Comment[eu]=5¼"ko diskete desmuntatua
--Comment[fa]=فلاپی 5¼" پیاده‌شده
-+Comment[fa]=فلاپی 5¼" پیاده شده
- Comment[fi]=Irrotettu 5¼"-levyke
- Comment[fr]=Disquette 5¼" non montée
- Comment[fy]=Ofkeppele 5¼" Skiif
-diff -urN kioslave/media/mimetypes/floppy_mounted.desktop kioslave/media/mimetypes/floppy_mounted.desktop
---- kioslave/media/mimetypes/floppy_mounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/floppy_mounted.desktop Mon May 22 20:12:43 2006
-@@ -21,7 +21,7 @@
- Comment[es]=Disquete montado
- Comment[et]=Ühendatud flopi
- Comment[eu]=Diskete muntatua
--Comment[fa]=فلاپی سوارشده
-+Comment[fa]=فلاپی سوار شده
- Comment[fi]=Liitetty levyke
- Comment[fr]=Disquette montée
- Comment[fy]=Oankeppele Skiif
-diff -urN kioslave/media/mimetypes/floppy_unmounted.desktop kioslave/media/mimetypes/floppy_unmounted.desktop
---- kioslave/media/mimetypes/floppy_unmounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/floppy_unmounted.desktop Tue May 23 13:33:34 2006
-@@ -21,7 +21,7 @@
- Comment[es]=Disquete desmontado
- Comment[et]=Lahutatud flopi
- Comment[eu]=Diskete desmuntatua
--Comment[fa]=فلاپی پیاده‌شده
-+Comment[fa]=فلاپی پیاده شده
- Comment[fi]=Irrotettu levyke
- Comment[fr]=Disquette non montée
- Comment[fy]=Ofkeppele Skiif
-diff -urN kioslave/media/mimetypes/gphoto2camera.desktop kioslave/media/mimetypes/gphoto2camera.desktop
---- kioslave/media/mimetypes/gphoto2camera.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/gphoto2camera.desktop Mon May 22 20:12:43 2006
-@@ -18,7 +18,6 @@
- Comment[es]=Cámara
- Comment[et]=Kaamera
- Comment[eu]=Kamara
--Comment[fa]=دوربین
- Comment[fi]=Kamera
- Comment[fr]=Nouvel appareil photo
- Comment[fy]=Kamera
-@@ -41,13 +40,12 @@
- Comment[nn]=Kamera
- Comment[pa]=ਕੈਮਰਾ
- Comment[pl]=Aparat fotograficzny
--Comment[pt]=Máquina fotográfica
-+Comment[pt]=Máquina Fotográfica
- Comment[pt_BR]=Câmera
- Comment[ro]=Aparat foto
- Comment[ru]=Камера
- Comment[rw]=Kamera
- Comment[se]=Govvanaperáhtta
--Comment[sk]=Digitálny fotoaparát
- Comment[sl]=Fotoaparat
- Comment[sr]=Камера
- Comment[sr@Latn]=Kamera
-diff -urN kioslave/media/mimetypes/hdd_mounted.desktop kioslave/media/mimetypes/hdd_mounted.desktop
---- kioslave/media/mimetypes/hdd_mounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/hdd_mounted.desktop Mon May 22 20:12:43 2006
-@@ -19,7 +19,6 @@
- Comment[es]=Volumen de disco duro montado
- Comment[et]=Ühendatud kõvaketta partitsioon
- Comment[eu]=Diska gogorraren zatiketa muntatua
--Comment[fa]=حجم دیسک سخت سوارشده
- Comment[fi]=Liitetty kiintoleyosio
- Comment[fr]=Partition de disque dur montée
- Comment[fy]=Oankeppele Fêsteskiif folume
-@@ -44,13 +43,12 @@
- Comment[nn]=Montert harddiskvolum
- Comment[pa]=ਮਾਊਟ ਕੀਤਾ ਹਾਰਡ ਡਿਸਕ ਭਾਗ
- Comment[pl]=Zamontowana partycja dysku twardego
--Comment[pt]=Volume de disco rígido montado
-+Comment[pt]=Volume de Disco Rígido Montado
- Comment[pt_BR]=Volume do HD Montado
- Comment[ro]=Volum de hard disc montat
- Comment[ru]=Смонтированный раздел жёсткого диска
- Comment[rw]=Ububiko Disiki Bwashyizwemo
- Comment[se]=Čatnon garraskearrooassi
--Comment[sk]=Pripojený oddiel pevného disku
- Comment[sl]=Priklopljen pogon trdega diska
- Comment[sr]=Монтирана партиција хард диска
- Comment[sr@Latn]=Montirana particija hard diska
-diff -urN kioslave/media/mimetypes/hdd_unmounted.desktop kioslave/media/mimetypes/hdd_unmounted.desktop
---- kioslave/media/mimetypes/hdd_unmounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/hdd_unmounted.desktop Mon May 22 20:12:43 2006
-@@ -19,7 +19,6 @@
- Comment[es]=Volumen de disco duro desmontado
- Comment[et]=Lahutatud kõvaketta partitsioon
- Comment[eu]=Diska gogorraren zatiketa desmuntatua
--Comment[fa]=حجم دیسک سخت پیاده شده
- Comment[fi]=Irrotettu kiintolevyosio
- Comment[fr]=Partition de disque dur non montée
- Comment[fy]=Ofkeppele Fêsteskiif folume
-@@ -44,13 +43,12 @@
- Comment[nn]=Umontert harddiskvolum
- Comment[pa]=ਅਨਮਾਊਟ ਕੀਤੀ ਹਾਰਡ ਡਿਸਕ ਭਾਗ
- Comment[pl]=Odmontowana partycja dysku twardego
--Comment[pt]=Volume de disco rígido desmontado
-+Comment[pt]=Volume de Disco Rígido Desmontado
- Comment[pt_BR]=Volume do HD Desmontado
- Comment[ro]=Volum de hard disc nemontat
- Comment[ru]=Отмонтированный раздел жёсткого диска
- Comment[rw]=Ububiko Disiki Bwakuwemo
- Comment[se]=Gálgajuvvon garraskearrooassi
--Comment[sk]=Odpojený oddiel pevného disku
- Comment[sl]=Odklopljen pogon trdega diska
- Comment[sr]=Демонтирана партиција хард диска
- Comment[sr@Latn]=Demontirana particija hard diska
-diff -urN kioslave/media/mimetypes/nfs_mounted.desktop kioslave/media/mimetypes/nfs_mounted.desktop
---- kioslave/media/mimetypes/nfs_mounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/nfs_mounted.desktop Tue May 23 13:33:34 2006
-@@ -19,7 +19,6 @@
- Comment[es]=Recurso NFS montado
- Comment[et]=Ühendatud NFS ressurss
- Comment[eu]=NFS baliabide muntatua
--Comment[fa]=مشترک NFS سوارشده
- Comment[fi]=Liitetty NFS-jako
- Comment[fr]=Ressource NFS montée
- Comment[fy]=Oankeppele NFS-boarne
-@@ -44,13 +43,12 @@
- Comment[nn]=Montert delt NFS-ressurs
- Comment[pa]=ਮਾਊਟ ਕੀਤੀ NFS ਸਾਂਝ
- Comment[pl]=Zamontowany system plików NFS
--Comment[pt]=Partilha de NFS montada
-+Comment[pt]=Partilha de NFS Montada
- Comment[pt_BR]=Volume NFS Montado
- Comment[ro]=Partajare NFS montată
- Comment[ru]=Смонтированный ресурс NFS
- Comment[rw]=Umugabane NFS Washyizwemo
- Comment[se]=Čatnon NFS-resursa
--Comment[sk]=Pripojený zdroj NFS
- Comment[sl]=Priklopljen vir NFS
- Comment[sr]=Монтирано NFS дељење
- Comment[sr@Latn]=Montirano NFS deljenje
-diff -urN kioslave/media/mimetypes/nfs_unmounted.desktop kioslave/media/mimetypes/nfs_unmounted.desktop
---- kioslave/media/mimetypes/nfs_unmounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/nfs_unmounted.desktop Tue May 23 13:33:35 2006
-@@ -19,7 +19,6 @@
- Comment[es]=Recurso NFS desmontado
- Comment[et]=Lahutatud NFS ressurss
- Comment[eu]=NFS baliabide desmuntatua
--Comment[fa]=مشترک NFS پیاده شده
- Comment[fi]=Irrotettu NFS-jako
- Comment[fr]=Ressource NFS non montée
- Comment[fy]=Oankeppele NFS-boarne
-@@ -44,13 +43,12 @@
- Comment[nn]=Umontert delt NFS-ressurs
- Comment[pa]=ਅਨਮਾਊਟ ਕੀਤੀ NFS ਸਾਂਝ
- Comment[pl]=Odmontowany system plików NFS
--Comment[pt]=Partilha de NFS desmontada
-+Comment[pt]=Partilha de NFS Desmontada
- Comment[pt_BR]=Volume NFS Desmontado
- Comment[ro]=Partajare NFS nemontată
- Comment[ru]=Отмонтированный ресурс NFS
- Comment[rw]=Umugabane NFS Wakuwemo
- Comment[se]=Gálgajuvvon NFS-resursa
--Comment[sk]=Odpojený zdroj NFS
- Comment[sl]=Odklopljen vir NFS
- Comment[sr]=Демонтирано NFS дељење
- Comment[sr@Latn]=Demontirano NFS deljenje
-diff -urN kioslave/media/mimetypes/removable_mounted.desktop kioslave/media/mimetypes/removable_mounted.desktop
---- kioslave/media/mimetypes/removable_mounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/removable_mounted.desktop Mon May 22 20:12:42 2006
-@@ -19,7 +19,6 @@
- Comment[es]=Recurso extraíble montado
- Comment[et]=Ühendatud eemaldatav andmekandja
- Comment[eu]=Euskarri aldagarria muntatua
--Comment[fa]=رسانه برداشتنی سوارشده
- Comment[fi]=Liitetty irrotettava resurssi
- Comment[fr]=Média amovible monté
- Comment[fy]=Oankeppele ferwiderber medium
-@@ -44,13 +43,12 @@
- Comment[nn]=Montert flyttbart medium
- Comment[pa]=ਮਾਊਟ ਕੀਤੇ ਹਟਾਉਣਯੋਗ ਮਾਧਿਅਮ
- Comment[pl]=Zamontowany nośnik wymienny
--Comment[pt]=Dispositivo amovível montado
-+Comment[pt]=Dispositivo Amovível Montado
- Comment[pt_BR]=Mídia Removível Montada
- Comment[ro]=Mediu amovibil montat
- Comment[ru]=Смонтированный внешний диск
- Comment[rw]=Igitangazamakuru Kivanwamo Cyashyizwemo
- Comment[se]=Čátnon sirdehahtti medium
--Comment[sk]=Pripojené vyberateľné médium
- Comment[sl]=Priklopljen odstranljiv medij
- Comment[sr]=Монтиран уклоњиви медијум
- Comment[sr@Latn]=Montiran uklonjivi medijum
-diff -urN kioslave/media/mimetypes/removable_unmounted.desktop kioslave/media/mimetypes/removable_unmounted.desktop
---- kioslave/media/mimetypes/removable_unmounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/removable_unmounted.desktop Mon May 22 20:12:42 2006
-@@ -19,7 +19,6 @@
- Comment[es]=Recurso extraíble desmontado
- Comment[et]=Lahutatud eemaldatav andmekandja
- Comment[eu]=Euskarri aldagarria desmuntatua
--Comment[fa]=رسانه برداشتنی پیاده شده
- Comment[fi]=Irrotettu irrotettava resurssi
- Comment[fr]=Média amovible non monté
- Comment[fy]=Ofkeppele ferwiderber medium
-@@ -44,13 +43,12 @@
- Comment[nn]=Umontert flyttbart medium
- Comment[pa]=ਅਨਮਾਊਟ ਕੀਤੀ ਹਟਾਉਣਯੋਗ ਮਾਧਿਅਮ
- Comment[pl]=Odmontowany nośnik wymienny
--Comment[pt]=Dispositivo amovível desmontado
-+Comment[pt]=Dispositivo Amovível Desmontado
- Comment[pt_BR]=Mídia Removível Desmontada
- Comment[ro]=Mediu amovibil nemontat
- Comment[ru]=Отмонтированный внешний диск
- Comment[rw]=Igitangazamakuru Kivanwamo Cyavanwemo
- Comment[se]=Gálgaduvvon sirdehahtti medium
--Comment[sk]=Odpojené vyberateľné médium
- Comment[sl]=Odklopljen odstranljiv medij
- Comment[sr]=Демонтиран уклоњиви медијум
- Comment[sr@Latn]=Demontiran uklonjivi medijum
-diff -urN kioslave/media/mimetypes/smb_mounted.desktop kioslave/media/mimetypes/smb_mounted.desktop
---- kioslave/media/mimetypes/smb_mounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/smb_mounted.desktop Tue May 23 13:33:34 2006
-@@ -21,7 +21,7 @@
- Comment[es]=Recurso de Samba montado (Red de Microsoft)
- Comment[et]=Ühendatud Samba (Microsoft Network) ressurss
- Comment[eu]=Samba (Microsoft sarea) partekaketa muntatua
--Comment[fa]=مشترک Samba (Microsoft Network) سوار شده
-+Comment[fa]=اشتراک سامبای ویندوز سوار شده
- Comment[fi]=Liitetty Samba-jako (Microsoft-verkko)
- Comment[fr]=Partage Samba (réseau Microsoft) monté
- Comment[fy]=Oankeppele Samba-netwurkboarne (Microsoft-netwurken)
-diff -urN kioslave/media/mimetypes/smb_unmounted.desktop kioslave/media/mimetypes/smb_unmounted.desktop
---- kioslave/media/mimetypes/smb_unmounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/smb_unmounted.desktop Tue May 23 13:33:34 2006
-@@ -21,7 +21,7 @@
- Comment[es]=Recurso de Samba desmontado (Red de Microsoft)
- Comment[et]=Lahutatud Samba (Microsoft Network) ressurss
- Comment[eu]=Samba (Microsoft sarea) partekaketa desmuntatua
--Comment[fa]=مشترک Samba (Microsoft Network) پیاده شده
-+Comment[fa]=اشتراک سامبای ویندوز پیاده شده
- Comment[fi]=Irrotettu Samba-jako (Microsoft-verkko)
- Comment[fr]=Partage Samba (réseau Microsoft) non monté
- Comment[fy]=Ofkeppele Samba-netwurkboarne (Microsoft-netwurken)
-diff -urN kioslave/media/mimetypes/svcd.desktop kioslave/media/mimetypes/svcd.desktop
---- kioslave/media/mimetypes/svcd.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/svcd.desktop Mon May 22 20:12:43 2006
-@@ -7,7 +7,6 @@
- Comment[bn]=সুপার ভিডিও সিডি
- Comment[ca]=CD Súper Vídeo
- Comment[da]=Super Video-cd
--Comment[fa]=دیسک فشرده ابرویدئو
- Comment[fr]=Super CD vidéo
- Comment[fy]=Super Fideo-kompaktskiif
- Comment[gl]=Super Vídeo CD
-@@ -17,7 +16,6 @@
- Comment[it]=Super video CD
- Comment[ja]=スーパービデオ CD
- Comment[km]=ស៊ីឌី​វីដេអូ​គុណភាព​ខ្ពស់
--Comment[mk]=Супер видео ЦД
- Comment[ms]=CD Supervideo
- Comment[nb]=Super video CD
- Comment[nds]=Super-Video-CD
-diff -urN kioslave/media/mimetypes/vcd.desktop kioslave/media/mimetypes/vcd.desktop
---- kioslave/media/mimetypes/vcd.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/vcd.desktop Mon May 22 20:12:42 2006
-@@ -9,7 +9,6 @@
- Comment[ca]=CD Vídeo
- Comment[da]=Video-cd
- Comment[el]=Βίντεο CD
--Comment[fa]=دیسک فشرده ویدئویی
- Comment[fr]=CD vidéo
- Comment[fy]=Fideo-kompaktskiif
- Comment[ga]=Dlúthdhiosca Físe
-@@ -19,7 +18,6 @@
- Comment[is]=Vídeó CD
- Comment[ja]=ビデオ CD
- Comment[km]=ស៊ីឌី​វីដេអូ
--Comment[mk]=Видео ЦД
- Comment[ms]=CD Video
- Comment[nds]=Video-CD
- Comment[nl]=Video-cd
-diff -urN kioslave/media/mimetypes/zip_mounted.desktop kioslave/media/mimetypes/zip_mounted.desktop
---- kioslave/media/mimetypes/zip_mounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/zip_mounted.desktop Tue May 23 13:33:35 2006
-@@ -21,7 +21,7 @@
- Comment[es]=Disco Zip montado
- Comment[et]=Ühendatud Zip-ketas
- Comment[eu]=Zip diska muntatua
--Comment[fa]=دیسک فشرده سوارشده
-+Comment[fa]=دیسک زیپ سوار شده
- Comment[fi]=Liitetty Zip-levy
- Comment[fr]=Disque Zip monté
- Comment[fy]=Oankeppelee Zip-skiif
-diff -urN kioslave/media/mimetypes/zip_unmounted.desktop kioslave/media/mimetypes/zip_unmounted.desktop
---- kioslave/media/mimetypes/zip_unmounted.desktop Sun Oct 1 19:31:54 2006
-+++ kioslave/media/mimetypes/zip_unmounted.desktop Tue May 23 13:33:35 2006
-@@ -21,7 +21,7 @@
- Comment[es]=Disco Zip desmontado
- Comment[et]=Lahutatud Zip-ketas
- Comment[eu]=Zip diska desmuntatua
--Comment[fa]=دیسک فشرده پیاده شده
-+Comment[fa]= دیسک زیپ پیاده شده
- Comment[fi]=Irrotettu Zip-levy
- Comment[fr]=Disque Zip non monté
- Comment[fy]=Ofkeppele Zip-skiif
-@@ -33,7 +33,7 @@
- Comment[hu]=Leválasztott Zip-lemez
- Comment[is]=Aftengdur Zip diskur
- Comment[it]=Disco Zip non montato
--Comment[ja]=マウントされていない Zip ディスク
-+Comment[ja]=マウントされていないZipディスク
- Comment[km]=ថាស Zip មិន​បាន​រៀបចំ
- Comment[lo]= ຫັງກາລີ
- Comment[lt]=Išmontuotas Zip diskas
-diff -urN kioslave/media/mounthelper/Makefile.in kioslave/media/mounthelper/Makefile.in
---- kioslave/media/mounthelper/Makefile.in Sat Oct 7 16:42:32 2006
-+++ kioslave/media/mounthelper/Makefile.in Fri May 26 09:54:31 2006
-@@ -57,8 +57,8 @@
- #>+ 1
- kio_media_mounthelper_OBJECTS = kio_media_mounthelper.$(OBJEXT)
- am__DEPENDENCIES_1 =
--kio_media_mounthelper_DEPENDENCIES = \
-- ../libmediacommon/libmediacommon.la $(am__DEPENDENCIES_1)
-+kio_media_mounthelper_DEPENDENCIES = $(am__DEPENDENCIES_1) \
-+ ../libmediacommon/libmediacommon.la
- DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
- depcomp = $(SHELL) $(top_srcdir)/admin/depcomp
- am__depfiles_maybe = depfiles
-@@ -236,6 +236,7 @@
- LIBTOOL = @LIBTOOL@
- LIBUCB = @LIBUCB@
- LIBUSBCONFIG = @LIBUSBCONFIG@
-+LIBUTEMPTER = @LIBUTEMPTER@
- LIBUTIL = @LIBUTIL@
- LIBXDMCP = @LIBXDMCP@
- LIBXFT_LIB = @LIBXFT_LIB@
-@@ -575,7 +576,7 @@
- AM_LDFLAGS = $(all_libraries)
- kio_media_mounthelper_SOURCES = kio_media_mounthelper.cpp
- kio_media_mounthelper_LDFLAGS = $(KDE_RPATH) $(all_libraries)
--kio_media_mounthelper_LDADD = ../libmediacommon/libmediacommon.la $(LIB_KIO)
-+kio_media_mounthelper_LDADD = $(LIB_KIO) ../libmediacommon/libmediacommon.la
- #>- METASOURCES = AUTO
- #>- all: all-am
- #>+ 1
-diff -urN kioslave/media/mounthelper/kio_media_mounthelper.cpp kioslave/media/mounthelper/kio_media_mounthelper.cpp
---- kioslave/media/mounthelper/kio_media_mounthelper.cpp Sat Jul 22 10:15:42 2006
-+++ kioslave/media/mounthelper/kio_media_mounthelper.cpp Fri Mar 17 11:17:33 2006
-@@ -27,7 +27,6 @@
- #include <dcopclient.h>
- #include <dcopref.h>
- #include <qtimer.h>
--#include <stdlib.h>
- #include <kdebug.h>
- #include <kglobal.h>
- #include <kprocess.h>
-@@ -79,30 +78,31 @@
-
- if (args->isSet("u"))
- {
-- DCOPRef mediamanager("kded", "mediamanager");
-- DCOPReply reply = mediamanager.call( "unmount", medium.id());
-- if (reply.isValid())
-- reply.get(m_errorStr);
-- kdDebug() << "medium unmount " << m_errorStr << endl;
-- if (m_errorStr.isNull())
-- ::exit(0);
-- else
-- error();
-+ KIO::Job * job = KIO::unmount( mount_point );
-+
-+ connect( job, SIGNAL( result( KIO::Job * ) ),
-+ this, SLOT( slotResult( KIO::Job * ) ) );
- }
- else if (args->isSet("s") || args->isSet("e"))
- {
-- invokeEject(device, true);
-+ if (medium.isMounted())
-+ {
-+ KIO::Job * job = KIO::unmount( mount_point );
-+
-+ m_device = device;
-+ connect( job, SIGNAL( result( KIO::Job * ) ),
-+ this, SLOT( slotResultSafe( KIO::Job * ) ) );
-+ }
-+ else
-+ {
-+ invokeEject(device, true);
-+ }
- }
- else
- {
-- DCOPRef mediamanager("kded", "mediamanager");
-- DCOPReply reply = mediamanager.call( "mount", medium.id());
-- if (reply.isValid())
-- reply.get(m_errorStr);
-- if (m_errorStr.isNull())
-- ::exit(0);
-- else
-- error();
-+ KIO::Job* job = KIO::mount( false, 0, device, mount_point);
-+ connect( job, SIGNAL( result( KIO::Job * ) ),
-+ this, SLOT( slotResult( KIO::Job * ) ) );
- }
- }
-
-@@ -173,12 +173,12 @@
- void MountHelper::error()
- {
- KMessageBox::error(0, m_errorStr);
-- ::exit(1);
-+ kapp->exit(1);
- }
-
- void MountHelper::finished()
- {
-- ::exit(0);
-+ kapp->quit();
- }
-
- static KCmdLineOptions options[] =
-@@ -207,7 +207,7 @@
-
- KStartupInfo::appStarted();
- app->dcopClient()->attach();
-- return app->exec();
-+ app->exec();
- }
-
- #include "kio_media_mounthelper.moc"
-diff -urN kioslave/media/propsdlgplugin/Makefile.in kioslave/media/propsdlgplugin/Makefile.in
---- kioslave/media/propsdlgplugin/Makefile.in Sat Oct 7 16:42:32 2006
-+++ kioslave/media/propsdlgplugin/Makefile.in Thu Jan 1 01:00:00 1970
-@@ -1,1063 +0,0 @@
--# Makefile.in generated by automake 1.9.6 from Makefile.am.
--# KDE tags expanded automatically by am_edit - $Revision: 483858 $
--# @configure_input@
--
--# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
--# 2003, 2004, 2005 Free Software Foundation, Inc.
--# This Makefile.in is free software; the Free Software Foundation
--# gives unlimited permission to copy and/or distribute it,
--# with or without modifications, as long as this notice is preserved.
--
--# This program is distributed in the hope that it will be useful,
--# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
--# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
--# PARTICULAR PURPOSE.
--
--@SET_MAKE@
--
--
--srcdir = @srcdir@
--top_srcdir = @top_srcdir@
--VPATH = @srcdir@
--pkgdatadir = $(datadir)/@PACKAGE@
--pkglibdir = $(libdir)/@PACKAGE@
--pkgincludedir = $(includedir)/@PACKAGE@
--top_builddir = ../../..
--am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
--INSTALL = @INSTALL@
--install_sh_DATA = $(install_sh) -c -m 644
--install_sh_PROGRAM = $(install_sh) -c
--install_sh_SCRIPT = $(install_sh) -c
--INSTALL_HEADER = $(INSTALL_DATA)
--transform = $(program_transform_name)
--NORMAL_INSTALL = :
--PRE_INSTALL = :
--POST_INSTALL = :
--NORMAL_UNINSTALL = :
--PRE_UNINSTALL = :
--POST_UNINSTALL = :
--build_triplet = @build@
--host_triplet = @host@
--target_triplet = @target@
--subdir = kioslave/media/propsdlgplugin
--DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
--ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
--am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
-- $(top_srcdir)/configure.in
--am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-- $(ACLOCAL_M4)
--mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
--CONFIG_HEADER = $(top_builddir)/config.h
--CONFIG_CLEAN_FILES =
--am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
--am__vpath_adj = case $$p in \
-- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
-- *) f=$$p;; \
-- esac;
--am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
--am__installdirs = "$(DESTDIR)$(kde_moduledir)" \
-- "$(DESTDIR)$(kde_servicesdir)"
--kde_moduleLTLIBRARIES_INSTALL = $(INSTALL)
--LTLIBRARIES = $(kde_module_LTLIBRARIES)
--am__DEPENDENCIES_1 =
--media_propsdlgplugin_la_DEPENDENCIES = \
-- ../libmediacommon/libmediacommon.la $(am__DEPENDENCIES_1)
--am_media_propsdlgplugin_la_OBJECTS = propertiespage.lo \
-- propsdlgshareplugin.lo
--#>- media_propsdlgplugin_la_OBJECTS = \
--#>- $(am_media_propsdlgplugin_la_OBJECTS)
--#>+ 5
--media_propsdlgplugin_la_final_OBJECTS = media_propsdlgplugin_la.all_cpp.lo
--media_propsdlgplugin_la_nofinal_OBJECTS = propertiespage.lo \
-- propsdlgshareplugin.lo propertiespagegui.lo
--@KDE_USE_FINAL_FALSE@media_propsdlgplugin_la_OBJECTS = $(media_propsdlgplugin_la_nofinal_OBJECTS)
--@KDE_USE_FINAL_TRUE@media_propsdlgplugin_la_OBJECTS = $(media_propsdlgplugin_la_final_OBJECTS)
--DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
--depcomp = $(SHELL) $(top_srcdir)/admin/depcomp
--am__depfiles_maybe = depfiles
--#>- CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
--#>- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
--#>+ 2
--CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
-- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS)
--#>- LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \
--#>- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
--#>- $(AM_CXXFLAGS) $(CXXFLAGS)
--#>+ 3
--LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \
-- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
-- $(AM_CXXFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS)
--CXXLD = $(CXX)
--#>- CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \
--#>- $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
--#>+ 2
--CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \
-- $(CXXFLAGS) $(KDE_CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
--SOURCES = $(media_propsdlgplugin_la_SOURCES)
--DIST_SOURCES = $(media_propsdlgplugin_la_SOURCES)
--kde_servicesDATA_INSTALL = $(INSTALL_DATA)
--DATA = $(kde_services_DATA)
--ETAGS = etags
--CTAGS = ctags
--#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
--#>+ 1
--DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
--ACLOCAL = @ACLOCAL@
--AMDEP_FALSE = @AMDEP_FALSE@
--AMDEP_TRUE = @AMDEP_TRUE@
--AMTAR = @AMTAR@
--AR = @AR@
--ARTSCCONFIG = @ARTSCCONFIG@
--ARTS_CFLAGS = @ARTS_CFLAGS@
--AUTOCONF = @AUTOCONF@
--AUTODIRS = @AUTODIRS@
--AUTOHEADER = @AUTOHEADER@
--AUTOMAKE = @AUTOMAKE@
--AWK = @AWK@
--CC = @CC@
--CCDEPMODE = @CCDEPMODE@
--CFLAGS = @CFLAGS@
--COMPILE_GL_INFO_FALSE = @COMPILE_GL_INFO_FALSE@
--COMPILE_GL_INFO_TRUE = @COMPILE_GL_INFO_TRUE@
--CONF_FILES = @CONF_FILES@
--CPP = @CPP@
--CPPFLAGS = @CPPFLAGS@
--CXX = @CXX@
--CXXCPP = @CXXCPP@
--CXXDEPMODE = @CXXDEPMODE@
--CXXFLAGS = @CXXFLAGS@
--CYGPATH_W = @CYGPATH_W@
--DBUSQT_INCS = @DBUSQT_INCS@
--DBUSQT_LIBS = @DBUSQT_LIBS@
--DBUS_CFLAGS = @DBUS_CFLAGS@
--DBUS_INCS = @DBUS_INCS@
--DBUS_LIBS = @DBUS_LIBS@
--DCOPIDL = @DCOPIDL@
--DCOPIDL2CPP = @DCOPIDL2CPP@
--DCOPIDLNG = @DCOPIDLNG@
--DCOP_DEPENDENCIES = @DCOP_DEPENDENCIES@
--DEFS = @DEFS@
--DEPDIR = @DEPDIR@
--DOXYGEN = @DOXYGEN@
--DOXYGEN_PROJECT_NAME = @DOXYGEN_PROJECT_NAME@
--DOXYGEN_PROJECT_NUMBER = @DOXYGEN_PROJECT_NUMBER@
--DPMSINC = @DPMSINC@
--DPMSLIB = @DPMSLIB@
--ECHO = @ECHO@
--ECHO_C = @ECHO_C@
--ECHO_N = @ECHO_N@
--ECHO_T = @ECHO_T@
--EGREP = @EGREP@
--ENABLE_PERMISSIVE_FLAG = @ENABLE_PERMISSIVE_FLAG@
--EXEEXT = @EXEEXT@
--EXR_FLAGS = @EXR_FLAGS@
--F77 = @F77@
--FFLAGS = @FFLAGS@
--FRAMEWORK_COREAUDIO = @FRAMEWORK_COREAUDIO@
--GLINC = @GLINC@
--GLLIB = @GLLIB@
--GMSGFMT = @GMSGFMT@
--HALBACKEND = @HALBACKEND@
--HAL_CFLAGS = @HAL_CFLAGS@
--HAL_INCS = @HAL_INCS@
--HAL_LIBS = @HAL_LIBS@
--HAVE_DNSSD_FALSE = @HAVE_DNSSD_FALSE@
--HAVE_DNSSD_TRUE = @HAVE_DNSSD_TRUE@
--HAVE_GCC_VISIBILITY = @HAVE_GCC_VISIBILITY@
--INSTALL_DATA = @INSTALL_DATA@
--INSTALL_PROGRAM = @INSTALL_PROGRAM@
--INSTALL_SCRIPT = @INSTALL_SCRIPT@
--INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
--JAR = @JAR@
--JAVAC = @JAVAC@
--JAVAH = @JAVAH@
--JVMLIBS = @JVMLIBS@
--KCFG_DEPENDENCIES = @KCFG_DEPENDENCIES@
--KCHECKPASS_PAM_SERVICE = @KCHECKPASS_PAM_SERVICE@
--KCONFIG_COMPILER = @KCONFIG_COMPILER@
--KDECONFIG = @KDECONFIG@
--KDE_BINDIR = @KDE_BINDIR@
--KDE_CHECK_PLUGIN = @KDE_CHECK_PLUGIN@
--KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
--KDE_HAS_DOXYGEN = @KDE_HAS_DOXYGEN@
--KDE_HAVE_DOT = @KDE_HAVE_DOT@
--KDE_INCLUDES = @KDE_INCLUDES@
--KDE_LDFLAGS = @KDE_LDFLAGS@
--KDE_MT_LDFLAGS = @KDE_MT_LDFLAGS@
--KDE_MT_LIBS = @KDE_MT_LIBS@
--KDE_NO_UNDEFINED = @KDE_NO_UNDEFINED@
--KDE_PLUGIN = @KDE_PLUGIN@
--KDE_RPATH = @KDE_RPATH@
--KDE_USE_CLOSURE_FALSE = @KDE_USE_CLOSURE_FALSE@
--KDE_USE_CLOSURE_TRUE = @KDE_USE_CLOSURE_TRUE@
--KDE_USE_FINAL_FALSE = @KDE_USE_FINAL_FALSE@
--KDE_USE_FINAL_TRUE = @KDE_USE_FINAL_TRUE@
--KDE_USE_FPIE = @KDE_USE_FPIE@
--KDE_USE_NMCHECK_FALSE = @KDE_USE_NMCHECK_FALSE@
--KDE_USE_NMCHECK_TRUE = @KDE_USE_NMCHECK_TRUE@
--KDE_USE_PIE = @KDE_USE_PIE@
--KDE_XSL_STYLESHEET = @KDE_XSL_STYLESHEET@
--KDM_PAM_SERVICE = @KDM_PAM_SERVICE@
--KHOTKEYS_ARTS_SUBDIR = @KHOTKEYS_ARTS_SUBDIR@
--KRB4_INCS = @KRB4_INCS@
--KRB4_LIBS = @KRB4_LIBS@
--KRB4_RPATH = @KRB4_RPATH@
--KRB5_INCS = @KRB5_INCS@
--KRB5_LIBS = @KRB5_LIBS@
--KRB5_RPATH = @KRB5_RPATH@
--KSCREENSAVER_PAM_SERVICE = @KSCREENSAVER_PAM_SERVICE@
--LDAP_INCS = @LDAP_INCS@
--LDAP_LIBS = @LDAP_LIBS@
--LDAP_RPATH = @LDAP_RPATH@
--LDFLAGS = @LDFLAGS@
--LDFLAGS_AS_NEEDED = @LDFLAGS_AS_NEEDED@
--LDFLAGS_NEW_DTAGS = @LDFLAGS_NEW_DTAGS@
--LIBALIB = @LIBALIB@
--LIBART_CFLAGS = @LIBART_CFLAGS@
--LIBART_LIBS = @LIBART_LIBS@
--LIBART_RPATH = @LIBART_RPATH@
--LIBBZ2 = @LIBBZ2@
--LIBCFG = @LIBCFG@
--LIBCOMPAT = @LIBCOMPAT@
--LIBCRYPT = @LIBCRYPT@
--LIBCURSES = @LIBCURSES@
--LIBDEVINFO = @LIBDEVINFO@
--LIBDL = @LIBDL@
--LIBFONTCONFIG_CFLAGS = @LIBFONTCONFIG_CFLAGS@
--LIBFONTCONFIG_LIBS = @LIBFONTCONFIG_LIBS@
--LIBFONTCONFIG_RPATH = @LIBFONTCONFIG_RPATH@
--LIBFREETYPE_CFLAGS = @LIBFREETYPE_CFLAGS@
--LIBFREETYPE_LIBS = @LIBFREETYPE_LIBS@
--LIBFREETYPE_RPATH = @LIBFREETYPE_RPATH@
--LIBGEN = @LIBGEN@
--LIBHOSTS = @LIBHOSTS@
--LIBJPEG = @LIBJPEG@
--LIBKSTAT = @LIBKSTAT@
--LIBMALLOC = @LIBMALLOC@
--LIBOBJS = @LIBOBJS@
--LIBODM = @LIBODM@
--LIBOSSAUDIO = @LIBOSSAUDIO@
--LIBPNG = @LIBPNG@
--LIBPOSIX4 = @LIBPOSIX4@
--LIBPTHREAD = @LIBPTHREAD@
--LIBRESOLV = @LIBRESOLV@
--LIBRPC = @LIBRPC@
--LIBS = @LIBS@
--LIBSENSORS = @LIBSENSORS@
--LIBSHADOW = @LIBSHADOW@
--LIBSM = @LIBSM@
--LIBSOCKET = @LIBSOCKET@
--LIBSSL = @LIBSSL@
--LIBTOOL = @LIBTOOL@
--LIBUCB = @LIBUCB@
--LIBUSBCONFIG = @LIBUSBCONFIG@
--LIBUTIL = @LIBUTIL@
--LIBXDMCP = @LIBXDMCP@
--LIBXFT_LIB = @LIBXFT_LIB@
--LIBZ = @LIBZ@
--LIB_ARTS = @LIB_ARTS@
--LIB_DNSSD = @LIB_DNSSD@
--LIB_EXR = @LIB_EXR@
--LIB_FONT_ENC = @LIB_FONT_ENC@
--LIB_KAB = @LIB_KAB@
--LIB_KABC = @LIB_KABC@
--LIB_KDECORE = @LIB_KDECORE@
--LIB_KDED = @LIB_KDED@
--LIB_KDEPIM = @LIB_KDEPIM@
--LIB_KDEPRINT = @LIB_KDEPRINT@
--LIB_KDEUI = @LIB_KDEUI@
--LIB_KDNSSD = @LIB_KDNSSD@
--LIB_KFILE = @LIB_KFILE@
--LIB_KFM = @LIB_KFM@
--LIB_KHTML = @LIB_KHTML@
--LIB_KIMPROXY = @LIB_KIMPROXY@
--LIB_KIO = @LIB_KIO@
--LIB_KJS = @LIB_KJS@
--LIB_KNEWSTUFF = @LIB_KNEWSTUFF@
--LIB_KPARTS = @LIB_KPARTS@
--LIB_KSPELL = @LIB_KSPELL@
--LIB_KSYCOCA = @LIB_KSYCOCA@
--LIB_KUNITTEST = @LIB_KUNITTEST@
--LIB_KUTILS = @LIB_KUTILS@
--LIB_KVM = @LIB_KVM@
--LIB_LBER = @LIB_LBER@
--LIB_LIBS = @LIB_LIBS@
--LIB_POLL = @LIB_POLL@
--LIB_QPE = @LIB_QPE@
--LIB_QT = @LIB_QT@
--LIB_SMB = @LIB_SMB@
--LIB_TRU64_MACH = @LIB_TRU64_MACH@
--LIB_X11 = @LIB_X11@
--LIB_XCOMPOSITE = @LIB_XCOMPOSITE@
--LIB_XCURSOR = @LIB_XCURSOR@
--LIB_XEXT = @LIB_XEXT@
--LIB_XF86MISC = @LIB_XF86MISC@
--LIB_XFIXES = @LIB_XFIXES@
--LIB_XINERAMA = @LIB_XINERAMA@
--LIB_XRANDR = @LIB_XRANDR@
--LIB_XRENDER = @LIB_XRENDER@
--LIB_XSS = @LIB_XSS@
--LINUXCDPOLLING = @LINUXCDPOLLING@
--LN_S = @LN_S@
--LTLIBOBJS = @LTLIBOBJS@
--MAKEINFO = @MAKEINFO@
--MAKEKDEWIDGETS = @MAKEKDEWIDGETS@
--MCOPIDL = @MCOPIDL@
--MD5SUM = @MD5SUM@
--MD5SUM_CUT = @MD5SUM_CUT@
--MEINPROC = @MEINPROC@
--MOC = @MOC@
--MSGFMT = @MSGFMT@
--NOOPT_CFLAGS = @NOOPT_CFLAGS@
--NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@
--OBJEXT = @OBJEXT@
--PACKAGE = @PACKAGE@
--PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
--PACKAGE_NAME = @PACKAGE_NAME@
--PACKAGE_STRING = @PACKAGE_STRING@
--PACKAGE_TARNAME = @PACKAGE_TARNAME@
--PACKAGE_VERSION = @PACKAGE_VERSION@
--PAMLIBS = @PAMLIBS@
--PASSWDLIBS = @PASSWDLIBS@
--PATH_SEPARATOR = @PATH_SEPARATOR@
--PERL = @PERL@
--PKG_CONFIG = @PKG_CONFIG@
--QTDOCDIR = @QTDOCDIR@
--QTE_NORTTI = @QTE_NORTTI@
--QT_INCLUDES = @QT_INCLUDES@
--QT_LDFLAGS = @QT_LDFLAGS@
--RANLIB = @RANLIB@
--RUN_KAPPFINDER = @RUN_KAPPFINDER@
--SASL2_LIBS = @SASL2_LIBS@
--SETUIDFLAGS = @SETUIDFLAGS@
--SET_MAKE = @SET_MAKE@
--SHELL = @SHELL@
--SMBCLIENT_EXTRA_LIBS = @SMBCLIENT_EXTRA_LIBS@
--SSL_INCLUDES = @SSL_INCLUDES@
--SSL_LDFLAGS = @SSL_LDFLAGS@
--STRIP = @STRIP@
--TOPSUBDIRS = @TOPSUBDIRS@
--UIC = @UIC@
--UIC_TR = @UIC_TR@
--UNAME = @UNAME@
--USB_CFLAGS = @USB_CFLAGS@
--USB_LIBS = @USB_LIBS@
--USER_INCLUDES = @USER_INCLUDES@
--USER_LDFLAGS = @USER_LDFLAGS@
--USE_EXCEPTIONS = @USE_EXCEPTIONS@
--USE_RTTI = @USE_RTTI@
--USE_THREADS = @USE_THREADS@
--VERSION = @VERSION@
--WOVERLOADED_VIRTUAL = @WOVERLOADED_VIRTUAL@
--XGETTEXT = @XGETTEXT@
--XMLLINT = @XMLLINT@
--XTESTLIB = @XTESTLIB@
--X_EXTRA_LIBS = @X_EXTRA_LIBS@
--X_INCLUDES = @X_INCLUDES@
--X_LDFLAGS = @X_LDFLAGS@
--X_PRE_LIBS = @X_PRE_LIBS@
--X_RPATH = @X_RPATH@
--ac_ct_AR = @ac_ct_AR@
--ac_ct_CC = @ac_ct_CC@
--ac_ct_CXX = @ac_ct_CXX@
--ac_ct_F77 = @ac_ct_F77@
--ac_ct_RANLIB = @ac_ct_RANLIB@
--ac_ct_STRIP = @ac_ct_STRIP@
--all_includes = @all_includes@
--all_libraries = @all_libraries@
--am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
--am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
--am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
--am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
--am__include = @am__include@
--am__leading_dot = @am__leading_dot@
--am__quote = @am__quote@
--am__tar = @am__tar@
--am__untar = @am__untar@
--applnk_SUBDIR_included_FALSE = @applnk_SUBDIR_included_FALSE@
--applnk_SUBDIR_included_TRUE = @applnk_SUBDIR_included_TRUE@
--bindir = @bindir@
--build = @build@
--build_alias = @build_alias@
--build_cpu = @build_cpu@
--build_os = @build_os@
--build_vendor = @build_vendor@
--datadir = @datadir@
--doc_SUBDIR_included_FALSE = @doc_SUBDIR_included_FALSE@
--doc_SUBDIR_included_TRUE = @doc_SUBDIR_included_TRUE@
--drkonqi_SUBDIR_included_FALSE = @drkonqi_SUBDIR_included_FALSE@
--drkonqi_SUBDIR_included_TRUE = @drkonqi_SUBDIR_included_TRUE@
--exec_prefix = @exec_prefix@
--have_xcursor_FALSE = @have_xcursor_FALSE@
--have_xcursor_TRUE = @have_xcursor_TRUE@
--host = @host@
--host_alias = @host_alias@
--host_cpu = @host_cpu@
--host_os = @host_os@
--host_vendor = @host_vendor@
--include_ARTS_FALSE = @include_ARTS_FALSE@
--include_ARTS_TRUE = @include_ARTS_TRUE@
--include_BZIP2_FALSE = @include_BZIP2_FALSE@
--include_BZIP2_TRUE = @include_BZIP2_TRUE@
--include_EXR_MODULES_FALSE = @include_EXR_MODULES_FALSE@
--include_EXR_MODULES_TRUE = @include_EXR_MODULES_TRUE@
--include_fontinst_tn_FALSE = @include_fontinst_tn_FALSE@
--include_fontinst_tn_TRUE = @include_fontinst_tn_TRUE@
--include_kcontrol_access_FALSE = @include_kcontrol_access_FALSE@
--include_kcontrol_access_TRUE = @include_kcontrol_access_TRUE@
--include_kcontrol_accessibility_FALSE = @include_kcontrol_accessibility_FALSE@
--include_kcontrol_accessibility_TRUE = @include_kcontrol_accessibility_TRUE@
--include_kcontrol_joystick_FALSE = @include_kcontrol_joystick_FALSE@
--include_kcontrol_joystick_TRUE = @include_kcontrol_joystick_TRUE@
--include_kcontrol_kfontinst_FALSE = @include_kcontrol_kfontinst_FALSE@
--include_kcontrol_kfontinst_TRUE = @include_kcontrol_kfontinst_TRUE@
--include_kcontrol_randr_FALSE = @include_kcontrol_randr_FALSE@
--include_kcontrol_randr_TRUE = @include_kcontrol_randr_TRUE@
--include_kcontrol_smartcard_FALSE = @include_kcontrol_smartcard_FALSE@
--include_kcontrol_smartcard_TRUE = @include_kcontrol_smartcard_TRUE@
--include_kcontrol_usbview_FALSE = @include_kcontrol_usbview_FALSE@
--include_kcontrol_usbview_TRUE = @include_kcontrol_usbview_TRUE@
--include_kcontrol_view1394_FALSE = @include_kcontrol_view1394_FALSE@
--include_kcontrol_view1394_TRUE = @include_kcontrol_view1394_TRUE@
--include_kioslave_ldap_FALSE = @include_kioslave_ldap_FALSE@
--include_kioslave_ldap_TRUE = @include_kioslave_ldap_TRUE@
--include_kioslave_smb_FALSE = @include_kioslave_smb_FALSE@
--include_kioslave_smb_TRUE = @include_kioslave_smb_TRUE@
--include_kompmgr_FALSE = @include_kompmgr_FALSE@
--include_kompmgr_TRUE = @include_kompmgr_TRUE@
--include_ksysguardd_FALSE = @include_ksysguardd_FALSE@
--include_ksysguardd_TRUE = @include_ksysguardd_TRUE@
--include_ksysguardd_freebsd_FALSE = @include_ksysguardd_freebsd_FALSE@
--include_ksysguardd_freebsd_TRUE = @include_ksysguardd_freebsd_TRUE@
--include_ksysguardd_irix_FALSE = @include_ksysguardd_irix_FALSE@
--include_ksysguardd_irix_TRUE = @include_ksysguardd_irix_TRUE@
--include_ksysguardd_linux_FALSE = @include_ksysguardd_linux_FALSE@
--include_ksysguardd_linux_TRUE = @include_ksysguardd_linux_TRUE@
--include_ksysguardd_netbsd_FALSE = @include_ksysguardd_netbsd_FALSE@
--include_ksysguardd_netbsd_TRUE = @include_ksysguardd_netbsd_TRUE@
--include_ksysguardd_openbsd_FALSE = @include_ksysguardd_openbsd_FALSE@
--include_ksysguardd_openbsd_TRUE = @include_ksysguardd_openbsd_TRUE@
--include_ksysguardd_solaris_FALSE = @include_ksysguardd_solaris_FALSE@
--include_ksysguardd_solaris_TRUE = @include_ksysguardd_solaris_TRUE@
--include_ksysguardd_tru64_FALSE = @include_ksysguardd_tru64_FALSE@
--include_ksysguardd_tru64_TRUE = @include_ksysguardd_tru64_TRUE@
--include_media_halbackend_FALSE = @include_media_halbackend_FALSE@
--include_media_halbackend_TRUE = @include_media_halbackend_TRUE@
--include_media_linuxcdpolling_FALSE = @include_media_linuxcdpolling_FALSE@
--include_media_linuxcdpolling_TRUE = @include_media_linuxcdpolling_TRUE@
--include_x11_FALSE = @include_x11_FALSE@
--include_x11_TRUE = @include_x11_TRUE@
--includedir = @includedir@
--infodir = @infodir@
--install_sh = @install_sh@
--install_usbids_FALSE = @install_usbids_FALSE@
--install_usbids_TRUE = @install_usbids_TRUE@
--jni_includes = @jni_includes@
--kappfinder_SUBDIR_included_FALSE = @kappfinder_SUBDIR_included_FALSE@
--kappfinder_SUBDIR_included_TRUE = @kappfinder_SUBDIR_included_TRUE@
--kate_SUBDIR_included_FALSE = @kate_SUBDIR_included_FALSE@
--kate_SUBDIR_included_TRUE = @kate_SUBDIR_included_TRUE@
--kcheckpass_SUBDIR_included_FALSE = @kcheckpass_SUBDIR_included_FALSE@
--kcheckpass_SUBDIR_included_TRUE = @kcheckpass_SUBDIR_included_TRUE@
--kcminit_SUBDIR_included_FALSE = @kcminit_SUBDIR_included_FALSE@
--kcminit_SUBDIR_included_TRUE = @kcminit_SUBDIR_included_TRUE@
--kcontrol_SUBDIR_included_FALSE = @kcontrol_SUBDIR_included_FALSE@
--kcontrol_SUBDIR_included_TRUE = @kcontrol_SUBDIR_included_TRUE@
--kdcop_SUBDIR_included_FALSE = @kdcop_SUBDIR_included_FALSE@
--kdcop_SUBDIR_included_TRUE = @kdcop_SUBDIR_included_TRUE@
--kde_appsdir = @kde_appsdir@
--kde_bindir = @kde_bindir@
--kde_confdir = @kde_confdir@
--kde_datadir = @kde_datadir@
--kde_htmldir = @kde_htmldir@
--kde_icondir = @kde_icondir@
--kde_includes = @kde_includes@
--kde_kcfgdir = @kde_kcfgdir@
--kde_libraries = @kde_libraries@
--kde_libs_htmldir = @kde_libs_htmldir@
--kde_libs_prefix = @kde_libs_prefix@
--kde_locale = @kde_locale@
--kde_mimedir = @kde_mimedir@
--kde_moduledir = @kde_moduledir@
--kde_qtver = @kde_qtver@
--kde_servicesdir = @kde_servicesdir@
--kde_servicetypesdir = @kde_servicetypesdir@
--kde_sounddir = @kde_sounddir@
--kde_styledir = @kde_styledir@
--kde_templatesdir = @kde_templatesdir@
--kde_wallpaperdir = @kde_wallpaperdir@
--kde_widgetdir = @kde_widgetdir@
--kdebugdialog_SUBDIR_included_FALSE = @kdebugdialog_SUBDIR_included_FALSE@
--kdebugdialog_SUBDIR_included_TRUE = @kdebugdialog_SUBDIR_included_TRUE@
--kdeeject_SUBDIR_included_FALSE = @kdeeject_SUBDIR_included_FALSE@
--kdeeject_SUBDIR_included_TRUE = @kdeeject_SUBDIR_included_TRUE@
--kdeinitdir = @kdeinitdir@
--kdepasswd_SUBDIR_included_FALSE = @kdepasswd_SUBDIR_included_FALSE@
--kdepasswd_SUBDIR_included_TRUE = @kdepasswd_SUBDIR_included_TRUE@
--kdeprint_SUBDIR_included_FALSE = @kdeprint_SUBDIR_included_FALSE@
--kdeprint_SUBDIR_included_TRUE = @kdeprint_SUBDIR_included_TRUE@
--kdesktop_SUBDIR_included_FALSE = @kdesktop_SUBDIR_included_FALSE@
--kdesktop_SUBDIR_included_TRUE = @kdesktop_SUBDIR_included_TRUE@
--kdesu_SUBDIR_included_FALSE = @kdesu_SUBDIR_included_FALSE@
--kdesu_SUBDIR_included_TRUE = @kdesu_SUBDIR_included_TRUE@
--kdialog_SUBDIR_included_FALSE = @kdialog_SUBDIR_included_FALSE@
--kdialog_SUBDIR_included_TRUE = @kdialog_SUBDIR_included_TRUE@
--kdm_SUBDIR_included_FALSE = @kdm_SUBDIR_included_FALSE@
--kdm_SUBDIR_included_TRUE = @kdm_SUBDIR_included_TRUE@
--kdmlib_SUBDIR_included_FALSE = @kdmlib_SUBDIR_included_FALSE@
--kdmlib_SUBDIR_included_TRUE = @kdmlib_SUBDIR_included_TRUE@
--kfind_SUBDIR_included_FALSE = @kfind_SUBDIR_included_FALSE@
--kfind_SUBDIR_included_TRUE = @kfind_SUBDIR_included_TRUE@
--khelpcenter_SUBDIR_included_FALSE = @khelpcenter_SUBDIR_included_FALSE@
--khelpcenter_SUBDIR_included_TRUE = @khelpcenter_SUBDIR_included_TRUE@
--khotkeys_SUBDIR_included_FALSE = @khotkeys_SUBDIR_included_FALSE@
--khotkeys_SUBDIR_included_TRUE = @khotkeys_SUBDIR_included_TRUE@
--kicker_SUBDIR_included_FALSE = @kicker_SUBDIR_included_FALSE@
--kicker_SUBDIR_included_TRUE = @kicker_SUBDIR_included_TRUE@
--kioslave_SUBDIR_included_FALSE = @kioslave_SUBDIR_included_FALSE@
--kioslave_SUBDIR_included_TRUE = @kioslave_SUBDIR_included_TRUE@
--klipper_SUBDIR_included_FALSE = @klipper_SUBDIR_included_FALSE@
--klipper_SUBDIR_included_TRUE = @klipper_SUBDIR_included_TRUE@
--kmenuedit_SUBDIR_included_FALSE = @kmenuedit_SUBDIR_included_FALSE@
--kmenuedit_SUBDIR_included_TRUE = @kmenuedit_SUBDIR_included_TRUE@
--knetattach_SUBDIR_included_FALSE = @knetattach_SUBDIR_included_FALSE@
--knetattach_SUBDIR_included_TRUE = @knetattach_SUBDIR_included_TRUE@
--konqueror_SUBDIR_included_FALSE = @konqueror_SUBDIR_included_FALSE@
--konqueror_SUBDIR_included_TRUE = @konqueror_SUBDIR_included_TRUE@
--konsole_SUBDIR_included_FALSE = @konsole_SUBDIR_included_FALSE@
--konsole_SUBDIR_included_TRUE = @konsole_SUBDIR_included_TRUE@
--kpager_SUBDIR_included_FALSE = @kpager_SUBDIR_included_FALSE@
--kpager_SUBDIR_included_TRUE = @kpager_SUBDIR_included_TRUE@
--kpersonalizer_SUBDIR_included_FALSE = @kpersonalizer_SUBDIR_included_FALSE@
--kpersonalizer_SUBDIR_included_TRUE = @kpersonalizer_SUBDIR_included_TRUE@
--kreadconfig_SUBDIR_included_FALSE = @kreadconfig_SUBDIR_included_FALSE@
--kreadconfig_SUBDIR_included_TRUE = @kreadconfig_SUBDIR_included_TRUE@
--kscreensaver_SUBDIR_included_FALSE = @kscreensaver_SUBDIR_included_FALSE@
--kscreensaver_SUBDIR_included_TRUE = @kscreensaver_SUBDIR_included_TRUE@
--ksmserver_SUBDIR_included_FALSE = @ksmserver_SUBDIR_included_FALSE@
--ksmserver_SUBDIR_included_TRUE = @ksmserver_SUBDIR_included_TRUE@
--ksplashml_SUBDIR_included_FALSE = @ksplashml_SUBDIR_included_FALSE@
--ksplashml_SUBDIR_included_TRUE = @ksplashml_SUBDIR_included_TRUE@
--kstart_SUBDIR_included_FALSE = @kstart_SUBDIR_included_FALSE@
--kstart_SUBDIR_included_TRUE = @kstart_SUBDIR_included_TRUE@
--ksysguard_SUBDIR_included_FALSE = @ksysguard_SUBDIR_included_FALSE@
--ksysguard_SUBDIR_included_TRUE = @ksysguard_SUBDIR_included_TRUE@
--ksystraycmd_SUBDIR_included_FALSE = @ksystraycmd_SUBDIR_included_FALSE@
--ksystraycmd_SUBDIR_included_TRUE = @ksystraycmd_SUBDIR_included_TRUE@
--ktip_SUBDIR_included_FALSE = @ktip_SUBDIR_included_FALSE@
--ktip_SUBDIR_included_TRUE = @ktip_SUBDIR_included_TRUE@
--kwin_SUBDIR_included_FALSE = @kwin_SUBDIR_included_FALSE@
--kwin_SUBDIR_included_TRUE = @kwin_SUBDIR_included_TRUE@
--kxkb_SUBDIR_included_FALSE = @kxkb_SUBDIR_included_FALSE@
--kxkb_SUBDIR_included_TRUE = @kxkb_SUBDIR_included_TRUE@
--l10n_SUBDIR_included_FALSE = @l10n_SUBDIR_included_FALSE@
--l10n_SUBDIR_included_TRUE = @l10n_SUBDIR_included_TRUE@
--libdir = @libdir@
--libexecdir = @libexecdir@
--libkonq_SUBDIR_included_FALSE = @libkonq_SUBDIR_included_FALSE@
--libkonq_SUBDIR_included_TRUE = @libkonq_SUBDIR_included_TRUE@
--localstatedir = @localstatedir@
--mandir = @mandir@
--mkdir_p = @mkdir_p@
--nogroup = @nogroup@
--nsplugins_SUBDIR_included_FALSE = @nsplugins_SUBDIR_included_FALSE@
--nsplugins_SUBDIR_included_TRUE = @nsplugins_SUBDIR_included_TRUE@
--oldincludedir = @oldincludedir@
--pics_SUBDIR_included_FALSE = @pics_SUBDIR_included_FALSE@
--pics_SUBDIR_included_TRUE = @pics_SUBDIR_included_TRUE@
--prefix = @prefix@
--program_transform_name = @program_transform_name@
--qt_includes = @qt_includes@
--qt_libraries = @qt_libraries@
--sbindir = @sbindir@
--sharedstatedir = @sharedstatedir@
--supports_i8k_FALSE = @supports_i8k_FALSE@
--supports_i8k_TRUE = @supports_i8k_TRUE@
--sysconfdir = @sysconfdir@
--target = @target@
--target_alias = @target_alias@
--target_cpu = @target_cpu@
--target_os = @target_os@
--target_vendor = @target_vendor@
--unsermake_enable_pch_FALSE = @unsermake_enable_pch_FALSE@
--unsermake_enable_pch_TRUE = @unsermake_enable_pch_TRUE@
--x_includes = @x_includes@
--x_libraries = @x_libraries@
--xdg_appsdir = @xdg_appsdir@
--xdg_directorydir = @xdg_directorydir@
--xdg_menudir = @xdg_menudir@
--#>- METASOURCES = AUTO
--kde_module_LTLIBRARIES = media_propsdlgplugin.la
--media_propsdlgplugin_la_LIBADD = ../libmediacommon/libmediacommon.la $(LIB_KIO)
--media_propsdlgplugin_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN)
--AM_CPPFLAGS = $(all_includes)
--kde_services_DATA = media_propsdlgplugin.desktop
--#>- media_propsdlgplugin_la_SOURCES = propertiespage.cpp propertiespagegui.ui propsdlgshareplugin.cpp
--#>+ 1
--media_propsdlgplugin_la_SOURCES=propertiespage.cpp propsdlgshareplugin.cpp propertiespagegui.cpp
--#>- all: all-am
--#>+ 1
--all: docs-am all-am
--
--.SUFFIXES:
--.SUFFIXES: .cpp .lo .o .obj
--$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
--#>- @for dep in $?; do \
--#>- case '$(am__configure_deps)' in \
--#>- *$$dep*) \
--#>- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
--#>- && exit 0; \
--#>- exit 1;; \
--#>- esac; \
--#>- done; \
--#>- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign kioslave/media/propsdlgplugin/Makefile'; \
--#>- cd $(top_srcdir) && \
--#>- $(AUTOMAKE) --foreign kioslave/media/propsdlgplugin/Makefile
--#>+ 12
-- @for dep in $?; do \
-- case '$(am__configure_deps)' in \
-- *$$dep*) \
-- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
-- && exit 0; \
-- exit 1;; \
-- esac; \
-- done; \
-- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign kioslave/media/propsdlgplugin/Makefile'; \
-- cd $(top_srcdir) && \
-- $(AUTOMAKE) --foreign kioslave/media/propsdlgplugin/Makefile
-- cd $(top_srcdir) && perl admin/am_edit kioslave/media/propsdlgplugin/Makefile.in
--.PRECIOUS: Makefile
--Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-- @case '$?' in \
-- *config.status*) \
-- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-- *) \
-- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-- esac;
--
--$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
--
--$(top_srcdir)/configure: $(am__configure_deps)
-- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
--$(ACLOCAL_M4): $(am__aclocal_m4_deps)
-- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
--install-kde_moduleLTLIBRARIES: $(kde_module_LTLIBRARIES)
-- @$(NORMAL_INSTALL)
-- test -z "$(kde_moduledir)" || $(mkdir_p) "$(DESTDIR)$(kde_moduledir)"
-- @list='$(kde_module_LTLIBRARIES)'; for p in $$list; do \
-- if test -f $$p; then \
-- f=$(am__strip_dir) \
-- echo " $(LIBTOOL) --mode=install $(kde_moduleLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(kde_moduledir)/$$f'"; \
-- $(LIBTOOL) --mode=install $(kde_moduleLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(kde_moduledir)/$$f"; \
-- else :; fi; \
-- done
--
--uninstall-kde_moduleLTLIBRARIES:
-- @$(NORMAL_UNINSTALL)
-- @set -x; list='$(kde_module_LTLIBRARIES)'; for p in $$list; do \
-- p=$(am__strip_dir) \
-- echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(kde_moduledir)/$$p'"; \
-- $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(kde_moduledir)/$$p"; \
-- done
--
--clean-kde_moduleLTLIBRARIES:
-- -test -z "$(kde_module_LTLIBRARIES)" || rm -f $(kde_module_LTLIBRARIES)
-- @list='$(kde_module_LTLIBRARIES)'; for p in $$list; do \
-- dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
-- test "$$dir" != "$$p" || dir=.; \
-- echo "rm -f \"$${dir}/so_locations\""; \
-- rm -f "$${dir}/so_locations"; \
-- done
--#>- media_propsdlgplugin.la: $(media_propsdlgplugin_la_OBJECTS) $(media_propsdlgplugin_la_DEPENDENCIES)
--#>+ 2
--@KDE_USE_CLOSURE_TRUE@media_propsdlgplugin.la: media_propsdlgplugin.la.closure $(media_propsdlgplugin_la_OBJECTS) $(media_propsdlgplugin_la_DEPENDENCIES)
--@KDE_USE_CLOSURE_FALSE@media_propsdlgplugin.la: $(media_propsdlgplugin_la_OBJECTS) $(media_propsdlgplugin_la_DEPENDENCIES)
-- $(CXXLINK) -rpath $(kde_moduledir) $(media_propsdlgplugin_la_LDFLAGS) $(media_propsdlgplugin_la_OBJECTS) $(media_propsdlgplugin_la_LIBADD) $(LIBS)
--
--mostlyclean-compile:
-- -rm -f *.$(OBJEXT)
--
--distclean-compile:
-- -rm -f *.tab.c
--
--@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/propertiespage.Plo@am__quote@
--@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/propsdlgshareplugin.Plo@am__quote@
--
--.cpp.o:
--@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
--@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
--@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
--@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
--@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
--
--.cpp.obj:
--@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
--@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
--@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
--@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
--@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
--
--.cpp.lo:
--@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
--@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
--@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
--@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
--@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
--
--mostlyclean-libtool:
-- -rm -f *.lo
--
--clean-libtool:
-- -rm -rf .libs _libs
--
--distclean-libtool:
-- -rm -f libtool
--uninstall-info-am:
--install-kde_servicesDATA: $(kde_services_DATA)
-- @$(NORMAL_INSTALL)
-- test -z "$(kde_servicesdir)" || $(mkdir_p) "$(DESTDIR)$(kde_servicesdir)"
-- @list='$(kde_services_DATA)'; for p in $$list; do \
-- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
-- f=$(am__strip_dir) \
-- echo " $(kde_servicesDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(kde_servicesdir)/$$f'"; \
-- $(kde_servicesDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(kde_servicesdir)/$$f"; \
-- done
--
--uninstall-kde_servicesDATA:
-- @$(NORMAL_UNINSTALL)
-- @list='$(kde_services_DATA)'; for p in $$list; do \
-- f=$(am__strip_dir) \
-- echo " rm -f '$(DESTDIR)$(kde_servicesdir)/$$f'"; \
-- rm -f "$(DESTDIR)$(kde_servicesdir)/$$f"; \
-- done
--
--ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
-- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
-- unique=`for i in $$list; do \
-- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-- done | \
-- $(AWK) ' { files[$$0] = 1; } \
-- END { for (i in files) print i; }'`; \
-- mkid -fID $$unique
--tags: TAGS
--
--TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
-- $(TAGS_FILES) $(LISP)
-- tags=; \
-- here=`pwd`; \
-- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
-- unique=`for i in $$list; do \
-- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-- done | \
-- $(AWK) ' { files[$$0] = 1; } \
-- END { for (i in files) print i; }'`; \
-- if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
-- test -n "$$unique" || unique=$$empty_fix; \
-- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-- $$tags $$unique; \
-- fi
--ctags: CTAGS
--CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
-- $(TAGS_FILES) $(LISP)
-- tags=; \
-- here=`pwd`; \
-- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
-- unique=`for i in $$list; do \
-- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-- done | \
-- $(AWK) ' { files[$$0] = 1; } \
-- END { for (i in files) print i; }'`; \
-- test -z "$(CTAGS_ARGS)$$tags$$unique" \
-- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
-- $$tags $$unique
--
--GTAGS:
-- here=`$(am__cd) $(top_builddir) && pwd` \
-- && cd $(top_srcdir) \
-- && gtags -i $(GTAGS_ARGS) $$here
--
--distclean-tags:
-- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
--
--distdir: $(DISTFILES)
-- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
-- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
-- list='$(DISTFILES)'; for file in $$list; do \
-- case $$file in \
-- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
-- $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
-- esac; \
-- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-- dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
-- if test "$$dir" != "$$file" && test "$$dir" != "."; then \
-- dir="/$$dir"; \
-- $(mkdir_p) "$(distdir)$$dir"; \
-- else \
-- dir=''; \
-- fi; \
-- if test -d $$d/$$file; then \
-- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
-- fi; \
-- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
-- else \
-- test -f $(distdir)/$$file \
-- || cp -p $$d/$$file $(distdir)/$$file \
-- || exit 1; \
-- fi; \
-- done
--check-am: all-am
--check: check-am
--all-am: Makefile $(LTLIBRARIES) $(DATA)
--installdirs:
-- for dir in "$(DESTDIR)$(kde_moduledir)" "$(DESTDIR)$(kde_servicesdir)"; do \
-- test -z "$$dir" || $(mkdir_p) "$$dir"; \
-- done
--install: install-am
--install-exec: install-exec-am
--install-data: install-data-am
--uninstall: uninstall-am
--
--install-am: all-am
-- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
--
--installcheck: installcheck-am
--install-strip:
-- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-- `test -z '$(STRIP)' || \
-- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
--mostlyclean-generic:
--
--clean-generic:
--
--distclean-generic:
-- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
--
--maintainer-clean-generic:
-- @echo "This command is intended for maintainers to use"
-- @echo "it deletes files that may require special tools to rebuild."
--#>- clean: clean-am
--#>+ 1
--clean: kde-rpo-clean clean-am
--
--#>- clean-am: clean-generic clean-kde_moduleLTLIBRARIES clean-libtool \
--#>- mostlyclean-am
--#>+ 2
--clean-am: clean-metasources clean-ui clean-closures clean-bcheck clean-final clean-generic clean-kde_moduleLTLIBRARIES clean-libtool \
-- mostlyclean-am
--
--distclean: distclean-am
-- -rm -rf ./$(DEPDIR)
-- -rm -f Makefile
--distclean-am: clean-am distclean-compile distclean-generic \
-- distclean-libtool distclean-tags
--
--dvi: dvi-am
--
--dvi-am:
--
--html: html-am
--
--info: info-am
--
--info-am:
--
--#>- install-data-am: install-kde_moduleLTLIBRARIES \
--#>- install-kde_servicesDATA
--#>+ 2
--install-data-am: \
-- install-kde_servicesDATA
--
--#>- install-exec-am:
--#>+ 1
--install-exec-am: install-kde_moduleLTLIBRARIES
--
--install-info: install-info-am
--
--install-man:
--
--installcheck-am:
--
--maintainer-clean: maintainer-clean-am
-- -rm -rf ./$(DEPDIR)
-- -rm -f Makefile
--maintainer-clean-am: distclean-am maintainer-clean-generic
--
--mostlyclean: mostlyclean-am
--
--mostlyclean-am: mostlyclean-compile mostlyclean-generic \
-- mostlyclean-libtool
--
--pdf: pdf-am
--
--pdf-am:
--
--ps: ps-am
--
--ps-am:
--
--uninstall-am: uninstall-info-am uninstall-kde_moduleLTLIBRARIES \
-- uninstall-kde_servicesDATA
--
--.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
-- clean-kde_moduleLTLIBRARIES clean-libtool ctags distclean \
-- distclean-compile distclean-generic distclean-libtool \
-- distclean-tags distdir dvi dvi-am html html-am info info-am \
-- install install-am install-data install-data-am install-exec \
-- install-exec-am install-info install-info-am \
-- install-kde_moduleLTLIBRARIES install-kde_servicesDATA \
-- install-man install-strip installcheck installcheck-am \
-- installdirs maintainer-clean maintainer-clean-generic \
-- mostlyclean mostlyclean-compile mostlyclean-generic \
-- mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
-- uninstall-am uninstall-info-am uninstall-kde_moduleLTLIBRARIES \
-- uninstall-kde_servicesDATA
--
--# Tell versions [3.59,3.63) of GNU make to not export all variables.
--# Otherwise a system limit (for SysV at least) may be exceeded.
--.NOEXPORT:
--
--#>+ 8
--media_propsdlgplugin.la.closure: $(media_propsdlgplugin_la_OBJECTS) $(media_propsdlgplugin_la_DEPENDENCIES)
-- @echo "int main() {return 0;}" > media_propsdlgplugin_la_closure.cpp
-- @$(LTCXXCOMPILE) -c media_propsdlgplugin_la_closure.cpp
-- $(CXXLINK) media_propsdlgplugin_la_closure.lo $(media_propsdlgplugin_la_LDFLAGS) $(media_propsdlgplugin_la_OBJECTS) $(media_propsdlgplugin_la_LIBADD) $(LIBS)
-- @rm -f media_propsdlgplugin_la_closure.* media_propsdlgplugin.la.closure
-- @echo "timestamp" > media_propsdlgplugin.la.closure
--
--
--#>+ 3
--propsdlgshareplugin.moc: $(srcdir)/propsdlgshareplugin.h
-- $(MOC) $(srcdir)/propsdlgshareplugin.h -o propsdlgshareplugin.moc
--
--#>+ 2
--mocs: propsdlgshareplugin.moc
--
--#>+ 3
--propertiespage.moc: $(srcdir)/propertiespage.h
-- $(MOC) $(srcdir)/propertiespage.h -o propertiespage.moc
--
--#>+ 2
--mocs: propertiespage.moc
--
--#>+ 3
--clean-metasources:
-- -rm -f propsdlgshareplugin.moc propertiespage.moc
--
--#>+ 2
--KDE_DIST=propertiespagegui.ui Makefile.in propertiespage.h propsdlgshareplugin.h media_propsdlgplugin.desktop propertiespagegui.ui.h Makefile.am
--
--#>+ 4
--clean-ui:
-- -rm -f \
-- propertiespagegui.cpp propertiespagegui.h propertiespagegui.moc
--
--#>+ 3
--clean-closures:
-- -rm -f media_propsdlgplugin.la.closure
--
--#>+ 2
--docs-am:
--
--#>+ 15
--force-reedit:
-- @for dep in $?; do \
-- case '$(am__configure_deps)' in \
-- *$$dep*) \
-- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
-- && exit 0; \
-- exit 1;; \
-- esac; \
-- done; \
-- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign kioslave/media/propsdlgplugin/Makefile'; \
-- cd $(top_srcdir) && \
-- $(AUTOMAKE) --foreign kioslave/media/propsdlgplugin/Makefile
-- cd $(top_srcdir) && perl admin/am_edit kioslave/media/propsdlgplugin/Makefile.in
--
--
--#>+ 21
--clean-bcheck:
-- rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
--
--bcheck: bcheck-am
--
--bcheck-am:
-- @for i in ; do \
-- if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \
-- echo "int main() {return 0;}" > $$i.bchecktest.cc ; \
-- echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \
-- echo "$$i"; \
-- if ! $(CXXCOMPILE) --dump-class-hierarchy -c $$i.bchecktest.cc; then \
-- rm -f $$i.bchecktest.cc; exit 1; \
-- fi ; \
-- echo "" >> $$i.bchecktest.cc.class; \
-- perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \
-- rm -f a.out; \
-- fi ; \
-- done
--
--
--#>+ 11
--media_propsdlgplugin_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/propertiespage.cpp $(srcdir)/propsdlgshareplugin.cpp propertiespagegui.cpp propsdlgshareplugin.moc propertiespagegui.moc propertiespage.moc
-- @echo 'creating media_propsdlgplugin_la.all_cpp.cpp ...'; \
-- rm -f media_propsdlgplugin_la.all_cpp.files media_propsdlgplugin_la.all_cpp.final; \
-- echo "#define KDE_USE_FINAL 1" >> media_propsdlgplugin_la.all_cpp.final; \
-- for file in propertiespage.cpp propsdlgshareplugin.cpp propertiespagegui.cpp ; do \
-- echo "#include \"$$file\"" >> media_propsdlgplugin_la.all_cpp.files; \
-- test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> media_propsdlgplugin_la.all_cpp.final; \
-- done; \
-- cat media_propsdlgplugin_la.all_cpp.final media_propsdlgplugin_la.all_cpp.files > media_propsdlgplugin_la.all_cpp.cpp; \
-- rm -f media_propsdlgplugin_la.all_cpp.final media_propsdlgplugin_la.all_cpp.files
--
--#>+ 3
--clean-final:
-- -rm -f media_propsdlgplugin_la.all_cpp.cpp
--
--#>+ 3
--final:
-- $(MAKE) media_propsdlgplugin_la_OBJECTS="$(media_propsdlgplugin_la_final_OBJECTS)" all-am
--
--#>+ 3
--final-install:
-- $(MAKE) media_propsdlgplugin_la_OBJECTS="$(media_propsdlgplugin_la_final_OBJECTS)" install-am
--
--#>+ 3
--no-final:
-- $(MAKE) media_propsdlgplugin_la_OBJECTS="$(media_propsdlgplugin_la_nofinal_OBJECTS)" all-am
--
--#>+ 3
--no-final-install:
-- $(MAKE) media_propsdlgplugin_la_OBJECTS="$(media_propsdlgplugin_la_nofinal_OBJECTS)" install-am
--
--#>+ 3
--kde-rpo-clean:
-- -rm -f *.rpo
--
--#>+ 9
--nmcheck:
--propsdlgshareplugin.o: propsdlgshareplugin.moc
--nmcheck-am: nmcheck
--propsdlgshareplugin.lo: propsdlgshareplugin.moc
--propertiespage.lo: propertiespage.moc
--$(srcdir)/propertiespage.cpp: propertiespagegui.h
--$(srcdir)/propsdlgshareplugin.cpp: propertiespagegui.h
--propertiespage.o: propertiespage.moc
--
--#>+ 15
--propertiespagegui.cpp: $(srcdir)/propertiespagegui.ui propertiespagegui.h propertiespagegui.moc
-- rm -f propertiespagegui.cpp
-- echo '#include <kdialog.h>' > propertiespagegui.cpp
-- echo '#include <klocale.h>' >> propertiespagegui.cpp
-- $(UIC) -tr ${UIC_TR} -i propertiespagegui.h $(srcdir)/propertiespagegui.ui > propertiespagegui.cpp.temp ; ret=$$?; \
-- $(PERL) -pe "s,${UIC_TR}( \"\" ),QString::null,g" propertiespagegui.cpp.temp | $(PERL) -pe "s,${UIC_TR}( \"\"\, \"\" ),QString::null,g" | $(PERL) -pe "s,image([0-9][0-9]*)_data,img\$$1_propertiespagegui,g" | $(PERL) -pe "s,: QWizard\(,: KWizard(,g" >> propertiespagegui.cpp ;\
-- rm -f propertiespagegui.cpp.temp ;\
-- if test "$$ret" = 0; then echo '#include "propertiespagegui.moc"' >> propertiespagegui.cpp; else rm -f propertiespagegui.cpp ; exit $$ret ; fi
--
--propertiespagegui.h: $(srcdir)/propertiespagegui.ui
-- rm -rf propertiespagegui.h;
-- $(UIC) $(srcdir)/propertiespagegui.ui | $(PERL) -pi -e "s,public QWizard,public KWizard,g; s,#include <qwizard.h>,#include <kwizard.h>,g" >> propertiespagegui.h ;
--propertiespagegui.moc: propertiespagegui.h
-- $(MOC) propertiespagegui.h -o propertiespagegui.moc
-diff -urN kioslave/media/propsdlgplugin/media_propsdlgplugin.desktop kioslave/media/propsdlgplugin/media_propsdlgplugin.desktop
---- kioslave/media/propsdlgplugin/media_propsdlgplugin.desktop Sun Oct 1 19:31:53 2006
-+++ kioslave/media/propsdlgplugin/media_propsdlgplugin.desktop Thu Jan 1 01:00:00 1970
-@@ -1,73 +0,0 @@
--[Desktop Entry]
--Encoding=UTF-8
--Type=Service
--Name=Media Properties Page
--Name[ca]=Pàgina de propietats de suport
--Name[cs]=Stránka vlastností média
--Name[da]=Medieegenskabsside
--Name[de]=Eigenschaften von Medien
--Name[el]=Σελίδα ιδιοτήτων μέσων
--Name[es]=Página de propiedades de medios
--Name[et]=Andmekandjate omadused
--Name[fa]=صفحۀ ویژگیهای رسانه
--Name[fi]=Mediaominaisuudet
--Name[fr]=Page de propriétés du média
--Name[he]=דף מאפייני מדיה
--Name[hr]=Stranica svojstva medija
--Name[hu]=Médiajellemzők lap
--Name[is]=Eiginleikar miðils
--Name[it]=Pagina delle proprietà dei dispositivi di archiviazione
--Name[ja]=メディア属性ページ
--Name[km]=ទំព័រ​លក្ខណៈសម្បត្តិ​មេឌៀ
--Name[nb]=Side for medievarsling
--Name[nds]=Medienegenschappen-Siet
--Name[nl]=Pagina met media-eigenschappen
--Name[nn]=Side for medieeigenskapar
--Name[pl]=Strona właściwości nośnika
--Name[pt]=Página de Propriedades de Suportes Físicos
--Name[pt_BR]=Página de Propriedades de Suportes Físicos
--Name[ru]=Свойства носителя
--Name[sk]=Strana vlastností média
--Name[sl]=Stran z lastnostmi nosilca
--Name[sr]=Страна са својствима медијума
--Name[sr@Latn]=Strana sa svojstvima medijuma
--Name[sv]=Sida för mediaegenskaper
--Name[uk]=Сторінка властивостей носіїв інформації
--Name[vi]=Trang tài sản phương tiện
--Name[zh_TW]=媒體內容頁
--Comment=Konqueror properties dialog plugin to configure mount behaviour
--Comment[ca]=Diàleg de propietats de l'endollable Konqueror per a configurar el comportament de muntatge
--Comment[cs]=Dialog nastavení chování připojení modulu pro Konqueror
--Comment[da]=Konqueror plugin med egenskabsdialog til at indstille monteringsopførsel
--Comment[de]=Konqueror-Modul zum Einstellen des Verhaltens beim Einbinden
--Comment[el]=Πρόσθετο διαλόγου ιδιοτήτων του Konqueror για τη ρύθμιση της συμπεριφοράς προσάρτησης
--Comment[es]=Plugin de diálogo de propiedades de Konqueror para configurar el comportamiento del montaje
--Comment[et]=Konquerori seadistustedialoogi plugin andmekandjate ühendamise seadistamiseks
--Comment[fa]=وصلۀ محاورۀ ویژگیهای Konqueror برای پیکربندی رفتار سوار کردن
--Comment[fi]=Konquerorin ominaisuussovelma, joka tarkkailee liitospisteitä
--Comment[fr]=Module de Konqueror pour configurer le comportement du montage
--Comment[he]=תוסף חלון מאפיינים של Konqueror לקביעת אפשרויות חיבור
--Comment[hr]=Konqueror dodatak dijaloga svojstava za konfiguriranje načina pristupanja
--Comment[hu]=Konqueror beállítómodul a csatlakoztatási mód megadásához
--Comment[is]=Konqueror eiginleikagluggi til að stilla tengihegðun
--Comment[it]=Plugin della configurazione di Konqueror per configurare il montaggio
--Comment[ja]=mountの挙動を設定する、Konqueror属性ダイアログ プラグイン
--Comment[km]=កម្មវិធី​ជំនួយ​ឲ្យ​មាន​ប្រអប់​លក្ខណៈសម្បត្តិ Konqueror ដើម្បី​កំណត់​រចនាសម្ព័ន្ធ​ឥរិយាបថ​ម៉ោន
--Comment[nb]=Et programtillegg for å sette opp montering av enheter i Konqueror
--Comment[nds]=Egenschappendialoog-Plugin för Konqueror för't Instellen vun't Inhangbedregen
--Comment[nl]=Dialoogvenster voor Konqueror om het aankoppelgedrag in te stellen
--Comment[nn]=Programtillegg for oppsett av montering i Konqueror
--Comment[pl]=Wtyczka okna właściwości Konquerora do konfiguracji zachowania montowania
--Comment[pt]='Plugin' da janela de propriedades do Konqueror, para configurar o comportamento da montagem
--Comment[pt_BR]='Plugin' da janela de propriedades do Konqueror, para configurar o comportamento da montagem
--Comment[ru]=Модуль свойств для Konqueror, отвечающий за поведение при подключении файловых систем
--Comment[sk]=Modul Konqueror dialógu vlastností pre konfiguráciu správania pripojenia
--Comment[sl]=Vstavek za Konqueror s katerim se nastavlja obnašanje priklopa medijev
--Comment[sr]=Прикључак са својствима Konqueror-а за подешавање понашања при монтирању
--Comment[sr@Latn]=Priključak sa svojstvima Konqueror-a za podešavanje ponašanja pri montiranju
--Comment[sv]=Konqueror insticksprogram med egenskapsdialogruta för att anpassa monteringsbeteende
--Comment[uk]=Втулок вікна властивостей Konqueror для налаштування поведінки монтування
--Comment[vi]=bổ sung hộp thoại tài sản Konqueror để cấu hình ứng xử gắn kết
--Comment[zh_TW]=Konqueror 內容對話框外掛程式,用於設定掛載的行為
--X-KDE-Library=media_propsdlgplugin
--ServiceTypes=KPropsDlg/Plugin,media/audiocd,media/hdd_mounted,media/hdd_unmounted,media/cdrom_mounted,media/cdrom_unmounted,media/cdwriter_mounted,media/nfs_mounted,media/cdwriter_unmounted,media/nfs_unmounted,media/removable_mounted,media/dvd_mounted,media/removable_unmounted,media/dvd_unmounted,media/smb_mounted,media/dvdvideo,media/smb_unmounted,media/floppy5_mounted,media/floppy5_unmounted,media/floppy_mounted,media/zip_mounted,media/floppy_unmounted,media/zip_unmounted,media/camera_mounted,media/camera_unmounted
-diff -urN kioslave/media/propsdlgplugin/propertiespage.cpp kioslave/media/propsdlgplugin/propertiespage.cpp
---- kioslave/media/propsdlgplugin/propertiespage.cpp Sat Jul 22 10:15:43 2006
-+++ kioslave/media/propsdlgplugin/propertiespage.cpp Thu Jan 1 01:00:00 1970
-@@ -1,217 +0,0 @@
--/*
-- Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
--
-- 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
--*/
--
--#include <qcheckbox.h>
--#include <qtooltip.h>
--#include <qbuttongroup.h>
--#include <qlineedit.h>
--#include <qfileinfo.h>
--#include <qlabel.h>
--#include <qregexp.h>
--#include <kpushbutton.h>
--#include <kmessagebox.h>
--#include <klocale.h>
--#include <qcombobox.h>
--#include <qtimer.h>
--#include <kdebug.h>
--#include "propertiespage.h"
--#include <dcopref.h>
--
--// keep in sync with .ui and kded module
--const char *short_names[] = {"lower", "win95", "winnt", "mixed", 0 };
--const char *journales[] = {"data", "ordered", "writeback", 0 };
--
--PropertiesPage::PropertiesPage(QWidget* parent, const QString &_id)
-- : PropertiesPageGUI(parent), id(_id)
--{
-- kdDebug() << "props page " << id << endl;
-- DCOPRef mediamanager("kded", "mediamanager");
-- DCOPReply reply = mediamanager.call( "mountoptions", id);
--
-- QStringList list;
--
-- if (reply.isValid())
-- list = reply;
--
-- if (list.size()) {
-- kdDebug() << "list " << list << endl;
--
-- for (QStringList::ConstIterator it = list.begin(); it != list.end(); ++it)
-- {
-- QString key = (*it).left((*it).find('='));
-- QString value = (*it).mid((*it).find('=') + 1);
-- kdDebug() << "key '" << key << "' value '" << value << "'\n";
-- options[key] = value;
-- }
--
-- if (!options.contains("ro"))
-- option_ro->hide();
-- else
-- option_ro->setChecked(options["ro"] == "true");
-- connect( option_ro, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) );
--
-- if (!options.contains("quiet"))
-- option_quiet->hide();
-- else
-- option_quiet->setChecked(options["quiet"] == "true");
-- connect( option_quiet, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) );
--
-- if (!options.contains("sync"))
-- option_sync->hide();
-- else
-- option_sync->setChecked(options["sync"] == "true");
-- connect( option_sync, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) );
--
-- if (!options.contains("atime"))
-- option_atime->hide();
-- else
-- option_atime->setChecked(options["atime"] == "true");
-- connect( option_atime, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) );
--
-- if (!options.contains("flush"))
-- option_flush->hide();
-- else
-- option_flush->setChecked(options["flush"] == "true");
-- connect( option_flush, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) );
--
-- if (!options.contains("utf8"))
-- option_utf8->hide();
-- else
-- option_utf8->setChecked(options["utf8"] == "true");
-- connect( option_utf8, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) );
--
-- if (!options.contains("uid"))
-- option_uid->hide();
-- else
-- option_uid->setChecked(options["uid"] == "true");
-- connect( option_uid, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) );
--
-- if (!options.contains("shortname"))
-- {
-- option_shortname->hide();
-- text_shortname->hide();
-- }
-- else
-- {
-- for (int index = 0; short_names[index]; ++index)
-- if (options["shortname"] == short_names[index])
-- {
-- option_shortname->setCurrentItem(index);
-- break;
-- }
-- connect( option_shortname, SIGNAL( activated(int) ), SIGNAL( changed() ) );
-- }
--
-- if (!options.contains("journaling"))
-- {
-- text_journaling->hide();
-- option_journaling->hide();
-- }
-- else
-- {
-- for (int index = 0; journales[index]; ++index)
-- if (options["journaling"] == journales[index])
-- {
-- option_journaling->setCurrentItem(index);
-- break;
-- }
-- connect( option_journaling, SIGNAL( activated(int) ), SIGNAL( changed() ) );
-- }
--
-- label_filesystem->setText(i18n("Filesystem: %1").arg(options["filesystem"]));
-- option_mountpoint->setText(options["mountpoint"]);
-- connect( option_mountpoint, SIGNAL( textChanged( const QString &) ), SIGNAL( changed() ) );
-- option_automount->setChecked(options["automount"] == "true");
-- connect( option_automount, SIGNAL( stateChanged(int) ), SIGNAL( changed() ) );
--
-- if (!options.contains("journaling") &&
-- !options.contains("shortname") &&
-- !options.contains("uid") &&
-- !options.contains("utf8") &&
-- !options.contains("flush"))
-- groupbox_specific->hide();
--
-- } else {
--
-- groupbox_generic->setEnabled(false);
-- groupbox_specific->setEnabled(false);
-- label_filesystem->hide();
-- }
--}
--
--PropertiesPage::~PropertiesPage()
--{
--}
--
--bool PropertiesPage::save()
--{
-- QStringList result;
--
-- if (options.contains("ro"))
-- result << QString("ro=%1").arg(option_ro->isChecked() ? "true" : "false");
--
-- if (options.contains("quiet"))
-- result << QString("quiet=%1").arg(option_quiet->isChecked() ? "true" : "false");
--
-- if (options.contains("sync"))
-- result << QString("sync=%1").arg(option_sync->isChecked() ? "true" : "false");
--
-- if (options.contains("atime"))
-- result << QString("atime=%1").arg(option_atime->isChecked() ? "true" : "false");
--
-- if (options.contains("flush"))
-- result << QString("flush=%1").arg(option_flush->isChecked() ? "true" : "false");
--
-- if (options.contains("utf8"))
-- result << QString("utf8=%1").arg(option_utf8->isChecked() ? "true" : "false");
--
-- if (options.contains("uid"))
-- result << QString("uid=%1").arg(option_uid->isChecked() ? "true" : "false");
--
-- if (options.contains("shortname"))
-- result << QString("shortname=%1").arg(short_names[option_shortname->currentItem()]);
--
-- if (options.contains("journaling"))
-- result << QString("journaling=%1").arg(journales[option_journaling->currentItem()]);
--
-- QString mp = option_mountpoint->text();
-- if (!mp.startsWith("/media/"))
-- {
-- KMessageBox::sorry(this, i18n("Mountpoint has to be below /media"));
-- return false;
-- }
-- result << QString("mountpoint=%1").arg(mp);
-- result << QString("automount=%1").arg(option_automount->isChecked() ? "true" : "false");
--
-- kdDebug() << result << endl;
--
-- DCOPRef mediamanager("kded", "mediamanager");
-- DCOPReply reply = mediamanager.call( "setMountoptions", id, result);
--
-- if (reply.isValid())
-- return (bool)reply;
-- else {
-- KMessageBox::sorry(this,
-- i18n("Saving the changes failed"));
--
-- return false;
-- }
--}
--
--#include "propertiespage.moc"
-diff -urN kioslave/media/propsdlgplugin/propertiespage.h kioslave/media/propsdlgplugin/propertiespage.h
---- kioslave/media/propsdlgplugin/propertiespage.h Sat Jul 22 10:15:43 2006
-+++ kioslave/media/propsdlgplugin/propertiespage.h Thu Jan 1 01:00:00 1970
-@@ -1,46 +0,0 @@
--/*
-- Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
--
-- 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
--*/
--
--#ifndef PROPERTIESPAGE_H
--#define PROPERTIESPAGE_H
--
--#include "propertiespagegui.h"
--#include <qmap.h>
--
--class QCheckBox;
--class Medium;
--
--class PropertiesPage : public PropertiesPageGUI
--{
-- Q_OBJECT
--
--public:
-- PropertiesPage(QWidget* parent, const QString &_id);
-- virtual ~PropertiesPage();
--
-- bool save();
--
--protected:
--
-- QMap<QString,QString> options;
-- QString id;
--
--};
--
--#endif
-diff -urN kioslave/media/propsdlgplugin/propertiespagegui.ui kioslave/media/propsdlgplugin/propertiespagegui.ui
---- kioslave/media/propsdlgplugin/propertiespagegui.ui Sat Jul 22 10:15:43 2006
-+++ kioslave/media/propsdlgplugin/propertiespagegui.ui Thu Jan 1 01:00:00 1970
-@@ -1,387 +0,0 @@
--<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
--<class>PropertiesPageGUI</class>
--<widget class="QWidget">
-- <property name="name">
-- <cstring>PropertiesPageGUI</cstring>
-- </property>
-- <property name="geometry">
-- <rect>
-- <x>0</x>
-- <y>0</y>
-- <width>527</width>
-- <height>476</height>
-- </rect>
-- </property>
-- <hbox>
-- <property name="name">
-- <cstring>unnamed</cstring>
-- </property>
-- <property name="margin">
-- <number>0</number>
-- </property>
-- <widget class="QLayoutWidget">
-- <property name="name">
-- <cstring>layout17</cstring>
-- </property>
-- <vbox>
-- <property name="name">
-- <cstring>unnamed</cstring>
-- </property>
-- <widget class="QGroupBox">
-- <property name="name">
-- <cstring>groupbox_generic</cstring>
-- </property>
-- <property name="title">
-- <string>Generic Mount Options</string>
-- </property>
-- <vbox>
-- <property name="name">
-- <cstring>unnamed</cstring>
-- </property>
-- <widget class="QLayoutWidget">
-- <property name="name">
-- <cstring>layout15</cstring>
-- </property>
-- <vbox>
-- <property name="name">
-- <cstring>unnamed</cstring>
-- </property>
-- <widget class="QCheckBox">
-- <property name="name">
-- <cstring>option_ro</cstring>
-- </property>
-- <property name="text">
-- <string>Read only</string>
-- </property>
-- <property name="whatsThis" stdset="0">
-- <string>Mount the file system read-only.</string>
-- </property>
-- </widget>
-- <widget class="QCheckBox">
-- <property name="name">
-- <cstring>option_quiet</cstring>
-- </property>
-- <property name="text">
-- <string>Quiet</string>
-- </property>
-- <property name="whatsThis" stdset="0">
-- <string>Attempts to chown or chmod files do not return errors, although they fail. Use with caution!</string>
-- </property>
-- </widget>
-- <widget class="QCheckBox">
-- <property name="name">
-- <cstring>option_sync</cstring>
-- </property>
-- <property name="text">
-- <string>Synchronous</string>
-- </property>
-- <property name="whatsThis" stdset="0">
-- <string>All I/O to the file system should be done synchronously.</string>
-- </property>
-- </widget>
-- <widget class="QCheckBox">
-- <property name="name">
-- <cstring>option_atime</cstring>
-- </property>
-- <property name="text">
-- <string>Access time updates</string>
-- </property>
-- <property name="whatsThis" stdset="0">
-- <string>Update inode access time for each access.</string>
-- </property>
-- </widget>
-- <widget class="QLayoutWidget">
-- <property name="name">
-- <cstring>layout14</cstring>
-- </property>
-- <hbox>
-- <property name="name">
-- <cstring>unnamed</cstring>
-- </property>
-- <widget class="QLabel">
-- <property name="name">
-- <cstring>textLabel3</cstring>
-- </property>
-- <property name="text">
-- <string>Mountpoint:</string>
-- </property>
-- <property name="buddy" stdset="0">
-- <cstring>option_mountpoint</cstring>
-- </property>
-- <property name="whatsThis" stdset="0">
-- <string>Under what directory this file system shall be mounted. Please note that there is no guarantee that the system will respect your wish. For one the directory has to be below /media - and it does not yet have to exist.</string>
-- </property>
-- </widget>
-- <widget class="QLineEdit">
-- <property name="name">
-- <cstring>option_mountpoint</cstring>
-- </property>
-- <property name="text">
-- <string></string>
-- </property>
-- </widget>
-- </hbox>
-- </widget>
-- <widget class="QCheckBox">
-- <property name="name">
-- <cstring>option_automount</cstring>
-- </property>
-- <property name="text">
-- <string>Mount automatically</string>
-- </property>
-- <property name="whatsThis" stdset="0">
-- <string>Mount this file system automatically.</string>
-- </property>
-- </widget>
-- </vbox>
-- </widget>
-- </vbox>
-- </widget>
-- <widget class="QGroupBox">
-- <property name="name">
-- <cstring>groupbox_specific</cstring>
-- </property>
-- <property name="title">
-- <string>Filesystem Specific Mount Options</string>
-- </property>
-- <vbox>
-- <property name="name">
-- <cstring>unnamed</cstring>
-- </property>
-- <widget class="QLayoutWidget">
-- <property name="name">
-- <cstring>layout11</cstring>
-- </property>
-- <vbox>
-- <property name="name">
-- <cstring>unnamed</cstring>
-- </property>
-- <widget class="QCheckBox">
-- <property name="name">
-- <cstring>option_flush</cstring>
-- </property>
-- <property name="text">
-- <string>Flushed IO</string>
-- </property>
-- <property name="whatsThis" stdset="0">
-- <string>Always flush all data to the hot plug devices immediately and don't cache it.</string>
-- </property>
-- </widget>
-- <widget class="QCheckBox">
-- <property name="name">
-- <cstring>option_utf8</cstring>
-- </property>
-- <property name="text">
-- <string>UTF-8 charset</string>
-- </property>
-- <property name="whatsThis" stdset="0">
-- <string>UTF8 is the filesystem safe 8-bit encoding of Unicode that is used by the console. It can be be enabled for the filesystem with this option.</string>
-- </property>
-- </widget>
-- <widget class="QCheckBox">
-- <property name="name">
-- <cstring>option_uid</cstring>
-- </property>
-- <property name="text">
-- <string>Mount as user</string>
-- </property>
-- <property name="whatsThis" stdset="0">
-- <string>Mount this file system as user.</string>
-- </property>
-- </widget>
-- <widget class="QLayoutWidget">
-- <property name="name">
-- <cstring>layout7</cstring>
-- </property>
-- <hbox>
-- <property name="name">
-- <cstring>unnamed</cstring>
-- </property>
-- <widget class="QLabel">
-- <property name="name">
-- <cstring>text_journaling</cstring>
-- </property>
-- <property name="text">
-- <string>Journaling:</string>
-- </property>
-- <property name="buddy" stdset="0">
-- <cstring>option_journaling</cstring>
-- </property>
-- <property name="whatsThis" stdset="0">
-- <string>&lt;h2&gt;Specifies the journalling mode for file data. Metadata is always journaled. &lt;/h2&gt;
--
--&lt;h3&gt;&lt;b&gt;All Data&lt;/b&gt;&lt;/h3&gt;
-- All data is committed into the journal prior to being written into the main file system. This is the slowest variant with the highest data security.
--
--&lt;h3&gt;&lt;b&gt;Ordered&lt;/b&gt;&lt;/h3&gt;
-- All data is forced directly out to the main file system prior to its metadata being committed to the journal.
--
--&lt;h3&gt;&lt;b&gt;Write Back&lt;/b&gt;&lt;/h3&gt;
-- Data ordering is not preserved - data may be written into the main file system after its metadata has been committed to the journal. This is rumoured to be the highest-throughput option. It guarantees internal file system integrity, however it can allow old data to appear in files after a crash and journal recovery.</string>
-- </property>
-- </widget>
-- <widget class="QComboBox">
-- <item>
-- <property name="text">
-- <string>All Data</string>
-- </property>
-- </item>
-- <item>
-- <property name="text">
-- <string>Ordered</string>
-- </property>
-- </item>
-- <item>
-- <property name="text">
-- <string>Write Back</string>
-- </property>
-- </item>
-- <property name="name">
-- <cstring>option_journaling</cstring>
-- </property>
-- <property name="whatsThis" stdset="0">
-- <string>&lt;h2&gt;Specifies the journalling mode for file data. Metadata is always journaled. &lt;/h2&gt;
--
--&lt;h3&gt;&lt;b&gt;All Data&lt;/b&gt;&lt;/h3&gt;
-- All data is committed into the journal prior to being written into the main file system. This is the slowest variant with the highest data security.
--
--&lt;h3&gt;&lt;b&gt;Ordered&lt;/b&gt;&lt;/h3&gt;
-- All data is forced directly out to the main file system prior to its metadata being committed to the journal.
--
--&lt;h3&gt;&lt;b&gt;Write Back&lt;/b&gt;&lt;/h3&gt;
-- Data ordering is not preserved - data may be written into the main file system after its metadata has been committed to the journal. This is rumoured to be the highest-throughput option. It guarantees internal file system integrity, however it can allow old data to appear in files after a crash and journal recovery.</string>
-- </property>
-- </widget>
-- </hbox>
-- </widget>
-- <widget class="QLayoutWidget">
-- <property name="name">
-- <cstring>layout14</cstring>
-- </property>
-- <hbox>
-- <property name="name">
-- <cstring>unnamed</cstring>
-- </property>
-- <widget class="QLabel">
-- <property name="name">
-- <cstring>text_shortname</cstring>
-- </property>
-- <property name="text">
-- <string>Short names:</string>
-- </property>
-- <property name="buddy" stdset="0">
-- <cstring>option_shortname</cstring>
-- </property>
-- <property name="whatsThis" stdset="0">
-- <string>&lt;h2&gt;Defines the behaviour for creation and display of filenames which fit into 8.3 characters. If a long name for a file exists, it will always be preferred display.&lt;/h2&gt;
--
--&lt;h3&gt;&lt;b&gt;Lower&lt;/b&gt;&lt;/h3&gt;
--Force the short name to lower case upon display; store a long name when the short name is not all upper case.
--
--&lt;h3&gt;&lt;b&gt;Windows 95&lt;/b&gt;&lt;/h3&gt;
--Force the short name to upper case upon display; store a long name when the short name is not all upper case.
--
--&lt;h3&gt;&lt;b&gt;Windows NT&lt;/b&gt;&lt;/h3&gt;
--Display the shortname as is; store a long name when the short name is not all lower case or all upper case.
--
--&lt;h3&gt;&lt;b&gt;Mixed&lt;/b&gt;&lt;/h3&gt;
--Display the short name as is; store a long name when the short name is not all upper case.</string>
-- </property>
-- </widget>
-- <widget class="QComboBox">
-- <item>
-- <property name="text">
-- <string>Lower</string>
-- </property>
-- </item>
-- <item>
-- <property name="text">
-- <string>Windows 95</string>
-- </property>
-- </item>
-- <item>
-- <property name="text">
-- <string>Windows NT</string>
-- </property>
-- </item>
-- <item>
-- <property name="text">
-- <string>Mixed</string>
-- </property>
-- </item>
-- <property name="name">
-- <cstring>option_shortname</cstring>
-- </property>
-- <property name="whatsThis" stdset="0">
-- <string>&lt;h2&gt;Defines the behaviour for creation and display of filenames which fit into 8.3 characters. If a long name for a file exists, it will always be preferred display.&lt;/h2&gt;
--
--&lt;h3&gt;&lt;b&gt;Lower&lt;/b&gt;&lt;/h3&gt;
--Force the short name to lower case upon display; store a long name when the short name is not all upper case.
--
--&lt;h3&gt;&lt;b&gt;Windows 95&lt;/b&gt;&lt;/h3&gt;
--Force the short name to upper case upon display; store a long name when the short name is not all upper case.
--
--&lt;h3&gt;&lt;b&gt;Windows NT&lt;/b&gt;&lt;/h3&gt;
--Display the shortname as is; store a long name when the short name is not all lower case or all upper case.
--
--&lt;h3&gt;&lt;b&gt;Mixed&lt;/b&gt;&lt;/h3&gt;
--Display the short name as is; store a long name when the short name is not all upper case.</string>
-- </property>
-- </widget>
-- </hbox>
-- </widget>
-- </vbox>
-- </widget>
-- </vbox>
-- </widget>
-- <widget class="QLabel">
-- <property name="name">
-- <cstring>label_filesystem</cstring>
-- </property>
-- <property name="text">
-- <string>Filesystem: iso9660</string>
-- </property>
-- </widget>
-- <spacer>
-- <property name="name">
-- <cstring>spacer1</cstring>
-- </property>
-- <property name="orientation">
-- <enum>Vertical</enum>
-- </property>
-- <property name="sizeType">
-- <enum>Expanding</enum>
-- </property>
-- <property name="sizeHint">
-- <size>
-- <width>20</width>
-- <height>20</height>
-- </size>
-- </property>
-- </spacer>
-- </vbox>
-- </widget>
-- </hbox>
--</widget>
--<connections>
-- <connection>
-- <sender>option_ro</sender>
-- <signal>stateChanged(int)</signal>
-- <receiver>PropertiesPageGUI</receiver>
-- <slot>changedSlot()</slot>
-- </connection>
--</connections>
--<variables>
-- <variable>bool m_hasChanged;</variable>
--</variables>
--<signals>
-- <signal>changed()</signal>
--</signals>
--<slots>
-- <slot access="protected">changedSlot()</slot>
--</slots>
--<functions>
-- <function returnType="bool">hasChanged()</function>
--</functions>
--<layoutdefaults spacing="6" margin="11"/>
--</UI>
-diff -urN kioslave/media/propsdlgplugin/propertiespagegui.ui.h kioslave/media/propsdlgplugin/propertiespagegui.ui.h
---- kioslave/media/propsdlgplugin/propertiespagegui.ui.h Sat Jul 22 10:15:43 2006
-+++ kioslave/media/propsdlgplugin/propertiespagegui.ui.h Thu Jan 1 01:00:00 1970
-@@ -1,22 +0,0 @@
--/****************************************************************************
--** ui.h extension file, included from the uic-generated form implementation.
--**
--** If you wish to add, delete or rename functions or slots use
--** Qt Designer which will update this file, preserving your code. Create an
--** init() function in place of a constructor, and a destroy() function in
--** place of a destructor.
--*****************************************************************************/
--
--
--void PropertiesPageGUI::changedSlot()
--{
-- m_hasChanged = true;
-- emit changed();
--}
--
--bool PropertiesPageGUI::hasChanged()
--{
-- return m_hasChanged;
--}
--
--
-diff -urN kioslave/media/propsdlgplugin/propsdlgshareplugin.cpp kioslave/media/propsdlgplugin/propsdlgshareplugin.cpp
---- kioslave/media/propsdlgplugin/propsdlgshareplugin.cpp Sat Jul 22 10:15:43 2006
-+++ kioslave/media/propsdlgplugin/propsdlgshareplugin.cpp Thu Jan 1 01:00:00 1970
-@@ -1,100 +0,0 @@
--/*
-- Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
--
-- 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
--*/
--#include <qstring.h>
--#include <qvbox.h>
--#include <qlayout.h>
--#include <qlabel.h>
--#include <qtimer.h>
--
--#include <kgenericfactory.h>
--#include <kdebug.h>
--#include <kpushbutton.h>
--#include <kfileshare.h>
--#include <kmessagebox.h>
--#include <kprocess.h>
--#include <kstandarddirs.h>
--#include <kdialog.h>
--#include <kglobal.h>
--#include <dcopref.h>
--
--#include "propertiespage.h"
--#include "propsdlgshareplugin.h"
--#include "../libmediacommon/medium.h"
--
--typedef KGenericFactory<PropsDlgSharePlugin, KPropertiesDialog> PropsDlgSharePluginFactory;
--
--K_EXPORT_COMPONENT_FACTORY( media_propsdlgplugin,
-- PropsDlgSharePluginFactory("media_propsdlgplugin") )
--
--class PropsDlgSharePlugin::Private
--{
-- public:
-- PropertiesPage* page;
--};
--
--PropsDlgSharePlugin::PropsDlgSharePlugin( KPropertiesDialog *dlg,
-- const char *, const QStringList & )
-- : KPropsDlgPlugin(dlg), d(0)
--{
-- if (properties->items().count() != 1)
-- return;
--
-- KFileItem *item = properties->items().first();
--
-- DCOPRef mediamanager("kded", "mediamanager");
-- kdDebug() << "properties " << item->url() << endl;
-- DCOPReply reply = mediamanager.call( "properties", item->url().url() );
--
-- if ( !reply.isValid() )
-- return;
--
-- QVBox* vbox = properties->addVBoxPage(i18n("&Mounting"));
--
-- d = new Private();
--
-- d->page = new PropertiesPage(vbox, Medium::create(reply).id());
-- connect(d->page, SIGNAL(changed()),
-- SLOT(slotChanged()));
--
-- // QTimer::singleShot(100, this, SLOT(slotChanged()));
--
--}
--
--void PropsDlgSharePlugin::slotChanged()
--{
-- kdDebug() << "slotChanged()\n";
-- setDirty(true);
--}
--
--PropsDlgSharePlugin::~PropsDlgSharePlugin()
--{
-- delete d;
--}
--
--void PropsDlgSharePlugin::applyChanges()
--{
-- kdDebug() << "applychanges\n";
-- if (!d->page->save()) {
-- properties->abortApplying();
-- }
--}
--
--
--#include "propsdlgshareplugin.moc"
--
-diff -urN kioslave/media/propsdlgplugin/propsdlgshareplugin.h kioslave/media/propsdlgplugin/propsdlgshareplugin.h
---- kioslave/media/propsdlgplugin/propsdlgshareplugin.h Sat Jul 22 10:15:43 2006
-+++ kioslave/media/propsdlgplugin/propsdlgshareplugin.h Thu Jan 1 01:00:00 1970
-@@ -1,44 +0,0 @@
--/*
-- Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
--
-- 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
--*/
--
--#ifndef KONQFILESHAREPLUGIN_H
--#define KONQFILESHAREPLUGIN_H
--
--#include <kpropertiesdialog.h>
--
--class PropsDlgSharePlugin : public KPropsDlgPlugin
--{
--Q_OBJECT
--public:
-- PropsDlgSharePlugin( KPropertiesDialog *dlg, const char *, const QStringList & );
-- virtual ~PropsDlgSharePlugin();
-- virtual void applyChanges();
--
--public slots:
-- void slotChanged();
--
--private:
-- class Private;
-- Private *d;
--
--};
--
--#endif
--
--
-diff -urN kioslave/media/services/Makefile.in kioslave/media/services/Makefile.in
---- kioslave/media/services/Makefile.in Sat Oct 7 16:42:32 2006
-+++ kioslave/media/services/Makefile.in Fri May 26 09:54:31 2006
-@@ -211,6 +211,7 @@
- LIBTOOL = @LIBTOOL@
- LIBUCB = @LIBUCB@
- LIBUSBCONFIG = @LIBUSBCONFIG@
-+LIBUTEMPTER = @LIBUTEMPTER@
- LIBUTIL = @LIBUTIL@
- LIBXDMCP = @LIBXDMCP@
- LIBXFT_LIB = @LIBXFT_LIB@
-diff -urN kioslave/media/services/media_eject.desktop kioslave/media/services/media_eject.desktop
---- kioslave/media/services/media_eject.desktop Sun Oct 1 19:31:53 2006
-+++ kioslave/media/services/media_eject.desktop Mon May 22 20:12:42 2006
-@@ -24,7 +24,7 @@
- Name[es]=Expulsar
- Name[et]=Väljastamine
- Name[eu]=Egotzi
--Name[fa]=پس زدن
-+Name[fa]=اخراج
- Name[fi]=Poista
- Name[fr]=Éjecter
- Name[fy]=Utsmytknop
-diff -urN kioslave/media/services/media_safelyremove.desktop kioslave/media/services/media_safelyremove.desktop
---- kioslave/media/services/media_safelyremove.desktop Sun Oct 1 19:31:53 2006
-+++ kioslave/media/services/media_safelyremove.desktop Tue May 23 13:33:34 2006
-@@ -18,10 +18,8 @@
- Name[es]=Extracción segura
- Name[et]=Eemalda turvaliselt
- Name[eu]=Atera arriskurik gabe
--Name[fa]=حذف امن
- Name[fi]=Poista turvallisesti
- Name[fr]=Enlever en toute sécurité
--Name[fy]=Feilich verwiderje
- Name[ga]=Bain Amach go Sábháilte
- Name[gl]=Eliminar de Maneira Segura
- Name[he]=שליפה בבטחה
-@@ -46,7 +44,6 @@
- Name[ru]=Безопасно извлечь
- Name[rw]=Gukuramo Neza
- Name[se]=Dorvvošlaš eretváldin
--Name[sk]=Bezpečne odpojiť
- Name[sl]=Varno odstrani
- Name[sr]=Безбедно уклони
- Name[sr@Latn]=Bezbedno ukloni
diff --git a/x11/kdebase4-runtime/files/extrapatch-kioslave_media_mediamanager-fstabbackend.cpp b/x11/kdebase4-runtime/files/extrapatch-kioslave_media_mediamanager-fstabbackend.cpp
deleted file mode 100644
index 5a6937d40f75..000000000000
--- a/x11/kdebase4-runtime/files/extrapatch-kioslave_media_mediamanager-fstabbackend.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
---- kioslave/media/mediamanager/fstabbackend.cpp.orig Mon May 22 20:12:42 2006
-+++ kioslave/media/mediamanager/fstabbackend.cpp Fri Jun 16 08:56:20 2006
-@@ -111,6 +111,7 @@
- if ( mount->mountType() == "swap"
- || mount->mountType() == "tmpfs"
- || mount->mountType() == "sysfs"
-+ || mount->mountType() == "fdescfs"
- || mount->mountType() == "kernfs"
- || mount->mountType() == "usbfs"
- || mount->mountType().contains( "proc" )
diff --git a/x11/kdebase4-runtime/files/extrapatch-kioslave_media_mediamanager-halbackend.cpp b/x11/kdebase4-runtime/files/extrapatch-kioslave_media_mediamanager-halbackend.cpp
index 00685d0fd8a2..e2580f9277c0 100644
--- a/x11/kdebase4-runtime/files/extrapatch-kioslave_media_mediamanager-halbackend.cpp
+++ b/x11/kdebase4-runtime/files/extrapatch-kioslave_media_mediamanager-halbackend.cpp
@@ -1,5 +1,5 @@
---- kioslave/media/mediamanager/halbackend.cpp.orig Sun Oct 1 21:31:54 2006
-+++ kioslave/media/mediamanager/halbackend.cpp Fri Feb 9 22:01:27 2007
+--- kioslave/media/mediamanager/halbackend.cpp.orig Mon Jan 15 12:31:32 2007
++++ kioslave/media/mediamanager/halbackend.cpp Sat Mar 3 18:00:49 2007
@@ -17,9 +17,14 @@
*/
@@ -14,9 +14,9 @@
+#include <langinfo.h>
+#endif
- #include <qfile.h>
- #include <klocale.h>
-@@ -66,6 +71,10 @@
+ #include <kapplication.h>
+ #include <qeventloop.h>
+@@ -71,6 +76,10 @@
/* Close HAL connection */
if (m_halContext)
{
@@ -27,7 +27,7 @@
const QPtrList<Medium> medlist = m_mediaList.list();
QPtrListIterator<Medium> it (medlist);
for ( const Medium *current_medium = it.current(); current_medium; current_medium = ++it)
-@@ -185,6 +194,10 @@
+@@ -184,6 +193,10 @@
libhal_free_string_array( halDeviceList );
@@ -38,9 +38,9 @@
return true;
}
-@@ -242,11 +255,11 @@
- Medium* medium = new Medium(udi, "");
-
+@@ -251,11 +264,11 @@
+ }
+ }
QMap<QString,QString> options = MediaManagerUtils::splitOptions(mountoptions(udi));
- kdDebug() << "automount " << options["automount"] << endl;
+ kdDebug(1219) << "automount " << options["automount"] << endl;
@@ -50,9 +50,9 @@
- kdDebug() << "error " << error << endl;
+ kdDebug(1219) << "error " << error << endl;
}
- setVolumeProperties(medium);
m_mediaList.addMedium(medium, allowNotification);
-@@ -264,6 +277,11 @@
+
+@@ -272,6 +285,11 @@
Medium* medium = new Medium(udi, "");
setFloppyProperties(medium);
m_mediaList.addMedium(medium, allowNotification);
@@ -64,7 +64,7 @@
return;
}
-@@ -285,12 +303,23 @@
+@@ -293,12 +311,23 @@
void HALBackend::RemoveDevice(const char *udi)
{
@@ -89,7 +89,7 @@
const char* mediumUdi = findMediumUdiFromUdi(udi);
if (!mediumUdi)
return;
-@@ -326,7 +355,7 @@
+@@ -334,7 +363,7 @@
}
const char* mediumUdi = findMediumUdiFromUdi(udi);
@@ -98,7 +98,7 @@
if (!mediumUdi)
return;
-@@ -384,7 +413,7 @@
+@@ -392,7 +421,7 @@
{
Medium m( *cmedium );
if ( setFstabProperties( &m ) ) {
@@ -107,7 +107,7 @@
m_mediaList.changeMediumState(m, false);
}
return;
-@@ -399,6 +428,7 @@
+@@ -407,6 +436,7 @@
setFloppyProperties(m);
if (libhal_device_query_capability(m_halContext, mediumUdi, "camera", NULL))
setCameraProperties(m);
@@ -115,7 +115,7 @@
m_mediaList.changeMediumState(*m, false);
-@@ -469,28 +499,23 @@
+@@ -479,28 +509,23 @@
else
mimeType = "media/dvd" + MOUNT_SUFFIX;
@@ -155,7 +155,7 @@
}
else
{
-@@ -575,7 +600,7 @@
+@@ -584,7 +609,7 @@
}
}
@@ -164,7 +164,7 @@
QString fstype = medium->fsType();
if ( fstype.isNull() )
fstype = "auto";
-@@ -762,7 +787,7 @@
+@@ -794,7 +819,7 @@
if (t.endsWith("="))
t = t.left(t.length() - 1);
valids[t] = true;
@@ -173,7 +173,7 @@
}
libhal_free_string_array(array);
QStringList result;
-@@ -882,12 +908,20 @@
+@@ -915,12 +940,20 @@
result << "journaling=ordered";
}
@@ -195,7 +195,7 @@
KConfig config("mediamanagerrc");
config.setGroup(name);
-@@ -927,7 +959,7 @@
+@@ -960,7 +993,7 @@
if (!(dmesg = dbus_message_new_method_call ("org.freedesktop.Hal", udi,
"org.freedesktop.Hal.Device.Volume",
"Mount"))) {
@@ -204,7 +204,7 @@
return i18n("Internal Error");
}
-@@ -935,7 +967,7 @@
+@@ -968,7 +1001,7 @@
DBUS_TYPE_ARRAY, DBUS_TYPE_STRING, &poptions, noptions,
DBUS_TYPE_INVALID))
{
@@ -213,7 +213,7 @@
dbus_message_unref (dmesg);
return i18n("Internal Error");
}
-@@ -963,7 +995,7 @@
+@@ -996,7 +1029,7 @@
return qerror;
}
@@ -222,18 +222,25 @@
dbus_message_unref (dmesg);
dbus_message_unref (reply);
-@@ -974,15 +1006,33 @@
+@@ -1044,7 +1077,7 @@
void HALBackend::slotResult(KIO::Job *job)
{
- kdDebug() << "slotResult " << mount_jobs[job] << endl;
+ kdDebug(1219) << "slotResult " << mount_jobs[job] << endl;
- if (job->error())
- {
- KMessageBox::error(0, job->errorText());
+
+ struct mount_job_data *data = mount_jobs[job];
+ QString& qerror = data->errorMessage;
+@@ -1071,7 +1104,6 @@
+ qerror = job->errorText();
}
-- ResetProperties( mount_jobs[job].latin1() );
+
+- ResetProperties( medium->id().latin1() );
mount_jobs.remove(job);
+
+ /* Job completed. Notify the caller */
+@@ -1080,6 +1112,25 @@
+ kapp->eventLoop()->exitLoop();
}
+#ifdef Q_OS_FREEBSD
@@ -247,7 +254,7 @@
+ {
+ bool mounted = false;
+ const char *dev = (*it)->deviceNode().ascii();
-+ for (int n = mntNum-1; n >= 0 && !mounted; n--)
++ for (int n = mntNum-1; n >= 0 && !mounted; n--)
+ mounted = !strcmp(dev, mntBuf[n].f_mntfromname);
+ if ((*it)->isMounted() != mounted)
+ ResetProperties((*it)->id().latin1());
@@ -258,31 +265,32 @@
QString HALBackend::isInFstab(const Medium *medium)
{
KMountPoint::List fstab = KMountPoint::possibleMountPoints(KMountPoint::NeedMountOptions|KMountPoint::NeedRealDeviceName);
-@@ -992,11 +1042,13 @@
-
- for (; it!=end; ++it)
- {
-- kdDebug() << "isInFstab -" << medium->deviceNode() << "- -" << (*it)->realDeviceName() << "- -" << (*it)->mountedFrom() << endl;
-+ kdDebug(1219) << "isInFstab -" << medium->deviceNode() << "- -" << (*it)->realDeviceName() << "- -" << (*it)->mountedFrom() << endl;
- if ((*it)->mountedFrom() == medium->deviceNode() || ( !medium->deviceNode().isEmpty() && (*it)->realDeviceName() == medium->deviceNode() ) )
+@@ -1092,12 +1143,14 @@
+ QString reald = (*it)->realDeviceName();
+ if ( reald.endsWith( "/" ) )
+ reald = reald.left( reald.length() - 1 );
+- kdDebug() << "isInFstab -" << medium->deviceNode() << "- -" << reald << "- -" << (*it)->mountedFrom() << "-" << endl;
++ kdDebug(1219) << "isInFstab -" << medium->deviceNode() << "- -" << reald << "- -" << (*it)->mountedFrom() << "-" << endl;
+ if ((*it)->mountedFrom() == medium->deviceNode() || ( !medium->deviceNode().isEmpty() && reald == medium->deviceNode() ) )
{
+#ifndef Q_OS_FREEBSD
QStringList opts = (*it)->mountOptions();
if (opts.contains("user") || opts.contains("users"))
-+#endif
return (*it)->mountPoint();
++#endif
}
}
-@@ -1012,7 +1064,7 @@
- QString mountPoint = isInFstab(medium);
- if (!mountPoint.isNull())
- {
+
+@@ -1116,7 +1169,7 @@
+ data.completed = false;
+ data.medium = medium;
+
- kdDebug() << "triggering user mount " << medium->deviceNode() << " " << mountPoint << " " << medium->id() << endl;
+ kdDebug(1219) << "triggering user mount " << medium->deviceNode() << " " << mountPoint << " " << medium->id() << endl;
KIO::Job *job = KIO::mount( false, 0, medium->deviceNode(), mountPoint );
connect(job, SIGNAL( result (KIO::Job *)),
SLOT( slotResult( KIO::Job *)));
-@@ -1023,7 +1075,7 @@
+@@ -1134,7 +1187,7 @@
QStringList soptions;
@@ -291,7 +299,7 @@
QMap<QString,QString> valids = MediaManagerUtils::splitOptions(mountoptions(medium->id()));
if (valids["flush"] == "true")
-@@ -1036,10 +1088,10 @@
+@@ -1147,10 +1200,10 @@
if (valids["ro"] == "true")
soptions << "ro";
@@ -304,7 +312,7 @@
if (valids["quiet"] == "true")
soptions << "quiet";
-@@ -1069,6 +1121,13 @@
+@@ -1180,6 +1233,13 @@
soptions << QString("data=ordered");
}
@@ -318,7 +326,7 @@
const char **options = new const char*[soptions.size() + 1];
uint noptions = 0;
for (QStringList::ConstIterator it = soptions.begin(); it != soptions.end(); ++it, ++noptions)
-@@ -1081,9 +1140,6 @@
+@@ -1192,9 +1252,6 @@
return qerror;
}
@@ -328,16 +336,7 @@
return QString();
}
-@@ -1121,7 +1177,7 @@
- QString mountPoint = isInFstab(medium);
- if (!mountPoint.isNull())
- {
-- kdDebug() << "triggering user unmount " << medium->deviceNode() << " " << mountPoint << endl;
-+ kdDebug(1219) << "triggering user unmount " << medium->deviceNode() << " " << mountPoint << endl;
- KIO::Job *job = KIO::unmount( medium->mountPoint(), false );
- connect(job, SIGNAL( result (KIO::Job *)),
- SLOT( slotResult( KIO::Job *)));
-@@ -1134,7 +1190,7 @@
+@@ -1255,7 +1312,7 @@
const char *options[2];
const char *udi = medium->id().latin1();
@@ -346,7 +345,7 @@
dbus_error_init(&error);
DBusConnection *dbus_connection = dbus_bus_get(DBUS_BUS_SYSTEM, &error);
-@@ -1147,7 +1203,7 @@
+@@ -1268,7 +1325,7 @@
if (!(dmesg = dbus_message_new_method_call ("org.freedesktop.Hal", udi,
"org.freedesktop.Hal.Device.Volume",
"Unmount"))) {
@@ -355,7 +354,7 @@
return i18n("Internal Error");
}
-@@ -1157,7 +1213,7 @@
+@@ -1278,7 +1335,7 @@
if (!dbus_message_append_args (dmesg, DBUS_TYPE_ARRAY, DBUS_TYPE_STRING, &options, 0,
DBUS_TYPE_INVALID))
{
@@ -364,16 +363,16 @@
dbus_message_unref (dmesg);
return i18n("Internal Error");
}
-@@ -1165,7 +1221,7 @@
- dbus_error_init (&error);
- if (!(reply = dbus_connection_send_with_reply_and_block (dbus_connection, dmesg, -1, &error)))
+@@ -1288,7 +1345,7 @@
{
+ QString qerror, reason;
+
- kdDebug() << "unmount failed for " << udi << ": " << error.name << " " << error.message << endl;
+ kdDebug(1219) << "unmount failed for " << udi << ": " << error.name << " " << error.message << endl;
- QString qerror = error.message;
- if (!strcmp(error.name, "org.freedesktop.Hal.Device.Volume.Busy")) {
- qerror = QString("<qt>") + i18n("Device is Busy:");
-@@ -1201,13 +1257,10 @@
+ qerror = "<qt>";
+ qerror += i18n("Unfortunately, the device <b>%1</b> (%2) named <b>'%3'</b> and "
+ "currently mounted at <b>%4</b> could not be unmounted. ").arg(
+@@ -1318,13 +1375,10 @@
return qerror;
}
diff --git a/x11/kdebase4-runtime/files/extrapatch-kioslave_media_mediamanager-halbackend.h b/x11/kdebase4-runtime/files/extrapatch-kioslave_media_mediamanager-halbackend.h
index df548eb39905..21672b565977 100644
--- a/x11/kdebase4-runtime/files/extrapatch-kioslave_media_mediamanager-halbackend.h
+++ b/x11/kdebase4-runtime/files/extrapatch-kioslave_media_mediamanager-halbackend.h
@@ -1,5 +1,5 @@
---- kioslave/media/mediamanager/halbackend.h.orig Sun Jan 28 23:58:13 2007
-+++ kioslave/media/mediamanager/halbackend.h Thu Feb 1 02:51:48 2007
+--- kioslave/media/mediamanager/halbackend.h.orig Mon Jan 15 12:31:32 2007
++++ kioslave/media/mediamanager/halbackend.h Wed Feb 21 15:01:12 2007
@@ -34,6 +34,9 @@
#include <qobject.h>
#include <qstringlist.h>
@@ -10,7 +10,7 @@
#include <config.h>
-@@ -154,6 +157,9 @@
+@@ -156,6 +159,9 @@
private slots:
void slotResult(KIO::Job *job);
@@ -20,10 +20,10 @@
/* Hal call-backs -- from gvm*/
public:
-@@ -217,6 +223,10 @@
- DBusConnection *dbus_connection;
+@@ -233,6 +239,10 @@
+ };
- QMap<KIO::Job *, QString> mount_jobs;
+ QMap<KIO::Job *, struct mount_job_data*> mount_jobs;
+#ifdef Q_OS_FREEBSD
+ QTimer m_pollTimer;
+ QPtrList<Medium> m_pollMediaList;
diff --git a/x11/kdebase4-runtime/files/extrapatch-kioslave_media_mounthelper-kio_media_mounthelper.cpp b/x11/kdebase4-runtime/files/extrapatch-kioslave_media_mounthelper-kio_media_mounthelper.cpp
index 508019a14f3c..7d0fbfa81767 100644
--- a/x11/kdebase4-runtime/files/extrapatch-kioslave_media_mounthelper-kio_media_mounthelper.cpp
+++ b/x11/kdebase4-runtime/files/extrapatch-kioslave_media_mounthelper-kio_media_mounthelper.cpp
@@ -1,6 +1,6 @@
---- kioslave/media/mounthelper/kio_media_mounthelper.cpp.orig Sat Jan 27 01:58:24 2007
-+++ kioslave/media/mounthelper/kio_media_mounthelper.cpp Sat Jan 27 02:35:28 2007
-@@ -77,7 +77,9 @@
+--- kioslave/media/mounthelper/kio_media_mounthelper.cpp.orig Mon Jan 15 12:31:31 2007
++++ kioslave/media/mounthelper/kio_media_mounthelper.cpp Wed Feb 21 15:17:23 2007
+@@ -89,7 +89,9 @@
m_isCdrom = medium.mimeType().find("dvd")!=-1
|| medium.mimeType().find("cd")!=-1;
@@ -11,7 +11,7 @@
{
DCOPRef mediamanager("kded", "mediamanager");
DCOPReply reply = mediamanager.call( "unmount", medium.id());
-@@ -85,13 +87,14 @@
+@@ -97,30 +99,14 @@
reply.get(m_errorStr);
kdDebug() << "medium unmount " << m_errorStr << endl;
if (m_errorStr.isNull())
@@ -26,6 +26,23 @@
- }
- else if (args->isSet("s") || args->isSet("e"))
- {
+- /*
+- * We want to call mediamanager unmount before invoking eject. That's
+- * because unmount would provide an informative error message in case of
+- * failure. However, there are cases when unmount would fail
+- * (supermount, slackware, see bug#116209) but eject would succeed.
+- * Thus if unmount fails, save unmount error message and invokeEject()
+- * anyway. Only if both unmount and eject fail, notify the user by
+- * displaying the saved error message (see ejectFinished()).
+- */
+- if (medium.isMounted())
+- {
+- DCOPRef mediamanager("kded", "mediamanager");
+- DCOPReply reply = mediamanager.call( "unmount", medium.id());
+- if (reply.isValid())
+- reply.get(m_errorStr);
+- m_device = device;
+- }
- invokeEject(device, true);
}
else
diff --git a/x11/kdebase4-runtime/files/patch-kdm-kfrontend-genkdmconf.c b/x11/kdebase4-runtime/files/patch-kdm-kfrontend-genkdmconf.c
deleted file mode 100644
index e0179de4e074..000000000000
--- a/x11/kdebase4-runtime/files/patch-kdm-kfrontend-genkdmconf.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- kdm/kfrontend/genkdmconf.c.orig Mon Jun 5 14:34:06 2006
-+++ kdm/kfrontend/genkdmconf.c Mon Jun 5 14:35:52 2006
-@@ -1684,7 +1684,7 @@
- linkfile( ce );
- else {
- tmpf = locate( "mktemp" ) ?
-- "`mktemp`" :
-+ "`mktemp /tmp/xsess-env-XXXXXX`" :
- locate( "tempfile" ) ?
- "`tempfile`" :
- "$HOME/.xsession-env-$DISPLAY";
diff --git a/x11/kdebase4-runtime/files/patch-kwin-client.cpp b/x11/kdebase4-runtime/files/patch-kwin-client.cpp
deleted file mode 100644
index d8e0f91db691..000000000000
--- a/x11/kdebase4-runtime/files/patch-kwin-client.cpp
+++ /dev/null
@@ -1,39 +0,0 @@
---- kwin/client.cpp.orig Mon Oct 2 03:02:07 2006
-+++ kwin/client.cpp Mon Jan 8 10:54:19 2007
-@@ -477,17 +477,30 @@
- // calls it or when the decoration is created/destroyed
-
- if( Shape::version() >= 0x11 ) // 1.1, has input shape support
-- { // there appears to be no way to find out if a window has input
-- // shape set or not, so always set propagate the input shape
-- // (it's the same like the bounding shape by default)
-- XShapeCombineShape( qt_xdisplay(), frameId(), ShapeInput, 0, 0,
-+ { // There appears to be no way to find out if a window has input
-+ // shape set or not, so always propagate the input shape
-+ // (it's the same like the bounding shape by default).
-+ // Also, build the shape using a helper window, not directly
-+ // in the frame window, because the sequence set-shape-to-frame,
-+ // remove-shape-of-client, add-input-shape-of-client has the problem
-+ // that after the second step there's a hole in the input shape
-+ // until the real shape of the client is added and that can make
-+ // the window lose focus (which is a problem with mouse focus policies)
-+ static Window helper_window = None;
-+ if( helper_window == None )
-+ helper_window = XCreateSimpleWindow( qt_xdisplay(), qt_xrootwin(),
-+ 0, 0, 1, 1, 0, 0, 0 );
-+ XResizeWindow( qt_xdisplay(), helper_window, width(), height());
-+ XShapeCombineShape( qt_xdisplay(), helper_window, ShapeInput, 0, 0,
- frameId(), ShapeBounding, ShapeSet );
-- XShapeCombineShape( qt_xdisplay(), frameId(), ShapeInput,
-+ XShapeCombineShape( qt_xdisplay(), helper_window, ShapeInput,
- clientPos().x(), clientPos().y(),
- window(), ShapeBounding, ShapeSubtract );
-- XShapeCombineShape( qt_xdisplay(), frameId(), ShapeInput,
-+ XShapeCombineShape( qt_xdisplay(), helper_window, ShapeInput,
- clientPos().x(), clientPos().y(),
- window(), ShapeInput, ShapeUnion );
-+ XShapeCombineShape( qt_xdisplay(), frameId(), ShapeInput, 0, 0,
-+ helper_window, ShapeInput, ShapeSet );
- }
- }
-
diff --git a/x11/kdebase4-runtime/pkg-plist b/x11/kdebase4-runtime/pkg-plist
index 46ca7f96cbe8..bd60a8fa6ce8 100644
--- a/x11/kdebase4-runtime/pkg-plist
+++ b/x11/kdebase4-runtime/pkg-plist
@@ -440,6 +440,9 @@ lib/kde3/kicker.so
lib/kde3/kickermenu_find.a
lib/kde3/kickermenu_find.la
lib/kde3/kickermenu_find.so
+lib/kde3/kickermenu_kate.a
+lib/kde3/kickermenu_kate.la
+lib/kde3/kickermenu_kate.so
lib/kde3/kickermenu_kdeprint.a
lib/kde3/kickermenu_kdeprint.la
lib/kde3/kickermenu_kdeprint.so
@@ -1158,6 +1161,7 @@ share/apps/kappfinder/apps/Internet/mozilla.desktop
share/apps/kappfinder/apps/Internet/netscape.desktop
share/apps/kappfinder/apps/Internet/netscape6.desktop
share/apps/kappfinder/apps/Internet/opera.desktop
+share/apps/kappfinder/apps/Internet/wireshark.desktop
share/apps/kappfinder/apps/Internet/xbiff.desktop
share/apps/kappfinder/apps/Internet/xchat.desktop
share/apps/kappfinder/apps/Internet/xfmail.desktop
@@ -1628,6 +1632,7 @@ share/apps/kicker/icons/locolor/16x16/actions/modified.png
share/apps/kicker/menuext/find.desktop
share/apps/kicker/menuext/find/kfind.desktop
share/apps/kicker/menuext/find/websearch.desktop
+share/apps/kicker/menuext/katesessionmenu.desktop
share/apps/kicker/menuext/konquerormenu.desktop
share/apps/kicker/menuext/konsolemenu.desktop
share/apps/kicker/menuext/prefmenu.desktop
@@ -2081,7 +2086,7 @@ share/desktop-directories/kde-edutainment.directory
share/desktop-directories/kde-games-arcade.directory
share/desktop-directories/kde-games-board.directory
share/desktop-directories/kde-games-card.directory
-share/desktop-directories/kde-games-kidsgames.directory
+share/desktop-directories/kde-games-kids.directory
share/desktop-directories/kde-games-roguelikes.directory
share/desktop-directories/kde-games-strategy.directory
share/desktop-directories/kde-games.directory
@@ -2420,6 +2425,7 @@ share/doc/HTML/en/khelpcenter/userguide/common
share/doc/HTML/en/khelpcenter/userguide/control-center.docbook
share/doc/HTML/en/khelpcenter/userguide/creating-graphics.docbook
share/doc/HTML/en/khelpcenter/userguide/credits-and-license.docbook
+share/doc/HTML/en/khelpcenter/userguide/customizing-desktop.docbook
share/doc/HTML/en/khelpcenter/userguide/desktop.png
share/doc/HTML/en/khelpcenter/userguide/email.docbook
share/doc/HTML/en/khelpcenter/userguide/extragear-applications.docbook
@@ -2480,6 +2486,7 @@ share/doc/HTML/en/khelpcenter/userguide/ripsettings.png
share/doc/HTML/en/khelpcenter/userguide/screen-captures.docbook
share/doc/HTML/en/khelpcenter/userguide/services.png
share/doc/HTML/en/khelpcenter/userguide/shared-sessions.docbook
+share/doc/HTML/en/khelpcenter/userguide/splash-screen.png
share/doc/HTML/en/khelpcenter/userguide/standard-menu-entries.docbook
share/doc/HTML/en/khelpcenter/userguide/switching-sessions.docbook
share/doc/HTML/en/khelpcenter/userguide/the-filemanager.docbook
@@ -2492,7 +2499,6 @@ share/doc/HTML/en/khelpcenter/userguide/where-next.docbook
share/doc/HTML/en/khelpcenter/userguide/windows-how-to.docbook
share/doc/HTML/en/khelpcenter/userguide/your-kde-account.docbook
share/doc/HTML/en/khelpcenter/visualdict/common
-share/doc/HTML/en/khelpcenter/visualdict/contextmenu.png
share/doc/HTML/en/khelpcenter/visualdict/index.cache.bz2
share/doc/HTML/en/khelpcenter/visualdict/index.docbook
share/doc/HTML/en/khelpcenter/visualdict/pict1.png
@@ -2508,6 +2514,9 @@ share/doc/HTML/en/khelpcenter/visualdict/pict18.png
share/doc/HTML/en/khelpcenter/visualdict/pict19.png
share/doc/HTML/en/khelpcenter/visualdict/pict2.png
share/doc/HTML/en/khelpcenter/visualdict/pict20.png
+share/doc/HTML/en/khelpcenter/visualdict/pict21.png
+share/doc/HTML/en/khelpcenter/visualdict/pict22.png
+share/doc/HTML/en/khelpcenter/visualdict/pict23.png
share/doc/HTML/en/khelpcenter/visualdict/pict3.png
share/doc/HTML/en/khelpcenter/visualdict/pict4.png
share/doc/HTML/en/khelpcenter/visualdict/pict5.png
@@ -2649,6 +2658,7 @@ share/doc/HTML/en/knetattach/common
share/doc/HTML/en/knetattach/index.cache.bz2
share/doc/HTML/en/knetattach/index.docbook
share/doc/HTML/en/knetattach/screenshot.png
+share/doc/HTML/en/knetattach/screenshot1.png
share/doc/HTML/en/knetattach/screenshot2.png
share/doc/HTML/en/knetattach/screenshot3.png
share/doc/HTML/en/knetattach/screenshot4.png
@@ -2742,7 +2752,6 @@ share/icons/crystalsvg/128x128/apps/licq.png
share/icons/crystalsvg/128x128/apps/linuxconf.png
share/icons/crystalsvg/128x128/apps/locale.png
share/icons/crystalsvg/128x128/apps/looknfeel.png
-share/icons/crystalsvg/128x128/apps/mozilla.png
share/icons/crystalsvg/128x128/apps/multimedia.png
share/icons/crystalsvg/128x128/apps/netscape.png
share/icons/crystalsvg/128x128/apps/package.png
@@ -2808,7 +2817,6 @@ share/icons/crystalsvg/16x16/apps/enhanced_browsing.png
share/icons/crystalsvg/16x16/apps/evolution.png
share/icons/crystalsvg/16x16/apps/fifteenpieces.png
share/icons/crystalsvg/16x16/apps/filetypes.png
-share/icons/crystalsvg/16x16/apps/firefox.png
share/icons/crystalsvg/16x16/apps/fonts.png
share/icons/crystalsvg/16x16/apps/gabber.png
share/icons/crystalsvg/16x16/apps/gaim.png
@@ -2862,9 +2870,6 @@ share/icons/crystalsvg/16x16/apps/looknfeel.png
share/icons/crystalsvg/16x16/apps/lyx.png
share/icons/crystalsvg/16x16/apps/mac.png
share/icons/crystalsvg/16x16/apps/mathematica.png
-share/icons/crystalsvg/16x16/apps/mozilla.png
-share/icons/crystalsvg/16x16/apps/mozilla_m.png
-share/icons/crystalsvg/16x16/apps/mozilla_mail.png
share/icons/crystalsvg/16x16/apps/multimedia.png
share/icons/crystalsvg/16x16/apps/nedit.png
share/icons/crystalsvg/16x16/apps/netscape.png
@@ -2911,7 +2916,6 @@ share/icons/crystalsvg/16x16/apps/stylesheet.png
share/icons/crystalsvg/16x16/apps/systemtray.png
share/icons/crystalsvg/16x16/apps/taskbar.png
share/icons/crystalsvg/16x16/apps/terminal.png
-share/icons/crystalsvg/16x16/apps/thunderbird.png
share/icons/crystalsvg/16x16/apps/tux.png
share/icons/crystalsvg/16x16/apps/usb.png
share/icons/crystalsvg/16x16/apps/vnc.png
@@ -3016,7 +3020,6 @@ share/icons/crystalsvg/32x32/apps/error.png
share/icons/crystalsvg/32x32/apps/evolution.png
share/icons/crystalsvg/32x32/apps/fifteenpieces.png
share/icons/crystalsvg/32x32/apps/filetypes.png
-share/icons/crystalsvg/32x32/apps/firefox.png
share/icons/crystalsvg/32x32/apps/fonts.png
share/icons/crystalsvg/32x32/apps/gabber.png
share/icons/crystalsvg/32x32/apps/gaim.png
@@ -3071,9 +3074,6 @@ share/icons/crystalsvg/32x32/apps/looknfeel.png
share/icons/crystalsvg/32x32/apps/lyx.png
share/icons/crystalsvg/32x32/apps/mac.png
share/icons/crystalsvg/32x32/apps/mathematica.png
-share/icons/crystalsvg/32x32/apps/mozilla.png
-share/icons/crystalsvg/32x32/apps/mozilla_m.png
-share/icons/crystalsvg/32x32/apps/mozilla_mail.png
share/icons/crystalsvg/32x32/apps/multimedia.png
share/icons/crystalsvg/32x32/apps/nedit.png
share/icons/crystalsvg/32x32/apps/netscape.png
@@ -3118,7 +3118,6 @@ share/icons/crystalsvg/32x32/apps/stylesheet.png
share/icons/crystalsvg/32x32/apps/systemtray.png
share/icons/crystalsvg/32x32/apps/taskbar.png
share/icons/crystalsvg/32x32/apps/terminal.png
-share/icons/crystalsvg/32x32/apps/thunderbird.png
share/icons/crystalsvg/32x32/apps/tux.png
share/icons/crystalsvg/32x32/apps/usb.png
share/icons/crystalsvg/32x32/apps/vnc.png
@@ -3177,7 +3176,6 @@ share/icons/crystalsvg/48x48/apps/enhanced_browsing.png
share/icons/crystalsvg/48x48/apps/evolution.png
share/icons/crystalsvg/48x48/apps/fifteenpieces.png
share/icons/crystalsvg/48x48/apps/filetypes.png
-share/icons/crystalsvg/48x48/apps/firefox.png
share/icons/crystalsvg/48x48/apps/fonts.png
share/icons/crystalsvg/48x48/apps/gabber.png
share/icons/crystalsvg/48x48/apps/gaim.png
@@ -3226,9 +3224,6 @@ share/icons/crystalsvg/48x48/apps/licq.png
share/icons/crystalsvg/48x48/apps/linuxconf.png
share/icons/crystalsvg/48x48/apps/locale.png
share/icons/crystalsvg/48x48/apps/looknfeel.png
-share/icons/crystalsvg/48x48/apps/mozilla.png
-share/icons/crystalsvg/48x48/apps/mozilla_m.png
-share/icons/crystalsvg/48x48/apps/mozilla_mail.png
share/icons/crystalsvg/48x48/apps/multimedia.png
share/icons/crystalsvg/48x48/apps/nedit.png
share/icons/crystalsvg/48x48/apps/netscape.png
@@ -3330,7 +3325,6 @@ share/icons/crystalsvg/64x64/apps/licq.png
share/icons/crystalsvg/64x64/apps/linuxconf.png
share/icons/crystalsvg/64x64/apps/locale.png
share/icons/crystalsvg/64x64/apps/looknfeel.png
-share/icons/crystalsvg/64x64/apps/mozilla.png
share/icons/crystalsvg/64x64/apps/multimedia.png
share/icons/crystalsvg/64x64/apps/nedit.png
share/icons/crystalsvg/64x64/apps/netscape.png