Changeset View
Changeset View
Standalone View
Standalone View
krArc/krarc.cpp
Context not available. | |||||
37 | #include <KIO/Job> | 37 | #include <KIO/Job> | ||
---|---|---|---|---|---|
38 | #include <KIOCore/KFileItem> | 38 | #include <KIOCore/KFileItem> | ||
39 | 39 | | |||
40 | #include <kio_version.h> | ||||
41 | | ||||
40 | #define MAX_IPC_SIZE (1024*32) | 42 | #define MAX_IPC_SIZE (1024*32) | ||
41 | #define TRIES_WITH_PASSWORDS 3 | 43 | #define TRIES_WITH_PASSWORDS 3 | ||
42 | 44 | | |||
Context not available. | |||||
1755 | 1757 | | |||
1756 | authInfo.password.clear(); | 1758 | authInfo.password.clear(); | ||
1757 | 1759 | | |||
1760 | #if KIO_VERSION_MINOR >= 24 | ||||
1761 | int errCode = openPasswordDialogV2(authInfo, i18n("Accessing the file requires a password.")); | ||||
1762 | if (!errCode && !authInfo.password.isNull()) { | ||||
1763 | #else | ||||
1758 | if (openPasswordDialog(authInfo, i18n("Accessing the file requires a password.")) && !authInfo.password.isNull()) { | 1764 | if (openPasswordDialog(authInfo, i18n("Accessing the file requires a password.")) && !authInfo.password.isNull()) { | ||
1765 | #endif | ||||
1759 | KRDEBUG(authInfo.password); | 1766 | KRDEBUG(authInfo.password); | ||
1760 | return (password = authInfo.password); | 1767 | return (password = authInfo.password); | ||
1768 | #if KIO_VERSION_MINOR >= 24 | ||||
1769 | } else { | ||||
1770 | error(errCode, QString()); | ||||
1771 | #endif | ||||
1761 | } | 1772 | } | ||
1762 | 1773 | | |||
1763 | KRDEBUG(password); | 1774 | KRDEBUG(password); | ||
Context not available. |