wlan_bearer/wlanengine/wlan_symbian/wlanengine_symbian_3.1/inc/wlanbgscanstates.h
equal
deleted
inserted
replaced
14 * Description: Class implementing WLAN background scan logic |
14 * Description: Class implementing WLAN background scan logic |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: 2 % |
19 * %version: 3 % |
20 */ |
20 */ |
21 |
21 |
22 #ifndef WLANBGSCANSTATES_H |
22 #ifndef WLANBGSCANSTATES_H |
23 #define WLANBGSCANSTATES_H |
23 #define WLANBGSCANSTATES_H |
24 |
24 |
364 * |
364 * |
365 * @since S60 v5.2 |
365 * @since S60 v5.2 |
366 * @param aInterval new background scan interval to be taken into use |
366 * @param aInterval new background scan interval to be taken into use |
367 */ |
367 */ |
368 void SetInterval( TUint32 aInterval ); |
368 void SetInterval( TUint32 aInterval ); |
369 |
369 |
370 /** |
|
371 * Refreshes the used background scan interval. |
|
372 * |
|
373 * @since S60 v5.2 |
|
374 */ |
|
375 void RefreshUsedInterval(); |
|
376 |
|
377 protected: |
370 protected: |
378 |
371 |
379 /** |
372 /** |
380 * Main state machine |
373 * Main state machine |
381 * |
374 * |
411 * Set AWS startup status. |
404 * Set AWS startup status. |
412 * |
405 * |
413 * @param aStatus new status |
406 * @param aStatus new status |
414 * @since S60 v5.2 |
407 * @since S60 v5.2 |
415 */ |
408 */ |
416 inline void SetAwsStartupStatus( TInt aStatus ) |
409 inline void SetAwsStartupStatus( TInt aStatus ); |
417 { |
|
418 iAwsStartupStatus = aStatus; |
|
419 } |
|
420 |
410 |
421 /** |
411 /** |
422 * Set AWS command status. |
412 * Set AWS command status. |
423 * |
413 * |
424 * @param aCmd new command |
414 * @param aCmd new command |
425 * @param aStatus new status |
415 * @param aStatus new status |
426 * @since S60 v5.2 |
416 * @since S60 v5.2 |
427 */ |
417 */ |
428 inline void SetAwsCmdStatus( MWlanBgScanAwsComms::TAwsCommand aCmd, TInt aStatus ) |
418 inline void SetAwsCmdStatus( MWlanBgScanAwsComms::TAwsCommand aCmd, TInt aStatus ); |
429 { |
|
430 iAwsCmd = aCmd; |
|
431 iAwsCmdStatus = aStatus; |
|
432 } |
|
433 |
419 |
434 /** |
420 /** |
435 * Set Auto interval. |
421 * Set Auto interval. |
436 * |
422 * |
437 * @param aAutoInterval new auto interval |
423 * @param aAutoInterval new auto interval |
438 * @since S60 v5.2 |
424 * @since S60 v5.2 |
439 */ |
425 */ |
440 inline void SetAutoInterval( TUint aAutoInterval ) |
426 inline void SetAutoInterval( TUint aAutoInterval ); |
441 { |
427 |
442 iAutoInterval = aAutoInterval; |
428 /** |
443 } |
429 * Refreshes the used background scan interval. |
|
430 * |
|
431 * @since S60 v5.2 |
|
432 */ |
|
433 void RefreshUsedInterval(); |
444 |
434 |
445 private: // data |
435 private: // data |
446 |
436 |
447 /** |
437 /** |
448 * Reference to the Bg Scan |
438 * Reference to the Bg Scan |
536 MWlanBgScanAwsComms::TAwsCommand iCompletedAwsCommand; |
526 MWlanBgScanAwsComms::TAwsCommand iCompletedAwsCommand; |
537 |
527 |
538 /** |
528 /** |
539 * Status code of the completed AWS command. |
529 * Status code of the completed AWS command. |
540 */ |
530 */ |
541 TInt iAwsCommandCompletionCode; |
531 TInt iAwsCommandCompletionCode; |
|
532 |
|
533 /** |
|
534 * Current WLAN state. |
|
535 */ |
|
536 MWlanBgScanProvider::TWlanBgScanWlanState iWlanState; |
|
537 |
542 }; |
538 }; |
543 |
539 |
|
540 #include "wlanbgscanstates.inl" |
|
541 |
544 #endif // WLANBGSCANSTATES_H |
542 #endif // WLANBGSCANSTATES_H |