Changeset 7ad4142335ef48518a8aeceeddaba608f075fcc1
- Timestamp:
- 10/03/08 19:50:28
(7 months ago)
- Author:
- Rémi Duraffort <ivoire@videolan.org>
- git-committer:
- Rémi Duraffort <ivoire@videolan.org> 1205175028 +0100
- git-parent:
[0b446e7833cf8c16602768951aac888938081718]
- git-author:
- Rémi Duraffort <ivoire@videolan.org> 1205175028 +0100
- Message:
Use the same comments covention
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r55b3628 |
r7ad4142 |
|
| 59 | 59 | /** |
|---|
| 60 | 60 | * Destroy the interaction system |
|---|
| | 61 | * |
|---|
| 61 | 62 | * \param The interaction object to destroy |
|---|
| 62 | 63 | * \return nothing |
|---|
| … | … | |
| 180 | 181 | va_end( args ); |
|---|
| 181 | 182 | |
|---|
| 182 | | /** Send an error message, both in a blocking and non-blocking way |
|---|
| 183 | | * \param p_this Parent vlc_object |
|---|
| 184 | | * \param b_blocking Is this dialog blocking or not? |
|---|
| 185 | | * \param psz_title Title for the dialog |
|---|
| 186 | | * \param psz_format The message to display |
|---|
| 187 | | * */ |
|---|
| | 183 | /** |
|---|
| | 184 | * Send an error message, both in a blocking and non-blocking way |
|---|
| | 185 | * |
|---|
| | 186 | * \param p_this Parent vlc_object |
|---|
| | 187 | * \param b_blocking Is this dialog blocking or not? |
|---|
| | 188 | * \param psz_title Title for the dialog |
|---|
| | 189 | * \param psz_format The message to display |
|---|
| | 190 | * \return VLC_SUCCESS or VLC_EGENERIC |
|---|
| | 191 | */ |
|---|
| 188 | 192 | int __intf_UserFatal( vlc_object_t *p_this, vlc_bool_t b_blocking, |
|---|
| 189 | 193 | const char *psz_title, |
|---|
| … | … | |
| 204 | 208 | } |
|---|
| 205 | 209 | |
|---|
| 206 | | /** Helper function to send an warning, which is always shown non-blocking |
|---|
| 207 | | * \param p_this Parent vlc_object |
|---|
| 208 | | * \param psz_title Title for the dialog |
|---|
| 209 | | * \param psz_format The message to display |
|---|
| 210 | | * */ |
|---|
| | 210 | /** |
|---|
| | 211 | * Helper function to send a warning, which is always shown non-blocking |
|---|
| | 212 | * |
|---|
| | 213 | * \param p_this Parent vlc_object |
|---|
| | 214 | * \param psz_title Title for the dialog |
|---|
| | 215 | * \param psz_format The message to display |
|---|
| | 216 | * \return VLC_SUCCESS or VLC_EGENERIC |
|---|
| | 217 | */ |
|---|
| 211 | 218 | int __intf_UserWarn( vlc_object_t *p_this, |
|---|
| 212 | 219 | const char *psz_title, |
|---|
| … | … | |
| 224 | 231 | } |
|---|
| 225 | 232 | |
|---|
| 226 | | /** Helper function to ask a yes-no-cancel question |
|---|
| 227 | | * \param p_this Parent vlc_object |
|---|
| 228 | | * \param psz_title Title for the dialog |
|---|
| 229 | | * \param psz_description A description |
|---|
| 230 | | * \param psz_default caption for the default button |
|---|
| 231 | | * \param psz_alternate caption for the alternate button |
|---|
| 232 | | * \param psz_other caption for the optional 3rd button (== cancel) |
|---|
| 233 | | * \return Clicked button code |
|---|
| | 233 | /** |
|---|
| | 234 | * Helper function to ask a yes-no-cancel question |
|---|
| | 235 | * |
|---|
| | 236 | * \param p_this Parent vlc_object |
|---|
| | 237 | * \param psz_title Title for the dialog |
|---|
| | 238 | * \param psz_description A description |
|---|
| | 239 | * \param psz_default caption for the default button |
|---|
| | 240 | * \param psz_alternate caption for the alternate button |
|---|
| | 241 | * \param psz_other caption for the optional 3rd button (== cancel) |
|---|
| | 242 | * \return Clicked button code |
|---|
| 234 | 243 | */ |
|---|
| 235 | 244 | int __intf_UserYesNo( vlc_object_t *p_this, |
|---|
| … | … | |
| 253 | 262 | } |
|---|
| 254 | 263 | |
|---|
| 255 | | /** Helper function to create a dialogue showing a progress-bar with some info |
|---|
| 256 | | * \param p_this Parent vlc_object |
|---|
| 257 | | * \param psz_title Title for the dialog (NULL implies main intf ) |
|---|
| 258 | | * \param psz_status Current status |
|---|
| 259 | | * \param f_position Current position (0.0->100.0) |
|---|
| 260 | | * \param i_timeToGo Time (in sec) to go until process is finished |
|---|
| 261 | | * \return Dialog id, to give to UserProgressUpdate |
|---|
| | 264 | /** |
|---|
| | 265 | * Helper function to create a dialogue showing a progress-bar with some info |
|---|
| | 266 | * |
|---|
| | 267 | * \param p_this Parent vlc_object |
|---|
| | 268 | * \param psz_title Title for the dialog (NULL implies main intf ) |
|---|
| | 269 | * \param psz_status Current status |
|---|
| | 270 | * \param f_position Current position (0.0->100.0) |
|---|
| | 271 | * \param i_timeToGo Time (in sec) to go until process is finished |
|---|
| | 272 | * \return Dialog id, to give to UserProgressUpdate |
|---|
| 262 | 273 | */ |
|---|
| 263 | 274 | int __intf_Progress( vlc_object_t *p_this, const char *psz_title, |
|---|
| … | … | |
| 282 | 293 | } |
|---|
| 283 | 294 | |
|---|
| 284 | | /** Update a progress bar in a dialogue |
|---|
| 285 | | * \param p_this Parent vlc_object |
|---|
| 286 | | * \param i_id Identifier of the dialog |
|---|
| 287 | | * \param psz_status New status |
|---|
| 288 | | * \param f_position New position (0.0->100.0) |
|---|
| 289 | | * \param i_timeToGo Time (in sec) to go until process is finished |
|---|
| 290 | | * \return nothing |
|---|
| | 295 | /** |
|---|
| | 296 | * Update a progress bar in a dialogue |
|---|
| | 297 | * |
|---|
| | 298 | * \param p_this Parent vlc_object |
|---|
| | 299 | * \param i_id Identifier of the dialog |
|---|
| | 300 | * \param psz_status New status |
|---|
| | 301 | * \param f_position New position (0.0->100.0) |
|---|
| | 302 | * \param i_timeToGo Time (in sec) to go until process is finished |
|---|
| | 303 | * \return nothing |
|---|
| 291 | 304 | */ |
|---|
| 292 | 305 | void __intf_ProgressUpdate( vlc_object_t *p_this, int i_id, |
|---|
| … | … | |
| 319 | 332 | } |
|---|
| 320 | 333 | |
|---|
| 321 | | /** Helper function to communicate dialogue cancellations between the |
|---|
| 322 | | * interface module and the caller |
|---|
| 323 | | * \param p_this Parent vlc_object |
|---|
| 324 | | * \param i_id Identifier of the dialogue |
|---|
| 325 | | * \return Either true or false |
|---|
| | 334 | /** |
|---|
| | 335 | * Helper function to communicate dialogue cancellations between the |
|---|
| | 336 | * interface module and the caller |
|---|
| | 337 | * |
|---|
| | 338 | * \param p_this Parent vlc_object |
|---|
| | 339 | * \param i_id Identifier of the dialogue |
|---|
| | 340 | * \return Either true or false |
|---|
| 326 | 341 | */ |
|---|
| 327 | 342 | vlc_bool_t __intf_UserProgressIsCancelled( vlc_object_t *p_this, int i_id ) |
|---|
| … | … | |
| 346 | 361 | } |
|---|
| 347 | 362 | |
|---|
| 348 | | /** Helper function to make a login/password dialogue |
|---|
| 349 | | * \param p_this Parent vlc_object |
|---|
| 350 | | * \param psz_title Title for the dialog |
|---|
| 351 | | * \param psz_description A description |
|---|
| 352 | | * \param ppsz_login Returned login |
|---|
| 353 | | * \param ppsz_password Returned password |
|---|
| 354 | | * \return Clicked button code |
|---|
| | 363 | /** |
|---|
| | 364 | * Helper function to make a login/password dialogue |
|---|
| | 365 | * |
|---|
| | 366 | * \param p_this Parent vlc_object |
|---|
| | 367 | * \param psz_title Title for the dialog |
|---|
| | 368 | * \param psz_description A description |
|---|
| | 369 | * \param ppsz_login Returned login |
|---|
| | 370 | * \param ppsz_password Returned password |
|---|
| | 371 | * \return Clicked button code |
|---|
| 355 | 372 | */ |
|---|
| 356 | 373 | int __intf_UserLoginPassword( vlc_object_t *p_this, |
|---|
| … | … | |
| 382 | 399 | } |
|---|
| 383 | 400 | |
|---|
| 384 | | /** Helper function to make a dialogue asking the user for !password string |
|---|
| 385 | | * \param p_this Parent vlc_object |
|---|
| 386 | | * \param psz_title Title for the dialog |
|---|
| 387 | | * \param psz_description A description |
|---|
| 388 | | * \param ppsz_usersString Returned login |
|---|
| 389 | | * \return Clicked button code |
|---|
| | 401 | /** |
|---|
| | 402 | * Helper function to make a dialogue asking the user for !password string |
|---|
| | 403 | * |
|---|
| | 404 | * \param p_this Parent vlc_object |
|---|
| | 405 | * \param psz_title Title for the dialog |
|---|
| | 406 | * \param psz_description A description |
|---|
| | 407 | * \param ppsz_usersString Returned login |
|---|
| | 408 | * \return Clicked button code |
|---|
| 390 | 409 | */ |
|---|
| 391 | 410 | int __intf_UserStringInput( vlc_object_t *p_this, |
|---|
| … | … | |
| 412 | 431 | } |
|---|
| 413 | 432 | |
|---|
| 414 | | /** Hide an interaction dialog |
|---|
| | 433 | /** |
|---|
| | 434 | * Hide an interaction dialog |
|---|
| | 435 | * |
|---|
| 415 | 436 | * \param p_this the parent vlc object |
|---|
| 416 | 437 | * \param i_id the id of the item to hide |
|---|
| … | … | |
| 543 | 564 | if( p_this->i_flags & OBJECT_FLAGS_NOINTERACT ) return VLC_EGENERIC; |
|---|
| 544 | 565 | |
|---|
| 545 | | if( config_GetInt(p_this, "interact") || |
|---|
| | 566 | if( config_GetInt( p_this, "interact" ) || |
|---|
| 546 | 567 | p_dialog->i_flags & DIALOG_BLOCKING_ERROR || |
|---|
| 547 | 568 | p_dialog->i_flags & DIALOG_NONBLOCKING_ERROR ) |
|---|