vtuis/lcvtplugin/src/common/tlcvtstates.cpp
changeset 44 b6ab36974f47
parent 27 dcbddbbaf8fd
equal deleted inserted replaced
43:fc383c0181e8 44:b6ab36974f47
    56     __VTPRINTENTER( "TLcVtStates.IsColorToneSettingAvailable" )
    56     __VTPRINTENTER( "TLcVtStates.IsColorToneSettingAvailable" )
    57     TUint32 supportedModes;
    57     TUint32 supportedModes;
    58     // Get supported whitebalance modes
    58     // Get supported whitebalance modes
    59     if ( iCameraPref )
    59     if ( iCameraPref )
    60         {
    60         {
    61         if ( iCameraPref->GetSupportedColorTones( supportedModes ) )
    61         if ( iCameraPref->GetSupportedColorTones( supportedModes ) == KErrNone )
    62             {
    62             {
    63             // error occured
    63             // Clean the flag, flags that are possible are
    64             __VTPRINTEXIT( "TLcVtStates.IsColorToneSettingAvailableErr" )
    64             // A bitfield of suported colortones
    65             return EFalse;
    65             // ENormal         = 0x00,
       
    66             // ESepia          = 0x01,
       
    67             // EGrayscale      = 0x02,
       
    68             // ENegative       = 0x04
       
    69             supportedModes &= 0x07;
       
    70             __VTPRINTEXITR( "TLcVtStates.IsColorToneSettingAvailable mode=%d", 
       
    71                 supportedModes )
       
    72             return supportedModes;
    66             }
    73             }
    67         }
    74         }
    68 
    75 
    69     // Clean the flag, flags that are possible are
    76     __VTPRINTEXIT( "TLcVtStates.IsColorToneSettingAvailableErr" )
    70     // A bitfield of suported colortones
    77     return EFalse;
    71     // ENormal         = 0x00,
       
    72     // ESepia          = 0x01,
       
    73     // EGrayscale      = 0x02,
       
    74     // ENegative       = 0x04
       
    75     supportedModes &= 0x07;
       
    76 
       
    77     // If supported modes is 0 automatic,then return EFalse
       
    78     __VTPRINTEXIT( "TLcVtStates.IsColorToneSettingAvailable" )
       
    79     return supportedModes;
       
    80     }
    78     }
    81 
    79 
    82 // -----------------------------------------------------------------------------
    80 // -----------------------------------------------------------------------------
    83 // TLcVtStates::IsWhiteBalanceSettingAvailable
    81 // TLcVtStates::IsWhiteBalanceSettingAvailable
    84 // -----------------------------------------------------------------------------
    82 // -----------------------------------------------------------------------------
    88     __VTPRINTENTER( "TLcVtStates.IsWhiteBalanceSettingAvailable" )
    86     __VTPRINTENTER( "TLcVtStates.IsWhiteBalanceSettingAvailable" )
    89     TUint32 supportedModes;
    87     TUint32 supportedModes;
    90     // Get supported whitebalance modes
    88     // Get supported whitebalance modes
    91     if ( iCameraPref )
    89     if ( iCameraPref )
    92         {
    90         {
    93         if ( iCameraPref->GetSupportedWhiteBalanceModes( supportedModes ) )
    91         if ( iCameraPref->GetSupportedWhiteBalanceModes( supportedModes ) == KErrNone )
    94             {
    92             {
    95             // error occured
    93             __VTPRINTEXITR( "TLcVtStates.IsWhiteBalanceSettingAvailable mode=%d", 
    96             __VTPRINTEXIT( "TLcVtStates.IsWhiteBalanceSettingAvailableErr" )
    94                 supportedModes )
    97             return EFalse;
    95             return supportedModes;
    98             }
    96             }
    99         }
    97         }
   100     __VTPRINT2( DEBUG_GEN, "IsWhiteBalanceSettingAvailable=%d", supportedModes )
    98 
   101     // If supported modes is 0 ,then return EFalse
    99     __VTPRINTEXIT( "TLcVtStates.IsWhiteBalanceSettingAvailableErr" )
   102     __VTPRINTEXIT( "TLcVtStates.IsWhiteBalanceSettingAvailable2" )
   100     return EFalse;
   103     return supportedModes;
       
   104     }
   101     }
   105 
   102 
   106 // -----------------------------------------------------------------------------
   103 // -----------------------------------------------------------------------------
   107 // TLcVtStates::IsContrastSettingAvailable
   104 // TLcVtStates::IsContrastSettingAvailable
   108 // -----------------------------------------------------------------------------
   105 // -----------------------------------------------------------------------------