aboutsummaryrefslogtreecommitdiffstats
path: root/kde2
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2002-03-17 01:25:08 +0000
committerFritz Elfert <felfert@to.com>2002-03-17 01:25:08 +0000
commitbf0e9c7d42c2078e29301123aae3593bab1a029b (patch)
treefc3c7ac14691c320f4ad5c34c7899975e8758244 /kde2
parent69980a9469f5a2567239ea6389eca6adb77295bc (diff)
downloadplptools-bf0e9c7d42c2078e29301123aae3593bab1a029b.tar.gz
plptools-bf0e9c7d42c2078e29301123aae3593bab1a029b.tar.bz2
plptools-bf0e9c7d42c2078e29301123aae3593bab1a029b.zip
- lib: Added rfsv::getProtocolVersion
- klipsi: Terminate gracefully if connected to a Series 3.
Diffstat (limited to 'kde2')
-rw-r--r--kde2/klipsi/toplevel.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/kde2/klipsi/toplevel.cpp b/kde2/klipsi/toplevel.cpp
index 1a7d4dd..1de43b7 100644
--- a/kde2/klipsi/toplevel.cpp
+++ b/kde2/klipsi/toplevel.cpp
@@ -554,6 +554,18 @@ checkConnection() {
rf = rff->create(true);
if (rf) {
+ if (rf->getProtocolVersion() == 3) {
+ closeConnection();
+ delete timer;
+ timer = NULL;
+ KMessageBox::error(NULL, i18n(
+ "<QT>Your Psion is reported to be a <B>Series 3</B> "
+ "machine. This type of machine does <B>not support</B> the "
+ "remote clipboard protocol; Sorry.<BR/>"
+ "<B>Klipsi</B> will now terminate.</QT>"),
+ i18n("Protocol not supported"));
+ return false;
+ }
if (!rc) {
rc = new rclip(rclipSocket);
Enum<rfsv::errs> ret;