summaryrefslogtreecommitdiffstats
path: root/kio
diff options
context:
space:
mode:
Diffstat (limited to 'kio')
-rw-r--r--kio/kio/global.cpp3
-rw-r--r--kio/kio/global.h4
2 files changed, 6 insertions, 1 deletions
diff --git a/kio/kio/global.cpp b/kio/kio/global.cpp
index f67c09ed9..f99219524 100644
--- a/kio/kio/global.cpp
+++ b/kio/kio/global.cpp
@@ -408,6 +408,9 @@ KIO_EXPORT TQString KIO::buildErrorString(int errorCode, const TQString &errorTe
case KIO::ERR_POST_DENIED:
result = i18n( "Access to restricted port in POST denied.");
break;
+ case KIO::ERR_OFFLINE_MODE:
+ result = i18n( "Could not access %1.\nOffline mode active.").arg( errorText );
+ break;
default:
result = i18n( "Unknown error code %1\n%2\nPlease send a full bug report at http://bugs.kde.org." ).arg( errorCode ).arg( errorText );
break;
diff --git a/kio/kio/global.h b/kio/kio/global.h
index cea9dc5f4..402d7b431 100644
--- a/kio/kio/global.h
+++ b/kio/kio/global.h
@@ -244,8 +244,10 @@ namespace KIO
ERR_UPGRADE_REQUIRED = 64, // A transport upgrade is required to access this
// object. For instance, TLS is demanded by
// the server in order to continue.
- ERR_POST_DENIED = 65 // Issued when trying to POST data to a certain Ports
+ ERR_POST_DENIED = 65, // Issued when trying to POST data to a certain Ports
// see job.cpp
+ ERR_OFFLINE_MODE = 66 // Used when an app is in offline mode and a
+ // requested document is unavailable.
};
/**