Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/accessmanager.h
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Line(s) | 81 | public: | |||
---|---|---|---|---|---|
106 | 106 | | |||
107 | /** | 107 | /** | ||
108 | * Returns true if external content is going to be fetched. | 108 | * Returns true if external content is going to be fetched. | ||
109 | * | 109 | * | ||
110 | * @see setExternalContentAllowed | 110 | * @see setExternalContentAllowed | ||
111 | */ | 111 | */ | ||
112 | bool isExternalContentAllowed() const; | 112 | bool isExternalContentAllowed() const; | ||
113 | 113 | | |||
114 | #if KIOWIDGETS_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
114 | /** | 115 | /** | ||
115 | * Sets the cookiejar's window id to @p id. | 116 | * Sets the cookiejar's window id to @p id. | ||
116 | * | 117 | * | ||
117 | * This is a convenience function that allows you to set the cookiejar's | 118 | * This is a convenience function that allows you to set the cookiejar's | ||
118 | * window id. Note that this function does nothing unless the cookiejar in | 119 | * window id. Note that this function does nothing unless the cookiejar in | ||
119 | * use is of type KIO::Integration::CookieJar. | 120 | * use is of type KIO::Integration::CookieJar. | ||
120 | * | 121 | * | ||
121 | * By default the cookiejar's window id is set to false. Make sure you call | 122 | * By default the cookiejar's window id is set to false. Make sure you call | ||
122 | * this function and set the window id to its proper value when create an | 123 | * this function and set the window id to its proper value when create an | ||
123 | * instance of this object. Otherwise, the KDE cookiejar will not be able | 124 | * instance of this object. Otherwise, the KDE cookiejar will not be able | ||
124 | * to properly manage session based cookies. | 125 | * to properly manage session based cookies. | ||
125 | * | 126 | * | ||
126 | * @see KIO::Integration::CookieJar::setWindowId. | 127 | * @see KIO::Integration::CookieJar::setWindowId. | ||
127 | * @since 4.4 | 128 | * @since 4.4 | ||
128 | * @deprecated Use setWindow | 129 | * @deprecated Since 5.0, use KIO::Integration::CookieJar::setWindowId | ||
129 | */ | 130 | */ | ||
130 | #ifndef KIOWIDGETS_NO_DEPRECATED | 131 | KIOWIDGETS_DEPRECATED_VERSION(5, 0, "Use KIO::Integration::CookieJar::setWindowId(...)") | ||
131 | KIOWIDGETS_DEPRECATED void setCookieJarWindowId(WId id); | 132 | void setCookieJarWindowId(WId id); | ||
132 | #endif | 133 | #endif | ||
133 | 134 | | |||
134 | /** | 135 | /** | ||
135 | * Sets the window associated with this network access manager. | 136 | * Sets the window associated with this network access manager. | ||
136 | * | 137 | * | ||
137 | * Note that @p widget will be used as a parent for dialogs in KIO as well | 138 | * Note that @p widget will be used as a parent for dialogs in KIO as well | ||
138 | * as the cookie jar. If @p widget is not a window, this function will | 139 | * as the cookie jar. If @p widget is not a window, this function will | ||
139 | * invoke @ref QWidget::window() to obtain the window for the given widget. | 140 | * invoke @ref QWidget::window() to obtain the window for the given widget. | ||
140 | * | 141 | * | ||
141 | * @see KIO::Integration::CookieJar::setWindow. | 142 | * @see KIO::Integration::CookieJar::setWindow. | ||
142 | * @since 4.7 | 143 | * @since 4.7 | ||
143 | */ | 144 | */ | ||
144 | void setWindow(QWidget *widget); | 145 | void setWindow(QWidget *widget); | ||
145 | 146 | | |||
147 | #if KIOWIDGETS_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
146 | /** | 148 | /** | ||
147 | * Returns the cookiejar's window id. | 149 | * Returns the cookiejar's window id. | ||
148 | * | 150 | * | ||
149 | * This is a convenience function that returns the window id associated | 151 | * This is a convenience function that returns the window id associated | ||
150 | * with the cookiejar. Note that this function will return a 0 if the | 152 | * with the cookiejar. Note that this function will return a 0 if the | ||
151 | * cookiejar is not of type KIO::Integration::CookieJar or a window id | 153 | * cookiejar is not of type KIO::Integration::CookieJar or a window id | ||
152 | * has not yet been set. | 154 | * has not yet been set. | ||
153 | * | 155 | * | ||
154 | * @see KIO::Integration::CookieJar::windowId. | 156 | * @see KIO::Integration::CookieJar::windowId. | ||
155 | * @since 4.4 | 157 | * @since 4.4 | ||
156 | * @deprecated Use KIO::Integration::CookieJar::windowId | 158 | * @deprecated Since 5.0, use KIO::Integration::CookieJar::windowId | ||
157 | */ | 159 | */ | ||
158 | #ifndef KIOWIDGETS_NO_DEPRECATED | 160 | KIOWIDGETS_DEPRECATED_VERSION(5, 0, "Use KIO::Integration::CookieJar::windowId()") | ||
159 | KIOWIDGETS_DEPRECATED WId cookieJarWindowid() const; | 161 | WId cookieJarWindowid() const; | ||
160 | #endif | 162 | #endif | ||
161 | 163 | | |||
162 | /** | 164 | /** | ||
163 | * Returns the window associated with this network access manager. | 165 | * Returns the window associated with this network access manager. | ||
164 | * | 166 | * | ||
165 | * @see setWindow | 167 | * @see setWindow | ||
166 | * @since 4.7 | 168 | * @since 4.7 | ||
167 | */ | 169 | */ | ||
▲ Show 20 Lines • Show All 201 Lines • Show Last 20 Lines |