Changeset View
Changeset View
Standalone View
Standalone View
krusader/Archive/krarchandler.h
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | 57 | public: | |||
---|---|---|---|---|---|
69 | static QStringList supportedPackers(); | 69 | static QStringList supportedPackers(); | ||
70 | // returns `true` if the url is an archive (ie: tar:/home/test/file.tar.bz2) | 70 | // returns `true` if the url is an archive (ie: tar:/home/test/file.tar.bz2) | ||
71 | static bool isArchive(const QUrl &url); | 71 | static bool isArchive(const QUrl &url); | ||
72 | // used to determine the type of the archive | 72 | // used to determine the type of the archive | ||
73 | QString getType(bool &encrypted, QString fileName, const QString& mime, bool checkEncrypted = true, bool fast = false); | 73 | QString getType(bool &encrypted, QString fileName, const QString& mime, bool checkEncrypted = true, bool fast = false); | ||
74 | // queries the password from the user | 74 | // queries the password from the user | ||
75 | static QString getPassword(const QString& path); | 75 | static QString getPassword(const QString& path); | ||
76 | // detects the archive type | 76 | // detects the archive type | ||
77 | void checkIf7zIsEncrypted(bool &, QString) Q_DECL_OVERRIDE; | 77 | void checkIf7zIsEncrypted(bool &, QString) override; | ||
78 | private: | 78 | private: | ||
79 | //! checks if a returned status ("exit code") of an archiving-related process is OK | 79 | //! checks if a returned status ("exit code") of an archiving-related process is OK | ||
80 | static bool checkStatus(const QString& type, int exitCode); | 80 | static bool checkStatus(const QString& type, int exitCode); | ||
81 | 81 | | |||
82 | static bool openWallet(); | 82 | static bool openWallet(); | ||
83 | 83 | | |||
84 | static KWallet::Wallet * wallet; | 84 | static KWallet::Wallet * wallet; | ||
85 | }; | 85 | }; | ||
86 | 86 | | |||
87 | #endif | 87 | #endif |