Changeset View
Changeset View
Standalone View
Standalone View
plugins/validators/plugin_validators.h
Show All 25 Lines | |||||
26 | **/ | 26 | **/ | ||
27 | 27 | | |||
28 | #ifndef __plugin_validators_h | 28 | #ifndef __plugin_validators_h | ||
29 | #define __plugin_validators_h | 29 | #define __plugin_validators_h | ||
30 | 30 | | |||
31 | #include "validatorsdialog.h" | 31 | #include "validatorsdialog.h" | ||
32 | 32 | | |||
33 | #include <qpointer.h> | 33 | #include <qpointer.h> | ||
34 | #include <QUrl> | ||||
34 | 35 | | |||
35 | #include <kparts/plugin.h> | 36 | #include <kparts/plugin.h> | ||
36 | 37 | | |||
37 | //KDELibs4Support | | |||
38 | #include <kurl.h> | | |||
39 | 38 | | |||
40 | class KActionMenu; | 39 | class KActionMenu; | ||
41 | class KUrl; | 40 | | ||
42 | namespace KIO | 41 | namespace KIO | ||
43 | { | 42 | { | ||
44 | class Job; | 43 | class Job; | ||
45 | } | 44 | } | ||
46 | namespace KParts | 45 | namespace KParts | ||
47 | { | 46 | { | ||
48 | class ReadOnlyPart; | 47 | class ReadOnlyPart; | ||
49 | class StatusBarExtension; | 48 | class StatusBarExtension; | ||
Show All 29 Lines | 72 | private slots: | |||
79 | void setURLs(); | 78 | void setURLs(); | ||
80 | 79 | | |||
81 | private: | 80 | private: | ||
82 | KActionMenu *m_menu; | 81 | KActionMenu *m_menu; | ||
83 | QPointer<ValidatorsDialog> m_configDialog; // | | 82 | QPointer<ValidatorsDialog> m_configDialog; // | | ||
84 | // +-> Order dependency. | 83 | // +-> Order dependency. | ||
85 | KParts::ReadOnlyPart *m_part; // | | 84 | KParts::ReadOnlyPart *m_part; // | | ||
86 | 85 | | |||
87 | KUrl m_WWWValidatorUrl, m_WWWValidatorUploadUrl; | 86 | QUrl m_WWWValidatorUrl, m_WWWValidatorUploadUrl; | ||
88 | KUrl m_CSSValidatorUrl, m_CSSValidatorUploadUrl; | 87 | QUrl m_CSSValidatorUrl, m_CSSValidatorUploadUrl; | ||
89 | KUrl m_linkValidatorUrl; | 88 | QUrl m_linkValidatorUrl; | ||
90 | 89 | | |||
91 | QAction *m_validateHtmlUri, *m_validateHtmlUpload; | 90 | QAction *m_validateHtmlUri, *m_validateHtmlUpload; | ||
92 | QAction *m_validateCssUri, *m_validateCssUpload; | 91 | QAction *m_validateCssUri, *m_validateCssUpload; | ||
93 | QAction *m_validateLinks; | 92 | QAction *m_validateLinks; | ||
94 | QAction *m_localValidation, *m_localValidationReport; | 93 | QAction *m_localValidation, *m_localValidationReport; | ||
95 | 94 | | |||
96 | ClickIconLabel *m_icon; | 95 | ClickIconLabel *m_icon; | ||
97 | KParts::StatusBarExtension *m_statusBarExt; | 96 | KParts::StatusBarExtension *m_statusBarExt; | ||
98 | QList<ValidationResult *> m_lastResults; | 97 | QList<ValidationResult *> m_lastResults; | ||
99 | 98 | | |||
100 | bool canValidateByUri() const; | 99 | bool canValidateByUri() const; | ||
101 | bool canValidateByUpload() const; | 100 | bool canValidateByUpload() const; | ||
102 | bool canValidateLocally() const; | 101 | bool canValidateLocally() const; | ||
103 | QString documentSource() const; | 102 | QString documentSource() const; | ||
104 | void validateByUri(const KUrl &url); | 103 | void validateByUri(const QUrl &url); | ||
105 | void validateByUpload(const KUrl &url, const QList<QPair<QByteArray, QByteArray> > &formData); | 104 | void validateByUpload(const QUrl &url, const QList<QPair<QByteArray, QByteArray> > &formData); | ||
106 | bool doExternalValidationChecks(); | 105 | bool doExternalValidationChecks(); | ||
107 | void addStatusBarIcon(); | 106 | void addStatusBarIcon(); | ||
108 | void removeStatusBarIcon(); | 107 | void removeStatusBarIcon(); | ||
109 | }; | 108 | }; | ||
110 | 109 | | |||
111 | #endif | 110 | #endif |