inc/mussettings.inl
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  ?Description
    14 * Description:  ?Description
    15 *  Version     : %version: 20 % << Don't touch! Updated by Synergy at check-out.
    15 *  Version     : %version: 19 % << Don't touch! Updated by Synergy at check-out.
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 
    19 
    20 #ifndef MUSSETTINGS_INL
    20 #ifndef MUSSETTINGS_INL
   182     {
   182     {
   183     MUS_LOG1( "mus: [MUSSET]     -> MultimediaSharingSettings::SetAuditoryNotificationSettingL( %d )",
   183     MUS_LOG1( "mus: [MUSSET]     -> MultimediaSharingSettings::SetAuditoryNotificationSettingL( %d )",
   184               ( TInt ) aNotificationSetting )
   184               ( TInt ) aNotificationSetting )
   185     SetPropertyValueL( MusSettingsKeys::KAuditoryNotification, ( TInt ) aNotificationSetting );
   185     SetPropertyValueL( MusSettingsKeys::KAuditoryNotification, ( TInt ) aNotificationSetting );
   186     MUS_LOG( "mus: [MUSSET]  <- MultimediaSharingSettings::SetAuditoryNotificationSettingL()" )
   186     MUS_LOG( "mus: [MUSSET]  <- MultimediaSharingSettings::SetAuditoryNotificationSettingL()" )
   187     }
       
   188 
       
   189 
       
   190 // -----------------------------------------------------------------------------
       
   191 //
       
   192 // -----------------------------------------------------------------------------
       
   193 //
       
   194 inline MusSettingsKeys::TPopupNotification
       
   195     MultimediaSharingSettings::PopupNotificationSettingL()
       
   196     {
       
   197     MUS_LOG( "mus: [MUSSET]  -> MultimediaSharingSettings::PopupNotificationSettingL()" )
       
   198     TInt value = GetPropertyValueL( MusSettingsKeys::KPopupNotification );
       
   199     MUS_LOG1( "mus: [MUSSET]     <- MultimediaSharingSettings::PopupNotificationSettingL( %d )",
       
   200               value )
       
   201     return ( MusSettingsKeys::TPopupNotification ) value;
       
   202     }
       
   203 
       
   204 
       
   205 // -----------------------------------------------------------------------------
       
   206 //
       
   207 // -----------------------------------------------------------------------------
       
   208 //
       
   209 inline void MultimediaSharingSettings::SetPopupNotificationSettingL(
       
   210                 MusSettingsKeys::TPopupNotification aNotificationSetting )
       
   211     {
       
   212     MUS_LOG1( "mus: [MUSSET]     -> MultimediaSharingSettings::SetPopupNotificationSettingL( %d )",
       
   213               ( TInt ) aNotificationSetting )
       
   214     SetPropertyValueL( MusSettingsKeys::KPopupNotification,
       
   215                        ( TInt ) aNotificationSetting );
       
   216     MUS_LOG( "mus: [MUSSET]  <- MultimediaSharingSettings::SetPopupNotificationSettingL()" )
       
   217     }
       
   218 
       
   219 
       
   220 // -----------------------------------------------------------------------------
       
   221 //
       
   222 // -----------------------------------------------------------------------------
       
   223 //
       
   224 inline MusSettingsKeys::TPopupNotificationType
       
   225     MultimediaSharingSettings::PopupNotificationTypeSettingL()
       
   226     {
       
   227     MUS_LOG( "mus: [MUSSET]  -> MultimediaSharingSettings::PopupNotificationTypeSettingL()" )
       
   228     TInt value = GetPropertyValueL( MusSettingsKeys::KPopupNotificationType );
       
   229     MUS_LOG1( "mus: [MUSSET]     <- MultimediaSharingSettings::PopupNotificationTypeSettingL( %d )",
       
   230               value )
       
   231     return ( MusSettingsKeys::TPopupNotificationType ) value;
       
   232     }
       
   233 
       
   234 
       
   235 // -----------------------------------------------------------------------------
       
   236 //
       
   237 // -----------------------------------------------------------------------------
       
   238 //
       
   239 inline void MultimediaSharingSettings::SetPopupNotificationTypeSettingL(
       
   240             MusSettingsKeys::TPopupNotificationType aNotificationSetting )
       
   241     {
       
   242     MUS_LOG1( "mus: [MUSSET]     -> MultimediaSharingSettings::SetActivationSettingL( %d )",
       
   243               ( TInt ) aNotificationSetting )
       
   244     SetPropertyValueL( MusSettingsKeys::KPopupNotificationType, ( TInt ) aNotificationSetting );
       
   245     MUS_LOG( "mus: [MUSSET]  <- MultimediaSharingSettings::SetActivationSettingL()" )
       
   246 
       
   247     }
   187     }
   248 
   188 
   249 
   189 
   250 // -----------------------------------------------------------------------------
   190 // -----------------------------------------------------------------------------
   251 //
   191 //
   582     
   522     
   583     return TUid::Uid( value );
   523     return TUid::Uid( value );
   584     }
   524     }
   585 
   525 
   586 // -----------------------------------------------------------------------------
   526 // -----------------------------------------------------------------------------
   587 // Returns the cenrep configured value for KAllowOnlyWithActiveCSCall key.
       
   588 // -----------------------------------------------------------------------------
       
   589 //
       
   590 inline MusSettingsKeys::TAllowedCSOnly
       
   591     MultimediaSharingSettings::AllowedCSOnlySettingL()
       
   592     {
       
   593     MUS_LOG( "mus: [MUSSET]  -> MultimediaSharingSettings::AllowedCSOnlySettingL()" )
       
   594     TInt value = GetPropertyValueL( MusSettingsKeys::KAllowOnlyWithActiveCSCall );
       
   595     MUS_LOG1( "mus: [MUSSET]  <- MultimediaSharingSettings::AllowedCSOnlySettingL( %d )",
       
   596               value )
       
   597     return ( MusSettingsKeys::TAllowedCSOnly ) value;
       
   598     }
       
   599     
       
   600 // -----------------------------------------------------------------------------
       
   601 // Returns the cenrep configured value for KAllowOnlyIn3GNetwork key.
       
   602 // -----------------------------------------------------------------------------
       
   603 //
       
   604 inline MusSettingsKeys::TAllowed3GOnly
       
   605     MultimediaSharingSettings::Allowed3GOnlySettingL()
       
   606     {
       
   607     MUS_LOG( "mus: [MUSSET]  -> MultimediaSharingSettings::Allowed3GOnlySettingL()" )
       
   608     TInt value = GetPropertyValueL( MusSettingsKeys::KAllowOnlyIn3GNetwork );
       
   609     MUS_LOG1( "mus: [MUSSET]  <- MultimediaSharingSettings::Allowed3GOnlySettingL( %d )",
       
   610               value )
       
   611     return ( MusSettingsKeys::TAllowed3GOnly ) value;
       
   612     }    
       
   613 
       
   614 
       
   615 // -----------------------------------------------------------------------------
       
   616 // Returns the cenrep configured value for KCameraUsage key.
       
   617 // -----------------------------------------------------------------------------
       
   618 //
       
   619 inline MusSettingsKeys::TUseCamera 
       
   620               MultimediaSharingSettings::CameraUsageL()
       
   621     {
       
   622     MUS_LOG( "mus: [MUSSET]  -> MultimediaSharingSettings::CameraUsageL()" )
       
   623     TInt value = GetPropertyValueL( MusSettingsKeys::KCameraUsage );
       
   624     MUS_LOG1( "mus: [MUSSET]  <- MultimediaSharingSettings::CameraUsageL( %d )",
       
   625               value )
       
   626     return ( MusSettingsKeys::TUseCamera ) value;
       
   627     }    
       
   628 
       
   629 
       
   630 // -----------------------------------------------------------------------------
       
   631 // Returns the cenrep configured value for KVideoDirection key.
       
   632 // -----------------------------------------------------------------------------
       
   633 inline MusSettingsKeys::TVideoDirection 
       
   634               MultimediaSharingSettings::VideoDirectionL()
       
   635     {
       
   636     MUS_LOG( "mus: [MUSSET]  -> MultimediaSharingSettings::VideoDirectionL()" )
       
   637     TInt value = GetPropertyValueL( MusSettingsKeys::KVideoDirection );
       
   638     MUS_LOG1( "mus: [MUSSET]  <- MultimediaSharingSettings::VideoDirectionL( %d )",
       
   639               value )
       
   640     return ( MusSettingsKeys::TVideoDirection ) value;
       
   641     }
       
   642     
       
   643 // -----------------------------------------------------------------------------
       
   644 // Returns the cenrep configured value for KVideoBandwidth key.
       
   645 // -----------------------------------------------------------------------------
       
   646 inline TInt MultimediaSharingSettings::VideoBandwidthSettingL()
       
   647     {
       
   648     MUS_LOG( "mus: [MUSSET]  -> MultimediaSharingSettings::VideoBandwidthSettingL()" )
       
   649     TInt value = GetPropertyValueL( MusSettingsKeys::KVideoBandwidth );
       
   650     MUS_LOG1( "mus: [MUSSET]  <- MultimediaSharingSettings::VideoBandwidthSettingL( %d )",
       
   651               value )
       
   652     return value;
       
   653     }
       
   654 
       
   655 // -----------------------------------------------------------------------------
       
   656 // Returns the cenrep configured value for KFastStartupMode key.
       
   657 // -----------------------------------------------------------------------------
       
   658 inline MusSettingsKeys::TFastMode 
       
   659               MultimediaSharingSettings::FastStartupModeL()
       
   660     {
       
   661     MUS_LOG( "mus: [MUSSET]  -> MultimediaSharingSettings::FastStartupModeL()" )
       
   662     TInt value = GetPropertyValueL( MusSettingsKeys::KFastStartupMode );
       
   663     MUS_LOG1( "mus: [MUSSET]  <- MultimediaSharingSettings::FastStartupModeL( %d )",
       
   664               value )
       
   665     return ( MusSettingsKeys::TFastMode ) value;
       
   666     }
       
   667     
       
   668 // -----------------------------------------------------------------------------
       
   669 //
   527 //
   670 // -----------------------------------------------------------------------------
   528 // -----------------------------------------------------------------------------
   671 //
   529 //
   672 inline TBool MultimediaSharingSettings::IsAvcDisabled()
   530 inline TBool MultimediaSharingSettings::IsAvcDisabled()
   673     {
   531     {
   681         }
   539         }
   682     MUS_LOG( "mus: [MUSSET]  <- MultimediaSharingSettings::IsAvcDisabled() false")
   540     MUS_LOG( "mus: [MUSSET]  <- MultimediaSharingSettings::IsAvcDisabled() false")
   683     return EFalse;
   541     return EFalse;
   684     }
   542     }
   685     
   543     
       
   544 // -----------------------------------------------------------------------------
       
   545 //
       
   546 // -----------------------------------------------------------------------------
       
   547 //    
       
   548 inline TBool MultimediaSharingSettings::PrivacySetting()
       
   549 	{
       
   550 	MUS_LOG( "mus: [MUSSET]  -> MultimediaSharingSettings::PrivacySetting()" )
       
   551 
       
   552 	TInt value(0);
       
   553     TRAPD( err, value = GetPropertyValueL( MusSettingsKeys::KPrivacyExchange ) );
       
   554     MUS_LOG2( "mus: [MUSSET]  <- MultimediaSharingSettings::PrivacySetting() err=%d value=%d",
       
   555               err, value )
       
   556 	return ( err == KErrNone && value == MusSettingsKeys::EPrivacy );
       
   557 	}
   686 #endif // MUSSETTINGS_INL
   558 #endif // MUSSETTINGS_INL