summaryrefslogtreecommitdiffstats
path: root/src/tdeioslave/obex
diff options
context:
space:
mode:
Diffstat (limited to 'src/tdeioslave/obex')
-rw-r--r--src/tdeioslave/obex/CMakeLists.txt22
-rw-r--r--src/tdeioslave/obex/obex_sidebarentry.desktop5
-rw-r--r--src/tdeioslave/obex/obexftp.protocol45
-rw-r--r--src/tdeioslave/obex/obexopp.protocol45
-rw-r--r--src/tdeioslave/obex/tdeio_obex.cpp2
5 files changed, 31 insertions, 88 deletions
diff --git a/src/tdeioslave/obex/CMakeLists.txt b/src/tdeioslave/obex/CMakeLists.txt
index d31aa6f..13aa0f4 100644
--- a/src/tdeioslave/obex/CMakeLists.txt
+++ b/src/tdeioslave/obex/CMakeLists.txt
@@ -21,7 +21,9 @@ include_directories(
${DBUS_INCLUDE_DIRS}
${DBUS_TQT_INCLUDE_DIRS}
)
-##### tdeio_bluetooth (static) #############################
+
+
+##### tdeio_obex (part) #############################
set( target tdeio_obex )
tde_add_kpart( ${target} AUTOMOC
@@ -30,9 +32,15 @@ tde_add_kpart( ${target} AUTOMOC
DESTINATION ${PLUGIN_INSTALL_DIR}
)
-install( FILES obexftp.protocol
- DESTINATION ${SERVICES_INSTALL_DIR} )
-install( FILES obexopp.protocol
- DESTINATION ${SERVICES_INSTALL_DIR} )
-install( FILES obex_sidebarentry.desktop
- DESTINATION ${DATA_INSTALL_DIR}/konqsidebartng/virtual_folders/services ) \ No newline at end of file
+tde_create_translated_desktop(
+ SOURCE obexftp.protocol
+ DESTINATION ${SERVICES_INSTALL_DIR}
+)
+tde_create_translated_desktop(
+ SOURCE obexopp.protocol
+ DESTINATION ${SERVICES_INSTALL_DIR}
+)
+tde_create_translated_desktop(
+ SOURCE obex_sidebarentry.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/konqsidebartng/virtual_folders/services
+)
diff --git a/src/tdeioslave/obex/obex_sidebarentry.desktop b/src/tdeioslave/obex/obex_sidebarentry.desktop
index 9bc0178..7d6dcae 100644
--- a/src/tdeioslave/obex/obex_sidebarentry.desktop
+++ b/src/tdeioslave/obex/obex_sidebarentry.desktop
@@ -1,10 +1,9 @@
[Desktop Entry]
-Encoding=UTF-8
+Name=Bluetooth Browser
+
Type=Link
URL=obexftp:/
Icon=tdebluez
-Name=Bluetooth Browser
-Name[et]=Bluetoothi brauser
Open=false
X-TDE-TreeModule=Directory
X-TDE-KonqSidebarModule=konqsidebar_tree
diff --git a/src/tdeioslave/obex/obexftp.protocol b/src/tdeioslave/obex/obexftp.protocol
index 3262d4b..744b07c 100644
--- a/src/tdeioslave/obex/obexftp.protocol
+++ b/src/tdeioslave/obex/obexftp.protocol
@@ -1,52 +1,19 @@
[Protocol]
-# The executable
-exec=tdeio_obex
-# This protocol name
+Description=A tdeioslave for OBEX connections
+
protocol=obexftp
+exec=tdeio_obex
+Icon=remote
+maxInstances=1
Parent=system:/
-
-# input/output can be one of: filesystem, stream, none
input=none
output=filesystem
-maxInstances=1
-
-# capabilities for this protocol
+source=false
reading=true
writing=true
makedir=true
deleting=true
moving=false
linking=false
-
-# What to list ... FIXME work out how ...
listing=Name,Type,Size,Date,AccessDate,Access,Owner,Group
-
-# Can be source protocol
-source=false
-
-Description=A tdeioslave for OBEX connections
-Description[bg]=tdeioslave за OBEX връзки
-Description[br]=Ur c'hioslave evit ar c'hevreadennoù OBEX
-Description[ca]=Un tdeioslave per a les connexions OBEX
-Description[da]=En tdeioslave til OBEX-forbindelser
-Description[de]=Ein tdeioslave für OBEX-Verbindungen
-Description[el]=Ένας υπηρέτης tdeio για συνδέσεις OBEX
-Description[es]=Un 'tdeioslave' para conexiones OBEX
-Description[et]=OBEX-ühenduste I/O-moodul
-Description[fr]=Un tdeioslave pour les connexions OBEX
-Description[it]=Un tdeioslave per connessioni OBEX
-Description[ja]=OBEX 接続のための tdeioslave
-Description[ka]=tdeioslave OBEX კავშირებისთვის
-Description[nl]=Een tdeioslave for OBEX-verbindingen
-Description[pl]=Wtyczka protokołu dla połączeń OBEX
-Description[pt]=Um 'tdeioslave' para ligações OBEX
-Description[pt_BR]=Um 'tdeioslave' para ligações OBEX
-Description[sr]=tdeioslave за OBEX везе
-Description[sr@Latn]=tdeioslave za OBEX veze
-Description[sv]=En I/O-slav för OBEX-anslutningar
-Description[ta]=ஒரு OBEX இணைப்பிற்க்காண tdeioslave.
-Description[tr]=OBEX bağlantıları için bir tdeioslave
-Description[xx]=xxA tdeioslave for OBEX connectionsxx
-Icon=remote
-
DocPath=tdebluez/components.tdeio_obex.html
diff --git a/src/tdeioslave/obex/obexopp.protocol b/src/tdeioslave/obex/obexopp.protocol
index 964bab9..f56b884 100644
--- a/src/tdeioslave/obex/obexopp.protocol
+++ b/src/tdeioslave/obex/obexopp.protocol
@@ -1,52 +1,19 @@
[Protocol]
-# The executable
-exec=tdeio_obex
-# This protocol name
+Description=A tdeioslave for OBEX connections
+
protocol=obexopp
+exec=tdeio_obex
+Icon=remote
+maxInstances=1
Parent=system:/
-
-# input/output can be one of: filesystem, stream, none
input=none
output=none
-maxInstances=1
-
-# capabilities for this protocol
+source=false
reading=false
writing=true
makedir=false
deleting=false
moving=false
linking=false
-
-# What to list ... FIXME work out how ...
listing=Name,Type,Size,Date,AccessDate,Access,Owner,Group
-
-# Can be source protocol
-source=false
-
-Description=A tdeioslave for OBEX connections
-Description[bg]=tdeioslave за OBEX връзки
-Description[br]=Ur c'hioslave evit ar c'hevreadennoù OBEX
-Description[ca]=Un tdeioslave per a les connexions OBEX
-Description[da]=En tdeioslave til OBEX-forbindelser
-Description[de]=Ein tdeioslave für OBEX-Verbindungen
-Description[el]=Ένας υπηρέτης tdeio για συνδέσεις OBEX
-Description[es]=Un 'tdeioslave' para conexiones OBEX
-Description[et]=OBEX-ühenduste I/O-moodul
-Description[fr]=Un tdeioslave pour les connexions OBEX
-Description[it]=Un tdeioslave per connessioni OBEX
-Description[ja]=OBEX 接続のための tdeioslave
-Description[ka]=tdeioslave OBEX კავშირებისთვის
-Description[nl]=Een tdeioslave for OBEX-verbindingen
-Description[pl]=Wtyczka protokołu dla połączeń OBEX
-Description[pt]=Um 'tdeioslave' para ligações OBEX
-Description[pt_BR]=Um 'tdeioslave' para ligações OBEX
-Description[sr]=tdeioslave за OBEX везе
-Description[sr@Latn]=tdeioslave za OBEX veze
-Description[sv]=En I/O-slav för OBEX-anslutningar
-Description[ta]=ஒரு OBEX இணைப்பிற்க்காண tdeioslave.
-Description[tr]=OBEX bağlantıları için bir tdeioslave
-Description[xx]=xxA tdeioslave for OBEX connectionsxx
-Icon=remote
-
DocPath=tdebluez/components.tdeio_obex.html
diff --git a/src/tdeioslave/obex/tdeio_obex.cpp b/src/tdeioslave/obex/tdeio_obex.cpp
index fbd2fb5..3e5bdbe 100644
--- a/src/tdeioslave/obex/tdeio_obex.cpp
+++ b/src/tdeioslave/obex/tdeio_obex.cpp
@@ -49,6 +49,8 @@ extern "C" {
TDECmdLineArgs::init(argc, argv, "tdeio_obex", 0, 0, 0, 0);
TDECmdLineArgs::addCmdLineOptions( options );
TDEApplication app( false, false, false );
+ TDELocale::setMainCatalogue("tdebluez");
+
// We want to be anonymous even if we use DCOP
app.dcopClient()->attach();